diff --git a/profiles/2017-03-09/definition.json b/profiles/2017-03-09/definition.json index 909f785da242..1daaa1c3c336 100644 --- a/profiles/2017-03-09/definition.json +++ b/profiles/2017-03-09/definition.json @@ -16,7 +16,7 @@ "../../services/resources/mgmt/2016-09-01/links/linksapi", "../../services/resources/mgmt/2015-01-01/locks", "../../services/resources/mgmt/2015-01-01/locks/locksapi", - "../../services/resources/mgmt/2015-10-01-preview/policy", + "../../services/preview/resources/mgmt/2015-10-01-preview/policy", "../../services/resources/mgmt/2016-02-01/resources", "../../services/resources/mgmt/2016-02-01/resources/resourcesapi", "../../services/resources/mgmt/2016-06-01/subscriptions", diff --git a/profiles/2017-03-09/resources/mgmt/policy/models.go b/profiles/2017-03-09/preview/resources/mgmt/policy/models.go similarity index 75% rename from profiles/2017-03-09/resources/mgmt/policy/models.go rename to profiles/2017-03-09/preview/resources/mgmt/policy/models.go index 2cca9b2f1cdd..a9d90da4da05 100644 --- a/profiles/2017-03-09/resources/mgmt/policy/models.go +++ b/profiles/2017-03-09/preview/resources/mgmt/policy/models.go @@ -19,7 +19,11 @@ package policy -import original "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2015-10-01-preview/policy" +import ( + "context" + + original "github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy" +) const ( DefaultBaseURI = original.DefaultBaseURI @@ -50,12 +54,24 @@ type DefinitionsClient = original.DefinitionsClient func New(subscriptionID string) BaseClient { return original.New(subscriptionID) } +func NewAssignmentListResultIterator(page AssignmentListResultPage) AssignmentListResultIterator { + return original.NewAssignmentListResultIterator(page) +} +func NewAssignmentListResultPage(getNextPage func(context.Context, AssignmentListResult) (AssignmentListResult, error)) AssignmentListResultPage { + return original.NewAssignmentListResultPage(getNextPage) +} func NewAssignmentsClient(subscriptionID string) AssignmentsClient { return original.NewAssignmentsClient(subscriptionID) } func NewAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) AssignmentsClient { return original.NewAssignmentsClientWithBaseURI(baseURI, subscriptionID) } +func NewDefinitionListResultIterator(page DefinitionListResultPage) DefinitionListResultIterator { + return original.NewDefinitionListResultIterator(page) +} +func NewDefinitionListResultPage(getNextPage func(context.Context, DefinitionListResult) (DefinitionListResult, error)) DefinitionListResultPage { + return original.NewDefinitionListResultPage(getNextPage) +} func NewDefinitionsClient(subscriptionID string) DefinitionsClient { return original.NewDefinitionsClient(subscriptionID) } diff --git a/profiles/latest/managementpartner/mgmt/managementpartner/models.go b/profiles/latest/managementpartner/mgmt/managementpartner/models.go deleted file mode 100644 index c26de224a969..000000000000 --- a/profiles/latest/managementpartner/mgmt/managementpartner/models.go +++ /dev/null @@ -1,85 +0,0 @@ -// +build go1.9 - -// Copyright 2019 Microsoft Corporation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was auto-generated by: -// github.com/Azure/azure-sdk-for-go/tools/profileBuilder - -package managementpartner - -import original "github.com/Azure/azure-sdk-for-go/services/managementpartner/mgmt/2018-02-01/managementpartner" - -const ( - DefaultBaseURI = original.DefaultBaseURI -) - -type Code = original.Code - -const ( - BadRequest Code = original.BadRequest - Conflict Code = original.Conflict - NotFound Code = original.NotFound -) - -type State = original.State - -const ( - Active State = original.Active - Deleted State = original.Deleted -) - -type BaseClient = original.BaseClient -type Error = original.Error -type ExtendedErrorInfo = original.ExtendedErrorInfo -type OperationClient = original.OperationClient -type OperationDisplay = original.OperationDisplay -type OperationList = original.OperationList -type OperationListIterator = original.OperationListIterator -type OperationListPage = original.OperationListPage -type OperationResponse = original.OperationResponse -type PartnerClient = original.PartnerClient -type PartnerProperties = original.PartnerProperties -type PartnerResponse = original.PartnerResponse - -func New() BaseClient { - return original.New() -} -func NewOperationClient() OperationClient { - return original.NewOperationClient() -} -func NewOperationClientWithBaseURI(baseURI string) OperationClient { - return original.NewOperationClientWithBaseURI(baseURI) -} -func NewPartnerClient() PartnerClient { - return original.NewPartnerClient() -} -func NewPartnerClientWithBaseURI(baseURI string) PartnerClient { - return original.NewPartnerClientWithBaseURI(baseURI) -} -func NewWithBaseURI(baseURI string) BaseClient { - return original.NewWithBaseURI(baseURI) -} -func PossibleCodeValues() []Code { - return original.PossibleCodeValues() -} -func PossibleStateValues() []State { - return original.PossibleStateValues() -} -func UserAgent() string { - return original.UserAgent() + " profiles/latest" -} -func Version() string { - return original.Version() -} diff --git a/profiles/preview/dns/mgmt/dns/models.go b/profiles/preview/dns/mgmt/dns/models.go index a9e1a7f161c0..a8bf53af41cd 100644 --- a/profiles/preview/dns/mgmt/dns/models.go +++ b/profiles/preview/dns/mgmt/dns/models.go @@ -19,7 +19,11 @@ package dns -import original "github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2018-03-01-preview/dns" +import ( + "context" + + original "github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-10-01/dns" +) const ( DefaultBaseURI = original.DefaultBaseURI @@ -40,15 +44,9 @@ const ( TXT RecordType = original.TXT ) -type ZoneType = original.ZoneType - -const ( - Private ZoneType = original.Private - Public ZoneType = original.Public -) - type ARecord = original.ARecord type AaaaRecord = original.AaaaRecord +type AzureEntityResource = original.AzureEntityResource type BaseClient = original.BaseClient type CaaRecord = original.CaaRecord type CloudError = original.CloudError @@ -56,6 +54,7 @@ type CloudErrorBody = original.CloudErrorBody type CnameRecord = original.CnameRecord type MxRecord = original.MxRecord type NsRecord = original.NsRecord +type ProxyResource = original.ProxyResource type PtrRecord = original.PtrRecord type RecordSet = original.RecordSet type RecordSetListResult = original.RecordSetListResult @@ -68,6 +67,7 @@ type Resource = original.Resource type SoaRecord = original.SoaRecord type SrvRecord = original.SrvRecord type SubResource = original.SubResource +type TrackedResource = original.TrackedResource type TxtRecord = original.TxtRecord type Zone = original.Zone type ZoneListResult = original.ZoneListResult @@ -81,6 +81,12 @@ type ZonesDeleteFuture = original.ZonesDeleteFuture func New(subscriptionID string) BaseClient { return original.New(subscriptionID) } +func NewRecordSetListResultIterator(page RecordSetListResultPage) RecordSetListResultIterator { + return original.NewRecordSetListResultIterator(page) +} +func NewRecordSetListResultPage(getNextPage func(context.Context, RecordSetListResult) (RecordSetListResult, error)) RecordSetListResultPage { + return original.NewRecordSetListResultPage(getNextPage) +} func NewRecordSetsClient(subscriptionID string) RecordSetsClient { return original.NewRecordSetsClient(subscriptionID) } @@ -90,18 +96,21 @@ func NewRecordSetsClientWithBaseURI(baseURI string, subscriptionID string) Recor func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return original.NewWithBaseURI(baseURI, subscriptionID) } +func NewZoneListResultIterator(page ZoneListResultPage) ZoneListResultIterator { + return original.NewZoneListResultIterator(page) +} +func NewZoneListResultPage(getNextPage func(context.Context, ZoneListResult) (ZoneListResult, error)) ZoneListResultPage { + return original.NewZoneListResultPage(getNextPage) +} func NewZonesClient(subscriptionID string) ZonesClient { return original.NewZonesClient(subscriptionID) } func NewZonesClientWithBaseURI(baseURI string, subscriptionID string) ZonesClient { return original.NewZonesClientWithBaseURI(baseURI, subscriptionID) } -func PossibleRecordTypeValues() [10]RecordType { +func PossibleRecordTypeValues() []RecordType { return original.PossibleRecordTypeValues() } -func PossibleZoneTypeValues() [2]ZoneType { - return original.PossibleZoneTypeValues() -} func UserAgent() string { return original.UserAgent() + " profiles/preview" } diff --git a/profiles/preview/managementpartner/mgmt/managementpartner/models.go b/profiles/preview/managementpartner/mgmt/managementpartner/models.go deleted file mode 100644 index 20505df78a49..000000000000 --- a/profiles/preview/managementpartner/mgmt/managementpartner/models.go +++ /dev/null @@ -1,85 +0,0 @@ -// +build go1.9 - -// Copyright 2019 Microsoft Corporation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was auto-generated by: -// github.com/Azure/azure-sdk-for-go/tools/profileBuilder - -package managementpartner - -import original "github.com/Azure/azure-sdk-for-go/services/managementpartner/mgmt/2018-02-01/managementpartner" - -const ( - DefaultBaseURI = original.DefaultBaseURI -) - -type Code = original.Code - -const ( - BadRequest Code = original.BadRequest - Conflict Code = original.Conflict - NotFound Code = original.NotFound -) - -type State = original.State - -const ( - Active State = original.Active - Deleted State = original.Deleted -) - -type BaseClient = original.BaseClient -type Error = original.Error -type ExtendedErrorInfo = original.ExtendedErrorInfo -type OperationClient = original.OperationClient -type OperationDisplay = original.OperationDisplay -type OperationList = original.OperationList -type OperationListIterator = original.OperationListIterator -type OperationListPage = original.OperationListPage -type OperationResponse = original.OperationResponse -type PartnerClient = original.PartnerClient -type PartnerProperties = original.PartnerProperties -type PartnerResponse = original.PartnerResponse - -func New() BaseClient { - return original.New() -} -func NewOperationClient() OperationClient { - return original.NewOperationClient() -} -func NewOperationClientWithBaseURI(baseURI string) OperationClient { - return original.NewOperationClientWithBaseURI(baseURI) -} -func NewPartnerClient() PartnerClient { - return original.NewPartnerClient() -} -func NewPartnerClientWithBaseURI(baseURI string) PartnerClient { - return original.NewPartnerClientWithBaseURI(baseURI) -} -func NewWithBaseURI(baseURI string) BaseClient { - return original.NewWithBaseURI(baseURI) -} -func PossibleCodeValues() []Code { - return original.PossibleCodeValues() -} -func PossibleStateValues() []State { - return original.PossibleStateValues() -} -func UserAgent() string { - return original.UserAgent() + " profiles/preview" -} -func Version() string { - return original.Version() -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/activityruns.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/activityruns.go deleted file mode 100644 index 93ce76b6e1ea..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/activityruns.go +++ /dev/null @@ -1,180 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ActivityRunsClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that -// interact with Azure Data Factory V2 services. -type ActivityRunsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewActivityRunsClient creates an instance of the ActivityRunsClient client. -func NewActivityRunsClient(subscriptionID string) ActivityRunsClient { - return NewActivityRunsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewActivityRunsClientWithBaseURI creates an instance of the ActivityRunsClient client. -func NewActivityRunsClientWithBaseURI(baseURI string, subscriptionID string) ActivityRunsClient { - return ActivityRunsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByPipelineRun list activity runs based on input filter conditions. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// runID - the pipeline run identifier. -// startTime - the start time of activity runs in ISO8601 format. -// endTime - the end time of activity runs in ISO8601 format. -// status - the status of the pipeline run. -// activityName - the name of the activity. -// linkedServiceName - the linked service name. -func (client ActivityRunsClient) ListByPipelineRun(ctx context.Context, resourceGroupName string, factoryName string, runID string, startTime date.Time, endTime date.Time, status string, activityName string, linkedServiceName string) (result ActivityRunsListResponsePage, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: linkedServiceName, - Constraints: []validation.Constraint{{Target: "linkedServiceName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "linkedServiceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "linkedServiceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.ActivityRunsClient", "ListByPipelineRun", err.Error()) - } - - result.fn = client.listByPipelineRunNextResults - req, err := client.ListByPipelineRunPreparer(ctx, resourceGroupName, factoryName, runID, startTime, endTime, status, activityName, linkedServiceName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "ListByPipelineRun", nil, "Failure preparing request") - return - } - - resp, err := client.ListByPipelineRunSender(req) - if err != nil { - result.arlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "ListByPipelineRun", resp, "Failure sending request") - return - } - - result.arlr, err = client.ListByPipelineRunResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "ListByPipelineRun", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByPipelineRunPreparer prepares the ListByPipelineRun request. -func (client ActivityRunsClient) ListByPipelineRunPreparer(ctx context.Context, resourceGroupName string, factoryName string, runID string, startTime date.Time, endTime date.Time, status string, activityName string, linkedServiceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "runId": autorest.Encode("path", runID), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "endTime": autorest.Encode("query", endTime), - "startTime": autorest.Encode("query", startTime), - } - if len(status) > 0 { - queryParameters["status"] = autorest.Encode("query", status) - } - if len(activityName) > 0 { - queryParameters["activityName"] = autorest.Encode("query", activityName) - } - if len(linkedServiceName) > 0 { - queryParameters["linkedServiceName"] = autorest.Encode("query", linkedServiceName) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/activityruns", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByPipelineRunSender sends the ListByPipelineRun request. The method will close the -// http.Response Body if it receives an error. -func (client ActivityRunsClient) ListByPipelineRunSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByPipelineRunResponder handles the response to the ListByPipelineRun request. The method always -// closes the http.Response Body. -func (client ActivityRunsClient) ListByPipelineRunResponder(resp *http.Response) (result ActivityRunsListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByPipelineRunNextResults retrieves the next set of results, if any. -func (client ActivityRunsClient) listByPipelineRunNextResults(lastResults ActivityRunsListResponse) (result ActivityRunsListResponse, err error) { - req, err := lastResults.activityRunsListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "listByPipelineRunNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByPipelineRunSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "listByPipelineRunNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByPipelineRunResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.ActivityRunsClient", "listByPipelineRunNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByPipelineRunComplete enumerates all values, automatically crossing page boundaries as required. -func (client ActivityRunsClient) ListByPipelineRunComplete(ctx context.Context, resourceGroupName string, factoryName string, runID string, startTime date.Time, endTime date.Time, status string, activityName string, linkedServiceName string) (result ActivityRunsListResponseIterator, err error) { - result.page, err = client.ListByPipelineRun(ctx, resourceGroupName, factoryName, runID, startTime, endTime, status, activityName, linkedServiceName) - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/client.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/client.go deleted file mode 100644 index 413b66184ae1..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/client.go +++ /dev/null @@ -1,55 +0,0 @@ -// Package datafactory implements the Azure ARM Datafactory service API version 2017-09-01-preview. -// -// The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data -// Factory V2 services. -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Datafactory - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BaseClient is the base client for Datafactory. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/datasets.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/datasets.go deleted file mode 100644 index ff4f92a68300..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/datasets.go +++ /dev/null @@ -1,439 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetsClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that interact -// with Azure Data Factory V2 services. -type DatasetsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewDatasetsClient creates an instance of the DatasetsClient client. -func NewDatasetsClient(subscriptionID string) DatasetsClient { - return NewDatasetsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewDatasetsClientWithBaseURI creates an instance of the DatasetsClient client. -func NewDatasetsClientWithBaseURI(baseURI string, subscriptionID string) DatasetsClient { - return DatasetsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdate creates or updates a dataset. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// datasetName - the dataset name. -// dataset - dataset resource definition. -// ifMatch - eTag of the dataset entity. Should only be specified for update, for which it should match -// existing entity or can be * for unconditional update. -func (client DatasetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, dataset DatasetResource, ifMatch string) (result DatasetResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: datasetName, - Constraints: []validation.Constraint{{Target: "datasetName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "datasetName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "datasetName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: dataset, - Constraints: []validation.Constraint{{Target: "dataset.Properties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "dataset.Properties.LinkedServiceName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "dataset.Properties.LinkedServiceName.Type", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "dataset.Properties.LinkedServiceName.ReferenceName", Name: validation.Null, Rule: true, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("datafactory.DatasetsClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, factoryName, datasetName, dataset, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DatasetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, dataset DatasetResource, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "datasetName": autorest.Encode("path", datasetName), - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}", pathParameters), - autorest.WithJSON(dataset), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client DatasetsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client DatasetsClient) CreateOrUpdateResponder(resp *http.Response) (result DatasetResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Delete deletes a dataset. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// datasetName - the dataset name. -func (client DatasetsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, datasetName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: datasetName, - Constraints: []validation.Constraint{{Target: "datasetName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "datasetName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "datasetName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.DatasetsClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, factoryName, datasetName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeletePreparer prepares the Delete request. -func (client DatasetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, factoryName string, datasetName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "datasetName": autorest.Encode("path", datasetName), - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client DatasetsClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client DatasetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Get gets a dataset. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// datasetName - the dataset name. -func (client DatasetsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, datasetName string) (result DatasetResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: datasetName, - Constraints: []validation.Constraint{{Target: "datasetName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "datasetName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "datasetName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.DatasetsClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, factoryName, datasetName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetPreparer prepares the Get request. -func (client DatasetsClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string, datasetName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "datasetName": autorest.Encode("path", datasetName), - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DatasetsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DatasetsClient) GetResponder(resp *http.Response) (result DatasetResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactory lists datasets. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -func (client DatasetsClient) ListByFactory(ctx context.Context, resourceGroupName string, factoryName string) (result DatasetListResponsePage, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.DatasetsClient", "ListByFactory", err.Error()) - } - - result.fn = client.listByFactoryNextResults - req, err := client.ListByFactoryPreparer(ctx, resourceGroupName, factoryName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "ListByFactory", nil, "Failure preparing request") - return - } - - resp, err := client.ListByFactorySender(req) - if err != nil { - result.dlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "ListByFactory", resp, "Failure sending request") - return - } - - result.dlr, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "ListByFactory", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryPreparer prepares the ListByFactory request. -func (client DatasetsClient) ListByFactoryPreparer(ctx context.Context, resourceGroupName string, factoryName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactorySender sends the ListByFactory request. The method will close the -// http.Response Body if it receives an error. -func (client DatasetsClient) ListByFactorySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryResponder handles the response to the ListByFactory request. The method always -// closes the http.Response Body. -func (client DatasetsClient) ListByFactoryResponder(resp *http.Response) (result DatasetListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByFactoryNextResults retrieves the next set of results, if any. -func (client DatasetsClient) listByFactoryNextResults(lastResults DatasetListResponse) (result DatasetListResponse, err error) { - req, err := lastResults.datasetListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "listByFactoryNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByFactorySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "listByFactoryNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DatasetsClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryComplete enumerates all values, automatically crossing page boundaries as required. -func (client DatasetsClient) ListByFactoryComplete(ctx context.Context, resourceGroupName string, factoryName string) (result DatasetListResponseIterator, err error) { - result.page, err = client.ListByFactory(ctx, resourceGroupName, factoryName) - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/factories.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/factories.go deleted file mode 100644 index 1d556bbd8065..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/factories.go +++ /dev/null @@ -1,742 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoriesClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that interact -// with Azure Data Factory V2 services. -type FactoriesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewFactoriesClient creates an instance of the FactoriesClient client. -func NewFactoriesClient(subscriptionID string) FactoriesClient { - return NewFactoriesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewFactoriesClientWithBaseURI creates an instance of the FactoriesClient client. -func NewFactoriesClientWithBaseURI(baseURI string, subscriptionID string) FactoriesClient { - return FactoriesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CancelPipelineRun cancel a pipeline run by its run ID. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// runID - the pipeline run identifier. -func (client FactoriesClient) CancelPipelineRun(ctx context.Context, resourceGroupName string, factoryName string, runID string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.FactoriesClient", "CancelPipelineRun", err.Error()) - } - - req, err := client.CancelPipelineRunPreparer(ctx, resourceGroupName, factoryName, runID) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CancelPipelineRun", nil, "Failure preparing request") - return - } - - resp, err := client.CancelPipelineRunSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CancelPipelineRun", resp, "Failure sending request") - return - } - - result, err = client.CancelPipelineRunResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CancelPipelineRun", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CancelPipelineRunPreparer prepares the CancelPipelineRun request. -func (client FactoriesClient) CancelPipelineRunPreparer(ctx context.Context, resourceGroupName string, factoryName string, runID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "runId": autorest.Encode("path", runID), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/cancelpipelinerun/{runId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CancelPipelineRunSender sends the CancelPipelineRun request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) CancelPipelineRunSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CancelPipelineRunResponder handles the response to the CancelPipelineRun request. The method always -// closes the http.Response Body. -func (client FactoriesClient) CancelPipelineRunResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConfigureFactoryRepo updates a factory's repo information. -// Parameters: -// locationID - the location identifier. -// factoryRepoUpdate - update factory repo request definition. -func (client FactoriesClient) ConfigureFactoryRepo(ctx context.Context, locationID string, factoryRepoUpdate FactoryRepoUpdate) (result Factory, err error) { - req, err := client.ConfigureFactoryRepoPreparer(ctx, locationID, factoryRepoUpdate) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ConfigureFactoryRepo", nil, "Failure preparing request") - return - } - - resp, err := client.ConfigureFactoryRepoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ConfigureFactoryRepo", resp, "Failure sending request") - return - } - - result, err = client.ConfigureFactoryRepoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ConfigureFactoryRepo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConfigureFactoryRepoPreparer prepares the ConfigureFactoryRepo request. -func (client FactoriesClient) ConfigureFactoryRepoPreparer(ctx context.Context, locationID string, factoryRepoUpdate FactoryRepoUpdate) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "locationId": autorest.Encode("path", locationID), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo", pathParameters), - autorest.WithJSON(factoryRepoUpdate), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConfigureFactoryRepoSender sends the ConfigureFactoryRepo request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) ConfigureFactoryRepoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConfigureFactoryRepoResponder handles the response to the ConfigureFactoryRepo request. The method always -// closes the http.Response Body. -func (client FactoriesClient) ConfigureFactoryRepoResponder(resp *http.Response) (result Factory, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdate creates or updates a factory. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// factory - factory resource definition. -func (client FactoriesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, factory Factory) (result Factory, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: factory, - Constraints: []validation.Constraint{{Target: "factory.Identity", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "factory.Identity.Type", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("datafactory.FactoriesClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, factoryName, factory) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client FactoriesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, factory Factory) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", pathParameters), - autorest.WithJSON(factory), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client FactoriesClient) CreateOrUpdateResponder(resp *http.Response) (result Factory, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Delete deletes a factory. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -func (client FactoriesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.FactoriesClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, factoryName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeletePreparer prepares the Delete request. -func (client FactoriesClient) DeletePreparer(ctx context.Context, resourceGroupName string, factoryName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client FactoriesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Get gets a factory. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -func (client FactoriesClient) Get(ctx context.Context, resourceGroupName string, factoryName string) (result Factory, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.FactoriesClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, factoryName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetPreparer prepares the Get request. -func (client FactoriesClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client FactoriesClient) GetResponder(resp *http.Response) (result Factory, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// List lists factories under the specified subscription. -func (client FactoriesClient) List(ctx context.Context) (result FactoryListResponsePage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.flr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "List", resp, "Failure sending request") - return - } - - result.flr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListPreparer prepares the List request. -func (client FactoriesClient) ListPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client FactoriesClient) ListResponder(resp *http.Response) (result FactoryListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client FactoriesClient) listNextResults(lastResults FactoryListResponse) (result FactoryListResponse, err error) { - req, err := lastResults.factoryListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client FactoriesClient) ListComplete(ctx context.Context) (result FactoryListResponseIterator, err error) { - result.page, err = client.List(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByResourceGroup lists factories. -// Parameters: -// resourceGroupName - the resource group name. -func (client FactoriesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result FactoryListResponsePage, 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}}}}); err != nil { - return result, validation.NewError("datafactory.FactoriesClient", "ListByResourceGroup", err.Error()) - } - - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.flr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.flr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client FactoriesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client FactoriesClient) ListByResourceGroupResponder(resp *http.Response) (result FactoryListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client FactoriesClient) listByResourceGroupNextResults(lastResults FactoryListResponse) (result FactoryListResponse, err error) { - req, err := lastResults.factoryListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client FactoriesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result FactoryListResponseIterator, err error) { - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Update updates a factory. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// factoryUpdateParameters - the parameters for updating a factory. -func (client FactoriesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, factoryUpdateParameters FactoryUpdateParameters) (result Factory, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.FactoriesClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, factoryName, factoryUpdateParameters) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.FactoriesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdatePreparer prepares the Update request. -func (client FactoriesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, factoryUpdateParameters FactoryUpdateParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}", pathParameters), - autorest.WithJSON(factoryUpdateParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client FactoriesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client FactoriesClient) UpdateResponder(resp *http.Response) (result Factory, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimenodes.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimenodes.go deleted file mode 100644 index 7b7ee6897c61..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimenodes.go +++ /dev/null @@ -1,332 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeNodesClient is the the Azure Data Factory V2 management API provides a RESTful set of web services -// that interact with Azure Data Factory V2 services. -type IntegrationRuntimeNodesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewIntegrationRuntimeNodesClient creates an instance of the IntegrationRuntimeNodesClient client. -func NewIntegrationRuntimeNodesClient(subscriptionID string) IntegrationRuntimeNodesClient { - return NewIntegrationRuntimeNodesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewIntegrationRuntimeNodesClientWithBaseURI creates an instance of the IntegrationRuntimeNodesClient client. -func NewIntegrationRuntimeNodesClientWithBaseURI(baseURI string, subscriptionID string) IntegrationRuntimeNodesClient { - return IntegrationRuntimeNodesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Delete deletes a self-hosted integration runtime node. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -// nodeName - the integration runtime node name. -func (client IntegrationRuntimeNodesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: nodeName, - Constraints: []validation.Constraint{{Target: "nodeName", Name: validation.MaxLength, Rule: 150, Chain: nil}, - {Target: "nodeName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "nodeName", Name: validation.Pattern, Rule: `^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimeNodesClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeletePreparer prepares the Delete request. -func (client IntegrationRuntimeNodesClient) DeletePreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "nodeName": autorest.Encode("path", nodeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimeNodesClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimeNodesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetIPAddress get the IP address of self-hosted integration runtime node. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -// nodeName - the integration runtime node name. -func (client IntegrationRuntimeNodesClient) GetIPAddress(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string) (result IntegrationRuntimeNodeIPAddress, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: nodeName, - Constraints: []validation.Constraint{{Target: "nodeName", Name: validation.MaxLength, Rule: 150, Chain: nil}, - {Target: "nodeName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "nodeName", Name: validation.Pattern, Rule: `^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimeNodesClient", "GetIPAddress", err.Error()) - } - - req, err := client.GetIPAddressPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "GetIPAddress", nil, "Failure preparing request") - return - } - - resp, err := client.GetIPAddressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "GetIPAddress", resp, "Failure sending request") - return - } - - result, err = client.GetIPAddressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "GetIPAddress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetIPAddressPreparer prepares the GetIPAddress request. -func (client IntegrationRuntimeNodesClient) GetIPAddressPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "nodeName": autorest.Encode("path", nodeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetIPAddressSender sends the GetIPAddress request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimeNodesClient) GetIPAddressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetIPAddressResponder handles the response to the GetIPAddress request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimeNodesClient) GetIPAddressResponder(resp *http.Response) (result IntegrationRuntimeNodeIPAddress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Update updates a self-hosted integration runtime node. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -// nodeName - the integration runtime node name. -// updateIntegrationRuntimeNodeRequest - the parameters for updating an integration runtime node. -func (client IntegrationRuntimeNodesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, updateIntegrationRuntimeNodeRequest UpdateIntegrationRuntimeNodeRequest) (result SelfHostedIntegrationRuntimeNode, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: nodeName, - Constraints: []validation.Constraint{{Target: "nodeName", Name: validation.MaxLength, Rule: 150, Chain: nil}, - {Target: "nodeName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "nodeName", Name: validation.Pattern, Rule: `^[a-z0-9A-Z][a-z0-9A-Z_-]{0,149}$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimeNodesClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeNodesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdatePreparer prepares the Update request. -func (client IntegrationRuntimeNodesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, updateIntegrationRuntimeNodeRequest UpdateIntegrationRuntimeNodeRequest) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "nodeName": autorest.Encode("path", nodeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", pathParameters), - autorest.WithJSON(updateIntegrationRuntimeNodeRequest), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimeNodesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimeNodesClient) UpdateResponder(resp *http.Response) (result SelfHostedIntegrationRuntimeNode, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimes.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimes.go deleted file mode 100644 index 9b5fe1802b7b..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/integrationruntimes.go +++ /dev/null @@ -1,1427 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimesClient is the the Azure Data Factory V2 management API provides a RESTful set of web services -// that interact with Azure Data Factory V2 services. -type IntegrationRuntimesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewIntegrationRuntimesClient creates an instance of the IntegrationRuntimesClient client. -func NewIntegrationRuntimesClient(subscriptionID string) IntegrationRuntimesClient { - return NewIntegrationRuntimesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewIntegrationRuntimesClientWithBaseURI creates an instance of the IntegrationRuntimesClient client. -func NewIntegrationRuntimesClientWithBaseURI(baseURI string, subscriptionID string) IntegrationRuntimesClient { - return IntegrationRuntimesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdate creates or updates an integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -// integrationRuntime - integration runtime resource definition. -// ifMatch - eTag of the integration runtime entity. Should only be specified for update, for which it should -// match existing entity or can be * for unconditional update. -func (client IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, integrationRuntime IntegrationRuntimeResource, ifMatch string) (result IntegrationRuntimeResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntime, - Constraints: []validation.Constraint{{Target: "integrationRuntime.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client IntegrationRuntimesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, integrationRuntime IntegrationRuntimeResource, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", pathParameters), - autorest.WithJSON(integrationRuntime), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) CreateOrUpdateResponder(resp *http.Response) (result IntegrationRuntimeResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Delete deletes an integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeletePreparer prepares the Delete request. -func (client IntegrationRuntimesClient) DeletePreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Get gets an integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result IntegrationRuntimeResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetPreparer prepares the Get request. -func (client IntegrationRuntimesClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) GetResponder(resp *http.Response) (result IntegrationRuntimeResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetConnectionInfo gets the on-premises integration runtime connection information for encrypting the on-premises -// data source credentials. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) GetConnectionInfo(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result IntegrationRuntimeConnectionInfo, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "GetConnectionInfo", err.Error()) - } - - req, err := client.GetConnectionInfoPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetConnectionInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetConnectionInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetConnectionInfo", resp, "Failure sending request") - return - } - - result, err = client.GetConnectionInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetConnectionInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetConnectionInfoPreparer prepares the GetConnectionInfo request. -func (client IntegrationRuntimesClient) GetConnectionInfoPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetConnectionInfoSender sends the GetConnectionInfo request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) GetConnectionInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetConnectionInfoResponder handles the response to the GetConnectionInfo request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) GetConnectionInfoResponder(resp *http.Response) (result IntegrationRuntimeConnectionInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetMonitoringData get the integration runtime monitoring data, which includes the monitor data for all the nodes -// under this integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) GetMonitoringData(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result IntegrationRuntimeMonitoringData, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "GetMonitoringData", err.Error()) - } - - req, err := client.GetMonitoringDataPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetMonitoringData", nil, "Failure preparing request") - return - } - - resp, err := client.GetMonitoringDataSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetMonitoringData", resp, "Failure sending request") - return - } - - result, err = client.GetMonitoringDataResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetMonitoringData", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetMonitoringDataPreparer prepares the GetMonitoringData request. -func (client IntegrationRuntimesClient) GetMonitoringDataPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetMonitoringDataSender sends the GetMonitoringData request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) GetMonitoringDataSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetMonitoringDataResponder handles the response to the GetMonitoringData request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) GetMonitoringDataResponder(resp *http.Response) (result IntegrationRuntimeMonitoringData, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetStatus gets detailed status information for an integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) GetStatus(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result IntegrationRuntimeStatusResponse, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "GetStatus", err.Error()) - } - - req, err := client.GetStatusPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetStatus", nil, "Failure preparing request") - return - } - - resp, err := client.GetStatusSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetStatus", resp, "Failure sending request") - return - } - - result, err = client.GetStatusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "GetStatus", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetStatusPreparer prepares the GetStatus request. -func (client IntegrationRuntimesClient) GetStatusPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetStatusSender sends the GetStatus request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) GetStatusSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetStatusResponder handles the response to the GetStatus request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) GetStatusResponder(resp *http.Response) (result IntegrationRuntimeStatusResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListAuthKeys retrieves the authentication keys for an integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) ListAuthKeys(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result IntegrationRuntimeAuthKeys, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "ListAuthKeys", err.Error()) - } - - req, err := client.ListAuthKeysPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListAuthKeys", nil, "Failure preparing request") - return - } - - resp, err := client.ListAuthKeysSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListAuthKeys", resp, "Failure sending request") - return - } - - result, err = client.ListAuthKeysResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListAuthKeys", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListAuthKeysPreparer prepares the ListAuthKeys request. -func (client IntegrationRuntimesClient) ListAuthKeysPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListAuthKeysSender sends the ListAuthKeys request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) ListAuthKeysSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListAuthKeysResponder handles the response to the ListAuthKeys request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) ListAuthKeysResponder(resp *http.Response) (result IntegrationRuntimeAuthKeys, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactory lists integration runtimes. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -func (client IntegrationRuntimesClient) ListByFactory(ctx context.Context, resourceGroupName string, factoryName string) (result IntegrationRuntimeListResponsePage, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "ListByFactory", err.Error()) - } - - result.fn = client.listByFactoryNextResults - req, err := client.ListByFactoryPreparer(ctx, resourceGroupName, factoryName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListByFactory", nil, "Failure preparing request") - return - } - - resp, err := client.ListByFactorySender(req) - if err != nil { - result.irlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListByFactory", resp, "Failure sending request") - return - } - - result.irlr, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "ListByFactory", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryPreparer prepares the ListByFactory request. -func (client IntegrationRuntimesClient) ListByFactoryPreparer(ctx context.Context, resourceGroupName string, factoryName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactorySender sends the ListByFactory request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) ListByFactorySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryResponder handles the response to the ListByFactory request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) ListByFactoryResponder(resp *http.Response) (result IntegrationRuntimeListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByFactoryNextResults retrieves the next set of results, if any. -func (client IntegrationRuntimesClient) listByFactoryNextResults(lastResults IntegrationRuntimeListResponse) (result IntegrationRuntimeListResponse, err error) { - req, err := lastResults.integrationRuntimeListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "listByFactoryNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByFactorySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "listByFactoryNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryComplete enumerates all values, automatically crossing page boundaries as required. -func (client IntegrationRuntimesClient) ListByFactoryComplete(ctx context.Context, resourceGroupName string, factoryName string) (result IntegrationRuntimeListResponseIterator, err error) { - result.page, err = client.ListByFactory(ctx, resourceGroupName, factoryName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RegenerateAuthKey regenerates the authentication key for an integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -// regenerateKeyParameters - the parameters for regenerating integration runtime authentication key. -func (client IntegrationRuntimesClient) RegenerateAuthKey(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, regenerateKeyParameters IntegrationRuntimeRegenerateKeyParameters) (result IntegrationRuntimeAuthKeys, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "RegenerateAuthKey", err.Error()) - } - - req, err := client.RegenerateAuthKeyPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RegenerateAuthKey", nil, "Failure preparing request") - return - } - - resp, err := client.RegenerateAuthKeySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RegenerateAuthKey", resp, "Failure sending request") - return - } - - result, err = client.RegenerateAuthKeyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RegenerateAuthKey", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RegenerateAuthKeyPreparer prepares the RegenerateAuthKey request. -func (client IntegrationRuntimesClient) RegenerateAuthKeyPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, regenerateKeyParameters IntegrationRuntimeRegenerateKeyParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey", pathParameters), - autorest.WithJSON(regenerateKeyParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RegenerateAuthKeySender sends the RegenerateAuthKey request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) RegenerateAuthKeySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RegenerateAuthKeyResponder handles the response to the RegenerateAuthKey request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) RegenerateAuthKeyResponder(resp *http.Response) (result IntegrationRuntimeAuthKeys, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RemoveNode remove a node from integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -// removeNodeParameters - the name of the node to be removed from an integration runtime. -func (client IntegrationRuntimesClient) RemoveNode(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, removeNodeParameters IntegrationRuntimeRemoveNodeRequest) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "RemoveNode", err.Error()) - } - - req, err := client.RemoveNodePreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName, removeNodeParameters) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RemoveNode", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RemoveNode", resp, "Failure sending request") - return - } - - result, err = client.RemoveNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "RemoveNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RemoveNodePreparer prepares the RemoveNode request. -func (client IntegrationRuntimesClient) RemoveNodePreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, removeNodeParameters IntegrationRuntimeRemoveNodeRequest) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeNode", pathParameters), - autorest.WithJSON(removeNodeParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RemoveNodeSender sends the RemoveNode request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) RemoveNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RemoveNodeResponder handles the response to the RemoveNode request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) RemoveNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Start starts a ManagedReserved type integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) Start(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result IntegrationRuntimesStartFuture, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "Start", err.Error()) - } - - req, err := client.StartPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Start", nil, "Failure preparing request") - return - } - - result, err = client.StartSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Start", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StartPreparer prepares the Start request. -func (client IntegrationRuntimesClient) StartPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StartSender sends the Start request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) StartSender(req *http.Request) (future IntegrationRuntimesStartFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StartResponder handles the response to the Start request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) StartResponder(resp *http.Response) (result IntegrationRuntimeStatusResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Stop stops a ManagedReserved type integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) Stop(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result IntegrationRuntimesStopFuture, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "Stop", err.Error()) - } - - req, err := client.StopPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Stop", nil, "Failure preparing request") - return - } - - result, err = client.StopSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Stop", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StopPreparer prepares the Stop request. -func (client IntegrationRuntimesClient) StopPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StopSender sends the Stop request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) StopSender(req *http.Request) (future IntegrationRuntimesStopFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StopResponder handles the response to the Stop request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SyncCredentials force the integration runtime to synchronize credentials across integration runtime nodes, and this -// will override the credentials across all worker nodes with those available on the dispatcher node. If you already -// have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration -// runtime node than using this API directly. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) SyncCredentials(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "SyncCredentials", err.Error()) - } - - req, err := client.SyncCredentialsPreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "SyncCredentials", nil, "Failure preparing request") - return - } - - resp, err := client.SyncCredentialsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "SyncCredentials", resp, "Failure sending request") - return - } - - result, err = client.SyncCredentialsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "SyncCredentials", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SyncCredentialsPreparer prepares the SyncCredentials request. -func (client IntegrationRuntimesClient) SyncCredentialsPreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SyncCredentialsSender sends the SyncCredentials request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) SyncCredentialsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SyncCredentialsResponder handles the response to the SyncCredentials request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) SyncCredentialsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Update updates an integration runtime. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -// updateIntegrationRuntimeRequest - the parameters for updating an integration runtime. -func (client IntegrationRuntimesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, updateIntegrationRuntimeRequest UpdateIntegrationRuntimeRequest) (result IntegrationRuntimeStatusResponse, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdatePreparer prepares the Update request. -func (client IntegrationRuntimesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, updateIntegrationRuntimeRequest UpdateIntegrationRuntimeRequest) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}", pathParameters), - autorest.WithJSON(updateIntegrationRuntimeRequest), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) UpdateResponder(resp *http.Response) (result IntegrationRuntimeStatusResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Upgrade upgrade self-hosted integration runtime to latest version if availably. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// integrationRuntimeName - the integration runtime name. -func (client IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: integrationRuntimeName, - Constraints: []validation.Constraint{{Target: "integrationRuntimeName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "integrationRuntimeName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.IntegrationRuntimesClient", "Upgrade", err.Error()) - } - - req, err := client.UpgradePreparer(ctx, resourceGroupName, factoryName, integrationRuntimeName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Upgrade", nil, "Failure preparing request") - return - } - - resp, err := client.UpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Upgrade", resp, "Failure sending request") - return - } - - result, err = client.UpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesClient", "Upgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpgradePreparer prepares the Upgrade request. -func (client IntegrationRuntimesClient) UpgradePreparer(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "integrationRuntimeName": autorest.Encode("path", integrationRuntimeName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpgradeSender sends the Upgrade request. The method will close the -// http.Response Body if it receives an error. -func (client IntegrationRuntimesClient) UpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpgradeResponder handles the response to the Upgrade request. The method always -// closes the http.Response Body. -func (client IntegrationRuntimesClient) UpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/linkedservices.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/linkedservices.go deleted file mode 100644 index a2274a05ab50..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/linkedservices.go +++ /dev/null @@ -1,439 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedServicesClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that -// interact with Azure Data Factory V2 services. -type LinkedServicesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewLinkedServicesClient creates an instance of the LinkedServicesClient client. -func NewLinkedServicesClient(subscriptionID string) LinkedServicesClient { - return NewLinkedServicesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewLinkedServicesClientWithBaseURI creates an instance of the LinkedServicesClient client. -func NewLinkedServicesClientWithBaseURI(baseURI string, subscriptionID string) LinkedServicesClient { - return LinkedServicesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdate creates or updates a linked service. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// linkedServiceName - the linked service name. -// linkedService - linked service resource definition. -// ifMatch - eTag of the linkedService entity. Should only be specified for update, for which it should match -// existing entity or can be * for unconditional update. -func (client LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, linkedService LinkedServiceResource, ifMatch string) (result LinkedServiceResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: linkedServiceName, - Constraints: []validation.Constraint{{Target: "linkedServiceName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "linkedServiceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "linkedServiceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: linkedService, - Constraints: []validation.Constraint{{Target: "linkedService.Properties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "linkedService.Properties.ConnectVia", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "linkedService.Properties.ConnectVia.Type", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "linkedService.Properties.ConnectVia.ReferenceName", Name: validation.Null, Rule: true, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("datafactory.LinkedServicesClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, factoryName, linkedServiceName, linkedService, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client LinkedServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, linkedService LinkedServiceResource, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "linkedServiceName": autorest.Encode("path", linkedServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}", pathParameters), - autorest.WithJSON(linkedService), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client LinkedServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client LinkedServicesClient) CreateOrUpdateResponder(resp *http.Response) (result LinkedServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Delete deletes a linked service. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// linkedServiceName - the linked service name. -func (client LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: linkedServiceName, - Constraints: []validation.Constraint{{Target: "linkedServiceName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "linkedServiceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "linkedServiceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.LinkedServicesClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, factoryName, linkedServiceName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeletePreparer prepares the Delete request. -func (client LinkedServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "linkedServiceName": autorest.Encode("path", linkedServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client LinkedServicesClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client LinkedServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Get gets a linked service. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// linkedServiceName - the linked service name. -func (client LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string) (result LinkedServiceResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: linkedServiceName, - Constraints: []validation.Constraint{{Target: "linkedServiceName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "linkedServiceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "linkedServiceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.LinkedServicesClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, factoryName, linkedServiceName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetPreparer prepares the Get request. -func (client LinkedServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "linkedServiceName": autorest.Encode("path", linkedServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client LinkedServicesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client LinkedServicesClient) GetResponder(resp *http.Response) (result LinkedServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactory lists linked services. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -func (client LinkedServicesClient) ListByFactory(ctx context.Context, resourceGroupName string, factoryName string) (result LinkedServiceListResponsePage, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.LinkedServicesClient", "ListByFactory", err.Error()) - } - - result.fn = client.listByFactoryNextResults - req, err := client.ListByFactoryPreparer(ctx, resourceGroupName, factoryName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "ListByFactory", nil, "Failure preparing request") - return - } - - resp, err := client.ListByFactorySender(req) - if err != nil { - result.lslr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "ListByFactory", resp, "Failure sending request") - return - } - - result.lslr, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "ListByFactory", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryPreparer prepares the ListByFactory request. -func (client LinkedServicesClient) ListByFactoryPreparer(ctx context.Context, resourceGroupName string, factoryName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactorySender sends the ListByFactory request. The method will close the -// http.Response Body if it receives an error. -func (client LinkedServicesClient) ListByFactorySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryResponder handles the response to the ListByFactory request. The method always -// closes the http.Response Body. -func (client LinkedServicesClient) ListByFactoryResponder(resp *http.Response) (result LinkedServiceListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByFactoryNextResults retrieves the next set of results, if any. -func (client LinkedServicesClient) listByFactoryNextResults(lastResults LinkedServiceListResponse) (result LinkedServiceListResponse, err error) { - req, err := lastResults.linkedServiceListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "listByFactoryNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByFactorySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "listByFactoryNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.LinkedServicesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryComplete enumerates all values, automatically crossing page boundaries as required. -func (client LinkedServicesClient) ListByFactoryComplete(ctx context.Context, resourceGroupName string, factoryName string) (result LinkedServiceListResponseIterator, err error) { - result.page, err = client.ListByFactory(ctx, resourceGroupName, factoryName) - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/models.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/models.go deleted file mode 100644 index 43c91a1b1c68..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/models.go +++ /dev/null @@ -1,106920 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/to" - "github.com/satori/go.uuid" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AuthenticationType enumerates the values for authentication type. -type AuthenticationType string - -const ( - // AuthenticationTypeAnonymous ... - AuthenticationTypeAnonymous AuthenticationType = "Anonymous" - // AuthenticationTypeBasic ... - AuthenticationTypeBasic AuthenticationType = "Basic" - // AuthenticationTypeClientCertificate ... - AuthenticationTypeClientCertificate AuthenticationType = "ClientCertificate" - // AuthenticationTypeWebLinkedServiceTypeProperties ... - AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = "WebLinkedServiceTypeProperties" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type. -func PossibleAuthenticationTypeValues() []AuthenticationType { - return []AuthenticationType{AuthenticationTypeAnonymous, AuthenticationTypeBasic, AuthenticationTypeClientCertificate, AuthenticationTypeWebLinkedServiceTypeProperties} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AuthorizationType enumerates the values for authorization type. -type AuthorizationType string - -const ( - // AuthorizationTypeKey ... - AuthorizationTypeKey AuthorizationType = "Key" - // AuthorizationTypeLinkedIntegrationRuntimeProperties ... - AuthorizationTypeLinkedIntegrationRuntimeProperties AuthorizationType = "LinkedIntegrationRuntimeProperties" - // AuthorizationTypeRBAC ... - AuthorizationTypeRBAC AuthorizationType = "RBAC" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleAuthorizationTypeValues returns an array of possible values for the AuthorizationType const type. -func PossibleAuthorizationTypeValues() []AuthorizationType { - return []AuthorizationType{AuthorizationTypeKey, AuthorizationTypeLinkedIntegrationRuntimeProperties, AuthorizationTypeRBAC} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSearchIndexWriteBehaviorType enumerates the values for azure search index write behavior type. -type AzureSearchIndexWriteBehaviorType string - -const ( - // Merge ... - Merge AzureSearchIndexWriteBehaviorType = "Merge" - // Upload ... - Upload AzureSearchIndexWriteBehaviorType = "Upload" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleAzureSearchIndexWriteBehaviorTypeValues returns an array of possible values for the AzureSearchIndexWriteBehaviorType const type. -func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType { - return []AzureSearchIndexWriteBehaviorType{Merge, Upload} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CassandraSourceReadConsistencyLevels enumerates the values for cassandra source read consistency levels. -type CassandraSourceReadConsistencyLevels string - -const ( - // ALL ... - ALL CassandraSourceReadConsistencyLevels = "ALL" - // EACHQUORUM ... - EACHQUORUM CassandraSourceReadConsistencyLevels = "EACH_QUORUM" - // LOCALONE ... - LOCALONE CassandraSourceReadConsistencyLevels = "LOCAL_ONE" - // LOCALQUORUM ... - LOCALQUORUM CassandraSourceReadConsistencyLevels = "LOCAL_QUORUM" - // LOCALSERIAL ... - LOCALSERIAL CassandraSourceReadConsistencyLevels = "LOCAL_SERIAL" - // ONE ... - ONE CassandraSourceReadConsistencyLevels = "ONE" - // QUORUM ... - QUORUM CassandraSourceReadConsistencyLevels = "QUORUM" - // SERIAL ... - SERIAL CassandraSourceReadConsistencyLevels = "SERIAL" - // THREE ... - THREE CassandraSourceReadConsistencyLevels = "THREE" - // TWO ... - TWO CassandraSourceReadConsistencyLevels = "TWO" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleCassandraSourceReadConsistencyLevelsValues returns an array of possible values for the CassandraSourceReadConsistencyLevels const type. -func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels { - return []CassandraSourceReadConsistencyLevels{ALL, EACHQUORUM, LOCALONE, LOCALQUORUM, LOCALSERIAL, ONE, QUORUM, SERIAL, THREE, TWO} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CopyBehaviorType enumerates the values for copy behavior type. -type CopyBehaviorType string - -const ( - // FlattenHierarchy ... - FlattenHierarchy CopyBehaviorType = "FlattenHierarchy" - // MergeFiles ... - MergeFiles CopyBehaviorType = "MergeFiles" - // PreserveHierarchy ... - PreserveHierarchy CopyBehaviorType = "PreserveHierarchy" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleCopyBehaviorTypeValues returns an array of possible values for the CopyBehaviorType const type. -func PossibleCopyBehaviorTypeValues() []CopyBehaviorType { - return []CopyBehaviorType{FlattenHierarchy, MergeFiles, PreserveHierarchy} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetCompressionLevel enumerates the values for dataset compression level. -type DatasetCompressionLevel string - -const ( - // Fastest ... - Fastest DatasetCompressionLevel = "Fastest" - // Optimal ... - Optimal DatasetCompressionLevel = "Optimal" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleDatasetCompressionLevelValues returns an array of possible values for the DatasetCompressionLevel const type. -func PossibleDatasetCompressionLevelValues() []DatasetCompressionLevel { - return []DatasetCompressionLevel{Fastest, Optimal} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DayOfWeek enumerates the values for day of week. -type DayOfWeek string - -const ( - // Friday ... - Friday DayOfWeek = "Friday" - // Monday ... - Monday DayOfWeek = "Monday" - // Saturday ... - Saturday DayOfWeek = "Saturday" - // Sunday ... - Sunday DayOfWeek = "Sunday" - // Thursday ... - Thursday DayOfWeek = "Thursday" - // Tuesday ... - Tuesday DayOfWeek = "Tuesday" - // Wednesday ... - Wednesday DayOfWeek = "Wednesday" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type. -func PossibleDayOfWeekValues() []DayOfWeek { - return []DayOfWeek{Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DaysOfWeek enumerates the values for days of week. -type DaysOfWeek string - -const ( - // DaysOfWeekFriday ... - DaysOfWeekFriday DaysOfWeek = "Friday" - // DaysOfWeekMonday ... - DaysOfWeekMonday DaysOfWeek = "Monday" - // DaysOfWeekSaturday ... - DaysOfWeekSaturday DaysOfWeek = "Saturday" - // DaysOfWeekSunday ... - DaysOfWeekSunday DaysOfWeek = "Sunday" - // DaysOfWeekThursday ... - DaysOfWeekThursday DaysOfWeek = "Thursday" - // DaysOfWeekTuesday ... - DaysOfWeekTuesday DaysOfWeek = "Tuesday" - // DaysOfWeekWednesday ... - DaysOfWeekWednesday DaysOfWeek = "Wednesday" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleDaysOfWeekValues returns an array of possible values for the DaysOfWeek const type. -func PossibleDaysOfWeekValues() []DaysOfWeek { - return []DaysOfWeek{DaysOfWeekFriday, DaysOfWeekMonday, DaysOfWeekSaturday, DaysOfWeekSunday, DaysOfWeekThursday, DaysOfWeekTuesday, DaysOfWeekWednesday} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Db2AuthenticationType enumerates the values for db 2 authentication type. -type Db2AuthenticationType string - -const ( - // Basic ... - Basic Db2AuthenticationType = "Basic" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleDb2AuthenticationTypeValues returns an array of possible values for the Db2AuthenticationType const type. -func PossibleDb2AuthenticationTypeValues() []Db2AuthenticationType { - return []Db2AuthenticationType{Basic} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DependencyCondition enumerates the values for dependency condition. -type DependencyCondition string - -const ( - // Completed ... - Completed DependencyCondition = "Completed" - // Failed ... - Failed DependencyCondition = "Failed" - // Skipped ... - Skipped DependencyCondition = "Skipped" - // Succeeded ... - Succeeded DependencyCondition = "Succeeded" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleDependencyConditionValues returns an array of possible values for the DependencyCondition const type. -func PossibleDependencyConditionValues() []DependencyCondition { - return []DependencyCondition{Completed, Failed, Skipped, Succeeded} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FtpAuthenticationType enumerates the values for ftp authentication type. -type FtpAuthenticationType string - -const ( - // FtpAuthenticationTypeAnonymous ... - FtpAuthenticationTypeAnonymous FtpAuthenticationType = "Anonymous" - // FtpAuthenticationTypeBasic ... - FtpAuthenticationTypeBasic FtpAuthenticationType = "Basic" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleFtpAuthenticationTypeValues returns an array of possible values for the FtpAuthenticationType const type. -func PossibleFtpAuthenticationTypeValues() []FtpAuthenticationType { - return []FtpAuthenticationType{FtpAuthenticationTypeAnonymous, FtpAuthenticationTypeBasic} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GoogleBigQueryAuthenticationType enumerates the values for google big query authentication type. -type GoogleBigQueryAuthenticationType string - -const ( - // ServiceAuthentication ... - ServiceAuthentication GoogleBigQueryAuthenticationType = "ServiceAuthentication" - // UserAuthentication ... - UserAuthentication GoogleBigQueryAuthenticationType = "UserAuthentication" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleGoogleBigQueryAuthenticationTypeValues returns an array of possible values for the GoogleBigQueryAuthenticationType const type. -func PossibleGoogleBigQueryAuthenticationTypeValues() []GoogleBigQueryAuthenticationType { - return []GoogleBigQueryAuthenticationType{ServiceAuthentication, UserAuthentication} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HBaseAuthenticationType enumerates the values for h base authentication type. -type HBaseAuthenticationType string - -const ( - // HBaseAuthenticationTypeAnonymous ... - HBaseAuthenticationTypeAnonymous HBaseAuthenticationType = "Anonymous" - // HBaseAuthenticationTypeBasic ... - HBaseAuthenticationTypeBasic HBaseAuthenticationType = "Basic" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleHBaseAuthenticationTypeValues returns an array of possible values for the HBaseAuthenticationType const type. -func PossibleHBaseAuthenticationTypeValues() []HBaseAuthenticationType { - return []HBaseAuthenticationType{HBaseAuthenticationTypeAnonymous, HBaseAuthenticationTypeBasic} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightActivityDebugInfoOption enumerates the values for hd insight activity debug info option. -type HDInsightActivityDebugInfoOption string - -const ( - // Always ... - Always HDInsightActivityDebugInfoOption = "Always" - // Failure ... - Failure HDInsightActivityDebugInfoOption = "Failure" - // None ... - None HDInsightActivityDebugInfoOption = "None" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleHDInsightActivityDebugInfoOptionValues returns an array of possible values for the HDInsightActivityDebugInfoOption const type. -func PossibleHDInsightActivityDebugInfoOptionValues() []HDInsightActivityDebugInfoOption { - return []HDInsightActivityDebugInfoOption{Always, Failure, None} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HiveAuthenticationType enumerates the values for hive authentication type. -type HiveAuthenticationType string - -const ( - // Anonymous ... - Anonymous HiveAuthenticationType = "Anonymous" - // Username ... - Username HiveAuthenticationType = "Username" - // UsernameAndPassword ... - UsernameAndPassword HiveAuthenticationType = "UsernameAndPassword" - // WindowsAzureHDInsightService ... - WindowsAzureHDInsightService HiveAuthenticationType = "WindowsAzureHDInsightService" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleHiveAuthenticationTypeValues returns an array of possible values for the HiveAuthenticationType const type. -func PossibleHiveAuthenticationTypeValues() []HiveAuthenticationType { - return []HiveAuthenticationType{Anonymous, Username, UsernameAndPassword, WindowsAzureHDInsightService} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HiveServerType enumerates the values for hive server type. -type HiveServerType string - -const ( - // HiveServer1 ... - HiveServer1 HiveServerType = "HiveServer1" - // HiveServer2 ... - HiveServer2 HiveServerType = "HiveServer2" - // HiveThriftServer ... - HiveThriftServer HiveServerType = "HiveThriftServer" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleHiveServerTypeValues returns an array of possible values for the HiveServerType const type. -func PossibleHiveServerTypeValues() []HiveServerType { - return []HiveServerType{HiveServer1, HiveServer2, HiveThriftServer} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HiveThriftTransportProtocol enumerates the values for hive thrift transport protocol. -type HiveThriftTransportProtocol string - -const ( - // Binary ... - Binary HiveThriftTransportProtocol = "Binary" - // HTTP ... - HTTP HiveThriftTransportProtocol = "HTTP " - // SASL ... - SASL HiveThriftTransportProtocol = "SASL" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleHiveThriftTransportProtocolValues returns an array of possible values for the HiveThriftTransportProtocol const type. -func PossibleHiveThriftTransportProtocolValues() []HiveThriftTransportProtocol { - return []HiveThriftTransportProtocol{Binary, HTTP, SASL} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HTTPAuthenticationType enumerates the values for http authentication type. -type HTTPAuthenticationType string - -const ( - // HTTPAuthenticationTypeAnonymous ... - HTTPAuthenticationTypeAnonymous HTTPAuthenticationType = "Anonymous" - // HTTPAuthenticationTypeBasic ... - HTTPAuthenticationTypeBasic HTTPAuthenticationType = "Basic" - // HTTPAuthenticationTypeClientCertificate ... - HTTPAuthenticationTypeClientCertificate HTTPAuthenticationType = "ClientCertificate" - // HTTPAuthenticationTypeDigest ... - HTTPAuthenticationTypeDigest HTTPAuthenticationType = "Digest" - // HTTPAuthenticationTypeWindows ... - HTTPAuthenticationTypeWindows HTTPAuthenticationType = "Windows" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleHTTPAuthenticationTypeValues returns an array of possible values for the HTTPAuthenticationType const type. -func PossibleHTTPAuthenticationTypeValues() []HTTPAuthenticationType { - return []HTTPAuthenticationType{HTTPAuthenticationTypeAnonymous, HTTPAuthenticationTypeBasic, HTTPAuthenticationTypeClientCertificate, HTTPAuthenticationTypeDigest, HTTPAuthenticationTypeWindows} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ImpalaAuthenticationType enumerates the values for impala authentication type. -type ImpalaAuthenticationType string - -const ( - // ImpalaAuthenticationTypeAnonymous ... - ImpalaAuthenticationTypeAnonymous ImpalaAuthenticationType = "Anonymous" - // ImpalaAuthenticationTypeSASLUsername ... - ImpalaAuthenticationTypeSASLUsername ImpalaAuthenticationType = "SASLUsername" - // ImpalaAuthenticationTypeUsernameAndPassword ... - ImpalaAuthenticationTypeUsernameAndPassword ImpalaAuthenticationType = "UsernameAndPassword" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleImpalaAuthenticationTypeValues returns an array of possible values for the ImpalaAuthenticationType const type. -func PossibleImpalaAuthenticationTypeValues() []ImpalaAuthenticationType { - return []ImpalaAuthenticationType{ImpalaAuthenticationTypeAnonymous, ImpalaAuthenticationTypeSASLUsername, ImpalaAuthenticationTypeUsernameAndPassword} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeAuthKeyName enumerates the values for integration runtime auth key name. -type IntegrationRuntimeAuthKeyName string - -const ( - // AuthKey1 ... - AuthKey1 IntegrationRuntimeAuthKeyName = "authKey1" - // AuthKey2 ... - AuthKey2 IntegrationRuntimeAuthKeyName = "authKey2" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeAuthKeyNameValues returns an array of possible values for the IntegrationRuntimeAuthKeyName const type. -func PossibleIntegrationRuntimeAuthKeyNameValues() []IntegrationRuntimeAuthKeyName { - return []IntegrationRuntimeAuthKeyName{AuthKey1, AuthKey2} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeAutoUpdate enumerates the values for integration runtime auto update. -type IntegrationRuntimeAutoUpdate string - -const ( - // Off ... - Off IntegrationRuntimeAutoUpdate = "Off" - // On ... - On IntegrationRuntimeAutoUpdate = "On" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeAutoUpdateValues returns an array of possible values for the IntegrationRuntimeAutoUpdate const type. -func PossibleIntegrationRuntimeAutoUpdateValues() []IntegrationRuntimeAutoUpdate { - return []IntegrationRuntimeAutoUpdate{Off, On} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeEdition enumerates the values for integration runtime edition. -type IntegrationRuntimeEdition string - -const ( - // Enterprise ... - Enterprise IntegrationRuntimeEdition = "Enterprise" - // Standard ... - Standard IntegrationRuntimeEdition = "Standard" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeEditionValues returns an array of possible values for the IntegrationRuntimeEdition const type. -func PossibleIntegrationRuntimeEditionValues() []IntegrationRuntimeEdition { - return []IntegrationRuntimeEdition{Enterprise, Standard} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeInternalChannelEncryptionMode enumerates the values for integration runtime internal -// channel encryption mode. -type IntegrationRuntimeInternalChannelEncryptionMode string - -const ( - // NotEncrypted ... - NotEncrypted IntegrationRuntimeInternalChannelEncryptionMode = "NotEncrypted" - // NotSet ... - NotSet IntegrationRuntimeInternalChannelEncryptionMode = "NotSet" - // SslEncrypted ... - SslEncrypted IntegrationRuntimeInternalChannelEncryptionMode = "SslEncrypted" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeInternalChannelEncryptionModeValues returns an array of possible values for the IntegrationRuntimeInternalChannelEncryptionMode const type. -func PossibleIntegrationRuntimeInternalChannelEncryptionModeValues() []IntegrationRuntimeInternalChannelEncryptionMode { - return []IntegrationRuntimeInternalChannelEncryptionMode{NotEncrypted, NotSet, SslEncrypted} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeLicenseType enumerates the values for integration runtime license type. -type IntegrationRuntimeLicenseType string - -const ( - // BasePrice ... - BasePrice IntegrationRuntimeLicenseType = "BasePrice" - // LicenseIncluded ... - LicenseIncluded IntegrationRuntimeLicenseType = "LicenseIncluded" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeLicenseTypeValues returns an array of possible values for the IntegrationRuntimeLicenseType const type. -func PossibleIntegrationRuntimeLicenseTypeValues() []IntegrationRuntimeLicenseType { - return []IntegrationRuntimeLicenseType{BasePrice, LicenseIncluded} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeSsisCatalogPricingTier enumerates the values for integration runtime ssis catalog pricing -// tier. -type IntegrationRuntimeSsisCatalogPricingTier string - -const ( - // IntegrationRuntimeSsisCatalogPricingTierBasic ... - IntegrationRuntimeSsisCatalogPricingTierBasic IntegrationRuntimeSsisCatalogPricingTier = "Basic" - // IntegrationRuntimeSsisCatalogPricingTierPremium ... - IntegrationRuntimeSsisCatalogPricingTierPremium IntegrationRuntimeSsisCatalogPricingTier = "Premium" - // IntegrationRuntimeSsisCatalogPricingTierPremiumRS ... - IntegrationRuntimeSsisCatalogPricingTierPremiumRS IntegrationRuntimeSsisCatalogPricingTier = "PremiumRS" - // IntegrationRuntimeSsisCatalogPricingTierStandard ... - IntegrationRuntimeSsisCatalogPricingTierStandard IntegrationRuntimeSsisCatalogPricingTier = "Standard" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeSsisCatalogPricingTierValues returns an array of possible values for the IntegrationRuntimeSsisCatalogPricingTier const type. -func PossibleIntegrationRuntimeSsisCatalogPricingTierValues() []IntegrationRuntimeSsisCatalogPricingTier { - return []IntegrationRuntimeSsisCatalogPricingTier{IntegrationRuntimeSsisCatalogPricingTierBasic, IntegrationRuntimeSsisCatalogPricingTierPremium, IntegrationRuntimeSsisCatalogPricingTierPremiumRS, IntegrationRuntimeSsisCatalogPricingTierStandard} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeState enumerates the values for integration runtime state. -type IntegrationRuntimeState string - -const ( - // Initial ... - Initial IntegrationRuntimeState = "Initial" - // Limited ... - Limited IntegrationRuntimeState = "Limited" - // NeedRegistration ... - NeedRegistration IntegrationRuntimeState = "NeedRegistration" - // Offline ... - Offline IntegrationRuntimeState = "Offline" - // Online ... - Online IntegrationRuntimeState = "Online" - // Started ... - Started IntegrationRuntimeState = "Started" - // Starting ... - Starting IntegrationRuntimeState = "Starting" - // Stopped ... - Stopped IntegrationRuntimeState = "Stopped" - // Stopping ... - Stopping IntegrationRuntimeState = "Stopping" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeStateValues returns an array of possible values for the IntegrationRuntimeState const type. -func PossibleIntegrationRuntimeStateValues() []IntegrationRuntimeState { - return []IntegrationRuntimeState{Initial, Limited, NeedRegistration, Offline, Online, Started, Starting, Stopped, Stopping} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeType enumerates the values for integration runtime type. -type IntegrationRuntimeType string - -const ( - // Managed ... - Managed IntegrationRuntimeType = "Managed" - // SelfHosted ... - SelfHosted IntegrationRuntimeType = "SelfHosted" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeTypeValues returns an array of possible values for the IntegrationRuntimeType const type. -func PossibleIntegrationRuntimeTypeValues() []IntegrationRuntimeType { - return []IntegrationRuntimeType{Managed, SelfHosted} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeUpdateResult enumerates the values for integration runtime update result. -type IntegrationRuntimeUpdateResult string - -const ( - // Fail ... - Fail IntegrationRuntimeUpdateResult = "Fail" - // Succeed ... - Succeed IntegrationRuntimeUpdateResult = "Succeed" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleIntegrationRuntimeUpdateResultValues returns an array of possible values for the IntegrationRuntimeUpdateResult const type. -func PossibleIntegrationRuntimeUpdateResultValues() []IntegrationRuntimeUpdateResult { - return []IntegrationRuntimeUpdateResult{Fail, Succeed} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// JSONFormatFilePattern enumerates the values for json format file pattern. -type JSONFormatFilePattern string - -const ( - // ArrayOfObjects ... - ArrayOfObjects JSONFormatFilePattern = "arrayOfObjects" - // SetOfObjects ... - SetOfObjects JSONFormatFilePattern = "setOfObjects" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleJSONFormatFilePatternValues returns an array of possible values for the JSONFormatFilePattern const type. -func PossibleJSONFormatFilePatternValues() []JSONFormatFilePattern { - return []JSONFormatFilePattern{ArrayOfObjects, SetOfObjects} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntimeNodeStatus enumerates the values for managed integration runtime node status. -type ManagedIntegrationRuntimeNodeStatus string - -const ( - // ManagedIntegrationRuntimeNodeStatusAvailable ... - ManagedIntegrationRuntimeNodeStatusAvailable ManagedIntegrationRuntimeNodeStatus = "Available" - // ManagedIntegrationRuntimeNodeStatusRecycling ... - ManagedIntegrationRuntimeNodeStatusRecycling ManagedIntegrationRuntimeNodeStatus = "Recycling" - // ManagedIntegrationRuntimeNodeStatusStarting ... - ManagedIntegrationRuntimeNodeStatusStarting ManagedIntegrationRuntimeNodeStatus = "Starting" - // ManagedIntegrationRuntimeNodeStatusUnavailable ... - ManagedIntegrationRuntimeNodeStatusUnavailable ManagedIntegrationRuntimeNodeStatus = "Unavailable" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleManagedIntegrationRuntimeNodeStatusValues returns an array of possible values for the ManagedIntegrationRuntimeNodeStatus const type. -func PossibleManagedIntegrationRuntimeNodeStatusValues() []ManagedIntegrationRuntimeNodeStatus { - return []ManagedIntegrationRuntimeNodeStatus{ManagedIntegrationRuntimeNodeStatusAvailable, ManagedIntegrationRuntimeNodeStatusRecycling, ManagedIntegrationRuntimeNodeStatusStarting, ManagedIntegrationRuntimeNodeStatusUnavailable} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MongoDbAuthenticationType enumerates the values for mongo db authentication type. -type MongoDbAuthenticationType string - -const ( - // MongoDbAuthenticationTypeAnonymous ... - MongoDbAuthenticationTypeAnonymous MongoDbAuthenticationType = "Anonymous" - // MongoDbAuthenticationTypeBasic ... - MongoDbAuthenticationTypeBasic MongoDbAuthenticationType = "Basic" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleMongoDbAuthenticationTypeValues returns an array of possible values for the MongoDbAuthenticationType const type. -func PossibleMongoDbAuthenticationTypeValues() []MongoDbAuthenticationType { - return []MongoDbAuthenticationType{MongoDbAuthenticationTypeAnonymous, MongoDbAuthenticationTypeBasic} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ODataAuthenticationType enumerates the values for o data authentication type. -type ODataAuthenticationType string - -const ( - // ODataAuthenticationTypeAnonymous ... - ODataAuthenticationTypeAnonymous ODataAuthenticationType = "Anonymous" - // ODataAuthenticationTypeBasic ... - ODataAuthenticationTypeBasic ODataAuthenticationType = "Basic" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleODataAuthenticationTypeValues returns an array of possible values for the ODataAuthenticationType const type. -func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType { - return []ODataAuthenticationType{ODataAuthenticationTypeAnonymous, ODataAuthenticationTypeBasic} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ParameterType enumerates the values for parameter type. -type ParameterType string - -const ( - // ParameterTypeArray ... - ParameterTypeArray ParameterType = "Array" - // ParameterTypeBool ... - ParameterTypeBool ParameterType = "Bool" - // ParameterTypeFloat ... - ParameterTypeFloat ParameterType = "Float" - // ParameterTypeInt ... - ParameterTypeInt ParameterType = "Int" - // ParameterTypeObject ... - ParameterTypeObject ParameterType = "Object" - // ParameterTypeSecureString ... - ParameterTypeSecureString ParameterType = "SecureString" - // ParameterTypeString ... - ParameterTypeString ParameterType = "String" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleParameterTypeValues returns an array of possible values for the ParameterType const type. -func PossibleParameterTypeValues() []ParameterType { - return []ParameterType{ParameterTypeArray, ParameterTypeBool, ParameterTypeFloat, ParameterTypeInt, ParameterTypeObject, ParameterTypeSecureString, ParameterTypeString} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PhoenixAuthenticationType enumerates the values for phoenix authentication type. -type PhoenixAuthenticationType string - -const ( - // PhoenixAuthenticationTypeAnonymous ... - PhoenixAuthenticationTypeAnonymous PhoenixAuthenticationType = "Anonymous" - // PhoenixAuthenticationTypeUsernameAndPassword ... - PhoenixAuthenticationTypeUsernameAndPassword PhoenixAuthenticationType = "UsernameAndPassword" - // PhoenixAuthenticationTypeWindowsAzureHDInsightService ... - PhoenixAuthenticationTypeWindowsAzureHDInsightService PhoenixAuthenticationType = "WindowsAzureHDInsightService" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossiblePhoenixAuthenticationTypeValues returns an array of possible values for the PhoenixAuthenticationType const type. -func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType { - return []PhoenixAuthenticationType{PhoenixAuthenticationTypeAnonymous, PhoenixAuthenticationTypeUsernameAndPassword, PhoenixAuthenticationTypeWindowsAzureHDInsightService} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunQueryFilterOperand enumerates the values for pipeline run query filter operand. -type PipelineRunQueryFilterOperand string - -const ( - // PipelineName ... - PipelineName PipelineRunQueryFilterOperand = "PipelineName" - // RunEnd ... - RunEnd PipelineRunQueryFilterOperand = "RunEnd" - // RunStart ... - RunStart PipelineRunQueryFilterOperand = "RunStart" - // Status ... - Status PipelineRunQueryFilterOperand = "Status" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossiblePipelineRunQueryFilterOperandValues returns an array of possible values for the PipelineRunQueryFilterOperand const type. -func PossiblePipelineRunQueryFilterOperandValues() []PipelineRunQueryFilterOperand { - return []PipelineRunQueryFilterOperand{PipelineName, RunEnd, RunStart, Status} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunQueryFilterOperator enumerates the values for pipeline run query filter operator. -type PipelineRunQueryFilterOperator string - -const ( - // Equals ... - Equals PipelineRunQueryFilterOperator = "Equals" - // In ... - In PipelineRunQueryFilterOperator = "In" - // NotEquals ... - NotEquals PipelineRunQueryFilterOperator = "NotEquals" - // NotIn ... - NotIn PipelineRunQueryFilterOperator = "NotIn" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossiblePipelineRunQueryFilterOperatorValues returns an array of possible values for the PipelineRunQueryFilterOperator const type. -func PossiblePipelineRunQueryFilterOperatorValues() []PipelineRunQueryFilterOperator { - return []PipelineRunQueryFilterOperator{Equals, In, NotEquals, NotIn} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunQueryOrder enumerates the values for pipeline run query order. -type PipelineRunQueryOrder string - -const ( - // ASC ... - ASC PipelineRunQueryOrder = "ASC" - // DESC ... - DESC PipelineRunQueryOrder = "DESC" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossiblePipelineRunQueryOrderValues returns an array of possible values for the PipelineRunQueryOrder const type. -func PossiblePipelineRunQueryOrderValues() []PipelineRunQueryOrder { - return []PipelineRunQueryOrder{ASC, DESC} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunQueryOrderByField enumerates the values for pipeline run query order by field. -type PipelineRunQueryOrderByField string - -const ( - // PipelineRunQueryOrderByFieldRunEnd ... - PipelineRunQueryOrderByFieldRunEnd PipelineRunQueryOrderByField = "RunEnd" - // PipelineRunQueryOrderByFieldRunStart ... - PipelineRunQueryOrderByFieldRunStart PipelineRunQueryOrderByField = "RunStart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossiblePipelineRunQueryOrderByFieldValues returns an array of possible values for the PipelineRunQueryOrderByField const type. -func PossiblePipelineRunQueryOrderByFieldValues() []PipelineRunQueryOrderByField { - return []PipelineRunQueryOrderByField{PipelineRunQueryOrderByFieldRunEnd, PipelineRunQueryOrderByFieldRunStart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PolybaseSettingsRejectType enumerates the values for polybase settings reject type. -type PolybaseSettingsRejectType string - -const ( - // Percentage ... - Percentage PolybaseSettingsRejectType = "percentage" - // Value ... - Value PolybaseSettingsRejectType = "value" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossiblePolybaseSettingsRejectTypeValues returns an array of possible values for the PolybaseSettingsRejectType const type. -func PossiblePolybaseSettingsRejectTypeValues() []PolybaseSettingsRejectType { - return []PolybaseSettingsRejectType{Percentage, Value} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PrestoAuthenticationType enumerates the values for presto authentication type. -type PrestoAuthenticationType string - -const ( - // PrestoAuthenticationTypeAnonymous ... - PrestoAuthenticationTypeAnonymous PrestoAuthenticationType = "Anonymous" - // PrestoAuthenticationTypeLDAP ... - PrestoAuthenticationTypeLDAP PrestoAuthenticationType = "LDAP" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossiblePrestoAuthenticationTypeValues returns an array of possible values for the PrestoAuthenticationType const type. -func PossiblePrestoAuthenticationTypeValues() []PrestoAuthenticationType { - return []PrestoAuthenticationType{PrestoAuthenticationTypeAnonymous, PrestoAuthenticationTypeLDAP} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RecurrenceFrequency enumerates the values for recurrence frequency. -type RecurrenceFrequency string - -const ( - // Day ... - Day RecurrenceFrequency = "Day" - // Hour ... - Hour RecurrenceFrequency = "Hour" - // Minute ... - Minute RecurrenceFrequency = "Minute" - // Month ... - Month RecurrenceFrequency = "Month" - // NotSpecified ... - NotSpecified RecurrenceFrequency = "NotSpecified" - // Week ... - Week RecurrenceFrequency = "Week" - // Year ... - Year RecurrenceFrequency = "Year" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type. -func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency { - return []RecurrenceFrequency{Day, Hour, Minute, Month, NotSpecified, Week, Year} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceSinkWriteBehavior enumerates the values for salesforce sink write behavior. -type SalesforceSinkWriteBehavior string - -const ( - // Insert ... - Insert SalesforceSinkWriteBehavior = "Insert" - // Upsert ... - Upsert SalesforceSinkWriteBehavior = "Upsert" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSalesforceSinkWriteBehaviorValues returns an array of possible values for the SalesforceSinkWriteBehavior const type. -func PossibleSalesforceSinkWriteBehaviorValues() []SalesforceSinkWriteBehavior { - return []SalesforceSinkWriteBehavior{Insert, Upsert} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceSourceReadBehavior enumerates the values for salesforce source read behavior. -type SalesforceSourceReadBehavior string - -const ( - // Query ... - Query SalesforceSourceReadBehavior = "Query" - // QueryAll ... - QueryAll SalesforceSourceReadBehavior = "QueryAll" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSalesforceSourceReadBehaviorValues returns an array of possible values for the SalesforceSourceReadBehavior const type. -func PossibleSalesforceSourceReadBehaviorValues() []SalesforceSourceReadBehavior { - return []SalesforceSourceReadBehavior{Query, QueryAll} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapCloudForCustomerSinkWriteBehavior enumerates the values for sap cloud for customer sink write behavior. -type SapCloudForCustomerSinkWriteBehavior string - -const ( - // SapCloudForCustomerSinkWriteBehaviorInsert ... - SapCloudForCustomerSinkWriteBehaviorInsert SapCloudForCustomerSinkWriteBehavior = "Insert" - // SapCloudForCustomerSinkWriteBehaviorUpdate ... - SapCloudForCustomerSinkWriteBehaviorUpdate SapCloudForCustomerSinkWriteBehavior = "Update" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSapCloudForCustomerSinkWriteBehaviorValues returns an array of possible values for the SapCloudForCustomerSinkWriteBehavior const type. -func PossibleSapCloudForCustomerSinkWriteBehaviorValues() []SapCloudForCustomerSinkWriteBehavior { - return []SapCloudForCustomerSinkWriteBehavior{SapCloudForCustomerSinkWriteBehaviorInsert, SapCloudForCustomerSinkWriteBehaviorUpdate} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapHanaAuthenticationType enumerates the values for sap hana authentication type. -type SapHanaAuthenticationType string - -const ( - // SapHanaAuthenticationTypeBasic ... - SapHanaAuthenticationTypeBasic SapHanaAuthenticationType = "Basic" - // SapHanaAuthenticationTypeWindows ... - SapHanaAuthenticationTypeWindows SapHanaAuthenticationType = "Windows" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSapHanaAuthenticationTypeValues returns an array of possible values for the SapHanaAuthenticationType const type. -func PossibleSapHanaAuthenticationTypeValues() []SapHanaAuthenticationType { - return []SapHanaAuthenticationType{SapHanaAuthenticationTypeBasic, SapHanaAuthenticationTypeWindows} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SelfHostedIntegrationRuntimeNodeStatus enumerates the values for self hosted integration runtime node -// status. -type SelfHostedIntegrationRuntimeNodeStatus string - -const ( - // SelfHostedIntegrationRuntimeNodeStatusInitializeFailed ... - SelfHostedIntegrationRuntimeNodeStatusInitializeFailed SelfHostedIntegrationRuntimeNodeStatus = "InitializeFailed" - // SelfHostedIntegrationRuntimeNodeStatusInitializing ... - SelfHostedIntegrationRuntimeNodeStatusInitializing SelfHostedIntegrationRuntimeNodeStatus = "Initializing" - // SelfHostedIntegrationRuntimeNodeStatusLimited ... - SelfHostedIntegrationRuntimeNodeStatusLimited SelfHostedIntegrationRuntimeNodeStatus = "Limited" - // SelfHostedIntegrationRuntimeNodeStatusNeedRegistration ... - SelfHostedIntegrationRuntimeNodeStatusNeedRegistration SelfHostedIntegrationRuntimeNodeStatus = "NeedRegistration" - // SelfHostedIntegrationRuntimeNodeStatusOffline ... - SelfHostedIntegrationRuntimeNodeStatusOffline SelfHostedIntegrationRuntimeNodeStatus = "Offline" - // SelfHostedIntegrationRuntimeNodeStatusOnline ... - SelfHostedIntegrationRuntimeNodeStatusOnline SelfHostedIntegrationRuntimeNodeStatus = "Online" - // SelfHostedIntegrationRuntimeNodeStatusUpgrading ... - SelfHostedIntegrationRuntimeNodeStatusUpgrading SelfHostedIntegrationRuntimeNodeStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSelfHostedIntegrationRuntimeNodeStatusValues returns an array of possible values for the SelfHostedIntegrationRuntimeNodeStatus const type. -func PossibleSelfHostedIntegrationRuntimeNodeStatusValues() []SelfHostedIntegrationRuntimeNodeStatus { - return []SelfHostedIntegrationRuntimeNodeStatus{SelfHostedIntegrationRuntimeNodeStatusInitializeFailed, SelfHostedIntegrationRuntimeNodeStatusInitializing, SelfHostedIntegrationRuntimeNodeStatusLimited, SelfHostedIntegrationRuntimeNodeStatusNeedRegistration, SelfHostedIntegrationRuntimeNodeStatusOffline, SelfHostedIntegrationRuntimeNodeStatusOnline, SelfHostedIntegrationRuntimeNodeStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ServiceNowAuthenticationType enumerates the values for service now authentication type. -type ServiceNowAuthenticationType string - -const ( - // ServiceNowAuthenticationTypeBasic ... - ServiceNowAuthenticationTypeBasic ServiceNowAuthenticationType = "Basic" - // ServiceNowAuthenticationTypeOAuth2 ... - ServiceNowAuthenticationTypeOAuth2 ServiceNowAuthenticationType = "OAuth2" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleServiceNowAuthenticationTypeValues returns an array of possible values for the ServiceNowAuthenticationType const type. -func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType { - return []ServiceNowAuthenticationType{ServiceNowAuthenticationTypeBasic, ServiceNowAuthenticationTypeOAuth2} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SftpAuthenticationType enumerates the values for sftp authentication type. -type SftpAuthenticationType string - -const ( - // SftpAuthenticationTypeBasic ... - SftpAuthenticationTypeBasic SftpAuthenticationType = "Basic" - // SftpAuthenticationTypeSSHPublicKey ... - SftpAuthenticationTypeSSHPublicKey SftpAuthenticationType = "SshPublicKey" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSftpAuthenticationTypeValues returns an array of possible values for the SftpAuthenticationType const type. -func PossibleSftpAuthenticationTypeValues() []SftpAuthenticationType { - return []SftpAuthenticationType{SftpAuthenticationTypeBasic, SftpAuthenticationTypeSSHPublicKey} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SparkAuthenticationType enumerates the values for spark authentication type. -type SparkAuthenticationType string - -const ( - // SparkAuthenticationTypeAnonymous ... - SparkAuthenticationTypeAnonymous SparkAuthenticationType = "Anonymous" - // SparkAuthenticationTypeUsername ... - SparkAuthenticationTypeUsername SparkAuthenticationType = "Username" - // SparkAuthenticationTypeUsernameAndPassword ... - SparkAuthenticationTypeUsernameAndPassword SparkAuthenticationType = "UsernameAndPassword" - // SparkAuthenticationTypeWindowsAzureHDInsightService ... - SparkAuthenticationTypeWindowsAzureHDInsightService SparkAuthenticationType = "WindowsAzureHDInsightService" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSparkAuthenticationTypeValues returns an array of possible values for the SparkAuthenticationType const type. -func PossibleSparkAuthenticationTypeValues() []SparkAuthenticationType { - return []SparkAuthenticationType{SparkAuthenticationTypeAnonymous, SparkAuthenticationTypeUsername, SparkAuthenticationTypeUsernameAndPassword, SparkAuthenticationTypeWindowsAzureHDInsightService} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SparkServerType enumerates the values for spark server type. -type SparkServerType string - -const ( - // SharkServer ... - SharkServer SparkServerType = "SharkServer" - // SharkServer2 ... - SharkServer2 SparkServerType = "SharkServer2" - // SparkThriftServer ... - SparkThriftServer SparkServerType = "SparkThriftServer" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSparkServerTypeValues returns an array of possible values for the SparkServerType const type. -func PossibleSparkServerTypeValues() []SparkServerType { - return []SparkServerType{SharkServer, SharkServer2, SparkThriftServer} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SparkThriftTransportProtocol enumerates the values for spark thrift transport protocol. -type SparkThriftTransportProtocol string - -const ( - // SparkThriftTransportProtocolBinary ... - SparkThriftTransportProtocolBinary SparkThriftTransportProtocol = "Binary" - // SparkThriftTransportProtocolHTTP ... - SparkThriftTransportProtocolHTTP SparkThriftTransportProtocol = "HTTP " - // SparkThriftTransportProtocolSASL ... - SparkThriftTransportProtocolSASL SparkThriftTransportProtocol = "SASL" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSparkThriftTransportProtocolValues returns an array of possible values for the SparkThriftTransportProtocol const type. -func PossibleSparkThriftTransportProtocolValues() []SparkThriftTransportProtocol { - return []SparkThriftTransportProtocol{SparkThriftTransportProtocolBinary, SparkThriftTransportProtocolHTTP, SparkThriftTransportProtocolSASL} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SSISExecutionRuntime enumerates the values for ssis execution runtime. -type SSISExecutionRuntime string - -const ( - // X64 ... - X64 SSISExecutionRuntime = "x64" - // X86 ... - X86 SSISExecutionRuntime = "x86" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSSISExecutionRuntimeValues returns an array of possible values for the SSISExecutionRuntime const type. -func PossibleSSISExecutionRuntimeValues() []SSISExecutionRuntime { - return []SSISExecutionRuntime{X64, X86} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StoredProcedureParameterType enumerates the values for stored procedure parameter type. -type StoredProcedureParameterType string - -const ( - // Boolean ... - Boolean StoredProcedureParameterType = "Boolean" - // Date ... - Date StoredProcedureParameterType = "Date" - // Decimal ... - Decimal StoredProcedureParameterType = "Decimal" - // GUID ... - GUID StoredProcedureParameterType = "Guid" - // Int ... - Int StoredProcedureParameterType = "Int" - // String ... - String StoredProcedureParameterType = "String" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleStoredProcedureParameterTypeValues returns an array of possible values for the StoredProcedureParameterType const type. -func PossibleStoredProcedureParameterTypeValues() []StoredProcedureParameterType { - return []StoredProcedureParameterType{Boolean, Date, Decimal, GUID, Int, String} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SybaseAuthenticationType enumerates the values for sybase authentication type. -type SybaseAuthenticationType string - -const ( - // SybaseAuthenticationTypeBasic ... - SybaseAuthenticationTypeBasic SybaseAuthenticationType = "Basic" - // SybaseAuthenticationTypeWindows ... - SybaseAuthenticationTypeWindows SybaseAuthenticationType = "Windows" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleSybaseAuthenticationTypeValues returns an array of possible values for the SybaseAuthenticationType const type. -func PossibleSybaseAuthenticationTypeValues() []SybaseAuthenticationType { - return []SybaseAuthenticationType{SybaseAuthenticationTypeBasic, SybaseAuthenticationTypeWindows} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TeradataAuthenticationType enumerates the values for teradata authentication type. -type TeradataAuthenticationType string - -const ( - // TeradataAuthenticationTypeBasic ... - TeradataAuthenticationTypeBasic TeradataAuthenticationType = "Basic" - // TeradataAuthenticationTypeWindows ... - TeradataAuthenticationTypeWindows TeradataAuthenticationType = "Windows" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTeradataAuthenticationTypeValues returns an array of possible values for the TeradataAuthenticationType const type. -func PossibleTeradataAuthenticationTypeValues() []TeradataAuthenticationType { - return []TeradataAuthenticationType{TeradataAuthenticationTypeBasic, TeradataAuthenticationTypeWindows} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerRunStatus enumerates the values for trigger run status. -type TriggerRunStatus string - -const ( - // TriggerRunStatusFailed ... - TriggerRunStatusFailed TriggerRunStatus = "Failed" - // TriggerRunStatusInprogress ... - TriggerRunStatusInprogress TriggerRunStatus = "Inprogress" - // TriggerRunStatusSucceeded ... - TriggerRunStatusSucceeded TriggerRunStatus = "Succeeded" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTriggerRunStatusValues returns an array of possible values for the TriggerRunStatus const type. -func PossibleTriggerRunStatusValues() []TriggerRunStatus { - return []TriggerRunStatus{TriggerRunStatusFailed, TriggerRunStatusInprogress, TriggerRunStatusSucceeded} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerRuntimeState enumerates the values for trigger runtime state. -type TriggerRuntimeState string - -const ( - // TriggerRuntimeStateDisabled ... - TriggerRuntimeStateDisabled TriggerRuntimeState = "Disabled" - // TriggerRuntimeStateStarted ... - TriggerRuntimeStateStarted TriggerRuntimeState = "Started" - // TriggerRuntimeStateStopped ... - TriggerRuntimeStateStopped TriggerRuntimeState = "Stopped" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTriggerRuntimeStateValues returns an array of possible values for the TriggerRuntimeState const type. -func PossibleTriggerRuntimeStateValues() []TriggerRuntimeState { - return []TriggerRuntimeState{TriggerRuntimeStateDisabled, TriggerRuntimeStateStarted, TriggerRuntimeStateStopped} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TumblingWindowFrequency enumerates the values for tumbling window frequency. -type TumblingWindowFrequency string - -const ( - // TumblingWindowFrequencyHour ... - TumblingWindowFrequencyHour TumblingWindowFrequency = "Hour" - // TumblingWindowFrequencyMinute ... - TumblingWindowFrequencyMinute TumblingWindowFrequency = "Minute" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTumblingWindowFrequencyValues returns an array of possible values for the TumblingWindowFrequency const type. -func PossibleTumblingWindowFrequencyValues() []TumblingWindowFrequency { - return []TumblingWindowFrequency{TumblingWindowFrequencyHour, TumblingWindowFrequencyMinute} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Type enumerates the values for type. -type Type string - -const ( - // TypeAzureKeyVaultSecret ... - TypeAzureKeyVaultSecret Type = "AzureKeyVaultSecret" - // TypeSecretBase ... - TypeSecretBase Type = "SecretBase" - // TypeSecureString ... - TypeSecureString Type = "SecureString" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeAzureKeyVaultSecret, TypeSecretBase, TypeSecureString} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicActivity enumerates the values for type basic activity. -type TypeBasicActivity string - -const ( - // TypeActivity ... - TypeActivity TypeBasicActivity = "Activity" - // TypeAzureMLBatchExecution ... - TypeAzureMLBatchExecution TypeBasicActivity = "AzureMLBatchExecution" - // TypeAzureMLUpdateResource ... - TypeAzureMLUpdateResource TypeBasicActivity = "AzureMLUpdateResource" - // TypeContainer ... - TypeContainer TypeBasicActivity = "Container" - // TypeCopy ... - TypeCopy TypeBasicActivity = "Copy" - // TypeCustom ... - TypeCustom TypeBasicActivity = "Custom" - // TypeDatabricksNotebook ... - TypeDatabricksNotebook TypeBasicActivity = "DatabricksNotebook" - // TypeDataLakeAnalyticsUSQL ... - TypeDataLakeAnalyticsUSQL TypeBasicActivity = "DataLakeAnalyticsU-SQL" - // TypeExecutePipeline ... - TypeExecutePipeline TypeBasicActivity = "ExecutePipeline" - // TypeExecuteSSISPackage ... - TypeExecuteSSISPackage TypeBasicActivity = "ExecuteSSISPackage" - // TypeExecution ... - TypeExecution TypeBasicActivity = "Execution" - // TypeFilter ... - TypeFilter TypeBasicActivity = "Filter" - // TypeForEach ... - TypeForEach TypeBasicActivity = "ForEach" - // TypeGetMetadata ... - TypeGetMetadata TypeBasicActivity = "GetMetadata" - // TypeHDInsightHive ... - TypeHDInsightHive TypeBasicActivity = "HDInsightHive" - // TypeHDInsightMapReduce ... - TypeHDInsightMapReduce TypeBasicActivity = "HDInsightMapReduce" - // TypeHDInsightPig ... - TypeHDInsightPig TypeBasicActivity = "HDInsightPig" - // TypeHDInsightSpark ... - TypeHDInsightSpark TypeBasicActivity = "HDInsightSpark" - // TypeHDInsightStreaming ... - TypeHDInsightStreaming TypeBasicActivity = "HDInsightStreaming" - // TypeIfCondition ... - TypeIfCondition TypeBasicActivity = "IfCondition" - // TypeLookup ... - TypeLookup TypeBasicActivity = "Lookup" - // TypeSQLServerStoredProcedure ... - TypeSQLServerStoredProcedure TypeBasicActivity = "SqlServerStoredProcedure" - // TypeUntil ... - TypeUntil TypeBasicActivity = "Until" - // TypeWait ... - TypeWait TypeBasicActivity = "Wait" - // TypeWebActivity ... - TypeWebActivity TypeBasicActivity = "WebActivity" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicActivityValues returns an array of possible values for the TypeBasicActivity const type. -func PossibleTypeBasicActivityValues() []TypeBasicActivity { - return []TypeBasicActivity{TypeActivity, TypeAzureMLBatchExecution, TypeAzureMLUpdateResource, TypeContainer, TypeCopy, TypeCustom, TypeDatabricksNotebook, TypeDataLakeAnalyticsUSQL, TypeExecutePipeline, TypeExecuteSSISPackage, TypeExecution, TypeFilter, TypeForEach, TypeGetMetadata, TypeHDInsightHive, TypeHDInsightMapReduce, TypeHDInsightPig, TypeHDInsightSpark, TypeHDInsightStreaming, TypeIfCondition, TypeLookup, TypeSQLServerStoredProcedure, TypeUntil, TypeWait, TypeWebActivity} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicCopySink enumerates the values for type basic copy sink. -type TypeBasicCopySink string - -const ( - // TypeAzureDataLakeStoreSink ... - TypeAzureDataLakeStoreSink TypeBasicCopySink = "AzureDataLakeStoreSink" - // TypeAzureQueueSink ... - TypeAzureQueueSink TypeBasicCopySink = "AzureQueueSink" - // TypeAzureSearchIndexSink ... - TypeAzureSearchIndexSink TypeBasicCopySink = "AzureSearchIndexSink" - // TypeAzureTableSink ... - TypeAzureTableSink TypeBasicCopySink = "AzureTableSink" - // TypeBlobSink ... - TypeBlobSink TypeBasicCopySink = "BlobSink" - // TypeCopySink ... - TypeCopySink TypeBasicCopySink = "CopySink" - // TypeDocumentDbCollectionSink ... - TypeDocumentDbCollectionSink TypeBasicCopySink = "DocumentDbCollectionSink" - // TypeDynamicsSink ... - TypeDynamicsSink TypeBasicCopySink = "DynamicsSink" - // TypeFileSystemSink ... - TypeFileSystemSink TypeBasicCopySink = "FileSystemSink" - // TypeOdbcSink ... - TypeOdbcSink TypeBasicCopySink = "OdbcSink" - // TypeOracleSink ... - TypeOracleSink TypeBasicCopySink = "OracleSink" - // TypeSalesforceSink ... - TypeSalesforceSink TypeBasicCopySink = "SalesforceSink" - // TypeSapCloudForCustomerSink ... - TypeSapCloudForCustomerSink TypeBasicCopySink = "SapCloudForCustomerSink" - // TypeSQLDWSink ... - TypeSQLDWSink TypeBasicCopySink = "SqlDWSink" - // TypeSQLSink ... - TypeSQLSink TypeBasicCopySink = "SqlSink" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicCopySinkValues returns an array of possible values for the TypeBasicCopySink const type. -func PossibleTypeBasicCopySinkValues() []TypeBasicCopySink { - return []TypeBasicCopySink{TypeAzureDataLakeStoreSink, TypeAzureQueueSink, TypeAzureSearchIndexSink, TypeAzureTableSink, TypeBlobSink, TypeCopySink, TypeDocumentDbCollectionSink, TypeDynamicsSink, TypeFileSystemSink, TypeOdbcSink, TypeOracleSink, TypeSalesforceSink, TypeSapCloudForCustomerSink, TypeSQLDWSink, TypeSQLSink} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicCopySource enumerates the values for type basic copy source. -type TypeBasicCopySource string - -const ( - // TypeAmazonMWSSource ... - TypeAmazonMWSSource TypeBasicCopySource = "AmazonMWSSource" - // TypeAmazonRedshiftSource ... - TypeAmazonRedshiftSource TypeBasicCopySource = "AmazonRedshiftSource" - // TypeAzureDataLakeStoreSource ... - TypeAzureDataLakeStoreSource TypeBasicCopySource = "AzureDataLakeStoreSource" - // TypeAzureMySQLSource ... - TypeAzureMySQLSource TypeBasicCopySource = "AzureMySqlSource" - // TypeAzurePostgreSQLSource ... - TypeAzurePostgreSQLSource TypeBasicCopySource = "AzurePostgreSqlSource" - // TypeAzureTableSource ... - TypeAzureTableSource TypeBasicCopySource = "AzureTableSource" - // TypeBlobSource ... - TypeBlobSource TypeBasicCopySource = "BlobSource" - // TypeCassandraSource ... - TypeCassandraSource TypeBasicCopySource = "CassandraSource" - // TypeConcurSource ... - TypeConcurSource TypeBasicCopySource = "ConcurSource" - // TypeCopySource ... - TypeCopySource TypeBasicCopySource = "CopySource" - // TypeCouchbaseSource ... - TypeCouchbaseSource TypeBasicCopySource = "CouchbaseSource" - // TypeDocumentDbCollectionSource ... - TypeDocumentDbCollectionSource TypeBasicCopySource = "DocumentDbCollectionSource" - // TypeDrillSource ... - TypeDrillSource TypeBasicCopySource = "DrillSource" - // TypeDynamicsSource ... - TypeDynamicsSource TypeBasicCopySource = "DynamicsSource" - // TypeEloquaSource ... - TypeEloquaSource TypeBasicCopySource = "EloquaSource" - // TypeFileSystemSource ... - TypeFileSystemSource TypeBasicCopySource = "FileSystemSource" - // TypeGoogleBigQuerySource ... - TypeGoogleBigQuerySource TypeBasicCopySource = "GoogleBigQuerySource" - // TypeGreenplumSource ... - TypeGreenplumSource TypeBasicCopySource = "GreenplumSource" - // TypeHBaseSource ... - TypeHBaseSource TypeBasicCopySource = "HBaseSource" - // TypeHdfsSource ... - TypeHdfsSource TypeBasicCopySource = "HdfsSource" - // TypeHiveSource ... - TypeHiveSource TypeBasicCopySource = "HiveSource" - // TypeHTTPSource ... - TypeHTTPSource TypeBasicCopySource = "HttpSource" - // TypeHubspotSource ... - TypeHubspotSource TypeBasicCopySource = "HubspotSource" - // TypeImpalaSource ... - TypeImpalaSource TypeBasicCopySource = "ImpalaSource" - // TypeJiraSource ... - TypeJiraSource TypeBasicCopySource = "JiraSource" - // TypeMagentoSource ... - TypeMagentoSource TypeBasicCopySource = "MagentoSource" - // TypeMariaDBSource ... - TypeMariaDBSource TypeBasicCopySource = "MariaDBSource" - // TypeMarketoSource ... - TypeMarketoSource TypeBasicCopySource = "MarketoSource" - // TypeMongoDbSource ... - TypeMongoDbSource TypeBasicCopySource = "MongoDbSource" - // TypeNetezzaSource ... - TypeNetezzaSource TypeBasicCopySource = "NetezzaSource" - // TypeOracleSource ... - TypeOracleSource TypeBasicCopySource = "OracleSource" - // TypePaypalSource ... - TypePaypalSource TypeBasicCopySource = "PaypalSource" - // TypePhoenixSource ... - TypePhoenixSource TypeBasicCopySource = "PhoenixSource" - // TypePrestoSource ... - TypePrestoSource TypeBasicCopySource = "PrestoSource" - // TypeQuickBooksSource ... - TypeQuickBooksSource TypeBasicCopySource = "QuickBooksSource" - // TypeRelationalSource ... - TypeRelationalSource TypeBasicCopySource = "RelationalSource" - // TypeResponsysSource ... - TypeResponsysSource TypeBasicCopySource = "ResponsysSource" - // TypeSalesforceMarketingCloudSource ... - TypeSalesforceMarketingCloudSource TypeBasicCopySource = "SalesforceMarketingCloudSource" - // TypeSalesforceSource ... - TypeSalesforceSource TypeBasicCopySource = "SalesforceSource" - // TypeSapCloudForCustomerSource ... - TypeSapCloudForCustomerSource TypeBasicCopySource = "SapCloudForCustomerSource" - // TypeSapEccSource ... - TypeSapEccSource TypeBasicCopySource = "SapEccSource" - // TypeServiceNowSource ... - TypeServiceNowSource TypeBasicCopySource = "ServiceNowSource" - // TypeShopifySource ... - TypeShopifySource TypeBasicCopySource = "ShopifySource" - // TypeSparkSource ... - TypeSparkSource TypeBasicCopySource = "SparkSource" - // TypeSQLDWSource ... - TypeSQLDWSource TypeBasicCopySource = "SqlDWSource" - // TypeSQLSource ... - TypeSQLSource TypeBasicCopySource = "SqlSource" - // TypeSquareSource ... - TypeSquareSource TypeBasicCopySource = "SquareSource" - // TypeVerticaSource ... - TypeVerticaSource TypeBasicCopySource = "VerticaSource" - // TypeWebSource ... - TypeWebSource TypeBasicCopySource = "WebSource" - // TypeXeroSource ... - TypeXeroSource TypeBasicCopySource = "XeroSource" - // TypeZohoSource ... - TypeZohoSource TypeBasicCopySource = "ZohoSource" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicCopySourceValues returns an array of possible values for the TypeBasicCopySource const type. -func PossibleTypeBasicCopySourceValues() []TypeBasicCopySource { - return []TypeBasicCopySource{TypeAmazonMWSSource, TypeAmazonRedshiftSource, TypeAzureDataLakeStoreSource, TypeAzureMySQLSource, TypeAzurePostgreSQLSource, TypeAzureTableSource, TypeBlobSource, TypeCassandraSource, TypeConcurSource, TypeCopySource, TypeCouchbaseSource, TypeDocumentDbCollectionSource, TypeDrillSource, TypeDynamicsSource, TypeEloquaSource, TypeFileSystemSource, TypeGoogleBigQuerySource, TypeGreenplumSource, TypeHBaseSource, TypeHdfsSource, TypeHiveSource, TypeHTTPSource, TypeHubspotSource, TypeImpalaSource, TypeJiraSource, TypeMagentoSource, TypeMariaDBSource, TypeMarketoSource, TypeMongoDbSource, TypeNetezzaSource, TypeOracleSource, TypePaypalSource, TypePhoenixSource, TypePrestoSource, TypeQuickBooksSource, TypeRelationalSource, TypeResponsysSource, TypeSalesforceMarketingCloudSource, TypeSalesforceSource, TypeSapCloudForCustomerSource, TypeSapEccSource, TypeServiceNowSource, TypeShopifySource, TypeSparkSource, TypeSQLDWSource, TypeSQLSource, TypeSquareSource, TypeVerticaSource, TypeWebSource, TypeXeroSource, TypeZohoSource} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicCopyTranslator enumerates the values for type basic copy translator. -type TypeBasicCopyTranslator string - -const ( - // TypeCopyTranslator ... - TypeCopyTranslator TypeBasicCopyTranslator = "CopyTranslator" - // TypeTabularTranslator ... - TypeTabularTranslator TypeBasicCopyTranslator = "TabularTranslator" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicCopyTranslatorValues returns an array of possible values for the TypeBasicCopyTranslator const type. -func PossibleTypeBasicCopyTranslatorValues() []TypeBasicCopyTranslator { - return []TypeBasicCopyTranslator{TypeCopyTranslator, TypeTabularTranslator} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicDataset enumerates the values for type basic dataset. -type TypeBasicDataset string - -const ( - // TypeAmazonMWSObject ... - TypeAmazonMWSObject TypeBasicDataset = "AmazonMWSObject" - // TypeAmazonS3Object ... - TypeAmazonS3Object TypeBasicDataset = "AmazonS3Object" - // TypeAzureBlob ... - TypeAzureBlob TypeBasicDataset = "AzureBlob" - // TypeAzureDataLakeStoreFile ... - TypeAzureDataLakeStoreFile TypeBasicDataset = "AzureDataLakeStoreFile" - // TypeAzureMySQLTable ... - TypeAzureMySQLTable TypeBasicDataset = "AzureMySqlTable" - // TypeAzurePostgreSQLTable ... - TypeAzurePostgreSQLTable TypeBasicDataset = "AzurePostgreSqlTable" - // TypeAzureSearchIndex ... - TypeAzureSearchIndex TypeBasicDataset = "AzureSearchIndex" - // TypeAzureSQLDWTable ... - TypeAzureSQLDWTable TypeBasicDataset = "AzureSqlDWTable" - // TypeAzureSQLTable ... - TypeAzureSQLTable TypeBasicDataset = "AzureSqlTable" - // TypeAzureTable ... - TypeAzureTable TypeBasicDataset = "AzureTable" - // TypeCassandraTable ... - TypeCassandraTable TypeBasicDataset = "CassandraTable" - // TypeConcurObject ... - TypeConcurObject TypeBasicDataset = "ConcurObject" - // TypeCouchbaseTable ... - TypeCouchbaseTable TypeBasicDataset = "CouchbaseTable" - // TypeCustomDataset ... - TypeCustomDataset TypeBasicDataset = "CustomDataset" - // TypeDataset ... - TypeDataset TypeBasicDataset = "Dataset" - // TypeDocumentDbCollection ... - TypeDocumentDbCollection TypeBasicDataset = "DocumentDbCollection" - // TypeDrillTable ... - TypeDrillTable TypeBasicDataset = "DrillTable" - // TypeDynamicsEntity ... - TypeDynamicsEntity TypeBasicDataset = "DynamicsEntity" - // TypeEloquaObject ... - TypeEloquaObject TypeBasicDataset = "EloquaObject" - // TypeFileShare ... - TypeFileShare TypeBasicDataset = "FileShare" - // TypeGoogleBigQueryObject ... - TypeGoogleBigQueryObject TypeBasicDataset = "GoogleBigQueryObject" - // TypeGreenplumTable ... - TypeGreenplumTable TypeBasicDataset = "GreenplumTable" - // TypeHBaseObject ... - TypeHBaseObject TypeBasicDataset = "HBaseObject" - // TypeHiveObject ... - TypeHiveObject TypeBasicDataset = "HiveObject" - // TypeHTTPFile ... - TypeHTTPFile TypeBasicDataset = "HttpFile" - // TypeHubspotObject ... - TypeHubspotObject TypeBasicDataset = "HubspotObject" - // TypeImpalaObject ... - TypeImpalaObject TypeBasicDataset = "ImpalaObject" - // TypeJiraObject ... - TypeJiraObject TypeBasicDataset = "JiraObject" - // TypeMagentoObject ... - TypeMagentoObject TypeBasicDataset = "MagentoObject" - // TypeMariaDBTable ... - TypeMariaDBTable TypeBasicDataset = "MariaDBTable" - // TypeMarketoObject ... - TypeMarketoObject TypeBasicDataset = "MarketoObject" - // TypeMongoDbCollection ... - TypeMongoDbCollection TypeBasicDataset = "MongoDbCollection" - // TypeNetezzaTable ... - TypeNetezzaTable TypeBasicDataset = "NetezzaTable" - // TypeODataResource ... - TypeODataResource TypeBasicDataset = "ODataResource" - // TypeOracleTable ... - TypeOracleTable TypeBasicDataset = "OracleTable" - // TypePaypalObject ... - TypePaypalObject TypeBasicDataset = "PaypalObject" - // TypePhoenixObject ... - TypePhoenixObject TypeBasicDataset = "PhoenixObject" - // TypePrestoObject ... - TypePrestoObject TypeBasicDataset = "PrestoObject" - // TypeQuickBooksObject ... - TypeQuickBooksObject TypeBasicDataset = "QuickBooksObject" - // TypeRelationalTable ... - TypeRelationalTable TypeBasicDataset = "RelationalTable" - // TypeResponsysObject ... - TypeResponsysObject TypeBasicDataset = "ResponsysObject" - // TypeSalesforceMarketingCloudObject ... - TypeSalesforceMarketingCloudObject TypeBasicDataset = "SalesforceMarketingCloudObject" - // TypeSalesforceObject ... - TypeSalesforceObject TypeBasicDataset = "SalesforceObject" - // TypeSapCloudForCustomerResource ... - TypeSapCloudForCustomerResource TypeBasicDataset = "SapCloudForCustomerResource" - // TypeSapEccResource ... - TypeSapEccResource TypeBasicDataset = "SapEccResource" - // TypeServiceNowObject ... - TypeServiceNowObject TypeBasicDataset = "ServiceNowObject" - // TypeShopifyObject ... - TypeShopifyObject TypeBasicDataset = "ShopifyObject" - // TypeSparkObject ... - TypeSparkObject TypeBasicDataset = "SparkObject" - // TypeSQLServerTable ... - TypeSQLServerTable TypeBasicDataset = "SqlServerTable" - // TypeSquareObject ... - TypeSquareObject TypeBasicDataset = "SquareObject" - // TypeVerticaTable ... - TypeVerticaTable TypeBasicDataset = "VerticaTable" - // TypeWebTable ... - TypeWebTable TypeBasicDataset = "WebTable" - // TypeXeroObject ... - TypeXeroObject TypeBasicDataset = "XeroObject" - // TypeZohoObject ... - TypeZohoObject TypeBasicDataset = "ZohoObject" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicDatasetValues returns an array of possible values for the TypeBasicDataset const type. -func PossibleTypeBasicDatasetValues() []TypeBasicDataset { - return []TypeBasicDataset{TypeAmazonMWSObject, TypeAmazonS3Object, TypeAzureBlob, TypeAzureDataLakeStoreFile, TypeAzureMySQLTable, TypeAzurePostgreSQLTable, TypeAzureSearchIndex, TypeAzureSQLDWTable, TypeAzureSQLTable, TypeAzureTable, TypeCassandraTable, TypeConcurObject, TypeCouchbaseTable, TypeCustomDataset, TypeDataset, TypeDocumentDbCollection, TypeDrillTable, TypeDynamicsEntity, TypeEloquaObject, TypeFileShare, TypeGoogleBigQueryObject, TypeGreenplumTable, TypeHBaseObject, TypeHiveObject, TypeHTTPFile, TypeHubspotObject, TypeImpalaObject, TypeJiraObject, TypeMagentoObject, TypeMariaDBTable, TypeMarketoObject, TypeMongoDbCollection, TypeNetezzaTable, TypeODataResource, TypeOracleTable, TypePaypalObject, TypePhoenixObject, TypePrestoObject, TypeQuickBooksObject, TypeRelationalTable, TypeResponsysObject, TypeSalesforceMarketingCloudObject, TypeSalesforceObject, TypeSapCloudForCustomerResource, TypeSapEccResource, TypeServiceNowObject, TypeShopifyObject, TypeSparkObject, TypeSQLServerTable, TypeSquareObject, TypeVerticaTable, TypeWebTable, TypeXeroObject, TypeZohoObject} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicDatasetCompression enumerates the values for type basic dataset compression. -type TypeBasicDatasetCompression string - -const ( - // TypeBZip2 ... - TypeBZip2 TypeBasicDatasetCompression = "BZip2" - // TypeDatasetCompression ... - TypeDatasetCompression TypeBasicDatasetCompression = "DatasetCompression" - // TypeDeflate ... - TypeDeflate TypeBasicDatasetCompression = "Deflate" - // TypeGZip ... - TypeGZip TypeBasicDatasetCompression = "GZip" - // TypeZipDeflate ... - TypeZipDeflate TypeBasicDatasetCompression = "ZipDeflate" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicDatasetCompressionValues returns an array of possible values for the TypeBasicDatasetCompression const type. -func PossibleTypeBasicDatasetCompressionValues() []TypeBasicDatasetCompression { - return []TypeBasicDatasetCompression{TypeBZip2, TypeDatasetCompression, TypeDeflate, TypeGZip, TypeZipDeflate} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicDatasetStorageFormat enumerates the values for type basic dataset storage format. -type TypeBasicDatasetStorageFormat string - -const ( - // TypeAvroFormat ... - TypeAvroFormat TypeBasicDatasetStorageFormat = "AvroFormat" - // TypeDatasetStorageFormat ... - TypeDatasetStorageFormat TypeBasicDatasetStorageFormat = "DatasetStorageFormat" - // TypeJSONFormat ... - TypeJSONFormat TypeBasicDatasetStorageFormat = "JsonFormat" - // TypeOrcFormat ... - TypeOrcFormat TypeBasicDatasetStorageFormat = "OrcFormat" - // TypeParquetFormat ... - TypeParquetFormat TypeBasicDatasetStorageFormat = "ParquetFormat" - // TypeTextFormat ... - TypeTextFormat TypeBasicDatasetStorageFormat = "TextFormat" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicDatasetStorageFormatValues returns an array of possible values for the TypeBasicDatasetStorageFormat const type. -func PossibleTypeBasicDatasetStorageFormatValues() []TypeBasicDatasetStorageFormat { - return []TypeBasicDatasetStorageFormat{TypeAvroFormat, TypeDatasetStorageFormat, TypeJSONFormat, TypeOrcFormat, TypeParquetFormat, TypeTextFormat} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicIntegrationRuntime enumerates the values for type basic integration runtime. -type TypeBasicIntegrationRuntime string - -const ( - // TypeIntegrationRuntime ... - TypeIntegrationRuntime TypeBasicIntegrationRuntime = "IntegrationRuntime" - // TypeManaged ... - TypeManaged TypeBasicIntegrationRuntime = "Managed" - // TypeSelfHosted ... - TypeSelfHosted TypeBasicIntegrationRuntime = "SelfHosted" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicIntegrationRuntimeValues returns an array of possible values for the TypeBasicIntegrationRuntime const type. -func PossibleTypeBasicIntegrationRuntimeValues() []TypeBasicIntegrationRuntime { - return []TypeBasicIntegrationRuntime{TypeIntegrationRuntime, TypeManaged, TypeSelfHosted} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicIntegrationRuntimeStatus enumerates the values for type basic integration runtime status. -type TypeBasicIntegrationRuntimeStatus string - -const ( - // TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus ... - TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus TypeBasicIntegrationRuntimeStatus = "IntegrationRuntimeStatus" - // TypeBasicIntegrationRuntimeStatusTypeManaged ... - TypeBasicIntegrationRuntimeStatusTypeManaged TypeBasicIntegrationRuntimeStatus = "Managed" - // TypeBasicIntegrationRuntimeStatusTypeSelfHosted ... - TypeBasicIntegrationRuntimeStatusTypeSelfHosted TypeBasicIntegrationRuntimeStatus = "SelfHosted" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicIntegrationRuntimeStatusValues returns an array of possible values for the TypeBasicIntegrationRuntimeStatus const type. -func PossibleTypeBasicIntegrationRuntimeStatusValues() []TypeBasicIntegrationRuntimeStatus { - return []TypeBasicIntegrationRuntimeStatus{TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus, TypeBasicIntegrationRuntimeStatusTypeManaged, TypeBasicIntegrationRuntimeStatusTypeSelfHosted} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicLinkedService enumerates the values for type basic linked service. -type TypeBasicLinkedService string - -const ( - // TypeAmazonMWS ... - TypeAmazonMWS TypeBasicLinkedService = "AmazonMWS" - // TypeAmazonRedshift ... - TypeAmazonRedshift TypeBasicLinkedService = "AmazonRedshift" - // TypeAmazonS3 ... - TypeAmazonS3 TypeBasicLinkedService = "AmazonS3" - // TypeAzureBatch ... - TypeAzureBatch TypeBasicLinkedService = "AzureBatch" - // TypeAzureDatabricks ... - TypeAzureDatabricks TypeBasicLinkedService = "AzureDatabricks" - // TypeAzureDataLakeAnalytics ... - TypeAzureDataLakeAnalytics TypeBasicLinkedService = "AzureDataLakeAnalytics" - // TypeAzureDataLakeStore ... - TypeAzureDataLakeStore TypeBasicLinkedService = "AzureDataLakeStore" - // TypeAzureKeyVault ... - TypeAzureKeyVault TypeBasicLinkedService = "AzureKeyVault" - // TypeAzureML ... - TypeAzureML TypeBasicLinkedService = "AzureML" - // TypeAzureMySQL ... - TypeAzureMySQL TypeBasicLinkedService = "AzureMySql" - // TypeAzurePostgreSQL ... - TypeAzurePostgreSQL TypeBasicLinkedService = "AzurePostgreSql" - // TypeAzureSearch ... - TypeAzureSearch TypeBasicLinkedService = "AzureSearch" - // TypeAzureSQLDatabase ... - TypeAzureSQLDatabase TypeBasicLinkedService = "AzureSqlDatabase" - // TypeAzureSQLDW ... - TypeAzureSQLDW TypeBasicLinkedService = "AzureSqlDW" - // TypeAzureStorage ... - TypeAzureStorage TypeBasicLinkedService = "AzureStorage" - // TypeCassandra ... - TypeCassandra TypeBasicLinkedService = "Cassandra" - // TypeConcur ... - TypeConcur TypeBasicLinkedService = "Concur" - // TypeCosmosDb ... - TypeCosmosDb TypeBasicLinkedService = "CosmosDb" - // TypeCouchbase ... - TypeCouchbase TypeBasicLinkedService = "Couchbase" - // TypeCustomDataSource ... - TypeCustomDataSource TypeBasicLinkedService = "CustomDataSource" - // TypeDb2 ... - TypeDb2 TypeBasicLinkedService = "Db2" - // TypeDrill ... - TypeDrill TypeBasicLinkedService = "Drill" - // TypeDynamics ... - TypeDynamics TypeBasicLinkedService = "Dynamics" - // TypeEloqua ... - TypeEloqua TypeBasicLinkedService = "Eloqua" - // TypeFileServer ... - TypeFileServer TypeBasicLinkedService = "FileServer" - // TypeFtpServer ... - TypeFtpServer TypeBasicLinkedService = "FtpServer" - // TypeGoogleBigQuery ... - TypeGoogleBigQuery TypeBasicLinkedService = "GoogleBigQuery" - // TypeGreenplum ... - TypeGreenplum TypeBasicLinkedService = "Greenplum" - // TypeHBase ... - TypeHBase TypeBasicLinkedService = "HBase" - // TypeHdfs ... - TypeHdfs TypeBasicLinkedService = "Hdfs" - // TypeHDInsight ... - TypeHDInsight TypeBasicLinkedService = "HDInsight" - // TypeHDInsightOnDemand ... - TypeHDInsightOnDemand TypeBasicLinkedService = "HDInsightOnDemand" - // TypeHive ... - TypeHive TypeBasicLinkedService = "Hive" - // TypeHTTPServer ... - TypeHTTPServer TypeBasicLinkedService = "HttpServer" - // TypeHubspot ... - TypeHubspot TypeBasicLinkedService = "Hubspot" - // TypeImpala ... - TypeImpala TypeBasicLinkedService = "Impala" - // TypeJira ... - TypeJira TypeBasicLinkedService = "Jira" - // TypeLinkedService ... - TypeLinkedService TypeBasicLinkedService = "LinkedService" - // TypeMagento ... - TypeMagento TypeBasicLinkedService = "Magento" - // TypeMariaDB ... - TypeMariaDB TypeBasicLinkedService = "MariaDB" - // TypeMarketo ... - TypeMarketo TypeBasicLinkedService = "Marketo" - // TypeMongoDb ... - TypeMongoDb TypeBasicLinkedService = "MongoDb" - // TypeMySQL ... - TypeMySQL TypeBasicLinkedService = "MySql" - // TypeNetezza ... - TypeNetezza TypeBasicLinkedService = "Netezza" - // TypeOData ... - TypeOData TypeBasicLinkedService = "OData" - // TypeOdbc ... - TypeOdbc TypeBasicLinkedService = "Odbc" - // TypeOracle ... - TypeOracle TypeBasicLinkedService = "Oracle" - // TypePaypal ... - TypePaypal TypeBasicLinkedService = "Paypal" - // TypePhoenix ... - TypePhoenix TypeBasicLinkedService = "Phoenix" - // TypePostgreSQL ... - TypePostgreSQL TypeBasicLinkedService = "PostgreSql" - // TypePresto ... - TypePresto TypeBasicLinkedService = "Presto" - // TypeQuickBooks ... - TypeQuickBooks TypeBasicLinkedService = "QuickBooks" - // TypeResponsys ... - TypeResponsys TypeBasicLinkedService = "Responsys" - // TypeSalesforce ... - TypeSalesforce TypeBasicLinkedService = "Salesforce" - // TypeSalesforceMarketingCloud ... - TypeSalesforceMarketingCloud TypeBasicLinkedService = "SalesforceMarketingCloud" - // TypeSapBW ... - TypeSapBW TypeBasicLinkedService = "SapBW" - // TypeSapCloudForCustomer ... - TypeSapCloudForCustomer TypeBasicLinkedService = "SapCloudForCustomer" - // TypeSapEcc ... - TypeSapEcc TypeBasicLinkedService = "SapEcc" - // TypeSapHana ... - TypeSapHana TypeBasicLinkedService = "SapHana" - // TypeServiceNow ... - TypeServiceNow TypeBasicLinkedService = "ServiceNow" - // TypeSftp ... - TypeSftp TypeBasicLinkedService = "Sftp" - // TypeShopify ... - TypeShopify TypeBasicLinkedService = "Shopify" - // TypeSpark ... - TypeSpark TypeBasicLinkedService = "Spark" - // TypeSQLServer ... - TypeSQLServer TypeBasicLinkedService = "SqlServer" - // TypeSquare ... - TypeSquare TypeBasicLinkedService = "Square" - // TypeSybase ... - TypeSybase TypeBasicLinkedService = "Sybase" - // TypeTeradata ... - TypeTeradata TypeBasicLinkedService = "Teradata" - // TypeVertica ... - TypeVertica TypeBasicLinkedService = "Vertica" - // TypeWeb ... - TypeWeb TypeBasicLinkedService = "Web" - // TypeXero ... - TypeXero TypeBasicLinkedService = "Xero" - // TypeZoho ... - TypeZoho TypeBasicLinkedService = "Zoho" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicLinkedServiceValues returns an array of possible values for the TypeBasicLinkedService const type. -func PossibleTypeBasicLinkedServiceValues() []TypeBasicLinkedService { - return []TypeBasicLinkedService{TypeAmazonMWS, TypeAmazonRedshift, TypeAmazonS3, TypeAzureBatch, TypeAzureDatabricks, TypeAzureDataLakeAnalytics, TypeAzureDataLakeStore, TypeAzureKeyVault, TypeAzureML, TypeAzureMySQL, TypeAzurePostgreSQL, TypeAzureSearch, TypeAzureSQLDatabase, TypeAzureSQLDW, TypeAzureStorage, TypeCassandra, TypeConcur, TypeCosmosDb, TypeCouchbase, TypeCustomDataSource, TypeDb2, TypeDrill, TypeDynamics, TypeEloqua, TypeFileServer, TypeFtpServer, TypeGoogleBigQuery, TypeGreenplum, TypeHBase, TypeHdfs, TypeHDInsight, TypeHDInsightOnDemand, TypeHive, TypeHTTPServer, TypeHubspot, TypeImpala, TypeJira, TypeLinkedService, TypeMagento, TypeMariaDB, TypeMarketo, TypeMongoDb, TypeMySQL, TypeNetezza, TypeOData, TypeOdbc, TypeOracle, TypePaypal, TypePhoenix, TypePostgreSQL, TypePresto, TypeQuickBooks, TypeResponsys, TypeSalesforce, TypeSalesforceMarketingCloud, TypeSapBW, TypeSapCloudForCustomer, TypeSapEcc, TypeSapHana, TypeServiceNow, TypeSftp, TypeShopify, TypeSpark, TypeSQLServer, TypeSquare, TypeSybase, TypeTeradata, TypeVertica, TypeWeb, TypeXero, TypeZoho} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TypeBasicTrigger enumerates the values for type basic trigger. -type TypeBasicTrigger string - -const ( - // TypeBlobTrigger ... - TypeBlobTrigger TypeBasicTrigger = "BlobTrigger" - // TypeMultiplePipelineTrigger ... - TypeMultiplePipelineTrigger TypeBasicTrigger = "MultiplePipelineTrigger" - // TypeScheduleTrigger ... - TypeScheduleTrigger TypeBasicTrigger = "ScheduleTrigger" - // TypeTrigger ... - TypeTrigger TypeBasicTrigger = "Trigger" - // TypeTumblingWindowTrigger ... - TypeTumblingWindowTrigger TypeBasicTrigger = "TumblingWindowTrigger" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleTypeBasicTriggerValues returns an array of possible values for the TypeBasicTrigger const type. -func PossibleTypeBasicTriggerValues() []TypeBasicTrigger { - return []TypeBasicTrigger{TypeBlobTrigger, TypeMultiplePipelineTrigger, TypeScheduleTrigger, TypeTrigger, TypeTumblingWindowTrigger} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebActivityMethod enumerates the values for web activity method. -type WebActivityMethod string - -const ( - // DELETE ... - DELETE WebActivityMethod = "DELETE" - // GET ... - GET WebActivityMethod = "GET" - // POST ... - POST WebActivityMethod = "POST" - // PUT ... - PUT WebActivityMethod = "PUT" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PossibleWebActivityMethodValues returns an array of possible values for the WebActivityMethod const type. -func PossibleWebActivityMethodValues() []WebActivityMethod { - return []WebActivityMethod{DELETE, GET, POST, PUT} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicActivity a pipeline activity. -type BasicActivity interface { - AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) - AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) - AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) - AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) - AsGetMetadataActivity() (*GetMetadataActivity, bool) - AsWebActivity() (*WebActivity, bool) - AsLookupActivity() (*LookupActivity, bool) - AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) - AsCustomActivity() (*CustomActivity, bool) - AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) - AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) - AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) - AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) - AsHDInsightPigActivity() (*HDInsightPigActivity, bool) - AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) - AsCopyActivity() (*CopyActivity, bool) - AsExecutionActivity() (*ExecutionActivity, bool) - AsBasicExecutionActivity() (BasicExecutionActivity, bool) - AsFilterActivity() (*FilterActivity, bool) - AsUntilActivity() (*UntilActivity, bool) - AsWaitActivity() (*WaitActivity, bool) - AsForEachActivity() (*ForEachActivity, bool) - AsIfConditionActivity() (*IfConditionActivity, bool) - AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) - AsControlActivity() (*ControlActivity, bool) - AsBasicControlActivity() (BasicControlActivity, bool) - AsActivity() (*Activity, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Activity a pipeline activity. -type Activity struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -func unmarshalBasicActivity(body []byte) (BasicActivity, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeDatabricksNotebook): - var dna DatabricksNotebookActivity - err := json.Unmarshal(body, &dna) - return dna, err - case string(TypeDataLakeAnalyticsUSQL): - var dlaua DataLakeAnalyticsUSQLActivity - err := json.Unmarshal(body, &dlaua) - return dlaua, err - case string(TypeAzureMLUpdateResource): - var amura AzureMLUpdateResourceActivity - err := json.Unmarshal(body, &amura) - return amura, err - case string(TypeAzureMLBatchExecution): - var ambea AzureMLBatchExecutionActivity - err := json.Unmarshal(body, &ambea) - return ambea, err - case string(TypeGetMetadata): - var gma GetMetadataActivity - err := json.Unmarshal(body, &gma) - return gma, err - case string(TypeWebActivity): - var wa WebActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeLookup): - var la LookupActivity - err := json.Unmarshal(body, &la) - return la, err - case string(TypeSQLServerStoredProcedure): - var ssspa SQLServerStoredProcedureActivity - err := json.Unmarshal(body, &ssspa) - return ssspa, err - case string(TypeCustom): - var ca CustomActivity - err := json.Unmarshal(body, &ca) - return ca, err - case string(TypeExecuteSSISPackage): - var espa ExecuteSSISPackageActivity - err := json.Unmarshal(body, &espa) - return espa, err - case string(TypeHDInsightSpark): - var hisa HDInsightSparkActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeHDInsightStreaming): - var hisa HDInsightStreamingActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeHDInsightMapReduce): - var himra HDInsightMapReduceActivity - err := json.Unmarshal(body, &himra) - return himra, err - case string(TypeHDInsightPig): - var hipa HDInsightPigActivity - err := json.Unmarshal(body, &hipa) - return hipa, err - case string(TypeHDInsightHive): - var hiha HDInsightHiveActivity - err := json.Unmarshal(body, &hiha) - return hiha, err - case string(TypeCopy): - var ca CopyActivity - err := json.Unmarshal(body, &ca) - return ca, err - case string(TypeExecution): - var ea ExecutionActivity - err := json.Unmarshal(body, &ea) - return ea, err - case string(TypeFilter): - var fa FilterActivity - err := json.Unmarshal(body, &fa) - return fa, err - case string(TypeUntil): - var ua UntilActivity - err := json.Unmarshal(body, &ua) - return ua, err - case string(TypeWait): - var wa WaitActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeForEach): - var fea ForEachActivity - err := json.Unmarshal(body, &fea) - return fea, err - case string(TypeIfCondition): - var ica IfConditionActivity - err := json.Unmarshal(body, &ica) - return ica, err - case string(TypeExecutePipeline): - var epa ExecutePipelineActivity - err := json.Unmarshal(body, &epa) - return epa, err - case string(TypeContainer): - var ca ControlActivity - err := json.Unmarshal(body, &ca) - return ca, err - default: - var a Activity - err := json.Unmarshal(body, &a) - return a, err - } -} -func unmarshalBasicActivityArray(body []byte) ([]BasicActivity, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - aArray := make([]BasicActivity, len(rawMessages)) - - for index, rawMessage := range rawMessages { - a, err := unmarshalBasicActivity(*rawMessage) - if err != nil { - return nil, err - } - aArray[index] = a - } - return aArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Activity. -func (a Activity) MarshalJSON() ([]byte, error) { - a.Type = TypeActivity - objectMap := make(map[string]interface{}) - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Description != nil { - objectMap["description"] = a.Description - } - if a.DependsOn != nil { - objectMap["dependsOn"] = a.DependsOn - } - if a.Type != "" { - objectMap["type"] = a.Type - } - for k, v := range a.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for Activity. -func (a Activity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for Activity. -func (a Activity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for Activity. -func (a Activity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for Activity. -func (a Activity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for Activity. -func (a Activity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for Activity. -func (a Activity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for Activity. -func (a Activity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for Activity. -func (a Activity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for Activity. -func (a Activity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for Activity. -func (a Activity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for Activity. -func (a Activity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for Activity. -func (a Activity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for Activity. -func (a Activity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for Activity. -func (a Activity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for Activity. -func (a Activity) AsActivity() (*Activity, bool) { - return &a, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for Activity. -func (a Activity) AsBasicActivity() (BasicActivity, bool) { - return &a, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ActivityDependency activity dependency information. -type ActivityDependency struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Activity - Activity name. - Activity *string `json:"activity,omitempty"` - // DependencyConditions - Match-Condition for the dependency. - DependencyConditions *[]DependencyCondition `json:"dependencyConditions,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ActivityDependency. -func (ad ActivityDependency) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ad.Activity != nil { - objectMap["activity"] = ad.Activity - } - if ad.DependencyConditions != nil { - objectMap["dependencyConditions"] = ad.DependencyConditions - } - for k, v := range ad.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ActivityPolicy execution policy for an activity. -type ActivityPolicy struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Timeout - Specifies the timeout for the activity to run. The default timeout is 7 days. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` - // Retry - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Retry interface{} `json:"retry,omitempty"` - // RetryIntervalInSeconds - Interval between each retry attempt (in seconds). The default is 30 sec. - RetryIntervalInSeconds *int32 `json:"retryIntervalInSeconds,omitempty"` - // SecureOutput - When set to true, Output from activity is considered as secure and will not be logged to monitoring. - SecureOutput *bool `json:"secureOutput,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ActivityPolicy. -func (ap ActivityPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["timeout"] = ap.Timeout - objectMap["retry"] = ap.Retry - if ap.RetryIntervalInSeconds != nil { - objectMap["retryIntervalInSeconds"] = ap.RetryIntervalInSeconds - } - if ap.SecureOutput != nil { - objectMap["secureOutput"] = ap.SecureOutput - } - for k, v := range ap.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ActivityRun information about an activity run in a pipeline. -type ActivityRun struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // PipelineName - The name of the pipeline. - PipelineName *string `json:"pipelineName,omitempty"` - // PipelineRunID - The id of the pipeline run. - PipelineRunID *string `json:"pipelineRunId,omitempty"` - // ActivityName - The name of the activity. - ActivityName *string `json:"activityName,omitempty"` - // ActivityType - The type of the activity. - ActivityType *string `json:"activityType,omitempty"` - // ActivityRunID - The id of the activity run. - ActivityRunID *string `json:"activityRunId,omitempty"` - // LinkedServiceName - The name of the compute linked service. - LinkedServiceName *string `json:"linkedServiceName,omitempty"` - // Status - The status of the activity run. - Status *string `json:"status,omitempty"` - // ActivityRunStart - The start time of the activity run in 'ISO 8601' format. - ActivityRunStart *date.Time `json:"activityRunStart,omitempty"` - // ActivityRunEnd - The end time of the activity run in 'ISO 8601' format. - ActivityRunEnd *date.Time `json:"activityRunEnd,omitempty"` - // DurationInMs - The duration of the activity run. - DurationInMs *int32 `json:"durationInMs,omitempty"` - // Input - The input for the activity. - Input interface{} `json:"input,omitempty"` - // Output - The output for the activity. - Output interface{} `json:"output,omitempty"` - // Error - The error if any from the activity run. - Error interface{} `json:"error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ActivityRun. -func (ar ActivityRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ar.PipelineName != nil { - objectMap["pipelineName"] = ar.PipelineName - } - if ar.PipelineRunID != nil { - objectMap["pipelineRunId"] = ar.PipelineRunID - } - if ar.ActivityName != nil { - objectMap["activityName"] = ar.ActivityName - } - if ar.ActivityType != nil { - objectMap["activityType"] = ar.ActivityType - } - if ar.ActivityRunID != nil { - objectMap["activityRunId"] = ar.ActivityRunID - } - if ar.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ar.LinkedServiceName - } - if ar.Status != nil { - objectMap["status"] = ar.Status - } - if ar.ActivityRunStart != nil { - objectMap["activityRunStart"] = ar.ActivityRunStart - } - if ar.ActivityRunEnd != nil { - objectMap["activityRunEnd"] = ar.ActivityRunEnd - } - if ar.DurationInMs != nil { - objectMap["durationInMs"] = ar.DurationInMs - } - objectMap["input"] = ar.Input - objectMap["output"] = ar.Output - objectMap["error"] = ar.Error - for k, v := range ar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ActivityRunsListResponse a list activity runs. -type ActivityRunsListResponse struct { - autorest.Response `json:"-"` - // Value - List of activity runs. - Value *[]ActivityRun `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ActivityRunsListResponseIterator provides access to a complete listing of ActivityRun values. -type ActivityRunsListResponseIterator struct { - i int - page ActivityRunsListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ActivityRunsListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ActivityRunsListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter ActivityRunsListResponseIterator) Response() ActivityRunsListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ActivityRunsListResponseIterator) Value() ActivityRun { - if !iter.page.NotDone() { - return ActivityRun{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (arlr ActivityRunsListResponse) IsEmpty() bool { - return arlr.Value == nil || len(*arlr.Value) == 0 -} - -// activityRunsListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (arlr ActivityRunsListResponse) activityRunsListResponsePreparer() (*http.Request, error) { - if arlr.NextLink == nil || len(to.String(arlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(arlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ActivityRunsListResponsePage contains a page of ActivityRun values. -type ActivityRunsListResponsePage struct { - fn func(ActivityRunsListResponse) (ActivityRunsListResponse, error) - arlr ActivityRunsListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ActivityRunsListResponsePage) Next() error { - next, err := page.fn(page.arlr) - if err != nil { - return err - } - page.arlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ActivityRunsListResponsePage) NotDone() bool { - return !page.arlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page ActivityRunsListResponsePage) Response() ActivityRunsListResponse { - return page.arlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page ActivityRunsListResponsePage) Values() []ActivityRun { - if page.arlr.IsEmpty() { - return nil - } - return *page.arlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonMWSLinkedService amazon Marketplace Web Service linked service. -type AmazonMWSLinkedService struct { - // AmazonMWSLinkedServiceTypeProperties - Amazon Marketplace Web Service linked service properties. - *AmazonMWSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) MarshalJSON() ([]byte, error) { - amls.Type = TypeAmazonMWS - objectMap := make(map[string]interface{}) - if amls.AmazonMWSLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amls.AmazonMWSLinkedServiceTypeProperties - } - if amls.ConnectVia != nil { - objectMap["connectVia"] = amls.ConnectVia - } - if amls.Description != nil { - objectMap["description"] = amls.Description - } - if amls.Parameters != nil { - objectMap["parameters"] = amls.Parameters - } - if amls.Annotations != nil { - objectMap["annotations"] = amls.Annotations - } - if amls.Type != "" { - objectMap["type"] = amls.Type - } - for k, v := range amls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return &amls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonMWSLinkedService struct. -func (amls *AmazonMWSLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonMWSLinkedServiceTypeProperties AmazonMWSLinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonMWSLinkedServiceTypeProperties) - if err != nil { - return err - } - amls.AmazonMWSLinkedServiceTypeProperties = &amazonMWSLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amls.AdditionalProperties == nil { - amls.AdditionalProperties = make(map[string]interface{}) - } - amls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonMWSLinkedServiceTypeProperties amazon Marketplace Web Service linked service properties. -type AmazonMWSLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // MarketplaceID - The Amazon Marketplace ID you want to retrieve data from. To retrive data from multiple Marketplace IDs, seperate them with a comma (,). (i.e. A2EUQ1WTGCTBG2) - MarketplaceID interface{} `json:"marketplaceID,omitempty"` - // SellerID - The Amazon seller ID. - SellerID interface{} `json:"sellerID,omitempty"` - // MwsAuthToken - The Amazon MWS authentication token. - MwsAuthToken BasicSecretBase `json:"mwsAuthToken,omitempty"` - // AccessKeyID - The access key id used to access data. - AccessKeyID interface{} `json:"accessKeyId,omitempty"` - // SecretKey - The secret key used to access data. - SecretKey BasicSecretBase `json:"secretKey,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonMWSLinkedServiceTypeProperties struct. -func (amlstp *AmazonMWSLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - amlstp.Endpoint = endpoint - } - case "marketplaceID": - if v != nil { - var marketplaceID interface{} - err = json.Unmarshal(*v, &marketplaceID) - if err != nil { - return err - } - amlstp.MarketplaceID = marketplaceID - } - case "sellerID": - if v != nil { - var sellerID interface{} - err = json.Unmarshal(*v, &sellerID) - if err != nil { - return err - } - amlstp.SellerID = sellerID - } - case "mwsAuthToken": - if v != nil { - mwsAuthToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.MwsAuthToken = mwsAuthToken - } - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - amlstp.AccessKeyID = accessKeyID - } - case "secretKey": - if v != nil { - secretKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.SecretKey = secretKey - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - amlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - amlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - amlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonMWSObjectDataset amazon Marketplace Web Service dataset. -type AmazonMWSObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) MarshalJSON() ([]byte, error) { - amod.Type = TypeAmazonMWSObject - objectMap := make(map[string]interface{}) - if amod.Description != nil { - objectMap["description"] = amod.Description - } - objectMap["structure"] = amod.Structure - if amod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amod.LinkedServiceName - } - if amod.Parameters != nil { - objectMap["parameters"] = amod.Parameters - } - if amod.Annotations != nil { - objectMap["annotations"] = amod.Annotations - } - if amod.Type != "" { - objectMap["type"] = amod.Type - } - for k, v := range amod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return &amod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &amod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonMWSSource a copy activity Amazon Marketplace Web Service source. -type AmazonMWSSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AmazonMWSSource. -func (ams AmazonMWSSource) MarshalJSON() ([]byte, error) { - ams.Type = TypeAmazonMWSSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ams.Query - objectMap["sourceRetryCount"] = ams.SourceRetryCount - objectMap["sourceRetryWait"] = ams.SourceRetryWait - if ams.Type != "" { - objectMap["type"] = ams.Type - } - for k, v := range ams.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return &ams, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ams, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonRedshiftLinkedService linked service for Amazon Redshift. -type AmazonRedshiftLinkedService struct { - // AmazonRedshiftLinkedServiceTypeProperties - Amazon Redshift linked service properties. - *AmazonRedshiftLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error) { - arls.Type = TypeAmazonRedshift - objectMap := make(map[string]interface{}) - if arls.AmazonRedshiftLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = arls.AmazonRedshiftLinkedServiceTypeProperties - } - if arls.ConnectVia != nil { - objectMap["connectVia"] = arls.ConnectVia - } - if arls.Description != nil { - objectMap["description"] = arls.Description - } - if arls.Parameters != nil { - objectMap["parameters"] = arls.Parameters - } - if arls.Annotations != nil { - objectMap["annotations"] = arls.Annotations - } - if arls.Type != "" { - objectMap["type"] = arls.Type - } - for k, v := range arls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return &arls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &arls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftLinkedService struct. -func (arls *AmazonRedshiftLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonRedshiftLinkedServiceTypeProperties AmazonRedshiftLinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonRedshiftLinkedServiceTypeProperties) - if err != nil { - return err - } - arls.AmazonRedshiftLinkedServiceTypeProperties = &amazonRedshiftLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arls.AdditionalProperties == nil { - arls.AdditionalProperties = make(map[string]interface{}) - } - arls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - arls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - arls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - arls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - arls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonRedshiftLinkedServiceTypeProperties amazon Redshift linked service properties. -type AmazonRedshiftLinkedServiceTypeProperties struct { - // Server - The name of the Amazon Redshift server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Username - The username of the Amazon Redshift source. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password of the Amazon Redshift source. - Password BasicSecretBase `json:"password,omitempty"` - // Database - The database name of the Amazon Redshift source. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Port - The TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: integer (or Expression with resultType integer). - Port interface{} `json:"port,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftLinkedServiceTypeProperties struct. -func (arlstp *AmazonRedshiftLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - arlstp.Server = server - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - arlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - arlstp.Password = password - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - arlstp.Database = databaseVar - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - arlstp.Port = port - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - arlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonRedshiftSource a copy activity source for Amazon Redshift Source. -type AmazonRedshiftSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // RedshiftUnloadSettings - The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then copied into the targeted sink from the interim S3. - RedshiftUnloadSettings *RedshiftUnloadSettings `json:"redshiftUnloadSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) MarshalJSON() ([]byte, error) { - ars.Type = TypeAmazonRedshiftSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ars.Query - if ars.RedshiftUnloadSettings != nil { - objectMap["redshiftUnloadSettings"] = ars.RedshiftUnloadSettings - } - objectMap["sourceRetryCount"] = ars.SourceRetryCount - objectMap["sourceRetryWait"] = ars.SourceRetryWait - if ars.Type != "" { - objectMap["type"] = ars.Type - } - for k, v := range ars.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return &ars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonS3Dataset a single Amazon Simple Storage Service (S3) object or a set of S3 objects. -type AmazonS3Dataset struct { - // AmazonS3DatasetTypeProperties - Amazon S3 dataset properties. - *AmazonS3DatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AmazonS3Dataset. -func (asd AmazonS3Dataset) MarshalJSON() ([]byte, error) { - asd.Type = TypeAmazonS3Object - objectMap := make(map[string]interface{}) - if asd.AmazonS3DatasetTypeProperties != nil { - objectMap["typeProperties"] = asd.AmazonS3DatasetTypeProperties - } - if asd.Description != nil { - objectMap["description"] = asd.Description - } - objectMap["structure"] = asd.Structure - if asd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asd.LinkedServiceName - } - if asd.Parameters != nil { - objectMap["parameters"] = asd.Parameters - } - if asd.Annotations != nil { - objectMap["annotations"] = asd.Annotations - } - if asd.Type != "" { - objectMap["type"] = asd.Type - } - for k, v := range asd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return &asd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsBasicDataset() (BasicDataset, bool) { - return &asd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonS3Dataset struct. -func (asd *AmazonS3Dataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonS3DatasetTypeProperties AmazonS3DatasetTypeProperties - err = json.Unmarshal(*v, &amazonS3DatasetTypeProperties) - if err != nil { - return err - } - asd.AmazonS3DatasetTypeProperties = &amazonS3DatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asd.AdditionalProperties == nil { - asd.AdditionalProperties = make(map[string]interface{}) - } - asd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - asd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - asd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonS3DatasetTypeProperties amazon S3 dataset properties. -type AmazonS3DatasetTypeProperties struct { - // BucketName - The name of the Amazon S3 bucket. Type: string (or Expression with resultType string). - BucketName interface{} `json:"bucketName,omitempty"` - // Key - The key of the Amazon S3 object. Type: string (or Expression with resultType string). - Key interface{} `json:"key,omitempty"` - // Prefix - The prefix filter for the S3 object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // Version - The version for the S3 object. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // Format - The format of files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the Amazon S3 object. - Compression BasicDatasetCompression `json:"compression,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonS3DatasetTypeProperties struct. -func (asdtp *AmazonS3DatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "bucketName": - if v != nil { - var bucketName interface{} - err = json.Unmarshal(*v, &bucketName) - if err != nil { - return err - } - asdtp.BucketName = bucketName - } - case "key": - if v != nil { - var key interface{} - err = json.Unmarshal(*v, &key) - if err != nil { - return err - } - asdtp.Key = key - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - asdtp.Prefix = prefix - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - asdtp.Version = version - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - asdtp.Format = formatVar - } - case "compression": - if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) - if err != nil { - return err - } - asdtp.Compression = compression - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonS3LinkedService linked service for Amazon S3. -type AmazonS3LinkedService struct { - // AmazonS3LinkedServiceTypeProperties - Amazon S3 linked service properties. - *AmazonS3LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) MarshalJSON() ([]byte, error) { - asls.Type = TypeAmazonS3 - objectMap := make(map[string]interface{}) - if asls.AmazonS3LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asls.AmazonS3LinkedServiceTypeProperties - } - if asls.ConnectVia != nil { - objectMap["connectVia"] = asls.ConnectVia - } - if asls.Description != nil { - objectMap["description"] = asls.Description - } - if asls.Parameters != nil { - objectMap["parameters"] = asls.Parameters - } - if asls.Annotations != nil { - objectMap["annotations"] = asls.Annotations - } - if asls.Type != "" { - objectMap["type"] = asls.Type - } - for k, v := range asls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return &asls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonS3LinkedService struct. -func (asls *AmazonS3LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonS3LinkedServiceTypeProperties AmazonS3LinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonS3LinkedServiceTypeProperties) - if err != nil { - return err - } - asls.AmazonS3LinkedServiceTypeProperties = &amazonS3LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asls.AdditionalProperties == nil { - asls.AdditionalProperties = make(map[string]interface{}) - } - asls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AmazonS3LinkedServiceTypeProperties amazon S3 linked service properties. -type AmazonS3LinkedServiceTypeProperties struct { - // AccessKeyID - The access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: string (or Expression with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` - // SecretAccessKey - The secret access key of the Amazon S3 Identity and Access Management (IAM) user. - SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AmazonS3LinkedServiceTypeProperties struct. -func (aslstp *AmazonS3LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - aslstp.AccessKeyID = accessKeyID - } - case "secretAccessKey": - if v != nil { - secretAccessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aslstp.SecretAccessKey = secretAccessKey - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - aslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AvroFormat the data stored in Avro format. -type AvroFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AvroFormat. -func (af AvroFormat) MarshalJSON() ([]byte, error) { - af.Type = TypeAvroFormat - objectMap := make(map[string]interface{}) - objectMap["serializer"] = af.Serializer - objectMap["deserializer"] = af.Deserializer - if af.Type != "" { - objectMap["type"] = af.Type - } - for k, v := range af.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsParquetFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOrcFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAvroFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsAvroFormat() (*AvroFormat, bool) { - return &af, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJSONFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTextFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &af, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureBatchLinkedService azure Batch linked service. -type AzureBatchLinkedService struct { - // AzureBatchLinkedServiceTypeProperties - Azure Batch linked service properties. - *AzureBatchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) MarshalJSON() ([]byte, error) { - abls.Type = TypeAzureBatch - objectMap := make(map[string]interface{}) - if abls.AzureBatchLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = abls.AzureBatchLinkedServiceTypeProperties - } - if abls.ConnectVia != nil { - objectMap["connectVia"] = abls.ConnectVia - } - if abls.Description != nil { - objectMap["description"] = abls.Description - } - if abls.Parameters != nil { - objectMap["parameters"] = abls.Parameters - } - if abls.Annotations != nil { - objectMap["annotations"] = abls.Annotations - } - if abls.Type != "" { - objectMap["type"] = abls.Type - } - for k, v := range abls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return &abls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &abls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureBatchLinkedService struct. -func (abls *AzureBatchLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureBatchLinkedServiceTypeProperties AzureBatchLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureBatchLinkedServiceTypeProperties) - if err != nil { - return err - } - abls.AzureBatchLinkedServiceTypeProperties = &azureBatchLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abls.AdditionalProperties == nil { - abls.AdditionalProperties = make(map[string]interface{}) - } - abls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - abls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - abls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - abls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - abls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureBatchLinkedServiceTypeProperties azure Batch linked service properties. -type AzureBatchLinkedServiceTypeProperties struct { - // AccountName - The Azure Batch account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // AccessKey - The Azure Batch account access key. - AccessKey BasicSecretBase `json:"accessKey,omitempty"` - // BatchURI - The Azure Batch URI. Type: string (or Expression with resultType string). - BatchURI interface{} `json:"batchUri,omitempty"` - // PoolName - The Azure Batch pool name. Type: string (or Expression with resultType string). - PoolName interface{} `json:"poolName,omitempty"` - // LinkedServiceName - The Azure Storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureBatchLinkedServiceTypeProperties struct. -func (ablstp *AzureBatchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accountName": - if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) - if err != nil { - return err - } - ablstp.AccountName = accountName - } - case "accessKey": - if v != nil { - accessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ablstp.AccessKey = accessKey - } - case "batchUri": - if v != nil { - var batchURI interface{} - err = json.Unmarshal(*v, &batchURI) - if err != nil { - return err - } - ablstp.BatchURI = batchURI - } - case "poolName": - if v != nil { - var poolName interface{} - err = json.Unmarshal(*v, &poolName) - if err != nil { - return err - } - ablstp.PoolName = poolName - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ablstp.LinkedServiceName = &linkedServiceName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - ablstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureBlobDataset the Azure Blob storage. -type AzureBlobDataset struct { - // AzureBlobDatasetTypeProperties - Azure Blob dataset properties. - *AzureBlobDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureBlobDataset. -func (abd AzureBlobDataset) MarshalJSON() ([]byte, error) { - abd.Type = TypeAzureBlob - objectMap := make(map[string]interface{}) - if abd.AzureBlobDatasetTypeProperties != nil { - objectMap["typeProperties"] = abd.AzureBlobDatasetTypeProperties - } - if abd.Description != nil { - objectMap["description"] = abd.Description - } - objectMap["structure"] = abd.Structure - if abd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = abd.LinkedServiceName - } - if abd.Parameters != nil { - objectMap["parameters"] = abd.Parameters - } - if abd.Annotations != nil { - objectMap["annotations"] = abd.Annotations - } - if abd.Type != "" { - objectMap["type"] = abd.Type - } - for k, v := range abd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return &abd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsBasicDataset() (BasicDataset, bool) { - return &abd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureBlobDataset struct. -func (abd *AzureBlobDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureBlobDatasetTypeProperties AzureBlobDatasetTypeProperties - err = json.Unmarshal(*v, &azureBlobDatasetTypeProperties) - if err != nil { - return err - } - abd.AzureBlobDatasetTypeProperties = &azureBlobDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abd.AdditionalProperties == nil { - abd.AdditionalProperties = make(map[string]interface{}) - } - abd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - abd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - abd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - abd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - abd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - abd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureBlobDatasetTypeProperties azure Blob dataset properties. -type AzureBlobDatasetTypeProperties struct { - // FolderPath - The path of the Azure Blob storage. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // TableRootLocation - The root of blob path. Type: string (or Expression with resultType string). - TableRootLocation interface{} `json:"tableRootLocation,omitempty"` - // FileName - The name of the Azure Blob. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Format - The format of the Azure Blob storage. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the blob storage. - Compression BasicDatasetCompression `json:"compression,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureBlobDatasetTypeProperties struct. -func (abdtp *AzureBlobDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - abdtp.FolderPath = folderPath - } - case "tableRootLocation": - if v != nil { - var tableRootLocation interface{} - err = json.Unmarshal(*v, &tableRootLocation) - if err != nil { - return err - } - abdtp.TableRootLocation = tableRootLocation - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - abdtp.FileName = fileName - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - abdtp.Format = formatVar - } - case "compression": - if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) - if err != nil { - return err - } - abdtp.Compression = compression - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDatabricksLinkedService azure Databricks linked service. -type AzureDatabricksLinkedService struct { - // AzureDatabricksLinkedServiceTypeProperties - Azure Databricks linked service properties. - *AzureDatabricksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { - adls.Type = TypeAzureDatabricks - objectMap := make(map[string]interface{}) - if adls.AzureDatabricksLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adls.AzureDatabricksLinkedServiceTypeProperties - } - if adls.ConnectVia != nil { - objectMap["connectVia"] = adls.ConnectVia - } - if adls.Description != nil { - objectMap["description"] = adls.Description - } - if adls.Parameters != nil { - objectMap["parameters"] = adls.Parameters - } - if adls.Annotations != nil { - objectMap["annotations"] = adls.Annotations - } - if adls.Type != "" { - objectMap["type"] = adls.Type - } - for k, v := range adls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return &adls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedService struct. -func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDatabricksLinkedServiceTypeProperties AzureDatabricksLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDatabricksLinkedServiceTypeProperties) - if err != nil { - return err - } - adls.AzureDatabricksLinkedServiceTypeProperties = &azureDatabricksLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adls.AdditionalProperties == nil { - adls.AdditionalProperties = make(map[string]interface{}) - } - adls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - adls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDatabricksLinkedServiceTypeProperties azure Databricks linked service properties. -type AzureDatabricksLinkedServiceTypeProperties struct { - // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). - Domain interface{} `json:"domain,omitempty"` - // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string). - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // ExistingClusterID - The id of an existing cluster that will be used for all runs of this job. Type: string (or Expression with resultType string). - ExistingClusterID interface{} `json:"existingClusterId,omitempty"` - // NewClusterVersion - The Spark version of new cluster. Type: string (or Expression with resultType string). - NewClusterVersion interface{} `json:"newClusterVersion,omitempty"` - // NewClusterNumOfWorker - Number of worker nodes that new cluster should have. A string formatted Int32, like '1' means numOfWorker is 1 or '1:10' means auto-scale from 1 as min and 10 as max. Type: string (or Expression with resultType string). - NewClusterNumOfWorker interface{} `json:"newClusterNumOfWorker,omitempty"` - // NewClusterNodeType - The node types of new cluster. Type: string (or Expression with resultType string). - NewClusterNodeType interface{} `json:"newClusterNodeType,omitempty"` - // NewClusterSparkConf - a set of optional, user-specified Spark configuration key-value pairs. - NewClusterSparkConf map[string]interface{} `json:"newClusterSparkConf"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureDatabricksLinkedServiceTypeProperties. -func (adlstp AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["domain"] = adlstp.Domain - objectMap["accessToken"] = adlstp.AccessToken - objectMap["existingClusterId"] = adlstp.ExistingClusterID - objectMap["newClusterVersion"] = adlstp.NewClusterVersion - objectMap["newClusterNumOfWorker"] = adlstp.NewClusterNumOfWorker - objectMap["newClusterNodeType"] = adlstp.NewClusterNodeType - if adlstp.NewClusterSparkConf != nil { - objectMap["newClusterSparkConf"] = adlstp.NewClusterSparkConf - } - objectMap["encryptedCredential"] = adlstp.EncryptedCredential - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedServiceTypeProperties struct. -func (adlstp *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "domain": - if v != nil { - var domain interface{} - err = json.Unmarshal(*v, &domain) - if err != nil { - return err - } - adlstp.Domain = domain - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlstp.AccessToken = accessToken - } - case "existingClusterId": - if v != nil { - var existingClusterID interface{} - err = json.Unmarshal(*v, &existingClusterID) - if err != nil { - return err - } - adlstp.ExistingClusterID = existingClusterID - } - case "newClusterVersion": - if v != nil { - var newClusterVersion interface{} - err = json.Unmarshal(*v, &newClusterVersion) - if err != nil { - return err - } - adlstp.NewClusterVersion = newClusterVersion - } - case "newClusterNumOfWorker": - if v != nil { - var newClusterNumOfWorker interface{} - err = json.Unmarshal(*v, &newClusterNumOfWorker) - if err != nil { - return err - } - adlstp.NewClusterNumOfWorker = newClusterNumOfWorker - } - case "newClusterNodeType": - if v != nil { - var newClusterNodeType interface{} - err = json.Unmarshal(*v, &newClusterNodeType) - if err != nil { - return err - } - adlstp.NewClusterNodeType = newClusterNodeType - } - case "newClusterSparkConf": - if v != nil { - var newClusterSparkConf map[string]interface{} - err = json.Unmarshal(*v, &newClusterSparkConf) - if err != nil { - return err - } - adlstp.NewClusterSparkConf = newClusterSparkConf - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - adlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeAnalyticsLinkedService azure Data Lake Analytics linked service. -type AzureDataLakeAnalyticsLinkedService struct { - // AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. - *AzureDataLakeAnalyticsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { - adlals.Type = TypeAzureDataLakeAnalytics - objectMap := make(map[string]interface{}) - if adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties - } - if adlals.ConnectVia != nil { - objectMap["connectVia"] = adlals.ConnectVia - } - if adlals.Description != nil { - objectMap["description"] = adlals.Description - } - if adlals.Parameters != nil { - objectMap["parameters"] = adlals.Parameters - } - if adlals.Annotations != nil { - objectMap["annotations"] = adlals.Annotations - } - if adlals.Type != "" { - objectMap["type"] = adlals.Type - } - for k, v := range adlals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return &adlals, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adlals, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedService struct. -func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataLakeAnalyticsLinkedServiceTypeProperties AzureDataLakeAnalyticsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataLakeAnalyticsLinkedServiceTypeProperties) - if err != nil { - return err - } - adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties = &azureDataLakeAnalyticsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlals.AdditionalProperties == nil { - adlals.AdditionalProperties = make(map[string]interface{}) - } - adlals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - adlals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adlals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adlals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adlals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlals.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeAnalyticsLinkedServiceTypeProperties azure Data Lake Analytics linked service properties. -type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { - // AccountName - The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // ServicePrincipalID - The ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Analytics account. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // SubscriptionID - Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` - // DataLakeAnalyticsURI - Azure Data Lake Analytics URI Type: string (or Expression with resultType string). - DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedServiceTypeProperties struct. -func (adlalstp *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accountName": - if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) - if err != nil { - return err - } - adlalstp.AccountName = accountName - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - adlalstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlalstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - adlalstp.Tenant = tenant - } - case "subscriptionId": - if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) - if err != nil { - return err - } - adlalstp.SubscriptionID = subscriptionID - } - case "resourceGroupName": - if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) - if err != nil { - return err - } - adlalstp.ResourceGroupName = resourceGroupName - } - case "dataLakeAnalyticsUri": - if v != nil { - var dataLakeAnalyticsURI interface{} - err = json.Unmarshal(*v, &dataLakeAnalyticsURI) - if err != nil { - return err - } - adlalstp.DataLakeAnalyticsURI = dataLakeAnalyticsURI - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - adlalstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeStoreDataset azure Data Lake Store dataset. -type AzureDataLakeStoreDataset struct { - // AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. - *AzureDataLakeStoreDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error) { - adlsd.Type = TypeAzureDataLakeStoreFile - objectMap := make(map[string]interface{}) - if adlsd.AzureDataLakeStoreDatasetTypeProperties != nil { - objectMap["typeProperties"] = adlsd.AzureDataLakeStoreDatasetTypeProperties - } - if adlsd.Description != nil { - objectMap["description"] = adlsd.Description - } - objectMap["structure"] = adlsd.Structure - if adlsd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adlsd.LinkedServiceName - } - if adlsd.Parameters != nil { - objectMap["parameters"] = adlsd.Parameters - } - if adlsd.Annotations != nil { - objectMap["annotations"] = adlsd.Annotations - } - if adlsd.Type != "" { - objectMap["type"] = adlsd.Type - } - for k, v := range adlsd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return &adlsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsBasicDataset() (BasicDataset, bool) { - return &adlsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDataset struct. -func (adlsd *AzureDataLakeStoreDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataLakeStoreDatasetTypeProperties AzureDataLakeStoreDatasetTypeProperties - err = json.Unmarshal(*v, &azureDataLakeStoreDatasetTypeProperties) - if err != nil { - return err - } - adlsd.AzureDataLakeStoreDatasetTypeProperties = &azureDataLakeStoreDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsd.AdditionalProperties == nil { - adlsd.AdditionalProperties = make(map[string]interface{}) - } - adlsd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adlsd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - adlsd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - adlsd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adlsd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adlsd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeStoreDatasetTypeProperties azure Data Lake Store dataset properties. -type AzureDataLakeStoreDatasetTypeProperties struct { - // FolderPath - Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Format - The format of the Data Lake Store. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the item(s) in the Azure Data Lake Store. - Compression BasicDatasetCompression `json:"compression,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDatasetTypeProperties struct. -func (adlsdtp *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - adlsdtp.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - adlsdtp.FileName = fileName - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - adlsdtp.Format = formatVar - } - case "compression": - if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) - if err != nil { - return err - } - adlsdtp.Compression = compression - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeStoreLinkedService azure Data Lake Store linked service. -type AzureDataLakeStoreLinkedService struct { - // AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. - *AzureDataLakeStoreLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { - adlsls.Type = TypeAzureDataLakeStore - objectMap := make(map[string]interface{}) - if adlsls.AzureDataLakeStoreLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adlsls.AzureDataLakeStoreLinkedServiceTypeProperties - } - if adlsls.ConnectVia != nil { - objectMap["connectVia"] = adlsls.ConnectVia - } - if adlsls.Description != nil { - objectMap["description"] = adlsls.Description - } - if adlsls.Parameters != nil { - objectMap["parameters"] = adlsls.Parameters - } - if adlsls.Annotations != nil { - objectMap["annotations"] = adlsls.Annotations - } - if adlsls.Type != "" { - objectMap["type"] = adlsls.Type - } - for k, v := range adlsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return &adlsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adlsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedService struct. -func (adlsls *AzureDataLakeStoreLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataLakeStoreLinkedServiceTypeProperties AzureDataLakeStoreLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataLakeStoreLinkedServiceTypeProperties) - if err != nil { - return err - } - adlsls.AzureDataLakeStoreLinkedServiceTypeProperties = &azureDataLakeStoreLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsls.AdditionalProperties == nil { - adlsls.AdditionalProperties = make(map[string]interface{}) - } - adlsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - adlsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adlsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adlsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adlsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeStoreLinkedServiceTypeProperties azure Data Lake Store linked service properties. -type AzureDataLakeStoreLinkedServiceTypeProperties struct { - // DataLakeStoreURI - Data Lake Store service URI. Type: string (or Expression with resultType string). - DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` - // ServicePrincipalID - The ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Store account. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // AccountName - Data Lake Store account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // SubscriptionID - Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedServiceTypeProperties struct. -func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "dataLakeStoreUri": - if v != nil { - var dataLakeStoreURI interface{} - err = json.Unmarshal(*v, &dataLakeStoreURI) - if err != nil { - return err - } - adlslstp.DataLakeStoreURI = dataLakeStoreURI - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - adlslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - adlslstp.Tenant = tenant - } - case "accountName": - if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) - if err != nil { - return err - } - adlslstp.AccountName = accountName - } - case "subscriptionId": - if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) - if err != nil { - return err - } - adlslstp.SubscriptionID = subscriptionID - } - case "resourceGroupName": - if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) - if err != nil { - return err - } - adlslstp.ResourceGroupName = resourceGroupName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - adlslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeStoreSink a copy activity Azure Data Lake Store sink. -type AzureDataLakeStoreSink struct { - // CopyBehavior - The type of copy behavior for copy sink. Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', 'MergeFiles' - CopyBehavior CopyBehaviorType `json:"copyBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { - adlss.Type = TypeAzureDataLakeStoreSink - objectMap := make(map[string]interface{}) - if adlss.CopyBehavior != "" { - objectMap["copyBehavior"] = adlss.CopyBehavior - } - objectMap["writeBatchSize"] = adlss.WriteBatchSize - objectMap["writeBatchTimeout"] = adlss.WriteBatchTimeout - objectMap["sinkRetryCount"] = adlss.SinkRetryCount - objectMap["sinkRetryWait"] = adlss.SinkRetryWait - if adlss.Type != "" { - objectMap["type"] = adlss.Type - } - for k, v := range adlss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return &adlss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBasicCopySink() (BasicCopySink, bool) { - return &adlss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureDataLakeStoreSource a copy activity Azure Data Lake source. -type AzureDataLakeStoreSource struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { - adlss.Type = TypeAzureDataLakeStoreSource - objectMap := make(map[string]interface{}) - objectMap["recursive"] = adlss.Recursive - objectMap["sourceRetryCount"] = adlss.SourceRetryCount - objectMap["sourceRetryWait"] = adlss.SourceRetryWait - if adlss.Type != "" { - objectMap["type"] = adlss.Type - } - for k, v := range adlss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return &adlss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBasicCopySource() (BasicCopySource, bool) { - return &adlss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureKeyVaultLinkedService azure Key Vault linked service. -type AzureKeyVaultLinkedService struct { - // AzureKeyVaultLinkedServiceTypeProperties - Azure Key Vault linked service properties. - *AzureKeyVaultLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) MarshalJSON() ([]byte, error) { - akvls.Type = TypeAzureKeyVault - objectMap := make(map[string]interface{}) - if akvls.AzureKeyVaultLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = akvls.AzureKeyVaultLinkedServiceTypeProperties - } - if akvls.ConnectVia != nil { - objectMap["connectVia"] = akvls.ConnectVia - } - if akvls.Description != nil { - objectMap["description"] = akvls.Description - } - if akvls.Parameters != nil { - objectMap["parameters"] = akvls.Parameters - } - if akvls.Annotations != nil { - objectMap["annotations"] = akvls.Annotations - } - if akvls.Type != "" { - objectMap["type"] = akvls.Type - } - for k, v := range akvls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return &akvls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &akvls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureKeyVaultLinkedService struct. -func (akvls *AzureKeyVaultLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureKeyVaultLinkedServiceTypeProperties AzureKeyVaultLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureKeyVaultLinkedServiceTypeProperties) - if err != nil { - return err - } - akvls.AzureKeyVaultLinkedServiceTypeProperties = &azureKeyVaultLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if akvls.AdditionalProperties == nil { - akvls.AdditionalProperties = make(map[string]interface{}) - } - akvls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - akvls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - akvls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - akvls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - akvls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - akvls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureKeyVaultLinkedServiceTypeProperties azure Key Vault linked service properties. -type AzureKeyVaultLinkedServiceTypeProperties struct { - // BaseURL - The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string (or Expression with resultType string). - BaseURL interface{} `json:"baseUrl,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureKeyVaultSecretReference azure Key Vault secret reference. -type AzureKeyVaultSecretReference struct { - // Store - The Azure Key Vault linked service reference. - Store *LinkedServiceReference `json:"store,omitempty"` - // SecretName - The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). - SecretName interface{} `json:"secretName,omitempty"` - // SecretVersion - The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string). - SecretVersion interface{} `json:"secretVersion,omitempty"` - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { - akvsr.Type = TypeAzureKeyVaultSecret - objectMap := make(map[string]interface{}) - if akvsr.Store != nil { - objectMap["store"] = akvsr.Store - } - objectMap["secretName"] = akvsr.SecretName - objectMap["secretVersion"] = akvsr.SecretVersion - if akvsr.Type != "" { - objectMap["type"] = akvsr.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSecureString is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsSecureString() (*SecureString, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { - return &akvsr, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSecretBase is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsSecretBase() (*SecretBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicSecretBase is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsBasicSecretBase() (BasicSecretBase, bool) { - return &akvsr, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMLBatchExecutionActivity azure ML Batch Execution activity. -type AzureMLBatchExecutionActivity struct { - // AzureMLBatchExecutionActivityTypeProperties - Azure ML Batch Execution activity properties. - *AzureMLBatchExecutionActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { - ambea.Type = TypeAzureMLBatchExecution - objectMap := make(map[string]interface{}) - if ambea.AzureMLBatchExecutionActivityTypeProperties != nil { - objectMap["typeProperties"] = ambea.AzureMLBatchExecutionActivityTypeProperties - } - if ambea.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ambea.LinkedServiceName - } - if ambea.Policy != nil { - objectMap["policy"] = ambea.Policy - } - if ambea.Name != nil { - objectMap["name"] = ambea.Name - } - if ambea.Description != nil { - objectMap["description"] = ambea.Description - } - if ambea.DependsOn != nil { - objectMap["dependsOn"] = ambea.DependsOn - } - if ambea.Type != "" { - objectMap["type"] = ambea.Type - } - for k, v := range ambea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return &ambea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ambea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ambea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureMLBatchExecutionActivity struct. -func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLBatchExecutionActivityTypeProperties AzureMLBatchExecutionActivityTypeProperties - err = json.Unmarshal(*v, &azureMLBatchExecutionActivityTypeProperties) - if err != nil { - return err - } - ambea.AzureMLBatchExecutionActivityTypeProperties = &azureMLBatchExecutionActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ambea.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ambea.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ambea.AdditionalProperties == nil { - ambea.AdditionalProperties = make(map[string]interface{}) - } - ambea.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ambea.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ambea.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ambea.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ambea.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMLBatchExecutionActivityTypeProperties azure ML Batch Execution activity properties. -type AzureMLBatchExecutionActivityTypeProperties struct { - // GlobalParameters - Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be passed in the GlobalParameters property of the Azure ML batch execution request. - GlobalParameters map[string]interface{} `json:"globalParameters"` - // WebServiceOutputs - Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the WebServiceOutputs property of the Azure ML batch execution request. - WebServiceOutputs map[string]*AzureMLWebServiceFile `json:"webServiceOutputs"` - // WebServiceInputs - Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the WebServiceInputs property of the Azure ML batch execution request. - WebServiceInputs map[string]*AzureMLWebServiceFile `json:"webServiceInputs"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivityTypeProperties. -func (ambeatp AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ambeatp.GlobalParameters != nil { - objectMap["globalParameters"] = ambeatp.GlobalParameters - } - if ambeatp.WebServiceOutputs != nil { - objectMap["webServiceOutputs"] = ambeatp.WebServiceOutputs - } - if ambeatp.WebServiceInputs != nil { - objectMap["webServiceInputs"] = ambeatp.WebServiceInputs - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMLLinkedService azure ML Web Service linked service. -type AzureMLLinkedService struct { - // AzureMLLinkedServiceTypeProperties - Azure ML Web Service linked service properties. - *AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureMLLinkedService. -func (amls AzureMLLinkedService) MarshalJSON() ([]byte, error) { - amls.Type = TypeAzureML - objectMap := make(map[string]interface{}) - if amls.AzureMLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amls.AzureMLLinkedServiceTypeProperties - } - if amls.ConnectVia != nil { - objectMap["connectVia"] = amls.ConnectVia - } - if amls.Description != nil { - objectMap["description"] = amls.Description - } - if amls.Parameters != nil { - objectMap["parameters"] = amls.Parameters - } - if amls.Annotations != nil { - objectMap["annotations"] = amls.Annotations - } - if amls.Type != "" { - objectMap["type"] = amls.Type - } - for k, v := range amls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return &amls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedService struct. -func (amls *AzureMLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLLinkedServiceTypeProperties AzureMLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMLLinkedServiceTypeProperties) - if err != nil { - return err - } - amls.AzureMLLinkedServiceTypeProperties = &azureMLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amls.AdditionalProperties == nil { - amls.AdditionalProperties = make(map[string]interface{}) - } - amls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMLLinkedServiceTypeProperties azure ML Web Service linked service properties. -type AzureMLLinkedServiceTypeProperties struct { - // MlEndpoint - The Batch Execution REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string). - MlEndpoint interface{} `json:"mlEndpoint,omitempty"` - // APIKey - The API key for accessing the Azure ML model endpoint. - APIKey BasicSecretBase `json:"apiKey,omitempty"` - // UpdateResourceEndpoint - The Update Resource REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string). - UpdateResourceEndpoint interface{} `json:"updateResourceEndpoint,omitempty"` - // ServicePrincipalID - The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML web service. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML web service. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedServiceTypeProperties struct. -func (amlstp *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "mlEndpoint": - if v != nil { - var mlEndpoint interface{} - err = json.Unmarshal(*v, &mlEndpoint) - if err != nil { - return err - } - amlstp.MlEndpoint = mlEndpoint - } - case "apiKey": - if v != nil { - APIKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.APIKey = APIKey - } - case "updateResourceEndpoint": - if v != nil { - var updateResourceEndpoint interface{} - err = json.Unmarshal(*v, &updateResourceEndpoint) - if err != nil { - return err - } - amlstp.UpdateResourceEndpoint = updateResourceEndpoint - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - amlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - amlstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMLUpdateResourceActivity azure ML Update Resource management activity. -type AzureMLUpdateResourceActivity struct { - // AzureMLUpdateResourceActivityTypeProperties - Azure ML Update Resource management activity properties. - *AzureMLUpdateResourceActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { - amura.Type = TypeAzureMLUpdateResource - objectMap := make(map[string]interface{}) - if amura.AzureMLUpdateResourceActivityTypeProperties != nil { - objectMap["typeProperties"] = amura.AzureMLUpdateResourceActivityTypeProperties - } - if amura.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amura.LinkedServiceName - } - if amura.Policy != nil { - objectMap["policy"] = amura.Policy - } - if amura.Name != nil { - objectMap["name"] = amura.Name - } - if amura.Description != nil { - objectMap["description"] = amura.Description - } - if amura.DependsOn != nil { - objectMap["dependsOn"] = amura.DependsOn - } - if amura.Type != "" { - objectMap["type"] = amura.Type - } - for k, v := range amura.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return &amura, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &amura, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicActivity() (BasicActivity, bool) { - return &amura, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureMLUpdateResourceActivity struct. -func (amura *AzureMLUpdateResourceActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLUpdateResourceActivityTypeProperties AzureMLUpdateResourceActivityTypeProperties - err = json.Unmarshal(*v, &azureMLUpdateResourceActivityTypeProperties) - if err != nil { - return err - } - amura.AzureMLUpdateResourceActivityTypeProperties = &azureMLUpdateResourceActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amura.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - amura.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amura.AdditionalProperties == nil { - amura.AdditionalProperties = make(map[string]interface{}) - } - amura.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - amura.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amura.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - amura.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amura.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMLUpdateResourceActivityTypeProperties azure ML Update Resource activity properties. -type AzureMLUpdateResourceActivityTypeProperties struct { - // TrainedModelName - Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). - TrainedModelName interface{} `json:"trainedModelName,omitempty"` - // TrainedModelLinkedServiceName - Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. - TrainedModelLinkedServiceName *LinkedServiceReference `json:"trainedModelLinkedServiceName,omitempty"` - // TrainedModelFilePath - The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType string). - TrainedModelFilePath interface{} `json:"trainedModelFilePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMLWebServiceFile azure ML WebService Input/Output file -type AzureMLWebServiceFile struct { - // FilePath - The relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: string (or Expression with resultType string). - FilePath interface{} `json:"filePath,omitempty"` - // LinkedServiceName - Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMySQLLinkedService azure MySQL database linked service. -type AzureMySQLLinkedService struct { - // AzureMySQLLinkedServiceTypeProperties - Azure MySQL database linked service properties. - *AzureMySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) MarshalJSON() ([]byte, error) { - amsls.Type = TypeAzureMySQL - objectMap := make(map[string]interface{}) - if amsls.AzureMySQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amsls.AzureMySQLLinkedServiceTypeProperties - } - if amsls.ConnectVia != nil { - objectMap["connectVia"] = amsls.ConnectVia - } - if amsls.Description != nil { - objectMap["description"] = amsls.Description - } - if amsls.Parameters != nil { - objectMap["parameters"] = amsls.Parameters - } - if amsls.Annotations != nil { - objectMap["annotations"] = amsls.Annotations - } - if amsls.Type != "" { - objectMap["type"] = amsls.Type - } - for k, v := range amsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return &amsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureMySQLLinkedService struct. -func (amsls *AzureMySQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMySQLLinkedServiceTypeProperties AzureMySQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMySQLLinkedServiceTypeProperties) - if err != nil { - return err - } - amsls.AzureMySQLLinkedServiceTypeProperties = &azureMySQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amsls.AdditionalProperties == nil { - amsls.AdditionalProperties = make(map[string]interface{}) - } - amsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amsls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMySQLLinkedServiceTypeProperties azure MySQL database linked service properties. -type AzureMySQLLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureMySQLLinkedServiceTypeProperties struct. -func (amslstp *AzureMySQLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amslstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMySQLSource a copy activity Azure MySQL source. -type AzureMySQLSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureMySQLSource. -func (amss AzureMySQLSource) MarshalJSON() ([]byte, error) { - amss.Type = TypeAzureMySQLSource - objectMap := make(map[string]interface{}) - objectMap["query"] = amss.Query - objectMap["sourceRetryCount"] = amss.SourceRetryCount - objectMap["sourceRetryWait"] = amss.SourceRetryWait - if amss.Type != "" { - objectMap["type"] = amss.Type - } - for k, v := range amss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return &amss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &amss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMySQLTableDataset the Azure MySQL database dataset. -type AzureMySQLTableDataset struct { - // AzureMySQLTableDatasetTypeProperties - Azure MySQL database dataset properties. - *AzureMySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) MarshalJSON() ([]byte, error) { - amstd.Type = TypeAzureMySQLTable - objectMap := make(map[string]interface{}) - if amstd.AzureMySQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = amstd.AzureMySQLTableDatasetTypeProperties - } - if amstd.Description != nil { - objectMap["description"] = amstd.Description - } - objectMap["structure"] = amstd.Structure - if amstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amstd.LinkedServiceName - } - if amstd.Parameters != nil { - objectMap["parameters"] = amstd.Parameters - } - if amstd.Annotations != nil { - objectMap["annotations"] = amstd.Annotations - } - if amstd.Type != "" { - objectMap["type"] = amstd.Type - } - for k, v := range amstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return &amstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &amstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureMySQLTableDataset struct. -func (amstd *AzureMySQLTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMySQLTableDatasetTypeProperties AzureMySQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureMySQLTableDatasetTypeProperties) - if err != nil { - return err - } - amstd.AzureMySQLTableDatasetTypeProperties = &azureMySQLTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amstd.AdditionalProperties == nil { - amstd.AdditionalProperties = make(map[string]interface{}) - } - amstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - amstd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amstd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amstd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureMySQLTableDatasetTypeProperties azure MySQL database dataset properties. -type AzureMySQLTableDatasetTypeProperties struct { - // TableName - The Azure MySQL database table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzurePostgreSQLLinkedService azure PostgreSQL linked service. -type AzurePostgreSQLLinkedService struct { - // AzurePostgreSQLLinkedServiceTypeProperties - Azure PostgreSQL linked service properties. - *AzurePostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - apsls.Type = TypeAzurePostgreSQL - objectMap := make(map[string]interface{}) - if apsls.AzurePostgreSQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = apsls.AzurePostgreSQLLinkedServiceTypeProperties - } - if apsls.ConnectVia != nil { - objectMap["connectVia"] = apsls.ConnectVia - } - if apsls.Description != nil { - objectMap["description"] = apsls.Description - } - if apsls.Parameters != nil { - objectMap["parameters"] = apsls.Parameters - } - if apsls.Annotations != nil { - objectMap["annotations"] = apsls.Annotations - } - if apsls.Type != "" { - objectMap["type"] = apsls.Type - } - for k, v := range apsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return &apsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &apsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLLinkedService struct. -func (apsls *AzurePostgreSQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azurePostgreSQLLinkedServiceTypeProperties AzurePostgreSQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azurePostgreSQLLinkedServiceTypeProperties) - if err != nil { - return err - } - apsls.AzurePostgreSQLLinkedServiceTypeProperties = &azurePostgreSQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if apsls.AdditionalProperties == nil { - apsls.AdditionalProperties = make(map[string]interface{}) - } - apsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - apsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - apsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - apsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - apsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - apsls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzurePostgreSQLLinkedServiceTypeProperties azure PostgreSQL linked service properties. -type AzurePostgreSQLLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLLinkedServiceTypeProperties struct. -func (apslstp *AzurePostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - apslstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - apslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzurePostgreSQLSource a copy activity Azure PostgreSQL source. -type AzurePostgreSQLSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) MarshalJSON() ([]byte, error) { - apss.Type = TypeAzurePostgreSQLSource - objectMap := make(map[string]interface{}) - objectMap["query"] = apss.Query - objectMap["sourceRetryCount"] = apss.SourceRetryCount - objectMap["sourceRetryWait"] = apss.SourceRetryWait - if apss.Type != "" { - objectMap["type"] = apss.Type - } - for k, v := range apss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return &apss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &apss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzurePostgreSQLTableDataset azure PostgreSQL dataset. -type AzurePostgreSQLTableDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) MarshalJSON() ([]byte, error) { - apstd.Type = TypeAzurePostgreSQLTable - objectMap := make(map[string]interface{}) - if apstd.Description != nil { - objectMap["description"] = apstd.Description - } - objectMap["structure"] = apstd.Structure - if apstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = apstd.LinkedServiceName - } - if apstd.Parameters != nil { - objectMap["parameters"] = apstd.Parameters - } - if apstd.Annotations != nil { - objectMap["annotations"] = apstd.Annotations - } - if apstd.Type != "" { - objectMap["type"] = apstd.Type - } - for k, v := range apstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return &apstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &apstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureQueueSink a copy activity Azure Queue sink. -type AzureQueueSink struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureQueueSink. -func (aqs AzureQueueSink) MarshalJSON() ([]byte, error) { - aqs.Type = TypeAzureQueueSink - objectMap := make(map[string]interface{}) - objectMap["writeBatchSize"] = aqs.WriteBatchSize - objectMap["writeBatchTimeout"] = aqs.WriteBatchTimeout - objectMap["sinkRetryCount"] = aqs.SinkRetryCount - objectMap["sinkRetryWait"] = aqs.SinkRetryWait - if aqs.Type != "" { - objectMap["type"] = aqs.Type - } - for k, v := range aqs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return &aqs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsBasicCopySink() (BasicCopySink, bool) { - return &aqs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSearchIndexDataset the Azure Search Index. -type AzureSearchIndexDataset struct { - // AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. - *AzureSearchIndexDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { - asid.Type = TypeAzureSearchIndex - objectMap := make(map[string]interface{}) - if asid.AzureSearchIndexDatasetTypeProperties != nil { - objectMap["typeProperties"] = asid.AzureSearchIndexDatasetTypeProperties - } - if asid.Description != nil { - objectMap["description"] = asid.Description - } - objectMap["structure"] = asid.Structure - if asid.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asid.LinkedServiceName - } - if asid.Parameters != nil { - objectMap["parameters"] = asid.Parameters - } - if asid.Annotations != nil { - objectMap["annotations"] = asid.Annotations - } - if asid.Type != "" { - objectMap["type"] = asid.Type - } - for k, v := range asid.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return &asid, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsBasicDataset() (BasicDataset, bool) { - return &asid, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexDataset struct. -func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSearchIndexDatasetTypeProperties AzureSearchIndexDatasetTypeProperties - err = json.Unmarshal(*v, &azureSearchIndexDatasetTypeProperties) - if err != nil { - return err - } - asid.AzureSearchIndexDatasetTypeProperties = &azureSearchIndexDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asid.AdditionalProperties == nil { - asid.AdditionalProperties = make(map[string]interface{}) - } - asid.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asid.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - asid.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - asid.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asid.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asid.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asid.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSearchIndexDatasetTypeProperties properties specific to this dataset type. -type AzureSearchIndexDatasetTypeProperties struct { - // IndexName - The name of the Azure Search Index. Type: string (or Expression with resultType string). - IndexName interface{} `json:"indexName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSearchIndexSink a copy activity Azure Search Index sink. -type AzureSearchIndexSink struct { - // WriteBehavior - Specify the write behavior when upserting documents into Azure Search Index. Possible values include: 'Merge', 'Upload' - WriteBehavior AzureSearchIndexWriteBehaviorType `json:"writeBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) MarshalJSON() ([]byte, error) { - asis.Type = TypeAzureSearchIndexSink - objectMap := make(map[string]interface{}) - if asis.WriteBehavior != "" { - objectMap["writeBehavior"] = asis.WriteBehavior - } - objectMap["writeBatchSize"] = asis.WriteBatchSize - objectMap["writeBatchTimeout"] = asis.WriteBatchTimeout - objectMap["sinkRetryCount"] = asis.SinkRetryCount - objectMap["sinkRetryWait"] = asis.SinkRetryWait - if asis.Type != "" { - objectMap["type"] = asis.Type - } - for k, v := range asis.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return &asis, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBasicCopySink() (BasicCopySink, bool) { - return &asis, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSearchLinkedService linked service for Windows Azure Search Service. -type AzureSearchLinkedService struct { - // AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. - *AzureSearchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) MarshalJSON() ([]byte, error) { - asls.Type = TypeAzureSearch - objectMap := make(map[string]interface{}) - if asls.AzureSearchLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asls.AzureSearchLinkedServiceTypeProperties - } - if asls.ConnectVia != nil { - objectMap["connectVia"] = asls.ConnectVia - } - if asls.Description != nil { - objectMap["description"] = asls.Description - } - if asls.Parameters != nil { - objectMap["parameters"] = asls.Parameters - } - if asls.Annotations != nil { - objectMap["annotations"] = asls.Annotations - } - if asls.Type != "" { - objectMap["type"] = asls.Type - } - for k, v := range asls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return &asls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedService struct. -func (asls *AzureSearchLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSearchLinkedServiceTypeProperties AzureSearchLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSearchLinkedServiceTypeProperties) - if err != nil { - return err - } - asls.AzureSearchLinkedServiceTypeProperties = &azureSearchLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asls.AdditionalProperties == nil { - asls.AdditionalProperties = make(map[string]interface{}) - } - asls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSearchLinkedServiceTypeProperties windows Azure Search Service linked service properties. -type AzureSearchLinkedServiceTypeProperties struct { - // URL - URL for Azure Search service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Key - Admin Key for Azure Search service - Key BasicSecretBase `json:"key,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedServiceTypeProperties struct. -func (aslstp *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - aslstp.URL = URL - } - case "key": - if v != nil { - key, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aslstp.Key = key - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - aslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLDatabaseLinkedService microsoft Azure SQL Database linked service. -type AzureSQLDatabaseLinkedService struct { - // AzureSQLDatabaseLinkedServiceTypeProperties - Azure SQL Database linked service properties. - *AzureSQLDatabaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error) { - asdls.Type = TypeAzureSQLDatabase - objectMap := make(map[string]interface{}) - if asdls.AzureSQLDatabaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asdls.AzureSQLDatabaseLinkedServiceTypeProperties - } - if asdls.ConnectVia != nil { - objectMap["connectVia"] = asdls.ConnectVia - } - if asdls.Description != nil { - objectMap["description"] = asdls.Description - } - if asdls.Parameters != nil { - objectMap["parameters"] = asdls.Parameters - } - if asdls.Annotations != nil { - objectMap["annotations"] = asdls.Annotations - } - if asdls.Type != "" { - objectMap["type"] = asdls.Type - } - for k, v := range asdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return &asdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSQLDatabaseLinkedService struct. -func (asdls *AzureSQLDatabaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLDatabaseLinkedServiceTypeProperties AzureSQLDatabaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSQLDatabaseLinkedServiceTypeProperties) - if err != nil { - return err - } - asdls.AzureSQLDatabaseLinkedServiceTypeProperties = &azureSQLDatabaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asdls.AdditionalProperties == nil { - asdls.AdditionalProperties = make(map[string]interface{}) - } - asdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asdls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLDatabaseLinkedServiceTypeProperties azure SQL Database linked service properties. -type AzureSQLDatabaseLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // ServicePrincipalID - The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Database. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSQLDatabaseLinkedServiceTypeProperties struct. -func (asdlstp *AzureSQLDatabaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asdlstp.ConnectionString = connectionString - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - asdlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asdlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - asdlstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - asdlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLDWLinkedService azure SQL Data Warehouse linked service. -type AzureSQLDWLinkedService struct { - // AzureSQLDWLinkedServiceTypeProperties - Azure SQL Data Warehouse linked service properties. - *AzureSQLDWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { - asdls.Type = TypeAzureSQLDW - objectMap := make(map[string]interface{}) - if asdls.AzureSQLDWLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asdls.AzureSQLDWLinkedServiceTypeProperties - } - if asdls.ConnectVia != nil { - objectMap["connectVia"] = asdls.ConnectVia - } - if asdls.Description != nil { - objectMap["description"] = asdls.Description - } - if asdls.Parameters != nil { - objectMap["parameters"] = asdls.Parameters - } - if asdls.Annotations != nil { - objectMap["annotations"] = asdls.Annotations - } - if asdls.Type != "" { - objectMap["type"] = asdls.Type - } - for k, v := range asdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return &asdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedService struct. -func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLDWLinkedServiceTypeProperties AzureSQLDWLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSQLDWLinkedServiceTypeProperties) - if err != nil { - return err - } - asdls.AzureSQLDWLinkedServiceTypeProperties = &azureSQLDWLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asdls.AdditionalProperties == nil { - asdls.AdditionalProperties = make(map[string]interface{}) - } - asdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asdls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLDWLinkedServiceTypeProperties azure SQL Data Warehouse linked service properties. -type AzureSQLDWLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // ServicePrincipalID - The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Data Warehouse. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedServiceTypeProperties struct. -func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asdlstp.ConnectionString = connectionString - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - asdlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asdlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - asdlstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - asdlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLDWTableDataset the Azure SQL Data Warehouse dataset. -type AzureSQLDWTableDataset struct { - // AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. - *AzureSQLDWTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) MarshalJSON() ([]byte, error) { - asdtd.Type = TypeAzureSQLDWTable - objectMap := make(map[string]interface{}) - if asdtd.AzureSQLDWTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = asdtd.AzureSQLDWTableDatasetTypeProperties - } - if asdtd.Description != nil { - objectMap["description"] = asdtd.Description - } - objectMap["structure"] = asdtd.Structure - if asdtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asdtd.LinkedServiceName - } - if asdtd.Parameters != nil { - objectMap["parameters"] = asdtd.Parameters - } - if asdtd.Annotations != nil { - objectMap["annotations"] = asdtd.Annotations - } - if asdtd.Type != "" { - objectMap["type"] = asdtd.Type - } - for k, v := range asdtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return &asdtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &asdtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWTableDataset struct. -func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLDWTableDatasetTypeProperties AzureSQLDWTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLDWTableDatasetTypeProperties) - if err != nil { - return err - } - asdtd.AzureSQLDWTableDatasetTypeProperties = &azureSQLDWTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asdtd.AdditionalProperties == nil { - asdtd.AdditionalProperties = make(map[string]interface{}) - } - asdtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asdtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - asdtd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - asdtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asdtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asdtd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asdtd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLDWTableDatasetTypeProperties azure SQL Data Warehouse dataset properties. -type AzureSQLDWTableDatasetTypeProperties struct { - // TableName - The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLTableDataset the Azure SQL Server database dataset. -type AzureSQLTableDataset struct { - // AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. - *AzureSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) MarshalJSON() ([]byte, error) { - astd.Type = TypeAzureSQLTable - objectMap := make(map[string]interface{}) - if astd.AzureSQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = astd.AzureSQLTableDatasetTypeProperties - } - if astd.Description != nil { - objectMap["description"] = astd.Description - } - objectMap["structure"] = astd.Structure - if astd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = astd.LinkedServiceName - } - if astd.Parameters != nil { - objectMap["parameters"] = astd.Parameters - } - if astd.Annotations != nil { - objectMap["annotations"] = astd.Annotations - } - if astd.Type != "" { - objectMap["type"] = astd.Type - } - for k, v := range astd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return &astd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &astd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureSQLTableDataset struct. -func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLTableDatasetTypeProperties AzureSQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLTableDatasetTypeProperties) - if err != nil { - return err - } - astd.AzureSQLTableDatasetTypeProperties = &azureSQLTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if astd.AdditionalProperties == nil { - astd.AdditionalProperties = make(map[string]interface{}) - } - astd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - astd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - astd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - astd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - astd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - astd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - astd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureSQLTableDatasetTypeProperties azure SQL dataset properties. -type AzureSQLTableDatasetTypeProperties struct { - // TableName - The table name of the Azure SQL database. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureStorageLinkedService the storage account linked service. -type AzureStorageLinkedService struct { - // AzureStorageLinkedServiceTypeProperties - Azure Storage linked service properties. - *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) MarshalJSON() ([]byte, error) { - asls.Type = TypeAzureStorage - objectMap := make(map[string]interface{}) - if asls.AzureStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asls.AzureStorageLinkedServiceTypeProperties - } - if asls.ConnectVia != nil { - objectMap["connectVia"] = asls.ConnectVia - } - if asls.Description != nil { - objectMap["description"] = asls.Description - } - if asls.Parameters != nil { - objectMap["parameters"] = asls.Parameters - } - if asls.Annotations != nil { - objectMap["annotations"] = asls.Annotations - } - if asls.Type != "" { - objectMap["type"] = asls.Type - } - for k, v := range asls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return &asls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureStorageLinkedService struct. -func (asls *AzureStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureStorageLinkedServiceTypeProperties AzureStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - asls.AzureStorageLinkedServiceTypeProperties = &azureStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asls.AdditionalProperties == nil { - asls.AdditionalProperties = make(map[string]interface{}) - } - asls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureStorageLinkedServiceTypeProperties azure Storage linked service properties. -type AzureStorageLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. It is mutually exclusive with sasUri property. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // SasURI - SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. - SasURI BasicSecretBase `json:"sasUri,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureStorageLinkedServiceTypeProperties struct. -func (aslstp *AzureStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aslstp.ConnectionString = connectionString - } - case "sasUri": - if v != nil { - sasURI, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aslstp.SasURI = sasURI - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - aslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureTableDataset the Azure Table storage dataset. -type AzureTableDataset struct { - // AzureTableDatasetTypeProperties - Azure Table dataset properties. - *AzureTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureTableDataset. -func (atd AzureTableDataset) MarshalJSON() ([]byte, error) { - atd.Type = TypeAzureTable - objectMap := make(map[string]interface{}) - if atd.AzureTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = atd.AzureTableDatasetTypeProperties - } - if atd.Description != nil { - objectMap["description"] = atd.Description - } - objectMap["structure"] = atd.Structure - if atd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = atd.LinkedServiceName - } - if atd.Parameters != nil { - objectMap["parameters"] = atd.Parameters - } - if atd.Annotations != nil { - objectMap["annotations"] = atd.Annotations - } - if atd.Type != "" { - objectMap["type"] = atd.Type - } - for k, v := range atd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return &atd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &atd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for AzureTableDataset struct. -func (atd *AzureTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureTableDatasetTypeProperties AzureTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureTableDatasetTypeProperties) - if err != nil { - return err - } - atd.AzureTableDatasetTypeProperties = &azureTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if atd.AdditionalProperties == nil { - atd.AdditionalProperties = make(map[string]interface{}) - } - atd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - atd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - atd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - atd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - atd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - atd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - atd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureTableDatasetTypeProperties azure Table dataset properties. -type AzureTableDatasetTypeProperties struct { - // TableName - The table name of the Azure Table storage. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureTableSink a copy activity Azure Table sink. -type AzureTableSink struct { - // AzureTableDefaultPartitionKeyValue - Azure Table default partition key value. Type: string (or Expression with resultType string). - AzureTableDefaultPartitionKeyValue interface{} `json:"azureTableDefaultPartitionKeyValue,omitempty"` - // AzureTablePartitionKeyName - Azure Table partition key name. Type: string (or Expression with resultType string). - AzureTablePartitionKeyName interface{} `json:"azureTablePartitionKeyName,omitempty"` - // AzureTableRowKeyName - Azure Table row key name. Type: string (or Expression with resultType string). - AzureTableRowKeyName interface{} `json:"azureTableRowKeyName,omitempty"` - // AzureTableInsertType - Azure Table insert type. Type: string (or Expression with resultType string). - AzureTableInsertType interface{} `json:"azureTableInsertType,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureTableSink. -func (ats AzureTableSink) MarshalJSON() ([]byte, error) { - ats.Type = TypeAzureTableSink - objectMap := make(map[string]interface{}) - objectMap["azureTableDefaultPartitionKeyValue"] = ats.AzureTableDefaultPartitionKeyValue - objectMap["azureTablePartitionKeyName"] = ats.AzureTablePartitionKeyName - objectMap["azureTableRowKeyName"] = ats.AzureTableRowKeyName - objectMap["azureTableInsertType"] = ats.AzureTableInsertType - objectMap["writeBatchSize"] = ats.WriteBatchSize - objectMap["writeBatchTimeout"] = ats.WriteBatchTimeout - objectMap["sinkRetryCount"] = ats.SinkRetryCount - objectMap["sinkRetryWait"] = ats.SinkRetryWait - if ats.Type != "" { - objectMap["type"] = ats.Type - } - for k, v := range ats.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureTableSink() (*AzureTableSink, bool) { - return &ats, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ats, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AzureTableSource a copy activity Azure Table source. -type AzureTableSource struct { - // AzureTableSourceQuery - Azure Table source query. Type: string (or Expression with resultType string). - AzureTableSourceQuery interface{} `json:"azureTableSourceQuery,omitempty"` - // AzureTableSourceIgnoreTableNotFound - Azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). - AzureTableSourceIgnoreTableNotFound interface{} `json:"azureTableSourceIgnoreTableNotFound,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for AzureTableSource. -func (ats AzureTableSource) MarshalJSON() ([]byte, error) { - ats.Type = TypeAzureTableSource - objectMap := make(map[string]interface{}) - objectMap["azureTableSourceQuery"] = ats.AzureTableSourceQuery - objectMap["azureTableSourceIgnoreTableNotFound"] = ats.AzureTableSourceIgnoreTableNotFound - objectMap["sourceRetryCount"] = ats.SourceRetryCount - objectMap["sourceRetryWait"] = ats.SourceRetryWait - if ats.Type != "" { - objectMap["type"] = ats.Type - } - for k, v := range ats.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureTableSource() (*AzureTableSource, bool) { - return &ats, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ats, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BlobSink a copy activity Azure Blob sink. -type BlobSink struct { - // BlobWriterOverwriteFiles - Blob writer overwrite files. Type: boolean (or Expression with resultType boolean). - BlobWriterOverwriteFiles interface{} `json:"blobWriterOverwriteFiles,omitempty"` - // BlobWriterDateTimeFormat - Blob writer date time format. Type: string (or Expression with resultType string). - BlobWriterDateTimeFormat interface{} `json:"blobWriterDateTimeFormat,omitempty"` - // BlobWriterAddHeader - Blob writer add header. Type: boolean (or Expression with resultType boolean). - BlobWriterAddHeader interface{} `json:"blobWriterAddHeader,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', 'MergeFiles' - CopyBehavior CopyBehaviorType `json:"copyBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for BlobSink. -func (bs BlobSink) MarshalJSON() ([]byte, error) { - bs.Type = TypeBlobSink - objectMap := make(map[string]interface{}) - objectMap["blobWriterOverwriteFiles"] = bs.BlobWriterOverwriteFiles - objectMap["blobWriterDateTimeFormat"] = bs.BlobWriterDateTimeFormat - objectMap["blobWriterAddHeader"] = bs.BlobWriterAddHeader - if bs.CopyBehavior != "" { - objectMap["copyBehavior"] = bs.CopyBehavior - } - objectMap["writeBatchSize"] = bs.WriteBatchSize - objectMap["writeBatchTimeout"] = bs.WriteBatchTimeout - objectMap["sinkRetryCount"] = bs.SinkRetryCount - objectMap["sinkRetryWait"] = bs.SinkRetryWait - if bs.Type != "" { - objectMap["type"] = bs.Type - } - for k, v := range bs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsBlobSink() (*BlobSink, bool) { - return &bs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsBasicCopySink() (BasicCopySink, bool) { - return &bs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BlobSource a copy activity Azure Blob source. -type BlobSource struct { - // TreatEmptyAsNull - Treat empty as null. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` - // SkipHeaderLineCount - Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). - SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for BlobSource. -func (bs BlobSource) MarshalJSON() ([]byte, error) { - bs.Type = TypeBlobSource - objectMap := make(map[string]interface{}) - objectMap["treatEmptyAsNull"] = bs.TreatEmptyAsNull - objectMap["skipHeaderLineCount"] = bs.SkipHeaderLineCount - objectMap["recursive"] = bs.Recursive - objectMap["sourceRetryCount"] = bs.SourceRetryCount - objectMap["sourceRetryWait"] = bs.SourceRetryWait - if bs.Type != "" { - objectMap["type"] = bs.Type - } - for k, v := range bs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsBlobSource() (*BlobSource, bool) { - return &bs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsBasicCopySource() (BasicCopySource, bool) { - return &bs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BlobTrigger trigger that runs everytime the selected Blob container changes. -type BlobTrigger struct { - // BlobTriggerTypeProperties - Blob Trigger properties. - *BlobTriggerTypeProperties `json:"typeProperties,omitempty"` - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Type - Possible values include: 'TypeTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for BlobTrigger. -func (bt BlobTrigger) MarshalJSON() ([]byte, error) { - bt.Type = TypeBlobTrigger - objectMap := make(map[string]interface{}) - if bt.BlobTriggerTypeProperties != nil { - objectMap["typeProperties"] = bt.BlobTriggerTypeProperties - } - if bt.Pipelines != nil { - objectMap["pipelines"] = bt.Pipelines - } - if bt.Description != nil { - objectMap["description"] = bt.Description - } - if bt.RuntimeState != "" { - objectMap["runtimeState"] = bt.RuntimeState - } - if bt.Type != "" { - objectMap["type"] = bt.Type - } - for k, v := range bt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTumblingWindowTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return &bt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsScheduleTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMultiplePipelineTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &bt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &bt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for BlobTrigger struct. -func (bt *BlobTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var blobTriggerTypeProperties BlobTriggerTypeProperties - err = json.Unmarshal(*v, &blobTriggerTypeProperties) - if err != nil { - return err - } - bt.BlobTriggerTypeProperties = &blobTriggerTypeProperties - } - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - bt.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bt.AdditionalProperties == nil { - bt.AdditionalProperties = make(map[string]interface{}) - } - bt.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - bt.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - bt.RuntimeState = runtimeState - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bt.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BlobTriggerTypeProperties blob Trigger properties. -type BlobTriggerTypeProperties struct { - // FolderPath - The path of the container/folder that will trigger the pipeline. - FolderPath *string `json:"folderPath,omitempty"` - // MaxConcurrency - The max number of parallel files to handle when it is triggered. - MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` - // LinkedService - The Azure Storage linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CassandraLinkedService linked service for Cassandra data source. -type CassandraLinkedService struct { - // CassandraLinkedServiceTypeProperties - Cassandra linked service properties. - *CassandraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CassandraLinkedService. -func (cls CassandraLinkedService) MarshalJSON() ([]byte, error) { - cls.Type = TypeCassandra - objectMap := make(map[string]interface{}) - if cls.CassandraLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cls.CassandraLinkedServiceTypeProperties - } - if cls.ConnectVia != nil { - objectMap["connectVia"] = cls.ConnectVia - } - if cls.Description != nil { - objectMap["description"] = cls.Description - } - if cls.Parameters != nil { - objectMap["parameters"] = cls.Parameters - } - if cls.Annotations != nil { - objectMap["annotations"] = cls.Annotations - } - if cls.Type != "" { - objectMap["type"] = cls.Type - } - for k, v := range cls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return &cls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CassandraLinkedService struct. -func (cls *CassandraLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cassandraLinkedServiceTypeProperties CassandraLinkedServiceTypeProperties - err = json.Unmarshal(*v, &cassandraLinkedServiceTypeProperties) - if err != nil { - return err - } - cls.CassandraLinkedServiceTypeProperties = &cassandraLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cls.AdditionalProperties == nil { - cls.AdditionalProperties = make(map[string]interface{}) - } - cls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CassandraLinkedServiceTypeProperties cassandra linked service properties. -type CassandraLinkedServiceTypeProperties struct { - // Host - Host name for connection. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // Port - The port for the connection. Type: integer (or Expression with resultType integer). - Port interface{} `json:"port,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CassandraLinkedServiceTypeProperties struct. -func (clstp *CassandraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - clstp.Host = host - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - clstp.AuthenticationType = authenticationType - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - clstp.Port = port - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - clstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - clstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - clstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CassandraSource a copy activity source for a Cassandra database. -type CassandraSource struct { - // Query - Database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) command. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ConsistencyLevel - The consistency level specifies how many Cassandra servers must respond to a read request before returning data to the client application. Cassandra checks the specified number of Cassandra servers for data to satisfy the read request. Must be one of cassandraSourceReadConsistencyLevels. The default value is 'ONE'. It is case-insensitive. Possible values include: 'ALL', 'EACHQUORUM', 'QUORUM', 'LOCALQUORUM', 'ONE', 'TWO', 'THREE', 'LOCALONE', 'SERIAL', 'LOCALSERIAL' - ConsistencyLevel CassandraSourceReadConsistencyLevels `json:"consistencyLevel,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CassandraSource. -func (cs CassandraSource) MarshalJSON() ([]byte, error) { - cs.Type = TypeCassandraSource - objectMap := make(map[string]interface{}) - objectMap["query"] = cs.Query - if cs.ConsistencyLevel != "" { - objectMap["consistencyLevel"] = cs.ConsistencyLevel - } - objectMap["sourceRetryCount"] = cs.SourceRetryCount - objectMap["sourceRetryWait"] = cs.SourceRetryWait - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCassandraSource() (*CassandraSource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CassandraTableDataset the Cassandra database dataset. -type CassandraTableDataset struct { - // CassandraTableDatasetTypeProperties - Cassandra dataset properties. - *CassandraTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CassandraTableDataset. -func (ctd CassandraTableDataset) MarshalJSON() ([]byte, error) { - ctd.Type = TypeCassandraTable - objectMap := make(map[string]interface{}) - if ctd.CassandraTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = ctd.CassandraTableDatasetTypeProperties - } - if ctd.Description != nil { - objectMap["description"] = ctd.Description - } - objectMap["structure"] = ctd.Structure - if ctd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ctd.LinkedServiceName - } - if ctd.Parameters != nil { - objectMap["parameters"] = ctd.Parameters - } - if ctd.Annotations != nil { - objectMap["annotations"] = ctd.Annotations - } - if ctd.Type != "" { - objectMap["type"] = ctd.Type - } - for k, v := range ctd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return &ctd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &ctd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CassandraTableDataset struct. -func (ctd *CassandraTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cassandraTableDatasetTypeProperties CassandraTableDatasetTypeProperties - err = json.Unmarshal(*v, &cassandraTableDatasetTypeProperties) - if err != nil { - return err - } - ctd.CassandraTableDatasetTypeProperties = &cassandraTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ctd.AdditionalProperties == nil { - ctd.AdditionalProperties = make(map[string]interface{}) - } - ctd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ctd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ctd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ctd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ctd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ctd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ctd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CassandraTableDatasetTypeProperties cassandra dataset properties. -type CassandraTableDatasetTypeProperties struct { - // TableName - The table name of the Cassandra database. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` - // Keyspace - The keyspace of the Cassandra database. Type: string (or Expression with resultType string). - Keyspace interface{} `json:"keyspace,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConcurLinkedService concur Serivce linked service. -type ConcurLinkedService struct { - // ConcurLinkedServiceTypeProperties - Concur Serivce linked service properties. - *ConcurLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ConcurLinkedService. -func (cls ConcurLinkedService) MarshalJSON() ([]byte, error) { - cls.Type = TypeConcur - objectMap := make(map[string]interface{}) - if cls.ConcurLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cls.ConcurLinkedServiceTypeProperties - } - if cls.ConnectVia != nil { - objectMap["connectVia"] = cls.ConnectVia - } - if cls.Description != nil { - objectMap["description"] = cls.Description - } - if cls.Parameters != nil { - objectMap["parameters"] = cls.Parameters - } - if cls.Annotations != nil { - objectMap["annotations"] = cls.Annotations - } - if cls.Type != "" { - objectMap["type"] = cls.Type - } - for k, v := range cls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return &cls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ConcurLinkedService struct. -func (cls *ConcurLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var concurLinkedServiceTypeProperties ConcurLinkedServiceTypeProperties - err = json.Unmarshal(*v, &concurLinkedServiceTypeProperties) - if err != nil { - return err - } - cls.ConcurLinkedServiceTypeProperties = &concurLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cls.AdditionalProperties == nil { - cls.AdditionalProperties = make(map[string]interface{}) - } - cls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConcurLinkedServiceTypeProperties concur Serivce linked service properties. -type ConcurLinkedServiceTypeProperties struct { - // ClientID - Application client_id supplied by Concur App Management. - ClientID interface{} `json:"clientId,omitempty"` - // Username - The user name that you use to access Concur Service. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the username field. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ConcurLinkedServiceTypeProperties struct. -func (clstp *ConcurLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - clstp.ClientID = clientID - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - clstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - clstp.Password = password - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - clstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - clstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - clstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - clstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConcurObjectDataset concur Serivce dataset. -type ConcurObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ConcurObjectDataset. -func (cod ConcurObjectDataset) MarshalJSON() ([]byte, error) { - cod.Type = TypeConcurObject - objectMap := make(map[string]interface{}) - if cod.Description != nil { - objectMap["description"] = cod.Description - } - objectMap["structure"] = cod.Structure - if cod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = cod.LinkedServiceName - } - if cod.Parameters != nil { - objectMap["parameters"] = cod.Parameters - } - if cod.Annotations != nil { - objectMap["annotations"] = cod.Annotations - } - if cod.Type != "" { - objectMap["type"] = cod.Type - } - for k, v := range cod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return &cod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &cod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ConcurSource a copy activity Concur Serivce source. -type ConcurSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ConcurSource. -func (cs ConcurSource) MarshalJSON() ([]byte, error) { - cs.Type = TypeConcurSource - objectMap := make(map[string]interface{}) - objectMap["query"] = cs.Query - objectMap["sourceRetryCount"] = cs.SourceRetryCount - objectMap["sourceRetryWait"] = cs.SourceRetryWait - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsConcurSource() (*ConcurSource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicControlActivity base class for all control activities like IfCondition, ForEach , Until. -type BasicControlActivity interface { - AsFilterActivity() (*FilterActivity, bool) - AsUntilActivity() (*UntilActivity, bool) - AsWaitActivity() (*WaitActivity, bool) - AsForEachActivity() (*ForEachActivity, bool) - AsIfConditionActivity() (*IfConditionActivity, bool) - AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) - AsControlActivity() (*ControlActivity, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ControlActivity base class for all control activities like IfCondition, ForEach , Until. -type ControlActivity struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -func unmarshalBasicControlActivity(body []byte) (BasicControlActivity, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeFilter): - var fa FilterActivity - err := json.Unmarshal(body, &fa) - return fa, err - case string(TypeUntil): - var ua UntilActivity - err := json.Unmarshal(body, &ua) - return ua, err - case string(TypeWait): - var wa WaitActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeForEach): - var fea ForEachActivity - err := json.Unmarshal(body, &fea) - return fea, err - case string(TypeIfCondition): - var ica IfConditionActivity - err := json.Unmarshal(body, &ica) - return ica, err - case string(TypeExecutePipeline): - var epa ExecutePipelineActivity - err := json.Unmarshal(body, &epa) - return epa, err - default: - var ca ControlActivity - err := json.Unmarshal(body, &ca) - return ca, err - } -} -func unmarshalBasicControlActivityArray(body []byte) ([]BasicControlActivity, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - caArray := make([]BasicControlActivity, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ca, err := unmarshalBasicControlActivity(*rawMessage) - if err != nil { - return nil, err - } - caArray[index] = ca - } - return caArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ControlActivity. -func (ca ControlActivity) MarshalJSON() ([]byte, error) { - ca.Type = TypeContainer - objectMap := make(map[string]interface{}) - if ca.Name != nil { - objectMap["name"] = ca.Name - } - if ca.Description != nil { - objectMap["description"] = ca.Description - } - if ca.DependsOn != nil { - objectMap["dependsOn"] = ca.DependsOn - } - if ca.Type != "" { - objectMap["type"] = ca.Type - } - for k, v := range ca.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsControlActivity() (*ControlActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsBasicActivity() (BasicActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CopyActivity copy activity. -type CopyActivity struct { - // CopyActivityTypeProperties - Copy activity properties. - *CopyActivityTypeProperties `json:"typeProperties,omitempty"` - // Inputs - List of inputs for the activity. - Inputs *[]DatasetReference `json:"inputs,omitempty"` - // Outputs - List of outputs for the activity. - Outputs *[]DatasetReference `json:"outputs,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CopyActivity. -func (ca CopyActivity) MarshalJSON() ([]byte, error) { - ca.Type = TypeCopy - objectMap := make(map[string]interface{}) - if ca.CopyActivityTypeProperties != nil { - objectMap["typeProperties"] = ca.CopyActivityTypeProperties - } - if ca.Inputs != nil { - objectMap["inputs"] = ca.Inputs - } - if ca.Outputs != nil { - objectMap["outputs"] = ca.Outputs - } - if ca.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ca.LinkedServiceName - } - if ca.Policy != nil { - objectMap["policy"] = ca.Policy - } - if ca.Name != nil { - objectMap["name"] = ca.Name - } - if ca.Description != nil { - objectMap["description"] = ca.Description - } - if ca.DependsOn != nil { - objectMap["dependsOn"] = ca.DependsOn - } - if ca.Type != "" { - objectMap["type"] = ca.Type - } - for k, v := range ca.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsCopyActivity() (*CopyActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsBasicActivity() (BasicActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CopyActivity struct. -func (ca *CopyActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var copyActivityTypeProperties CopyActivityTypeProperties - err = json.Unmarshal(*v, ©ActivityTypeProperties) - if err != nil { - return err - } - ca.CopyActivityTypeProperties = ©ActivityTypeProperties - } - case "inputs": - if v != nil { - var inputs []DatasetReference - err = json.Unmarshal(*v, &inputs) - if err != nil { - return err - } - ca.Inputs = &inputs - } - case "outputs": - if v != nil { - var outputs []DatasetReference - err = json.Unmarshal(*v, &outputs) - if err != nil { - return err - } - ca.Outputs = &outputs - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ca.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ca.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ca.AdditionalProperties == nil { - ca.AdditionalProperties = make(map[string]interface{}) - } - ca.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ca.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ca.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ca.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ca.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CopyActivityTypeProperties copy activity properties. -type CopyActivityTypeProperties struct { - // Source - Copy activity source. - Source BasicCopySource `json:"source,omitempty"` - // Sink - Copy activity sink. - Sink BasicCopySink `json:"sink,omitempty"` - // Translator - Copy activity translator. If not specificed, tabular translator is used. - Translator BasicCopyTranslator `json:"translator,omitempty"` - // EnableStaging - Specifies whether to copy data via an interim staging. Default value is false. Type: boolean (or Expression with resultType boolean). - EnableStaging interface{} `json:"enableStaging,omitempty"` - // StagingSettings - Specifies interim staging settings when EnableStaging is true. - StagingSettings *StagingSettings `json:"stagingSettings,omitempty"` - // ParallelCopies - Maximum number of concurrent sessions opened on the source or sink to avoid overloading the data store. Type: integer (or Expression with resultType integer), minimum: 0. - ParallelCopies interface{} `json:"parallelCopies,omitempty"` - // CloudDataMovementUnits - Maximum number of cloud data movement units that can be used to perform this data movement. Type: integer (or Expression with resultType integer), minimum: 0. - CloudDataMovementUnits interface{} `json:"cloudDataMovementUnits,omitempty"` - // EnableSkipIncompatibleRow - Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). - EnableSkipIncompatibleRow interface{} `json:"enableSkipIncompatibleRow,omitempty"` - // RedirectIncompatibleRowSettings - Redirect incompatible row settings when EnableSkipIncompatibleRow is true. - RedirectIncompatibleRowSettings *RedirectIncompatibleRowSettings `json:"redirectIncompatibleRowSettings,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CopyActivityTypeProperties struct. -func (catp *CopyActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "source": - if v != nil { - source, err := unmarshalBasicCopySource(*v) - if err != nil { - return err - } - catp.Source = source - } - case "sink": - if v != nil { - sink, err := unmarshalBasicCopySink(*v) - if err != nil { - return err - } - catp.Sink = sink - } - case "translator": - if v != nil { - translator, err := unmarshalBasicCopyTranslator(*v) - if err != nil { - return err - } - catp.Translator = translator - } - case "enableStaging": - if v != nil { - var enableStaging interface{} - err = json.Unmarshal(*v, &enableStaging) - if err != nil { - return err - } - catp.EnableStaging = enableStaging - } - case "stagingSettings": - if v != nil { - var stagingSettings StagingSettings - err = json.Unmarshal(*v, &stagingSettings) - if err != nil { - return err - } - catp.StagingSettings = &stagingSettings - } - case "parallelCopies": - if v != nil { - var parallelCopies interface{} - err = json.Unmarshal(*v, ¶llelCopies) - if err != nil { - return err - } - catp.ParallelCopies = parallelCopies - } - case "cloudDataMovementUnits": - if v != nil { - var cloudDataMovementUnits interface{} - err = json.Unmarshal(*v, &cloudDataMovementUnits) - if err != nil { - return err - } - catp.CloudDataMovementUnits = cloudDataMovementUnits - } - case "enableSkipIncompatibleRow": - if v != nil { - var enableSkipIncompatibleRow interface{} - err = json.Unmarshal(*v, &enableSkipIncompatibleRow) - if err != nil { - return err - } - catp.EnableSkipIncompatibleRow = enableSkipIncompatibleRow - } - case "redirectIncompatibleRowSettings": - if v != nil { - var redirectIncompatibleRowSettings RedirectIncompatibleRowSettings - err = json.Unmarshal(*v, &redirectIncompatibleRowSettings) - if err != nil { - return err - } - catp.RedirectIncompatibleRowSettings = &redirectIncompatibleRowSettings - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicCopySink a copy activity sink. -type BasicCopySink interface { - AsSalesforceSink() (*SalesforceSink, bool) - AsDynamicsSink() (*DynamicsSink, bool) - AsOdbcSink() (*OdbcSink, bool) - AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) - AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) - AsOracleSink() (*OracleSink, bool) - AsSQLDWSink() (*SQLDWSink, bool) - AsSQLSink() (*SQLSink, bool) - AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) - AsFileSystemSink() (*FileSystemSink, bool) - AsBlobSink() (*BlobSink, bool) - AsAzureTableSink() (*AzureTableSink, bool) - AsAzureQueueSink() (*AzureQueueSink, bool) - AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) - AsCopySink() (*CopySink, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CopySink a copy activity sink. -type CopySink struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -func unmarshalBasicCopySink(body []byte) (BasicCopySink, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeSalesforceSink): - var ss SalesforceSink - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeDynamicsSink): - var ds DynamicsSink - err := json.Unmarshal(body, &ds) - return ds, err - case string(TypeOdbcSink): - var osVar OdbcSink - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeAzureSearchIndexSink): - var asis AzureSearchIndexSink - err := json.Unmarshal(body, &asis) - return asis, err - case string(TypeAzureDataLakeStoreSink): - var adlss AzureDataLakeStoreSink - err := json.Unmarshal(body, &adlss) - return adlss, err - case string(TypeOracleSink): - var osVar OracleSink - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeSQLDWSink): - var sds SQLDWSink - err := json.Unmarshal(body, &sds) - return sds, err - case string(TypeSQLSink): - var ss SQLSink - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeDocumentDbCollectionSink): - var ddcs DocumentDbCollectionSink - err := json.Unmarshal(body, &ddcs) - return ddcs, err - case string(TypeFileSystemSink): - var fss FileSystemSink - err := json.Unmarshal(body, &fss) - return fss, err - case string(TypeBlobSink): - var bs BlobSink - err := json.Unmarshal(body, &bs) - return bs, err - case string(TypeAzureTableSink): - var ats AzureTableSink - err := json.Unmarshal(body, &ats) - return ats, err - case string(TypeAzureQueueSink): - var aqs AzureQueueSink - err := json.Unmarshal(body, &aqs) - return aqs, err - case string(TypeSapCloudForCustomerSink): - var scfcs SapCloudForCustomerSink - err := json.Unmarshal(body, &scfcs) - return scfcs, err - default: - var cs CopySink - err := json.Unmarshal(body, &cs) - return cs, err - } -} -func unmarshalBasicCopySinkArray(body []byte) ([]BasicCopySink, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - csArray := make([]BasicCopySink, len(rawMessages)) - - for index, rawMessage := range rawMessages { - cs, err := unmarshalBasicCopySink(*rawMessage) - if err != nil { - return nil, err - } - csArray[index] = cs - } - return csArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CopySink. -func (cs CopySink) MarshalJSON() ([]byte, error) { - cs.Type = TypeCopySink - objectMap := make(map[string]interface{}) - objectMap["writeBatchSize"] = cs.WriteBatchSize - objectMap["writeBatchTimeout"] = cs.WriteBatchTimeout - objectMap["sinkRetryCount"] = cs.SinkRetryCount - objectMap["sinkRetryWait"] = cs.SinkRetryWait - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsCopySink() (*CopySink, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsBasicCopySink() (BasicCopySink, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicCopySource a copy activity source. -type BasicCopySource interface { - AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) - AsResponsysSource() (*ResponsysSource, bool) - AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) - AsVerticaSource() (*VerticaSource, bool) - AsNetezzaSource() (*NetezzaSource, bool) - AsZohoSource() (*ZohoSource, bool) - AsXeroSource() (*XeroSource, bool) - AsSquareSource() (*SquareSource, bool) - AsSparkSource() (*SparkSource, bool) - AsShopifySource() (*ShopifySource, bool) - AsServiceNowSource() (*ServiceNowSource, bool) - AsQuickBooksSource() (*QuickBooksSource, bool) - AsPrestoSource() (*PrestoSource, bool) - AsPhoenixSource() (*PhoenixSource, bool) - AsPaypalSource() (*PaypalSource, bool) - AsMarketoSource() (*MarketoSource, bool) - AsMariaDBSource() (*MariaDBSource, bool) - AsMagentoSource() (*MagentoSource, bool) - AsJiraSource() (*JiraSource, bool) - AsImpalaSource() (*ImpalaSource, bool) - AsHubspotSource() (*HubspotSource, bool) - AsHiveSource() (*HiveSource, bool) - AsHBaseSource() (*HBaseSource, bool) - AsGreenplumSource() (*GreenplumSource, bool) - AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) - AsEloquaSource() (*EloquaSource, bool) - AsDrillSource() (*DrillSource, bool) - AsCouchbaseSource() (*CouchbaseSource, bool) - AsConcurSource() (*ConcurSource, bool) - AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) - AsAmazonMWSSource() (*AmazonMWSSource, bool) - AsHTTPSource() (*HTTPSource, bool) - AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) - AsMongoDbSource() (*MongoDbSource, bool) - AsCassandraSource() (*CassandraSource, bool) - AsWebSource() (*WebSource, bool) - AsOracleSource() (*OracleSource, bool) - AsAzureMySQLSource() (*AzureMySQLSource, bool) - AsHdfsSource() (*HdfsSource, bool) - AsFileSystemSource() (*FileSystemSource, bool) - AsSQLDWSource() (*SQLDWSource, bool) - AsSQLSource() (*SQLSource, bool) - AsSapEccSource() (*SapEccSource, bool) - AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) - AsSalesforceSource() (*SalesforceSource, bool) - AsRelationalSource() (*RelationalSource, bool) - AsDynamicsSource() (*DynamicsSource, bool) - AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) - AsBlobSource() (*BlobSource, bool) - AsAzureTableSource() (*AzureTableSource, bool) - AsCopySource() (*CopySource, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CopySource a copy activity source. -type CopySource struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -func unmarshalBasicCopySource(body []byte) (BasicCopySource, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeAmazonRedshiftSource): - var ars AmazonRedshiftSource - err := json.Unmarshal(body, &ars) - return ars, err - case string(TypeResponsysSource): - var rs ResponsysSource - err := json.Unmarshal(body, &rs) - return rs, err - case string(TypeSalesforceMarketingCloudSource): - var smcs SalesforceMarketingCloudSource - err := json.Unmarshal(body, &smcs) - return smcs, err - case string(TypeVerticaSource): - var vs VerticaSource - err := json.Unmarshal(body, &vs) - return vs, err - case string(TypeNetezzaSource): - var ns NetezzaSource - err := json.Unmarshal(body, &ns) - return ns, err - case string(TypeZohoSource): - var zs ZohoSource - err := json.Unmarshal(body, &zs) - return zs, err - case string(TypeXeroSource): - var xs XeroSource - err := json.Unmarshal(body, &xs) - return xs, err - case string(TypeSquareSource): - var ss SquareSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeSparkSource): - var ss SparkSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeShopifySource): - var ss ShopifySource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeServiceNowSource): - var sns ServiceNowSource - err := json.Unmarshal(body, &sns) - return sns, err - case string(TypeQuickBooksSource): - var qbs QuickBooksSource - err := json.Unmarshal(body, &qbs) - return qbs, err - case string(TypePrestoSource): - var ps PrestoSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypePhoenixSource): - var ps PhoenixSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypePaypalSource): - var ps PaypalSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeMarketoSource): - var ms MarketoSource - err := json.Unmarshal(body, &ms) - return ms, err - case string(TypeMariaDBSource): - var mds MariaDBSource - err := json.Unmarshal(body, &mds) - return mds, err - case string(TypeMagentoSource): - var ms MagentoSource - err := json.Unmarshal(body, &ms) - return ms, err - case string(TypeJiraSource): - var js JiraSource - err := json.Unmarshal(body, &js) - return js, err - case string(TypeImpalaSource): - var is ImpalaSource - err := json.Unmarshal(body, &is) - return is, err - case string(TypeHubspotSource): - var hs HubspotSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeHiveSource): - var hs HiveSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeHBaseSource): - var hbs HBaseSource - err := json.Unmarshal(body, &hbs) - return hbs, err - case string(TypeGreenplumSource): - var gs GreenplumSource - err := json.Unmarshal(body, &gs) - return gs, err - case string(TypeGoogleBigQuerySource): - var gbqs GoogleBigQuerySource - err := json.Unmarshal(body, &gbqs) - return gbqs, err - case string(TypeEloquaSource): - var es EloquaSource - err := json.Unmarshal(body, &es) - return es, err - case string(TypeDrillSource): - var ds DrillSource - err := json.Unmarshal(body, &ds) - return ds, err - case string(TypeCouchbaseSource): - var cs CouchbaseSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeConcurSource): - var cs ConcurSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeAzurePostgreSQLSource): - var apss AzurePostgreSQLSource - err := json.Unmarshal(body, &apss) - return apss, err - case string(TypeAmazonMWSSource): - var ams AmazonMWSSource - err := json.Unmarshal(body, &ams) - return ams, err - case string(TypeHTTPSource): - var hs HTTPSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeAzureDataLakeStoreSource): - var adlss AzureDataLakeStoreSource - err := json.Unmarshal(body, &adlss) - return adlss, err - case string(TypeMongoDbSource): - var mds MongoDbSource - err := json.Unmarshal(body, &mds) - return mds, err - case string(TypeCassandraSource): - var cs CassandraSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeWebSource): - var ws WebSource - err := json.Unmarshal(body, &ws) - return ws, err - case string(TypeOracleSource): - var osVar OracleSource - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeAzureMySQLSource): - var amss AzureMySQLSource - err := json.Unmarshal(body, &amss) - return amss, err - case string(TypeHdfsSource): - var hs HdfsSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeFileSystemSource): - var fss FileSystemSource - err := json.Unmarshal(body, &fss) - return fss, err - case string(TypeSQLDWSource): - var sds SQLDWSource - err := json.Unmarshal(body, &sds) - return sds, err - case string(TypeSQLSource): - var ss SQLSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeSapEccSource): - var ses SapEccSource - err := json.Unmarshal(body, &ses) - return ses, err - case string(TypeSapCloudForCustomerSource): - var scfcs SapCloudForCustomerSource - err := json.Unmarshal(body, &scfcs) - return scfcs, err - case string(TypeSalesforceSource): - var ss SalesforceSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeRelationalSource): - var rs RelationalSource - err := json.Unmarshal(body, &rs) - return rs, err - case string(TypeDynamicsSource): - var ds DynamicsSource - err := json.Unmarshal(body, &ds) - return ds, err - case string(TypeDocumentDbCollectionSource): - var ddcs DocumentDbCollectionSource - err := json.Unmarshal(body, &ddcs) - return ddcs, err - case string(TypeBlobSource): - var bs BlobSource - err := json.Unmarshal(body, &bs) - return bs, err - case string(TypeAzureTableSource): - var ats AzureTableSource - err := json.Unmarshal(body, &ats) - return ats, err - default: - var cs CopySource - err := json.Unmarshal(body, &cs) - return cs, err - } -} -func unmarshalBasicCopySourceArray(body []byte) ([]BasicCopySource, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - csArray := make([]BasicCopySource, len(rawMessages)) - - for index, rawMessage := range rawMessages { - cs, err := unmarshalBasicCopySource(*rawMessage) - if err != nil { - return nil, err - } - csArray[index] = cs - } - return csArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CopySource. -func (cs CopySource) MarshalJSON() ([]byte, error) { - cs.Type = TypeCopySource - objectMap := make(map[string]interface{}) - objectMap["sourceRetryCount"] = cs.SourceRetryCount - objectMap["sourceRetryWait"] = cs.SourceRetryWait - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCopySource() (*CopySource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicCopyTranslator a copy activity translator. -type BasicCopyTranslator interface { - AsTabularTranslator() (*TabularTranslator, bool) - AsCopyTranslator() (*CopyTranslator, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CopyTranslator a copy activity translator. -type CopyTranslator struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeCopyTranslator', 'TypeTabularTranslator' - Type TypeBasicCopyTranslator `json:"type,omitempty"` -} - -func unmarshalBasicCopyTranslator(body []byte) (BasicCopyTranslator, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeTabularTranslator): - var tt TabularTranslator - err := json.Unmarshal(body, &tt) - return tt, err - default: - var ct CopyTranslator - err := json.Unmarshal(body, &ct) - return ct, err - } -} -func unmarshalBasicCopyTranslatorArray(body []byte) ([]BasicCopyTranslator, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - ctArray := make([]BasicCopyTranslator, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ct, err := unmarshalBasicCopyTranslator(*rawMessage) - if err != nil { - return nil, err - } - ctArray[index] = ct - } - return ctArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CopyTranslator. -func (ct CopyTranslator) MarshalJSON() ([]byte, error) { - ct.Type = TypeCopyTranslator - objectMap := make(map[string]interface{}) - if ct.Type != "" { - objectMap["type"] = ct.Type - } - for k, v := range ct.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTabularTranslator is the BasicCopyTranslator implementation for CopyTranslator. -func (ct CopyTranslator) AsTabularTranslator() (*TabularTranslator, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyTranslator is the BasicCopyTranslator implementation for CopyTranslator. -func (ct CopyTranslator) AsCopyTranslator() (*CopyTranslator, bool) { - return &ct, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopyTranslator is the BasicCopyTranslator implementation for CopyTranslator. -func (ct CopyTranslator) AsBasicCopyTranslator() (BasicCopyTranslator, bool) { - return &ct, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CosmosDbLinkedService microsoft Azure Cosmos Database (CosmosDB) linked service. -type CosmosDbLinkedService struct { - // CosmosDbLinkedServiceTypeProperties - CosmosDB linked service properties. - *CosmosDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) MarshalJSON() ([]byte, error) { - cdls.Type = TypeCosmosDb - objectMap := make(map[string]interface{}) - if cdls.CosmosDbLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cdls.CosmosDbLinkedServiceTypeProperties - } - if cdls.ConnectVia != nil { - objectMap["connectVia"] = cdls.ConnectVia - } - if cdls.Description != nil { - objectMap["description"] = cdls.Description - } - if cdls.Parameters != nil { - objectMap["parameters"] = cdls.Parameters - } - if cdls.Annotations != nil { - objectMap["annotations"] = cdls.Annotations - } - if cdls.Type != "" { - objectMap["type"] = cdls.Type - } - for k, v := range cdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return &cdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CosmosDbLinkedService struct. -func (cdls *CosmosDbLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cosmosDbLinkedServiceTypeProperties CosmosDbLinkedServiceTypeProperties - err = json.Unmarshal(*v, &cosmosDbLinkedServiceTypeProperties) - if err != nil { - return err - } - cdls.CosmosDbLinkedServiceTypeProperties = &cosmosDbLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdls.AdditionalProperties == nil { - cdls.AdditionalProperties = make(map[string]interface{}) - } - cdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CosmosDbLinkedServiceTypeProperties cosmosDB linked service properties. -type CosmosDbLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CosmosDbLinkedServiceTypeProperties struct. -func (cdlstp *CosmosDbLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - cdlstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - cdlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CouchbaseLinkedService couchbase server linked service. -type CouchbaseLinkedService struct { - // CouchbaseLinkedServiceTypeProperties - Couchbase server linked service properties. - *CouchbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) MarshalJSON() ([]byte, error) { - cls.Type = TypeCouchbase - objectMap := make(map[string]interface{}) - if cls.CouchbaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cls.CouchbaseLinkedServiceTypeProperties - } - if cls.ConnectVia != nil { - objectMap["connectVia"] = cls.ConnectVia - } - if cls.Description != nil { - objectMap["description"] = cls.Description - } - if cls.Parameters != nil { - objectMap["parameters"] = cls.Parameters - } - if cls.Annotations != nil { - objectMap["annotations"] = cls.Annotations - } - if cls.Type != "" { - objectMap["type"] = cls.Type - } - for k, v := range cls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return &cls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CouchbaseLinkedService struct. -func (cls *CouchbaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var couchbaseLinkedServiceTypeProperties CouchbaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &couchbaseLinkedServiceTypeProperties) - if err != nil { - return err - } - cls.CouchbaseLinkedServiceTypeProperties = &couchbaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cls.AdditionalProperties == nil { - cls.AdditionalProperties = make(map[string]interface{}) - } - cls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CouchbaseLinkedServiceTypeProperties couchbase server linked service properties. -type CouchbaseLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CouchbaseLinkedServiceTypeProperties struct. -func (clstp *CouchbaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - clstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - clstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CouchbaseSource a copy activity Couchbase server source. -type CouchbaseSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CouchbaseSource. -func (cs CouchbaseSource) MarshalJSON() ([]byte, error) { - cs.Type = TypeCouchbaseSource - objectMap := make(map[string]interface{}) - objectMap["query"] = cs.Query - objectMap["sourceRetryCount"] = cs.SourceRetryCount - objectMap["sourceRetryWait"] = cs.SourceRetryWait - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CouchbaseTableDataset couchbase server dataset. -type CouchbaseTableDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) MarshalJSON() ([]byte, error) { - ctd.Type = TypeCouchbaseTable - objectMap := make(map[string]interface{}) - if ctd.Description != nil { - objectMap["description"] = ctd.Description - } - objectMap["structure"] = ctd.Structure - if ctd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ctd.LinkedServiceName - } - if ctd.Parameters != nil { - objectMap["parameters"] = ctd.Parameters - } - if ctd.Annotations != nil { - objectMap["annotations"] = ctd.Annotations - } - if ctd.Type != "" { - objectMap["type"] = ctd.Type - } - for k, v := range ctd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return &ctd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &ctd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateRunResponse response body with a run identifier. -type CreateRunResponse struct { - autorest.Response `json:"-"` - // RunID - Identifier of a run. - RunID *string `json:"runId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CustomActivity custom activity type. -type CustomActivity struct { - // CustomActivityTypeProperties - Custom activity properties. - *CustomActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CustomActivity. -func (ca CustomActivity) MarshalJSON() ([]byte, error) { - ca.Type = TypeCustom - objectMap := make(map[string]interface{}) - if ca.CustomActivityTypeProperties != nil { - objectMap["typeProperties"] = ca.CustomActivityTypeProperties - } - if ca.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ca.LinkedServiceName - } - if ca.Policy != nil { - objectMap["policy"] = ca.Policy - } - if ca.Name != nil { - objectMap["name"] = ca.Name - } - if ca.Description != nil { - objectMap["description"] = ca.Description - } - if ca.DependsOn != nil { - objectMap["dependsOn"] = ca.DependsOn - } - if ca.Type != "" { - objectMap["type"] = ca.Type - } - for k, v := range ca.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsCustomActivity() (*CustomActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsBasicActivity() (BasicActivity, bool) { - return &ca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for CustomActivity struct. -func (ca *CustomActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var customActivityTypeProperties CustomActivityTypeProperties - err = json.Unmarshal(*v, &customActivityTypeProperties) - if err != nil { - return err - } - ca.CustomActivityTypeProperties = &customActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ca.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ca.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ca.AdditionalProperties == nil { - ca.AdditionalProperties = make(map[string]interface{}) - } - ca.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ca.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ca.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ca.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ca.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CustomActivityReferenceObject reference objects for custom activity -type CustomActivityReferenceObject struct { - // LinkedServices - Linked service references. - LinkedServices *[]LinkedServiceReference `json:"linkedServices,omitempty"` - // Datasets - Dataset references. - Datasets *[]DatasetReference `json:"datasets,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CustomActivityTypeProperties custom activity properties. -type CustomActivityTypeProperties struct { - // Command - Command for custom activity Type: string (or Expression with resultType string). - Command interface{} `json:"command,omitempty"` - // ResourceLinkedService - Resource linked service reference. - ResourceLinkedService *LinkedServiceReference `json:"resourceLinkedService,omitempty"` - // FolderPath - Folder path for resource files Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // ReferenceObjects - Reference objects - ReferenceObjects *CustomActivityReferenceObject `json:"referenceObjects,omitempty"` - // ExtendedProperties - User defined property bag. There is no restriction on the keys or values that can be used. The user specified custom activity has the full responsibility to consume and interpret the content defined. - ExtendedProperties map[string]interface{} `json:"extendedProperties"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CustomActivityTypeProperties. -func (catp CustomActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["command"] = catp.Command - if catp.ResourceLinkedService != nil { - objectMap["resourceLinkedService"] = catp.ResourceLinkedService - } - objectMap["folderPath"] = catp.FolderPath - if catp.ReferenceObjects != nil { - objectMap["referenceObjects"] = catp.ReferenceObjects - } - if catp.ExtendedProperties != nil { - objectMap["extendedProperties"] = catp.ExtendedProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CustomDataset the custom dataset. -type CustomDataset struct { - // TypeProperties - Custom dataset properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CustomDataset. -func (cd CustomDataset) MarshalJSON() ([]byte, error) { - cd.Type = TypeCustomDataset - objectMap := make(map[string]interface{}) - objectMap["typeProperties"] = cd.TypeProperties - if cd.Description != nil { - objectMap["description"] = cd.Description - } - objectMap["structure"] = cd.Structure - if cd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = cd.LinkedServiceName - } - if cd.Parameters != nil { - objectMap["parameters"] = cd.Parameters - } - if cd.Annotations != nil { - objectMap["annotations"] = cd.Annotations - } - if cd.Type != "" { - objectMap["type"] = cd.Type - } - for k, v := range cd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCustomDataset() (*CustomDataset, bool) { - return &cd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsBasicDataset() (BasicDataset, bool) { - return &cd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CustomDataSourceLinkedService custom linked service. -type CustomDataSourceLinkedService struct { - // TypeProperties - Custom linked service properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { - cdsls.Type = TypeCustomDataSource - objectMap := make(map[string]interface{}) - objectMap["typeProperties"] = cdsls.TypeProperties - if cdsls.ConnectVia != nil { - objectMap["connectVia"] = cdsls.ConnectVia - } - if cdsls.Description != nil { - objectMap["description"] = cdsls.Description - } - if cdsls.Parameters != nil { - objectMap["parameters"] = cdsls.Parameters - } - if cdsls.Annotations != nil { - objectMap["annotations"] = cdsls.Annotations - } - if cdsls.Type != "" { - objectMap["type"] = cdsls.Type - } - for k, v := range cdsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return &cdsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cdsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatabricksNotebookActivity databricksNotebook activity. -type DatabricksNotebookActivity struct { - // DatabricksNotebookActivityTypeProperties - Databricks Notebook activity properties. - *DatabricksNotebookActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { - dna.Type = TypeDatabricksNotebook - objectMap := make(map[string]interface{}) - if dna.DatabricksNotebookActivityTypeProperties != nil { - objectMap["typeProperties"] = dna.DatabricksNotebookActivityTypeProperties - } - if dna.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dna.LinkedServiceName - } - if dna.Policy != nil { - objectMap["policy"] = dna.Policy - } - if dna.Name != nil { - objectMap["name"] = dna.Name - } - if dna.Description != nil { - objectMap["description"] = dna.Description - } - if dna.DependsOn != nil { - objectMap["dependsOn"] = dna.DependsOn - } - if dna.Type != "" { - objectMap["type"] = dna.Type - } - for k, v := range dna.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return &dna, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dna, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicActivity() (BasicActivity, bool) { - return &dna, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DatabricksNotebookActivity struct. -func (dna *DatabricksNotebookActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var databricksNotebookActivityTypeProperties DatabricksNotebookActivityTypeProperties - err = json.Unmarshal(*v, &databricksNotebookActivityTypeProperties) - if err != nil { - return err - } - dna.DatabricksNotebookActivityTypeProperties = &databricksNotebookActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dna.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dna.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dna.AdditionalProperties == nil { - dna.AdditionalProperties = make(map[string]interface{}) - } - dna.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dna.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dna.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dna.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dna.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatabricksNotebookActivityTypeProperties databricks Notebook activity properties. -type DatabricksNotebookActivityTypeProperties struct { - // NotebookPath - The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: string (or Expression with resultType string). - NotebookPath interface{} `json:"notebookPath,omitempty"` - // BaseParameters - Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used. - BaseParameters map[string]interface{} `json:"baseParameters"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatabricksNotebookActivityTypeProperties. -func (dnatp DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["notebookPath"] = dnatp.NotebookPath - if dnatp.BaseParameters != nil { - objectMap["baseParameters"] = dnatp.BaseParameters - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DataLakeAnalyticsUSQLActivity data Lake Analytics U-SQL activity. -type DataLakeAnalyticsUSQLActivity struct { - // DataLakeAnalyticsUSQLActivityTypeProperties - Data Lake Analytics U-SQL activity properties. - *DataLakeAnalyticsUSQLActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error) { - dlaua.Type = TypeDataLakeAnalyticsUSQL - objectMap := make(map[string]interface{}) - if dlaua.DataLakeAnalyticsUSQLActivityTypeProperties != nil { - objectMap["typeProperties"] = dlaua.DataLakeAnalyticsUSQLActivityTypeProperties - } - if dlaua.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dlaua.LinkedServiceName - } - if dlaua.Policy != nil { - objectMap["policy"] = dlaua.Policy - } - if dlaua.Name != nil { - objectMap["name"] = dlaua.Name - } - if dlaua.Description != nil { - objectMap["description"] = dlaua.Description - } - if dlaua.DependsOn != nil { - objectMap["dependsOn"] = dlaua.DependsOn - } - if dlaua.Type != "" { - objectMap["type"] = dlaua.Type - } - for k, v := range dlaua.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return &dlaua, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dlaua, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicActivity() (BasicActivity, bool) { - return &dlaua, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DataLakeAnalyticsUSQLActivity struct. -func (dlaua *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dataLakeAnalyticsUSQLActivityTypeProperties DataLakeAnalyticsUSQLActivityTypeProperties - err = json.Unmarshal(*v, &dataLakeAnalyticsUSQLActivityTypeProperties) - if err != nil { - return err - } - dlaua.DataLakeAnalyticsUSQLActivityTypeProperties = &dataLakeAnalyticsUSQLActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dlaua.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dlaua.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dlaua.AdditionalProperties == nil { - dlaua.AdditionalProperties = make(map[string]interface{}) - } - dlaua.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dlaua.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dlaua.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dlaua.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dlaua.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DataLakeAnalyticsUSQLActivityTypeProperties dataLakeAnalyticsU-SQL activity properties. -type DataLakeAnalyticsUSQLActivityTypeProperties struct { - // ScriptPath - Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` - // ScriptLinkedService - Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` - // DegreeOfParallelism - The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1. - DegreeOfParallelism interface{} `json:"degreeOfParallelism,omitempty"` - // Priority - Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1. - Priority interface{} `json:"priority,omitempty"` - // Parameters - Parameters for U-SQL job request. - Parameters map[string]interface{} `json:"parameters"` - // RuntimeVersion - Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). - RuntimeVersion interface{} `json:"runtimeVersion,omitempty"` - // CompilationMode - Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string). - CompilationMode interface{} `json:"compilationMode,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DataLakeAnalyticsUSQLActivityTypeProperties. -func (dlauatp DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["scriptPath"] = dlauatp.ScriptPath - if dlauatp.ScriptLinkedService != nil { - objectMap["scriptLinkedService"] = dlauatp.ScriptLinkedService - } - objectMap["degreeOfParallelism"] = dlauatp.DegreeOfParallelism - objectMap["priority"] = dlauatp.Priority - if dlauatp.Parameters != nil { - objectMap["parameters"] = dlauatp.Parameters - } - objectMap["runtimeVersion"] = dlauatp.RuntimeVersion - objectMap["compilationMode"] = dlauatp.CompilationMode - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicDataset the Azure Data Factory nested object which identifies data within different data stores, such as -// tables, files, folders, and documents. -type BasicDataset interface { - AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) - AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) - AsVerticaTableDataset() (*VerticaTableDataset, bool) - AsNetezzaTableDataset() (*NetezzaTableDataset, bool) - AsZohoObjectDataset() (*ZohoObjectDataset, bool) - AsXeroObjectDataset() (*XeroObjectDataset, bool) - AsSquareObjectDataset() (*SquareObjectDataset, bool) - AsSparkObjectDataset() (*SparkObjectDataset, bool) - AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) - AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) - AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) - AsPrestoObjectDataset() (*PrestoObjectDataset, bool) - AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) - AsPaypalObjectDataset() (*PaypalObjectDataset, bool) - AsMarketoObjectDataset() (*MarketoObjectDataset, bool) - AsMariaDBTableDataset() (*MariaDBTableDataset, bool) - AsMagentoObjectDataset() (*MagentoObjectDataset, bool) - AsJiraObjectDataset() (*JiraObjectDataset, bool) - AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) - AsHubspotObjectDataset() (*HubspotObjectDataset, bool) - AsHiveObjectDataset() (*HiveObjectDataset, bool) - AsHBaseObjectDataset() (*HBaseObjectDataset, bool) - AsGreenplumTableDataset() (*GreenplumTableDataset, bool) - AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) - AsEloquaObjectDataset() (*EloquaObjectDataset, bool) - AsDrillTableDataset() (*DrillTableDataset, bool) - AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) - AsConcurObjectDataset() (*ConcurObjectDataset, bool) - AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) - AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) - AsHTTPDataset() (*HTTPDataset, bool) - AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) - AsWebTableDataset() (*WebTableDataset, bool) - AsSQLServerTableDataset() (*SQLServerTableDataset, bool) - AsSapEccResourceDataset() (*SapEccResourceDataset, bool) - AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) - AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) - AsRelationalTableDataset() (*RelationalTableDataset, bool) - AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) - AsOracleTableDataset() (*OracleTableDataset, bool) - AsODataResourceDataset() (*ODataResourceDataset, bool) - AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) - AsFileShareDataset() (*FileShareDataset, bool) - AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) - AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) - AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) - AsCustomDataset() (*CustomDataset, bool) - AsCassandraTableDataset() (*CassandraTableDataset, bool) - AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) - AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) - AsAzureTableDataset() (*AzureTableDataset, bool) - AsAzureBlobDataset() (*AzureBlobDataset, bool) - AsAmazonS3Dataset() (*AmazonS3Dataset, bool) - AsDataset() (*Dataset, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Dataset the Azure Data Factory nested object which identifies data within different data stores, such as tables, -// files, folders, and documents. -type Dataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -func unmarshalBasicDataset(body []byte) (BasicDataset, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeResponsysObject): - var rod ResponsysObjectDataset - err := json.Unmarshal(body, &rod) - return rod, err - case string(TypeSalesforceMarketingCloudObject): - var smcod SalesforceMarketingCloudObjectDataset - err := json.Unmarshal(body, &smcod) - return smcod, err - case string(TypeVerticaTable): - var vtd VerticaTableDataset - err := json.Unmarshal(body, &vtd) - return vtd, err - case string(TypeNetezzaTable): - var ntd NetezzaTableDataset - err := json.Unmarshal(body, &ntd) - return ntd, err - case string(TypeZohoObject): - var zod ZohoObjectDataset - err := json.Unmarshal(body, &zod) - return zod, err - case string(TypeXeroObject): - var xod XeroObjectDataset - err := json.Unmarshal(body, &xod) - return xod, err - case string(TypeSquareObject): - var sod SquareObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeSparkObject): - var sod SparkObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeShopifyObject): - var sod ShopifyObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeServiceNowObject): - var snod ServiceNowObjectDataset - err := json.Unmarshal(body, &snod) - return snod, err - case string(TypeQuickBooksObject): - var qbod QuickBooksObjectDataset - err := json.Unmarshal(body, &qbod) - return qbod, err - case string(TypePrestoObject): - var pod PrestoObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypePhoenixObject): - var pod PhoenixObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypePaypalObject): - var pod PaypalObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypeMarketoObject): - var mod MarketoObjectDataset - err := json.Unmarshal(body, &mod) - return mod, err - case string(TypeMariaDBTable): - var mdtd MariaDBTableDataset - err := json.Unmarshal(body, &mdtd) - return mdtd, err - case string(TypeMagentoObject): - var mod MagentoObjectDataset - err := json.Unmarshal(body, &mod) - return mod, err - case string(TypeJiraObject): - var jod JiraObjectDataset - err := json.Unmarshal(body, &jod) - return jod, err - case string(TypeImpalaObject): - var iod ImpalaObjectDataset - err := json.Unmarshal(body, &iod) - return iod, err - case string(TypeHubspotObject): - var hod HubspotObjectDataset - err := json.Unmarshal(body, &hod) - return hod, err - case string(TypeHiveObject): - var hod HiveObjectDataset - err := json.Unmarshal(body, &hod) - return hod, err - case string(TypeHBaseObject): - var hbod HBaseObjectDataset - err := json.Unmarshal(body, &hbod) - return hbod, err - case string(TypeGreenplumTable): - var gtd GreenplumTableDataset - err := json.Unmarshal(body, >d) - return gtd, err - case string(TypeGoogleBigQueryObject): - var gbqod GoogleBigQueryObjectDataset - err := json.Unmarshal(body, &gbqod) - return gbqod, err - case string(TypeEloquaObject): - var eod EloquaObjectDataset - err := json.Unmarshal(body, &eod) - return eod, err - case string(TypeDrillTable): - var dtd DrillTableDataset - err := json.Unmarshal(body, &dtd) - return dtd, err - case string(TypeCouchbaseTable): - var ctd CouchbaseTableDataset - err := json.Unmarshal(body, &ctd) - return ctd, err - case string(TypeConcurObject): - var cod ConcurObjectDataset - err := json.Unmarshal(body, &cod) - return cod, err - case string(TypeAzurePostgreSQLTable): - var apstd AzurePostgreSQLTableDataset - err := json.Unmarshal(body, &apstd) - return apstd, err - case string(TypeAmazonMWSObject): - var amod AmazonMWSObjectDataset - err := json.Unmarshal(body, &amod) - return amod, err - case string(TypeHTTPFile): - var hd HTTPDataset - err := json.Unmarshal(body, &hd) - return hd, err - case string(TypeAzureSearchIndex): - var asid AzureSearchIndexDataset - err := json.Unmarshal(body, &asid) - return asid, err - case string(TypeWebTable): - var wtd WebTableDataset - err := json.Unmarshal(body, &wtd) - return wtd, err - case string(TypeSQLServerTable): - var sstd SQLServerTableDataset - err := json.Unmarshal(body, &sstd) - return sstd, err - case string(TypeSapEccResource): - var serd SapEccResourceDataset - err := json.Unmarshal(body, &serd) - return serd, err - case string(TypeSapCloudForCustomerResource): - var scfcrd SapCloudForCustomerResourceDataset - err := json.Unmarshal(body, &scfcrd) - return scfcrd, err - case string(TypeSalesforceObject): - var sod SalesforceObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeRelationalTable): - var rtd RelationalTableDataset - err := json.Unmarshal(body, &rtd) - return rtd, err - case string(TypeAzureMySQLTable): - var amstd AzureMySQLTableDataset - err := json.Unmarshal(body, &amstd) - return amstd, err - case string(TypeOracleTable): - var otd OracleTableDataset - err := json.Unmarshal(body, &otd) - return otd, err - case string(TypeODataResource): - var odrd ODataResourceDataset - err := json.Unmarshal(body, &odrd) - return odrd, err - case string(TypeMongoDbCollection): - var mdcd MongoDbCollectionDataset - err := json.Unmarshal(body, &mdcd) - return mdcd, err - case string(TypeFileShare): - var fsd FileShareDataset - err := json.Unmarshal(body, &fsd) - return fsd, err - case string(TypeAzureDataLakeStoreFile): - var adlsd AzureDataLakeStoreDataset - err := json.Unmarshal(body, &adlsd) - return adlsd, err - case string(TypeDynamicsEntity): - var ded DynamicsEntityDataset - err := json.Unmarshal(body, &ded) - return ded, err - case string(TypeDocumentDbCollection): - var ddcd DocumentDbCollectionDataset - err := json.Unmarshal(body, &ddcd) - return ddcd, err - case string(TypeCustomDataset): - var cd CustomDataset - err := json.Unmarshal(body, &cd) - return cd, err - case string(TypeCassandraTable): - var ctd CassandraTableDataset - err := json.Unmarshal(body, &ctd) - return ctd, err - case string(TypeAzureSQLDWTable): - var asdtd AzureSQLDWTableDataset - err := json.Unmarshal(body, &asdtd) - return asdtd, err - case string(TypeAzureSQLTable): - var astd AzureSQLTableDataset - err := json.Unmarshal(body, &astd) - return astd, err - case string(TypeAzureTable): - var atd AzureTableDataset - err := json.Unmarshal(body, &atd) - return atd, err - case string(TypeAzureBlob): - var abd AzureBlobDataset - err := json.Unmarshal(body, &abd) - return abd, err - case string(TypeAmazonS3Object): - var asd AmazonS3Dataset - err := json.Unmarshal(body, &asd) - return asd, err - default: - var d Dataset - err := json.Unmarshal(body, &d) - return d, err - } -} -func unmarshalBasicDatasetArray(body []byte) ([]BasicDataset, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dArray := make([]BasicDataset, len(rawMessages)) - - for index, rawMessage := range rawMessages { - d, err := unmarshalBasicDataset(*rawMessage) - if err != nil { - return nil, err - } - dArray[index] = d - } - return dArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Dataset. -func (d Dataset) MarshalJSON() ([]byte, error) { - d.Type = TypeDataset - objectMap := make(map[string]interface{}) - if d.Description != nil { - objectMap["description"] = d.Description - } - objectMap["structure"] = d.Structure - if d.LinkedServiceName != nil { - objectMap["linkedServiceName"] = d.LinkedServiceName - } - if d.Parameters != nil { - objectMap["parameters"] = d.Parameters - } - if d.Annotations != nil { - objectMap["annotations"] = d.Annotations - } - if d.Type != "" { - objectMap["type"] = d.Type - } - for k, v := range d.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDataset() (*Dataset, bool) { - return &d, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsBasicDataset() (BasicDataset, bool) { - return &d, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetBZip2Compression the BZip2 compression method used on a dataset. -type DatasetBZip2Compression struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) MarshalJSON() ([]byte, error) { - dbz2c.Type = TypeBZip2 - objectMap := make(map[string]interface{}) - if dbz2c.Type != "" { - objectMap["type"] = dbz2c.Type - } - for k, v := range dbz2c.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return &dbz2c, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetBZip2Compression. -func (dbz2c DatasetBZip2Compression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dbz2c, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicDatasetCompression the compression method used on a dataset. -type BasicDatasetCompression interface { - AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) - AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) - AsDatasetGZipCompression() (*DatasetGZipCompression, bool) - AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) - AsDatasetCompression() (*DatasetCompression, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetCompression the compression method used on a dataset. -type DatasetCompression struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -func unmarshalBasicDatasetCompression(body []byte) (BasicDatasetCompression, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeZipDeflate): - var dzdc DatasetZipDeflateCompression - err := json.Unmarshal(body, &dzdc) - return dzdc, err - case string(TypeDeflate): - var ddc DatasetDeflateCompression - err := json.Unmarshal(body, &ddc) - return ddc, err - case string(TypeGZip): - var dgzc DatasetGZipCompression - err := json.Unmarshal(body, &dgzc) - return dgzc, err - case string(TypeBZip2): - var dbz2c DatasetBZip2Compression - err := json.Unmarshal(body, &dbz2c) - return dbz2c, err - default: - var dc DatasetCompression - err := json.Unmarshal(body, &dc) - return dc, err - } -} -func unmarshalBasicDatasetCompressionArray(body []byte) ([]BasicDatasetCompression, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dcArray := make([]BasicDatasetCompression, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dc, err := unmarshalBasicDatasetCompression(*rawMessage) - if err != nil { - return nil, err - } - dcArray[index] = dc - } - return dcArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatasetCompression. -func (dc DatasetCompression) MarshalJSON() ([]byte, error) { - dc.Type = TypeDatasetCompression - objectMap := make(map[string]interface{}) - if dc.Type != "" { - objectMap["type"] = dc.Type - } - for k, v := range dc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return &dc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetCompression. -func (dc DatasetCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetDeflateCompression the Deflate compression method used on a dataset. -type DatasetDeflateCompression struct { - // Level - The Deflate compression level. Possible values include: 'Optimal', 'Fastest' - Level DatasetCompressionLevel `json:"level,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) MarshalJSON() ([]byte, error) { - ddc.Type = TypeDeflate - objectMap := make(map[string]interface{}) - if ddc.Level != "" { - objectMap["level"] = ddc.Level - } - if ddc.Type != "" { - objectMap["type"] = ddc.Type - } - for k, v := range ddc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return &ddc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetDeflateCompression. -func (ddc DatasetDeflateCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &ddc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetGZipCompression the GZip compression method used on a dataset. -type DatasetGZipCompression struct { - // Level - The GZip compression level. Possible values include: 'Optimal', 'Fastest' - Level DatasetCompressionLevel `json:"level,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) MarshalJSON() ([]byte, error) { - dgzc.Type = TypeGZip - objectMap := make(map[string]interface{}) - if dgzc.Level != "" { - objectMap["level"] = dgzc.Level - } - if dgzc.Type != "" { - objectMap["type"] = dgzc.Type - } - for k, v := range dgzc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return &dgzc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetGZipCompression. -func (dgzc DatasetGZipCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dgzc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetListResponse a list of dataset resources. -type DatasetListResponse struct { - autorest.Response `json:"-"` - // Value - List of datasets. - Value *[]DatasetResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetListResponseIterator provides access to a complete listing of DatasetResource values. -type DatasetListResponseIterator struct { - i int - page DatasetListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *DatasetListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter DatasetListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter DatasetListResponseIterator) Response() DatasetListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter DatasetListResponseIterator) Value() DatasetResource { - if !iter.page.NotDone() { - return DatasetResource{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (dlr DatasetListResponse) IsEmpty() bool { - return dlr.Value == nil || len(*dlr.Value) == 0 -} - -// datasetListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (dlr DatasetListResponse) datasetListResponsePreparer() (*http.Request, error) { - if dlr.NextLink == nil || len(to.String(dlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(dlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetListResponsePage contains a page of DatasetResource values. -type DatasetListResponsePage struct { - fn func(DatasetListResponse) (DatasetListResponse, error) - dlr DatasetListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *DatasetListResponsePage) Next() error { - next, err := page.fn(page.dlr) - if err != nil { - return err - } - page.dlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page DatasetListResponsePage) NotDone() bool { - return !page.dlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page DatasetListResponsePage) Response() DatasetListResponse { - return page.dlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page DatasetListResponsePage) Values() []DatasetResource { - if page.dlr.IsEmpty() { - return nil - } - return *page.dlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetReference dataset reference type. -type DatasetReference struct { - // Type - Dataset reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference dataset name. - ReferenceName *string `json:"referenceName,omitempty"` - // Parameters - Arguments for dataset. - Parameters map[string]interface{} `json:"parameters"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatasetReference. -func (dr DatasetReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dr.Type != nil { - objectMap["type"] = dr.Type - } - if dr.ReferenceName != nil { - objectMap["referenceName"] = dr.ReferenceName - } - if dr.Parameters != nil { - objectMap["parameters"] = dr.Parameters - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetResource dataset resource type. -type DatasetResource struct { - autorest.Response `json:"-"` - // Properties - Dataset properties. - Properties BasicDataset `json:"properties,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DatasetResource struct. -func (dr *DatasetResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicDataset(*v) - if err != nil { - return err - } - dr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - dr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - dr.Etag = &etag - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicDatasetStorageFormat the format definition of a storage. -type BasicDatasetStorageFormat interface { - AsParquetFormat() (*ParquetFormat, bool) - AsOrcFormat() (*OrcFormat, bool) - AsAvroFormat() (*AvroFormat, bool) - AsJSONFormat() (*JSONFormat, bool) - AsTextFormat() (*TextFormat, bool) - AsDatasetStorageFormat() (*DatasetStorageFormat, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetStorageFormat the format definition of a storage. -type DatasetStorageFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -func unmarshalBasicDatasetStorageFormat(body []byte) (BasicDatasetStorageFormat, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeParquetFormat): - var pf ParquetFormat - err := json.Unmarshal(body, &pf) - return pf, err - case string(TypeOrcFormat): - var of OrcFormat - err := json.Unmarshal(body, &of) - return of, err - case string(TypeAvroFormat): - var af AvroFormat - err := json.Unmarshal(body, &af) - return af, err - case string(TypeJSONFormat): - var jf JSONFormat - err := json.Unmarshal(body, &jf) - return jf, err - case string(TypeTextFormat): - var tf TextFormat - err := json.Unmarshal(body, &tf) - return tf, err - default: - var dsf DatasetStorageFormat - err := json.Unmarshal(body, &dsf) - return dsf, err - } -} -func unmarshalBasicDatasetStorageFormatArray(body []byte) ([]BasicDatasetStorageFormat, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsfArray := make([]BasicDatasetStorageFormat, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsf, err := unmarshalBasicDatasetStorageFormat(*rawMessage) - if err != nil { - return nil, err - } - dsfArray[index] = dsf - } - return dsfArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatasetStorageFormat. -func (dsf DatasetStorageFormat) MarshalJSON() ([]byte, error) { - dsf.Type = TypeDatasetStorageFormat - objectMap := make(map[string]interface{}) - objectMap["serializer"] = dsf.Serializer - objectMap["deserializer"] = dsf.Deserializer - if dsf.Type != "" { - objectMap["type"] = dsf.Type - } - for k, v := range dsf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsParquetFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOrcFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAvroFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJSONFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTextFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return &dsf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &dsf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DatasetZipDeflateCompression the ZipDeflate compression method used on a dataset. -type DatasetZipDeflateCompression struct { - // Level - The ZipDeflate compression level. Possible values include: 'Optimal', 'Fastest' - Level DatasetCompressionLevel `json:"level,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeDatasetCompression', 'TypeZipDeflate', 'TypeDeflate', 'TypeGZip', 'TypeBZip2' - Type TypeBasicDatasetCompression `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) MarshalJSON() ([]byte, error) { - dzdc.Type = TypeZipDeflate - objectMap := make(map[string]interface{}) - if dzdc.Level != "" { - objectMap["level"] = dzdc.Level - } - if dzdc.Type != "" { - objectMap["type"] = dzdc.Type - } - for k, v := range dzdc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetZipDeflateCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetZipDeflateCompression() (*DatasetZipDeflateCompression, bool) { - return &dzdc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetDeflateCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetDeflateCompression() (*DatasetDeflateCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetGZipCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetGZipCompression() (*DatasetGZipCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetBZip2Compression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetBZip2Compression() (*DatasetBZip2Compression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsDatasetCompression() (*DatasetCompression, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetCompression is the BasicDatasetCompression implementation for DatasetZipDeflateCompression. -func (dzdc DatasetZipDeflateCompression) AsBasicDatasetCompression() (BasicDatasetCompression, bool) { - return &dzdc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Db2LinkedService linked service for DB2 data source. -type Db2LinkedService struct { - // Db2LinkedServiceTypeProperties - DB2 linked service properties. - *Db2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Db2LinkedService. -func (d2ls Db2LinkedService) MarshalJSON() ([]byte, error) { - d2ls.Type = TypeDb2 - objectMap := make(map[string]interface{}) - if d2ls.Db2LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = d2ls.Db2LinkedServiceTypeProperties - } - if d2ls.ConnectVia != nil { - objectMap["connectVia"] = d2ls.ConnectVia - } - if d2ls.Description != nil { - objectMap["description"] = d2ls.Description - } - if d2ls.Parameters != nil { - objectMap["parameters"] = d2ls.Parameters - } - if d2ls.Annotations != nil { - objectMap["annotations"] = d2ls.Annotations - } - if d2ls.Type != "" { - objectMap["type"] = d2ls.Type - } - for k, v := range d2ls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return &d2ls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &d2ls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for Db2LinkedService struct. -func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var db2LinkedServiceTypeProperties Db2LinkedServiceTypeProperties - err = json.Unmarshal(*v, &db2LinkedServiceTypeProperties) - if err != nil { - return err - } - d2ls.Db2LinkedServiceTypeProperties = &db2LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if d2ls.AdditionalProperties == nil { - d2ls.AdditionalProperties = make(map[string]interface{}) - } - d2ls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - d2ls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - d2ls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - d2ls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - d2ls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - d2ls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Db2LinkedServiceTypeProperties dB2 linked service properties. -type Db2LinkedServiceTypeProperties struct { - // Server - Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Database - Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Schema - Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. Possible values include: 'Basic' - AuthenticationType Db2AuthenticationType `json:"authenticationType,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for Db2LinkedServiceTypeProperties struct. -func (d2lstp *Db2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - d2lstp.Server = server - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - d2lstp.Database = databaseVar - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - d2lstp.Schema = schema - } - case "authenticationType": - if v != nil { - var authenticationType Db2AuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - d2lstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - d2lstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - d2lstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - d2lstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DistcpSettings distcp settings. -type DistcpSettings struct { - // ResourceManagerEndpoint - Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). - ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` - // TempScriptPath - Specifies an existing folder path which will be used to store temp Distcp command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or Expression with resultType string). - TempScriptPath interface{} `json:"tempScriptPath,omitempty"` - // DistcpOptions - Specifies the Distcp options. Type: string (or Expression with resultType string). - DistcpOptions interface{} `json:"distcpOptions,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DocumentDbCollectionDataset microsoft Azure Document Database Collection dataset. -type DocumentDbCollectionDataset struct { - // DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. - *DocumentDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { - ddcd.Type = TypeDocumentDbCollection - objectMap := make(map[string]interface{}) - if ddcd.DocumentDbCollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = ddcd.DocumentDbCollectionDatasetTypeProperties - } - if ddcd.Description != nil { - objectMap["description"] = ddcd.Description - } - objectMap["structure"] = ddcd.Structure - if ddcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ddcd.LinkedServiceName - } - if ddcd.Parameters != nil { - objectMap["parameters"] = ddcd.Parameters - } - if ddcd.Annotations != nil { - objectMap["annotations"] = ddcd.Annotations - } - if ddcd.Type != "" { - objectMap["type"] = ddcd.Type - } - for k, v := range ddcd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return &ddcd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &ddcd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionDataset struct. -func (ddcd *DocumentDbCollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var documentDbCollectionDatasetTypeProperties DocumentDbCollectionDatasetTypeProperties - err = json.Unmarshal(*v, &documentDbCollectionDatasetTypeProperties) - if err != nil { - return err - } - ddcd.DocumentDbCollectionDatasetTypeProperties = &documentDbCollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ddcd.AdditionalProperties == nil { - ddcd.AdditionalProperties = make(map[string]interface{}) - } - ddcd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ddcd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ddcd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ddcd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ddcd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ddcd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ddcd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DocumentDbCollectionDatasetTypeProperties documentDB Collection dataset properties. -type DocumentDbCollectionDatasetTypeProperties struct { - // CollectionName - Document Database collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DocumentDbCollectionSink a copy activity Document Database Collection sink. -type DocumentDbCollectionSink struct { - // NestingSeparator - Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { - ddcs.Type = TypeDocumentDbCollectionSink - objectMap := make(map[string]interface{}) - objectMap["nestingSeparator"] = ddcs.NestingSeparator - objectMap["writeBatchSize"] = ddcs.WriteBatchSize - objectMap["writeBatchTimeout"] = ddcs.WriteBatchTimeout - objectMap["sinkRetryCount"] = ddcs.SinkRetryCount - objectMap["sinkRetryWait"] = ddcs.SinkRetryWait - if ddcs.Type != "" { - objectMap["type"] = ddcs.Type - } - for k, v := range ddcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return &ddcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ddcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DocumentDbCollectionSource a copy activity Document Database Collection source. -type DocumentDbCollectionSource struct { - // Query - Documents query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // NestingSeparator - Nested properties separator. Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { - ddcs.Type = TypeDocumentDbCollectionSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ddcs.Query - objectMap["nestingSeparator"] = ddcs.NestingSeparator - objectMap["sourceRetryCount"] = ddcs.SourceRetryCount - objectMap["sourceRetryWait"] = ddcs.SourceRetryWait - if ddcs.Type != "" { - objectMap["type"] = ddcs.Type - } - for k, v := range ddcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return &ddcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ddcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DrillLinkedService drill server linked service. -type DrillLinkedService struct { - // DrillLinkedServiceTypeProperties - Drill server linked service properties. - *DrillLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DrillLinkedService. -func (dls DrillLinkedService) MarshalJSON() ([]byte, error) { - dls.Type = TypeDrill - objectMap := make(map[string]interface{}) - if dls.DrillLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dls.DrillLinkedServiceTypeProperties - } - if dls.ConnectVia != nil { - objectMap["connectVia"] = dls.ConnectVia - } - if dls.Description != nil { - objectMap["description"] = dls.Description - } - if dls.Parameters != nil { - objectMap["parameters"] = dls.Parameters - } - if dls.Annotations != nil { - objectMap["annotations"] = dls.Annotations - } - if dls.Type != "" { - objectMap["type"] = dls.Type - } - for k, v := range dls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return &dls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DrillLinkedService struct. -func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var drillLinkedServiceTypeProperties DrillLinkedServiceTypeProperties - err = json.Unmarshal(*v, &drillLinkedServiceTypeProperties) - if err != nil { - return err - } - dls.DrillLinkedServiceTypeProperties = &drillLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dls.AdditionalProperties == nil { - dls.AdditionalProperties = make(map[string]interface{}) - } - dls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DrillLinkedServiceTypeProperties drill server linked service properties. -type DrillLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DrillLinkedServiceTypeProperties struct. -func (dlstp *DrillLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dlstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - dlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DrillSource a copy activity Drill server source. -type DrillSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DrillSource. -func (ds DrillSource) MarshalJSON() ([]byte, error) { - ds.Type = TypeDrillSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ds.Query - objectMap["sourceRetryCount"] = ds.SourceRetryCount - objectMap["sourceRetryWait"] = ds.SourceRetryWait - if ds.Type != "" { - objectMap["type"] = ds.Type - } - for k, v := range ds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDrillSource() (*DrillSource, bool) { - return &ds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DrillTableDataset drill server dataset. -type DrillTableDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DrillTableDataset. -func (dtd DrillTableDataset) MarshalJSON() ([]byte, error) { - dtd.Type = TypeDrillTable - objectMap := make(map[string]interface{}) - if dtd.Description != nil { - objectMap["description"] = dtd.Description - } - objectMap["structure"] = dtd.Structure - if dtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dtd.LinkedServiceName - } - if dtd.Parameters != nil { - objectMap["parameters"] = dtd.Parameters - } - if dtd.Annotations != nil { - objectMap["annotations"] = dtd.Annotations - } - if dtd.Type != "" { - objectMap["type"] = dtd.Type - } - for k, v := range dtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return &dtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &dtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DynamicsEntityDataset the Dynamics entity dataset. -type DynamicsEntityDataset struct { - // DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. - *DynamicsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) MarshalJSON() ([]byte, error) { - ded.Type = TypeDynamicsEntity - objectMap := make(map[string]interface{}) - if ded.DynamicsEntityDatasetTypeProperties != nil { - objectMap["typeProperties"] = ded.DynamicsEntityDatasetTypeProperties - } - if ded.Description != nil { - objectMap["description"] = ded.Description - } - objectMap["structure"] = ded.Structure - if ded.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ded.LinkedServiceName - } - if ded.Parameters != nil { - objectMap["parameters"] = ded.Parameters - } - if ded.Annotations != nil { - objectMap["annotations"] = ded.Annotations - } - if ded.Type != "" { - objectMap["type"] = ded.Type - } - for k, v := range ded.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return &ded, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsBasicDataset() (BasicDataset, bool) { - return &ded, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DynamicsEntityDataset struct. -func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsEntityDatasetTypeProperties DynamicsEntityDatasetTypeProperties - err = json.Unmarshal(*v, &dynamicsEntityDatasetTypeProperties) - if err != nil { - return err - } - ded.DynamicsEntityDatasetTypeProperties = &dynamicsEntityDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ded.AdditionalProperties == nil { - ded.AdditionalProperties = make(map[string]interface{}) - } - ded.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ded.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ded.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ded.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ded.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ded.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ded.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DynamicsEntityDatasetTypeProperties dynamics entity dataset properties. -type DynamicsEntityDatasetTypeProperties struct { - // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DynamicsLinkedService dynamics linked service. -type DynamicsLinkedService struct { - // DynamicsLinkedServiceTypeProperties - Dynamics linked service properties. - *DynamicsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DynamicsLinkedService. -func (dls DynamicsLinkedService) MarshalJSON() ([]byte, error) { - dls.Type = TypeDynamics - objectMap := make(map[string]interface{}) - if dls.DynamicsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dls.DynamicsLinkedServiceTypeProperties - } - if dls.ConnectVia != nil { - objectMap["connectVia"] = dls.ConnectVia - } - if dls.Description != nil { - objectMap["description"] = dls.Description - } - if dls.Parameters != nil { - objectMap["parameters"] = dls.Parameters - } - if dls.Annotations != nil { - objectMap["annotations"] = dls.Annotations - } - if dls.Type != "" { - objectMap["type"] = dls.Type - } - for k, v := range dls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return &dls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedService struct. -func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsLinkedServiceTypeProperties DynamicsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dynamicsLinkedServiceTypeProperties) - if err != nil { - return err - } - dls.DynamicsLinkedServiceTypeProperties = &dynamicsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dls.AdditionalProperties == nil { - dls.AdditionalProperties = make(map[string]interface{}) - } - dls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DynamicsLinkedServiceTypeProperties dynamics linked service properties. -type DynamicsLinkedServiceTypeProperties struct { - // DeploymentType - The deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). - DeploymentType interface{} `json:"deploymentType,omitempty"` - // HostName - The host name of the on-premises Dynamics server. The property is required for on-prem and not allowed for online. Type: string (or Expression with resultType string). - HostName interface{} `json:"hostName,omitempty"` - // Port - The port of on-premises Dynamics server. The property is required for on-prem and not allowed for online. Default is 443. Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` - // ServiceURI - The URL to the Microsoft Dynamics server. The property is required for on-line and not allowed for on-prem. Type: string (or Expression with resultType string). - ServiceURI interface{} `json:"serviceUri,omitempty"` - // OrganizationName - The organization name of the Dynamics instance. The property is required for on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: string (or Expression with resultType string). - OrganizationName interface{} `json:"organizationName,omitempty"` - // AuthenticationType - The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // Username - User name to access the Dynamics instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password to access the Dynamics instance. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedServiceTypeProperties struct. -func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "deploymentType": - if v != nil { - var deploymentType interface{} - err = json.Unmarshal(*v, &deploymentType) - if err != nil { - return err - } - dlstp.DeploymentType = deploymentType - } - case "hostName": - if v != nil { - var hostName interface{} - err = json.Unmarshal(*v, &hostName) - if err != nil { - return err - } - dlstp.HostName = hostName - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - dlstp.Port = port - } - case "serviceUri": - if v != nil { - var serviceURI interface{} - err = json.Unmarshal(*v, &serviceURI) - if err != nil { - return err - } - dlstp.ServiceURI = serviceURI - } - case "organizationName": - if v != nil { - var organizationName interface{} - err = json.Unmarshal(*v, &organizationName) - if err != nil { - return err - } - dlstp.OrganizationName = organizationName - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - dlstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - dlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dlstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - dlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DynamicsSink a copy activity Dynamics sink. -type DynamicsSink struct { - // WriteBehavior - The write behavior for the operation. - WriteBehavior *string `json:"writeBehavior,omitempty"` - // IgnoreNullValues - The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DynamicsSink. -func (ds DynamicsSink) MarshalJSON() ([]byte, error) { - ds.Type = TypeDynamicsSink - objectMap := make(map[string]interface{}) - if ds.WriteBehavior != nil { - objectMap["writeBehavior"] = ds.WriteBehavior - } - objectMap["ignoreNullValues"] = ds.IgnoreNullValues - objectMap["writeBatchSize"] = ds.WriteBatchSize - objectMap["writeBatchTimeout"] = ds.WriteBatchTimeout - objectMap["sinkRetryCount"] = ds.SinkRetryCount - objectMap["sinkRetryWait"] = ds.SinkRetryWait - if ds.Type != "" { - objectMap["type"] = ds.Type - } - for k, v := range ds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDynamicsSink() (*DynamicsSink, bool) { - return &ds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DynamicsSource a copy activity Dynamics source. -type DynamicsSource struct { - // Query - FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for DynamicsSource. -func (ds DynamicsSource) MarshalJSON() ([]byte, error) { - ds.Type = TypeDynamicsSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ds.Query - objectMap["sourceRetryCount"] = ds.SourceRetryCount - objectMap["sourceRetryWait"] = ds.SourceRetryWait - if ds.Type != "" { - objectMap["type"] = ds.Type - } - for k, v := range ds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return &ds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// EloquaLinkedService eloqua server linked service. -type EloquaLinkedService struct { - // EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. - *EloquaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for EloquaLinkedService. -func (els EloquaLinkedService) MarshalJSON() ([]byte, error) { - els.Type = TypeEloqua - objectMap := make(map[string]interface{}) - if els.EloquaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = els.EloquaLinkedServiceTypeProperties - } - if els.ConnectVia != nil { - objectMap["connectVia"] = els.ConnectVia - } - if els.Description != nil { - objectMap["description"] = els.Description - } - if els.Parameters != nil { - objectMap["parameters"] = els.Parameters - } - if els.Annotations != nil { - objectMap["annotations"] = els.Annotations - } - if els.Type != "" { - objectMap["type"] = els.Type - } - for k, v := range els.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return &els, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &els, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for EloquaLinkedService struct. -func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var eloquaLinkedServiceTypeProperties EloquaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &eloquaLinkedServiceTypeProperties) - if err != nil { - return err - } - els.EloquaLinkedServiceTypeProperties = &eloquaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if els.AdditionalProperties == nil { - els.AdditionalProperties = make(map[string]interface{}) - } - els.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - els.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - els.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - els.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - els.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - els.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// EloquaLinkedServiceTypeProperties eloqua server linked service properties. -type EloquaLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Eloqua server. (i.e. eloqua.example.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // Username - The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for EloquaLinkedServiceTypeProperties struct. -func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - elstp.Endpoint = endpoint - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - elstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - elstp.Password = password - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - elstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - elstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - elstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - elstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// EloquaObjectDataset eloqua server dataset. -type EloquaObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for EloquaObjectDataset. -func (eod EloquaObjectDataset) MarshalJSON() ([]byte, error) { - eod.Type = TypeEloquaObject - objectMap := make(map[string]interface{}) - if eod.Description != nil { - objectMap["description"] = eod.Description - } - objectMap["structure"] = eod.Structure - if eod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = eod.LinkedServiceName - } - if eod.Parameters != nil { - objectMap["parameters"] = eod.Parameters - } - if eod.Annotations != nil { - objectMap["annotations"] = eod.Annotations - } - if eod.Type != "" { - objectMap["type"] = eod.Type - } - for k, v := range eod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return &eod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &eod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// EloquaSource a copy activity Eloqua server source. -type EloquaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for EloquaSource. -func (es EloquaSource) MarshalJSON() ([]byte, error) { - es.Type = TypeEloquaSource - objectMap := make(map[string]interface{}) - objectMap["query"] = es.Query - objectMap["sourceRetryCount"] = es.SourceRetryCount - objectMap["sourceRetryWait"] = es.SourceRetryWait - if es.Type != "" { - objectMap["type"] = es.Type - } - for k, v := range es.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsEloquaSource() (*EloquaSource, bool) { - return &es, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &es, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ErrorResponse the object that defines the structure of an Azure Data Factory response. -type ErrorResponse struct { - // Code - Error code. - Code *string `json:"code,omitempty"` - // Message - Error message. - Message *string `json:"message,omitempty"` - // Target - Property name/path in request associated with error. - Target *string `json:"target,omitempty"` - // Details - Array with additional error details. - Details *[]ErrorResponse `json:"details,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ExecutePipelineActivity execute pipeline activity. -type ExecutePipelineActivity struct { - // ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. - *ExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) MarshalJSON() ([]byte, error) { - epa.Type = TypeExecutePipeline - objectMap := make(map[string]interface{}) - if epa.ExecutePipelineActivityTypeProperties != nil { - objectMap["typeProperties"] = epa.ExecutePipelineActivityTypeProperties - } - if epa.Name != nil { - objectMap["name"] = epa.Name - } - if epa.Description != nil { - objectMap["description"] = epa.Description - } - if epa.DependsOn != nil { - objectMap["dependsOn"] = epa.DependsOn - } - if epa.Type != "" { - objectMap["type"] = epa.Type - } - for k, v := range epa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return &epa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &epa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { - return &epa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ExecutePipelineActivity struct. -func (epa *ExecutePipelineActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var executePipelineActivityTypeProperties ExecutePipelineActivityTypeProperties - err = json.Unmarshal(*v, &executePipelineActivityTypeProperties) - if err != nil { - return err - } - epa.ExecutePipelineActivityTypeProperties = &executePipelineActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if epa.AdditionalProperties == nil { - epa.AdditionalProperties = make(map[string]interface{}) - } - epa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - epa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - epa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - epa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - epa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ExecutePipelineActivityTypeProperties execute pipeline activity properties. -type ExecutePipelineActivityTypeProperties struct { - // Pipeline - Pipeline reference. - Pipeline *PipelineReference `json:"pipeline,omitempty"` - // Parameters - Pipeline parameters. - Parameters map[string]interface{} `json:"parameters"` - // WaitOnCompletion - Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. - WaitOnCompletion *bool `json:"waitOnCompletion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ExecutePipelineActivityTypeProperties. -func (epatp ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if epatp.Pipeline != nil { - objectMap["pipeline"] = epatp.Pipeline - } - if epatp.Parameters != nil { - objectMap["parameters"] = epatp.Parameters - } - if epatp.WaitOnCompletion != nil { - objectMap["waitOnCompletion"] = epatp.WaitOnCompletion - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ExecuteSSISPackageActivity execute SSIS package activity. -type ExecuteSSISPackageActivity struct { - // ExecuteSSISPackageActivityTypeProperties - Execute SSIS package activity properties. - *ExecuteSSISPackageActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { - espa.Type = TypeExecuteSSISPackage - objectMap := make(map[string]interface{}) - if espa.ExecuteSSISPackageActivityTypeProperties != nil { - objectMap["typeProperties"] = espa.ExecuteSSISPackageActivityTypeProperties - } - if espa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = espa.LinkedServiceName - } - if espa.Policy != nil { - objectMap["policy"] = espa.Policy - } - if espa.Name != nil { - objectMap["name"] = espa.Name - } - if espa.Description != nil { - objectMap["description"] = espa.Description - } - if espa.DependsOn != nil { - objectMap["dependsOn"] = espa.DependsOn - } - if espa.Type != "" { - objectMap["type"] = espa.Type - } - for k, v := range espa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return &espa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &espa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicActivity() (BasicActivity, bool) { - return &espa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ExecuteSSISPackageActivity struct. -func (espa *ExecuteSSISPackageActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var executeSSISPackageActivityTypeProperties ExecuteSSISPackageActivityTypeProperties - err = json.Unmarshal(*v, &executeSSISPackageActivityTypeProperties) - if err != nil { - return err - } - espa.ExecuteSSISPackageActivityTypeProperties = &executeSSISPackageActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - espa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - espa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if espa.AdditionalProperties == nil { - espa.AdditionalProperties = make(map[string]interface{}) - } - espa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - espa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - espa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - espa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - espa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ExecuteSSISPackageActivityTypeProperties execute SSIS package activity properties. -type ExecuteSSISPackageActivityTypeProperties struct { - // PackageLocation - SSIS package location. - PackageLocation *SSISPackageLocation `json:"packageLocation,omitempty"` - // Runtime - Specifies the runtime to execute SSIS package. Possible values include: 'X64', 'X86' - Runtime SSISExecutionRuntime `json:"runtime,omitempty"` - // LoggingLevel - The logging level of SSIS package execution. - LoggingLevel *string `json:"loggingLevel,omitempty"` - // EnvironmentPath - The environment path to execute the SSIS package. - EnvironmentPath *string `json:"environmentPath,omitempty"` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // ProjectParameters - The project level parameters to execute the SSIS package. - ProjectParameters map[string]*SSISExecutionParameter `json:"projectParameters"` - // PackageParameters - The package level parameters to execute the SSIS package. - PackageParameters map[string]*SSISExecutionParameter `json:"packageParameters"` - // ProjectConnectionManagers - The project level connection managers to execute the SSIS package. - ProjectConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"projectConnectionManagers"` - // PackageConnectionManagers - The package level connection managers to execute the SSIS package. - PackageConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"packageConnectionManagers"` - // PropertyOverrides - The property overrides to execute the SSIS package. - PropertyOverrides map[string]*SSISPropertyOverride `json:"propertyOverrides"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivityTypeProperties. -func (espatp ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if espatp.PackageLocation != nil { - objectMap["packageLocation"] = espatp.PackageLocation - } - if espatp.Runtime != "" { - objectMap["runtime"] = espatp.Runtime - } - if espatp.LoggingLevel != nil { - objectMap["loggingLevel"] = espatp.LoggingLevel - } - if espatp.EnvironmentPath != nil { - objectMap["environmentPath"] = espatp.EnvironmentPath - } - if espatp.ConnectVia != nil { - objectMap["connectVia"] = espatp.ConnectVia - } - if espatp.ProjectParameters != nil { - objectMap["projectParameters"] = espatp.ProjectParameters - } - if espatp.PackageParameters != nil { - objectMap["packageParameters"] = espatp.PackageParameters - } - if espatp.ProjectConnectionManagers != nil { - objectMap["projectConnectionManagers"] = espatp.ProjectConnectionManagers - } - if espatp.PackageConnectionManagers != nil { - objectMap["packageConnectionManagers"] = espatp.PackageConnectionManagers - } - if espatp.PropertyOverrides != nil { - objectMap["propertyOverrides"] = espatp.PropertyOverrides - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicExecutionActivity base class for all execution activities. -type BasicExecutionActivity interface { - AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) - AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) - AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) - AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) - AsGetMetadataActivity() (*GetMetadataActivity, bool) - AsWebActivity() (*WebActivity, bool) - AsLookupActivity() (*LookupActivity, bool) - AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) - AsCustomActivity() (*CustomActivity, bool) - AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) - AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) - AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) - AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) - AsHDInsightPigActivity() (*HDInsightPigActivity, bool) - AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) - AsCopyActivity() (*CopyActivity, bool) - AsExecutionActivity() (*ExecutionActivity, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ExecutionActivity base class for all execution activities. -type ExecutionActivity struct { - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -func unmarshalBasicExecutionActivity(body []byte) (BasicExecutionActivity, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeDatabricksNotebook): - var dna DatabricksNotebookActivity - err := json.Unmarshal(body, &dna) - return dna, err - case string(TypeDataLakeAnalyticsUSQL): - var dlaua DataLakeAnalyticsUSQLActivity - err := json.Unmarshal(body, &dlaua) - return dlaua, err - case string(TypeAzureMLUpdateResource): - var amura AzureMLUpdateResourceActivity - err := json.Unmarshal(body, &amura) - return amura, err - case string(TypeAzureMLBatchExecution): - var ambea AzureMLBatchExecutionActivity - err := json.Unmarshal(body, &ambea) - return ambea, err - case string(TypeGetMetadata): - var gma GetMetadataActivity - err := json.Unmarshal(body, &gma) - return gma, err - case string(TypeWebActivity): - var wa WebActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeLookup): - var la LookupActivity - err := json.Unmarshal(body, &la) - return la, err - case string(TypeSQLServerStoredProcedure): - var ssspa SQLServerStoredProcedureActivity - err := json.Unmarshal(body, &ssspa) - return ssspa, err - case string(TypeCustom): - var ca CustomActivity - err := json.Unmarshal(body, &ca) - return ca, err - case string(TypeExecuteSSISPackage): - var espa ExecuteSSISPackageActivity - err := json.Unmarshal(body, &espa) - return espa, err - case string(TypeHDInsightSpark): - var hisa HDInsightSparkActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeHDInsightStreaming): - var hisa HDInsightStreamingActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeHDInsightMapReduce): - var himra HDInsightMapReduceActivity - err := json.Unmarshal(body, &himra) - return himra, err - case string(TypeHDInsightPig): - var hipa HDInsightPigActivity - err := json.Unmarshal(body, &hipa) - return hipa, err - case string(TypeHDInsightHive): - var hiha HDInsightHiveActivity - err := json.Unmarshal(body, &hiha) - return hiha, err - case string(TypeCopy): - var ca CopyActivity - err := json.Unmarshal(body, &ca) - return ca, err - default: - var ea ExecutionActivity - err := json.Unmarshal(body, &ea) - return ea, err - } -} -func unmarshalBasicExecutionActivityArray(body []byte) ([]BasicExecutionActivity, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - eaArray := make([]BasicExecutionActivity, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ea, err := unmarshalBasicExecutionActivity(*rawMessage) - if err != nil { - return nil, err - } - eaArray[index] = ea - } - return eaArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ExecutionActivity. -func (ea ExecutionActivity) MarshalJSON() ([]byte, error) { - ea.Type = TypeExecution - objectMap := make(map[string]interface{}) - if ea.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ea.LinkedServiceName - } - if ea.Policy != nil { - objectMap["policy"] = ea.Policy - } - if ea.Name != nil { - objectMap["name"] = ea.Name - } - if ea.Description != nil { - objectMap["description"] = ea.Description - } - if ea.DependsOn != nil { - objectMap["dependsOn"] = ea.DependsOn - } - if ea.Type != "" { - objectMap["type"] = ea.Type - } - for k, v := range ea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return &ea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Expression azure Data Factory expression definition. -type Expression struct { - // Type - Expression type. - Type *string `json:"type,omitempty"` - // Value - Expression value. - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Factory factory resource type. -type Factory struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Identity - Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` - // FactoryProperties - Properties of the factory. - *FactoryProperties `json:"properties,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Location - The resource location. - Location *string `json:"location,omitempty"` - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Factory. -func (f Factory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if f.Identity != nil { - objectMap["identity"] = f.Identity - } - if f.FactoryProperties != nil { - objectMap["properties"] = f.FactoryProperties - } - if f.ID != nil { - objectMap["id"] = f.ID - } - if f.Name != nil { - objectMap["name"] = f.Name - } - if f.Type != nil { - objectMap["type"] = f.Type - } - if f.Location != nil { - objectMap["location"] = f.Location - } - if f.Tags != nil { - objectMap["tags"] = f.Tags - } - for k, v := range f.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for Factory struct. -func (f *Factory) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if f.AdditionalProperties == nil { - f.AdditionalProperties = make(map[string]interface{}) - } - f.AdditionalProperties[k] = additionalProperties - } - case "identity": - if v != nil { - var identity FactoryIdentity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - f.Identity = &identity - } - case "properties": - if v != nil { - var factoryProperties FactoryProperties - err = json.Unmarshal(*v, &factoryProperties) - if err != nil { - return err - } - f.FactoryProperties = &factoryProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - f.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - f.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - f.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - f.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - f.Tags = tags - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryIdentity identity properties of the factory resource. -type FactoryIdentity struct { - // Type - The identity type. Currently the only supported type is 'SystemAssigned'. - Type *string `json:"type,omitempty"` - // PrincipalID - The principal id of the identity. - PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // TenantID - The client tenant id of the identity. - TenantID *uuid.UUID `json:"tenantId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryListResponse a list of factory resources. -type FactoryListResponse struct { - autorest.Response `json:"-"` - // Value - List of factories. - Value *[]Factory `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryListResponseIterator provides access to a complete listing of Factory values. -type FactoryListResponseIterator struct { - i int - page FactoryListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *FactoryListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter FactoryListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter FactoryListResponseIterator) Response() FactoryListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter FactoryListResponseIterator) Value() Factory { - if !iter.page.NotDone() { - return Factory{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (flr FactoryListResponse) IsEmpty() bool { - return flr.Value == nil || len(*flr.Value) == 0 -} - -// factoryListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (flr FactoryListResponse) factoryListResponsePreparer() (*http.Request, error) { - if flr.NextLink == nil || len(to.String(flr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(flr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryListResponsePage contains a page of Factory values. -type FactoryListResponsePage struct { - fn func(FactoryListResponse) (FactoryListResponse, error) - flr FactoryListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *FactoryListResponsePage) Next() error { - next, err := page.fn(page.flr) - if err != nil { - return err - } - page.flr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page FactoryListResponsePage) NotDone() bool { - return !page.flr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page FactoryListResponsePage) Response() FactoryListResponse { - return page.flr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page FactoryListResponsePage) Values() []Factory { - if page.flr.IsEmpty() { - return nil - } - return *page.flr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryProperties factory resource properties. -type FactoryProperties struct { - // ProvisioningState - Factory provisioning state, example Succeeded. - ProvisioningState *string `json:"provisioningState,omitempty"` - // CreateTime - Time the factory was created in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // Version - Version of the factory. - Version *string `json:"version,omitempty"` - // VstsConfiguration - VSTS repo information of the factory. - VstsConfiguration *FactoryVSTSConfiguration `json:"vstsConfiguration,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryRepoUpdate factory's VSTS repo information. -type FactoryRepoUpdate struct { - // FactoryResourceID - The factory resource id. - FactoryResourceID *string `json:"factoryResourceId,omitempty"` - // ResourceGroupName - The resource group name. - ResourceGroupName *string `json:"resourceGroupName,omitempty"` - // VstsConfiguration - VSTS repo information of the factory. - VstsConfiguration *FactoryVSTSConfiguration `json:"vstsConfiguration,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryUpdateParameters parameters for updating a factory resource. -type FactoryUpdateParameters struct { - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` - // Identity - Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for FactoryUpdateParameters. -func (fup FactoryUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if fup.Tags != nil { - objectMap["tags"] = fup.Tags - } - if fup.Identity != nil { - objectMap["identity"] = fup.Identity - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FactoryVSTSConfiguration factory's VSTS repo information. -type FactoryVSTSConfiguration struct { - // AccountName - VSTS account name. - AccountName *string `json:"accountName,omitempty"` - // ProjectName - VSTS project name. - ProjectName *string `json:"projectName,omitempty"` - // RepositoryName - VSTS repository name. - RepositoryName *string `json:"repositoryName,omitempty"` - // CollaborationBranch - VSTS collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` - // RootFolder - VSTS root folder. - RootFolder *string `json:"rootFolder,omitempty"` - // LastCommitID - VSTS last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` - // TenantID - VSTS tenant id. - TenantID *string `json:"tenantId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FileServerLinkedService file system linked service. -type FileServerLinkedService struct { - // FileServerLinkedServiceTypeProperties - File system linked service properties. - *FileServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for FileServerLinkedService. -func (fsls FileServerLinkedService) MarshalJSON() ([]byte, error) { - fsls.Type = TypeFileServer - objectMap := make(map[string]interface{}) - if fsls.FileServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = fsls.FileServerLinkedServiceTypeProperties - } - if fsls.ConnectVia != nil { - objectMap["connectVia"] = fsls.ConnectVia - } - if fsls.Description != nil { - objectMap["description"] = fsls.Description - } - if fsls.Parameters != nil { - objectMap["parameters"] = fsls.Parameters - } - if fsls.Annotations != nil { - objectMap["annotations"] = fsls.Annotations - } - if fsls.Type != "" { - objectMap["type"] = fsls.Type - } - for k, v := range fsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return &fsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &fsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for FileServerLinkedService struct. -func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var fileServerLinkedServiceTypeProperties FileServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &fileServerLinkedServiceTypeProperties) - if err != nil { - return err - } - fsls.FileServerLinkedServiceTypeProperties = &fileServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsls.AdditionalProperties == nil { - fsls.AdditionalProperties = make(map[string]interface{}) - } - fsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - fsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - fsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - fsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FileServerLinkedServiceTypeProperties file system linked service properties. -type FileServerLinkedServiceTypeProperties struct { - // Host - Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // UserID - User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` - // Password - Password to logon the server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for FileServerLinkedServiceTypeProperties struct. -func (fslstp *FileServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - fslstp.Host = host - } - case "userId": - if v != nil { - var userID interface{} - err = json.Unmarshal(*v, &userID) - if err != nil { - return err - } - fslstp.UserID = userID - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - fslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - fslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FileShareDataset an on-premises file system dataset. -type FileShareDataset struct { - // FileShareDatasetTypeProperties - On-premises file system dataset properties. - *FileShareDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for FileShareDataset. -func (fsd FileShareDataset) MarshalJSON() ([]byte, error) { - fsd.Type = TypeFileShare - objectMap := make(map[string]interface{}) - if fsd.FileShareDatasetTypeProperties != nil { - objectMap["typeProperties"] = fsd.FileShareDatasetTypeProperties - } - if fsd.Description != nil { - objectMap["description"] = fsd.Description - } - objectMap["structure"] = fsd.Structure - if fsd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = fsd.LinkedServiceName - } - if fsd.Parameters != nil { - objectMap["parameters"] = fsd.Parameters - } - if fsd.Annotations != nil { - objectMap["annotations"] = fsd.Annotations - } - if fsd.Type != "" { - objectMap["type"] = fsd.Type - } - for k, v := range fsd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return &fsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsBasicDataset() (BasicDataset, bool) { - return &fsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for FileShareDataset struct. -func (fsd *FileShareDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var fileShareDatasetTypeProperties FileShareDatasetTypeProperties - err = json.Unmarshal(*v, &fileShareDatasetTypeProperties) - if err != nil { - return err - } - fsd.FileShareDatasetTypeProperties = &fileShareDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsd.AdditionalProperties == nil { - fsd.AdditionalProperties = make(map[string]interface{}) - } - fsd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - fsd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - fsd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - fsd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - fsd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FileShareDatasetTypeProperties on-premises file system dataset properties. -type FileShareDatasetTypeProperties struct { - // FolderPath - The path of the on-premises file system. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the on-premises file system. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Format - The format of the files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // FileFilter - Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). - FileFilter interface{} `json:"fileFilter,omitempty"` - // Compression - The data compression method used for the file system. - Compression BasicDatasetCompression `json:"compression,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for FileShareDatasetTypeProperties struct. -func (fsdtp *FileShareDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - fsdtp.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - fsdtp.FileName = fileName - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - fsdtp.Format = formatVar - } - case "fileFilter": - if v != nil { - var fileFilter interface{} - err = json.Unmarshal(*v, &fileFilter) - if err != nil { - return err - } - fsdtp.FileFilter = fileFilter - } - case "compression": - if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) - if err != nil { - return err - } - fsdtp.Compression = compression - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FileSystemSink a copy activity file system sink. -type FileSystemSink struct { - // CopyBehavior - The type of copy behavior for copy sink. Possible values include: 'PreserveHierarchy', 'FlattenHierarchy', 'MergeFiles' - CopyBehavior CopyBehaviorType `json:"copyBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for FileSystemSink. -func (fss FileSystemSink) MarshalJSON() ([]byte, error) { - fss.Type = TypeFileSystemSink - objectMap := make(map[string]interface{}) - if fss.CopyBehavior != "" { - objectMap["copyBehavior"] = fss.CopyBehavior - } - objectMap["writeBatchSize"] = fss.WriteBatchSize - objectMap["writeBatchTimeout"] = fss.WriteBatchTimeout - objectMap["sinkRetryCount"] = fss.SinkRetryCount - objectMap["sinkRetryWait"] = fss.SinkRetryWait - if fss.Type != "" { - objectMap["type"] = fss.Type - } - for k, v := range fss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsFileSystemSink() (*FileSystemSink, bool) { - return &fss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBasicCopySink() (BasicCopySink, bool) { - return &fss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FileSystemSource a copy activity file system source. -type FileSystemSource struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for FileSystemSource. -func (fss FileSystemSource) MarshalJSON() ([]byte, error) { - fss.Type = TypeFileSystemSource - objectMap := make(map[string]interface{}) - objectMap["recursive"] = fss.Recursive - objectMap["sourceRetryCount"] = fss.SourceRetryCount - objectMap["sourceRetryWait"] = fss.SourceRetryWait - if fss.Type != "" { - objectMap["type"] = fss.Type - } - for k, v := range fss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsFileSystemSource() (*FileSystemSource, bool) { - return &fss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBasicCopySource() (BasicCopySource, bool) { - return &fss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FilterActivity filter and return results from input array based on the conditions. -type FilterActivity struct { - // FilterActivityTypeProperties - Filter activity properties. - *FilterActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for FilterActivity. -func (fa FilterActivity) MarshalJSON() ([]byte, error) { - fa.Type = TypeFilter - objectMap := make(map[string]interface{}) - if fa.FilterActivityTypeProperties != nil { - objectMap["typeProperties"] = fa.FilterActivityTypeProperties - } - if fa.Name != nil { - objectMap["name"] = fa.Name - } - if fa.Description != nil { - objectMap["description"] = fa.Description - } - if fa.DependsOn != nil { - objectMap["dependsOn"] = fa.DependsOn - } - if fa.Type != "" { - objectMap["type"] = fa.Type - } - for k, v := range fa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsFilterActivity() (*FilterActivity, bool) { - return &fa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &fa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicActivity() (BasicActivity, bool) { - return &fa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for FilterActivity struct. -func (fa *FilterActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var filterActivityTypeProperties FilterActivityTypeProperties - err = json.Unmarshal(*v, &filterActivityTypeProperties) - if err != nil { - return err - } - fa.FilterActivityTypeProperties = &filterActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fa.AdditionalProperties == nil { - fa.AdditionalProperties = make(map[string]interface{}) - } - fa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - fa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - fa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FilterActivityTypeProperties fitler activity properties. -type FilterActivityTypeProperties struct { - // Items - Input array on which filter should be applied. - Items *Expression `json:"items,omitempty"` - // Condition - Condition to be used for filtering the input. - Condition *Expression `json:"condition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ForEachActivity this activity is used for iterating over a collection and execute given activities. -type ForEachActivity struct { - // ForEachActivityTypeProperties - ForEach activity properties. - *ForEachActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ForEachActivity. -func (fea ForEachActivity) MarshalJSON() ([]byte, error) { - fea.Type = TypeForEach - objectMap := make(map[string]interface{}) - if fea.ForEachActivityTypeProperties != nil { - objectMap["typeProperties"] = fea.ForEachActivityTypeProperties - } - if fea.Name != nil { - objectMap["name"] = fea.Name - } - if fea.Description != nil { - objectMap["description"] = fea.Description - } - if fea.DependsOn != nil { - objectMap["dependsOn"] = fea.DependsOn - } - if fea.Type != "" { - objectMap["type"] = fea.Type - } - for k, v := range fea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsForEachActivity() (*ForEachActivity, bool) { - return &fea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &fea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicActivity() (BasicActivity, bool) { - return &fea, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ForEachActivity struct. -func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var forEachActivityTypeProperties ForEachActivityTypeProperties - err = json.Unmarshal(*v, &forEachActivityTypeProperties) - if err != nil { - return err - } - fea.ForEachActivityTypeProperties = &forEachActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fea.AdditionalProperties == nil { - fea.AdditionalProperties = make(map[string]interface{}) - } - fea.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - fea.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fea.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - fea.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fea.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ForEachActivityTypeProperties forEach activity properties. -type ForEachActivityTypeProperties struct { - // IsSequential - Should the loop be executed in sequence or in parallel (max 50) - IsSequential *bool `json:"isSequential,omitempty"` - // BatchCount - Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). - BatchCount *int32 `json:"batchCount,omitempty"` - // Items - Collection to iterate. - Items *Expression `json:"items,omitempty"` - // Activities - List of activities to execute . - Activities *[]BasicActivity `json:"activities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ForEachActivityTypeProperties struct. -func (featp *ForEachActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "isSequential": - if v != nil { - var isSequential bool - err = json.Unmarshal(*v, &isSequential) - if err != nil { - return err - } - featp.IsSequential = &isSequential - } - case "batchCount": - if v != nil { - var batchCount int32 - err = json.Unmarshal(*v, &batchCount) - if err != nil { - return err - } - featp.BatchCount = &batchCount - } - case "items": - if v != nil { - var items Expression - err = json.Unmarshal(*v, &items) - if err != nil { - return err - } - featp.Items = &items - } - case "activities": - if v != nil { - activities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - featp.Activities = &activities - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FtpServerLinkedService a FTP server Linked Service. -type FtpServerLinkedService struct { - // FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. - *FtpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for FtpServerLinkedService. -func (fsls FtpServerLinkedService) MarshalJSON() ([]byte, error) { - fsls.Type = TypeFtpServer - objectMap := make(map[string]interface{}) - if fsls.FtpServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = fsls.FtpServerLinkedServiceTypeProperties - } - if fsls.ConnectVia != nil { - objectMap["connectVia"] = fsls.ConnectVia - } - if fsls.Description != nil { - objectMap["description"] = fsls.Description - } - if fsls.Parameters != nil { - objectMap["parameters"] = fsls.Parameters - } - if fsls.Annotations != nil { - objectMap["annotations"] = fsls.Annotations - } - if fsls.Type != "" { - objectMap["type"] = fsls.Type - } - for k, v := range fsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return &fsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &fsls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedService struct. -func (fsls *FtpServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var ftpServerLinkedServiceTypeProperties FtpServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &ftpServerLinkedServiceTypeProperties) - if err != nil { - return err - } - fsls.FtpServerLinkedServiceTypeProperties = &ftpServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsls.AdditionalProperties == nil { - fsls.AdditionalProperties = make(map[string]interface{}) - } - fsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - fsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - fsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - fsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// FtpServerLinkedServiceTypeProperties properties specific to this linked service type. -type FtpServerLinkedServiceTypeProperties struct { - // Host - Host name of the FTP server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // Port - The TCP port number that the FTP server uses to listen for client connections. Default value is 21. Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'FtpAuthenticationTypeBasic', 'FtpAuthenticationTypeAnonymous' - AuthenticationType FtpAuthenticationType `json:"authenticationType,omitempty"` - // UserName - Username to logon the FTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to logon the FTP server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // EnableSsl - If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - EnableSsl interface{} `json:"enableSsl,omitempty"` - // EnableServerCertificateValidation - If true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedServiceTypeProperties struct. -func (fslstp *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - fslstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - fslstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType FtpAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - fslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - fslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - fslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - fslstp.EncryptedCredential = encryptedCredential - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - fslstp.EnableSsl = enableSsl - } - case "enableServerCertificateValidation": - if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) - if err != nil { - return err - } - fslstp.EnableServerCertificateValidation = enableServerCertificateValidation - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetMetadataActivity activity to get metadata of dataset -type GetMetadataActivity struct { - // GetMetadataActivityTypeProperties - GetMetadata activity properties. - *GetMetadataActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for GetMetadataActivity. -func (gma GetMetadataActivity) MarshalJSON() ([]byte, error) { - gma.Type = TypeGetMetadata - objectMap := make(map[string]interface{}) - if gma.GetMetadataActivityTypeProperties != nil { - objectMap["typeProperties"] = gma.GetMetadataActivityTypeProperties - } - if gma.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gma.LinkedServiceName - } - if gma.Policy != nil { - objectMap["policy"] = gma.Policy - } - if gma.Name != nil { - objectMap["name"] = gma.Name - } - if gma.Description != nil { - objectMap["description"] = gma.Description - } - if gma.DependsOn != nil { - objectMap["dependsOn"] = gma.DependsOn - } - if gma.Type != "" { - objectMap["type"] = gma.Type - } - for k, v := range gma.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return &gma, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &gma, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicActivity() (BasicActivity, bool) { - return &gma, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for GetMetadataActivity struct. -func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var getMetadataActivityTypeProperties GetMetadataActivityTypeProperties - err = json.Unmarshal(*v, &getMetadataActivityTypeProperties) - if err != nil { - return err - } - gma.GetMetadataActivityTypeProperties = &getMetadataActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - gma.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - gma.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gma.AdditionalProperties == nil { - gma.AdditionalProperties = make(map[string]interface{}) - } - gma.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - gma.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gma.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - gma.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gma.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetMetadataActivityTypeProperties getMetadata activity properties. -type GetMetadataActivityTypeProperties struct { - // Dataset - GetMetadata activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // FieldList - Fields of metadata to get from dataset. - FieldList *[]interface{} `json:"fieldList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GoogleBigQueryLinkedService google BigQuery service linked service. -type GoogleBigQueryLinkedService struct { - // GoogleBigQueryLinkedServiceTypeProperties - Google BigQuery service linked service properties. - *GoogleBigQueryLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { - gbqls.Type = TypeGoogleBigQuery - objectMap := make(map[string]interface{}) - if gbqls.GoogleBigQueryLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gbqls.GoogleBigQueryLinkedServiceTypeProperties - } - if gbqls.ConnectVia != nil { - objectMap["connectVia"] = gbqls.ConnectVia - } - if gbqls.Description != nil { - objectMap["description"] = gbqls.Description - } - if gbqls.Parameters != nil { - objectMap["parameters"] = gbqls.Parameters - } - if gbqls.Annotations != nil { - objectMap["annotations"] = gbqls.Annotations - } - if gbqls.Type != "" { - objectMap["type"] = gbqls.Type - } - for k, v := range gbqls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return &gbqls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gbqls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedService struct. -func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var googleBigQueryLinkedServiceTypeProperties GoogleBigQueryLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleBigQueryLinkedServiceTypeProperties) - if err != nil { - return err - } - gbqls.GoogleBigQueryLinkedServiceTypeProperties = &googleBigQueryLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gbqls.AdditionalProperties == nil { - gbqls.AdditionalProperties = make(map[string]interface{}) - } - gbqls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gbqls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gbqls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gbqls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gbqls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gbqls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GoogleBigQueryLinkedServiceTypeProperties google BigQuery service linked service properties. -type GoogleBigQueryLinkedServiceTypeProperties struct { - // Project - The default BigQuery project to query against. - Project interface{} `json:"project,omitempty"` - // AdditionalProjects - A comma-separated list of public BigQuery projects to access. - AdditionalProjects interface{} `json:"additionalProjects,omitempty"` - // RequestGoogleDriveScope - Whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine BigQuery data with data from Google Drive. The default value is false. - RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` - // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'ServiceAuthentication', 'UserAuthentication' - AuthenticationType GoogleBigQueryAuthenticationType `json:"authenticationType,omitempty"` - // RefreshToken - The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. - RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` - // ClientID - The client id of the google application used to acquire the refresh token. - ClientID BasicSecretBase `json:"clientId,omitempty"` - // ClientSecret - The client secret of the google application used to acquire the refresh token. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // Email - The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. - Email interface{} `json:"email,omitempty"` - // KeyFilePath - The full path to the .p12 key file that is used to authenticate the service account email address and can only be used on self-hosted IR. - KeyFilePath interface{} `json:"keyFilePath,omitempty"` - // TrustedCertPath - The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedServiceTypeProperties struct. -func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "project": - if v != nil { - var project interface{} - err = json.Unmarshal(*v, &project) - if err != nil { - return err - } - gbqlstp.Project = project - } - case "additionalProjects": - if v != nil { - var additionalProjects interface{} - err = json.Unmarshal(*v, &additionalProjects) - if err != nil { - return err - } - gbqlstp.AdditionalProjects = additionalProjects - } - case "requestGoogleDriveScope": - if v != nil { - var requestGoogleDriveScope interface{} - err = json.Unmarshal(*v, &requestGoogleDriveScope) - if err != nil { - return err - } - gbqlstp.RequestGoogleDriveScope = requestGoogleDriveScope - } - case "authenticationType": - if v != nil { - var authenticationType GoogleBigQueryAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - gbqlstp.AuthenticationType = authenticationType - } - case "refreshToken": - if v != nil { - refreshToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gbqlstp.RefreshToken = refreshToken - } - case "clientId": - if v != nil { - clientID, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gbqlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gbqlstp.ClientSecret = clientSecret - } - case "email": - if v != nil { - var email interface{} - err = json.Unmarshal(*v, &email) - if err != nil { - return err - } - gbqlstp.Email = email - } - case "keyFilePath": - if v != nil { - var keyFilePath interface{} - err = json.Unmarshal(*v, &keyFilePath) - if err != nil { - return err - } - gbqlstp.KeyFilePath = keyFilePath - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - gbqlstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - gbqlstp.UseSystemTrustStore = useSystemTrustStore - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - gbqlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GoogleBigQueryObjectDataset google BigQuery service dataset. -type GoogleBigQueryObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error) { - gbqod.Type = TypeGoogleBigQueryObject - objectMap := make(map[string]interface{}) - if gbqod.Description != nil { - objectMap["description"] = gbqod.Description - } - objectMap["structure"] = gbqod.Structure - if gbqod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gbqod.LinkedServiceName - } - if gbqod.Parameters != nil { - objectMap["parameters"] = gbqod.Parameters - } - if gbqod.Annotations != nil { - objectMap["annotations"] = gbqod.Annotations - } - if gbqod.Type != "" { - objectMap["type"] = gbqod.Type - } - for k, v := range gbqod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return &gbqod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &gbqod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GoogleBigQuerySource a copy activity Google BigQuery service source. -type GoogleBigQuerySource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) MarshalJSON() ([]byte, error) { - gbqs.Type = TypeGoogleBigQuerySource - objectMap := make(map[string]interface{}) - objectMap["query"] = gbqs.Query - objectMap["sourceRetryCount"] = gbqs.SourceRetryCount - objectMap["sourceRetryWait"] = gbqs.SourceRetryWait - if gbqs.Type != "" { - objectMap["type"] = gbqs.Type - } - for k, v := range gbqs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return &gbqs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBasicCopySource() (BasicCopySource, bool) { - return &gbqs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GreenplumLinkedService greenplum Database linked service. -type GreenplumLinkedService struct { - // GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. - *GreenplumLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for GreenplumLinkedService. -func (gls GreenplumLinkedService) MarshalJSON() ([]byte, error) { - gls.Type = TypeGreenplum - objectMap := make(map[string]interface{}) - if gls.GreenplumLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gls.GreenplumLinkedServiceTypeProperties - } - if gls.ConnectVia != nil { - objectMap["connectVia"] = gls.ConnectVia - } - if gls.Description != nil { - objectMap["description"] = gls.Description - } - if gls.Parameters != nil { - objectMap["parameters"] = gls.Parameters - } - if gls.Annotations != nil { - objectMap["annotations"] = gls.Annotations - } - if gls.Type != "" { - objectMap["type"] = gls.Type - } - for k, v := range gls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return &gls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for GreenplumLinkedService struct. -func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var greenplumLinkedServiceTypeProperties GreenplumLinkedServiceTypeProperties - err = json.Unmarshal(*v, &greenplumLinkedServiceTypeProperties) - if err != nil { - return err - } - gls.GreenplumLinkedServiceTypeProperties = &greenplumLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gls.AdditionalProperties == nil { - gls.AdditionalProperties = make(map[string]interface{}) - } - gls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GreenplumLinkedServiceTypeProperties greenplum Database linked service properties. -type GreenplumLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for GreenplumLinkedServiceTypeProperties struct. -func (glstp *GreenplumLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - glstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - glstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GreenplumSource a copy activity Greenplum Database source. -type GreenplumSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for GreenplumSource. -func (gs GreenplumSource) MarshalJSON() ([]byte, error) { - gs.Type = TypeGreenplumSource - objectMap := make(map[string]interface{}) - objectMap["query"] = gs.Query - objectMap["sourceRetryCount"] = gs.SourceRetryCount - objectMap["sourceRetryWait"] = gs.SourceRetryWait - if gs.Type != "" { - objectMap["type"] = gs.Type - } - for k, v := range gs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGreenplumSource() (*GreenplumSource, bool) { - return &gs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBasicCopySource() (BasicCopySource, bool) { - return &gs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GreenplumTableDataset greenplum Database dataset. -type GreenplumTableDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for GreenplumTableDataset. -func (gtd GreenplumTableDataset) MarshalJSON() ([]byte, error) { - gtd.Type = TypeGreenplumTable - objectMap := make(map[string]interface{}) - if gtd.Description != nil { - objectMap["description"] = gtd.Description - } - objectMap["structure"] = gtd.Structure - if gtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gtd.LinkedServiceName - } - if gtd.Parameters != nil { - objectMap["parameters"] = gtd.Parameters - } - if gtd.Annotations != nil { - objectMap["annotations"] = gtd.Annotations - } - if gtd.Type != "" { - objectMap["type"] = gtd.Type - } - for k, v := range gtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return >d, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsBasicDataset() (BasicDataset, bool) { - return >d, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HBaseLinkedService hBase server linked service. -type HBaseLinkedService struct { - // HBaseLinkedServiceTypeProperties - HBase server linked service properties. - *HBaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HBaseLinkedService. -func (hbls HBaseLinkedService) MarshalJSON() ([]byte, error) { - hbls.Type = TypeHBase - objectMap := make(map[string]interface{}) - if hbls.HBaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hbls.HBaseLinkedServiceTypeProperties - } - if hbls.ConnectVia != nil { - objectMap["connectVia"] = hbls.ConnectVia - } - if hbls.Description != nil { - objectMap["description"] = hbls.Description - } - if hbls.Parameters != nil { - objectMap["parameters"] = hbls.Parameters - } - if hbls.Annotations != nil { - objectMap["annotations"] = hbls.Annotations - } - if hbls.Type != "" { - objectMap["type"] = hbls.Type - } - for k, v := range hbls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return &hbls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hbls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HBaseLinkedService struct. -func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hBaseLinkedServiceTypeProperties HBaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hBaseLinkedServiceTypeProperties) - if err != nil { - return err - } - hbls.HBaseLinkedServiceTypeProperties = &hBaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hbls.AdditionalProperties == nil { - hbls.AdditionalProperties = make(map[string]interface{}) - } - hbls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hbls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hbls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hbls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hbls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hbls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HBaseLinkedServiceTypeProperties hBase server linked service properties. -type HBaseLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the HBase server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. - Port interface{} `json:"port,omitempty"` - // HTTPPath - The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) - HTTPPath interface{} `json:"httpPath,omitempty"` - // AuthenticationType - The authentication mechanism to use to connect to the HBase server. Possible values include: 'HBaseAuthenticationTypeAnonymous', 'HBaseAuthenticationTypeBasic' - AuthenticationType HBaseAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the HBase instance. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // AllowHostNameCNMismatch - Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HBaseLinkedServiceTypeProperties struct. -func (hblstp *HBaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - hblstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - hblstp.Port = port - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - hblstp.HTTPPath = HTTPPath - } - case "authenticationType": - if v != nil { - var authenticationType HBaseAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hblstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - hblstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hblstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - hblstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - hblstp.TrustedCertPath = trustedCertPath - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - hblstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - hblstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hblstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HBaseObjectDataset hBase server dataset. -type HBaseObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HBaseObjectDataset. -func (hbod HBaseObjectDataset) MarshalJSON() ([]byte, error) { - hbod.Type = TypeHBaseObject - objectMap := make(map[string]interface{}) - if hbod.Description != nil { - objectMap["description"] = hbod.Description - } - objectMap["structure"] = hbod.Structure - if hbod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hbod.LinkedServiceName - } - if hbod.Parameters != nil { - objectMap["parameters"] = hbod.Parameters - } - if hbod.Annotations != nil { - objectMap["annotations"] = hbod.Annotations - } - if hbod.Type != "" { - objectMap["type"] = hbod.Type - } - for k, v := range hbod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return &hbod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hbod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HBaseSource a copy activity HBase server source. -type HBaseSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HBaseSource. -func (hbs HBaseSource) MarshalJSON() ([]byte, error) { - hbs.Type = TypeHBaseSource - objectMap := make(map[string]interface{}) - objectMap["query"] = hbs.Query - objectMap["sourceRetryCount"] = hbs.SourceRetryCount - objectMap["sourceRetryWait"] = hbs.SourceRetryWait - if hbs.Type != "" { - objectMap["type"] = hbs.Type - } - for k, v := range hbs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHBaseSource() (*HBaseSource, bool) { - return &hbs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hbs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HdfsLinkedService hadoop Distributed File System (HDFS) linked service. -type HdfsLinkedService struct { - // HdfsLinkedServiceTypeProperties - HDFS linked service properties. - *HdfsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HdfsLinkedService. -func (hls HdfsLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeHdfs - objectMap := make(map[string]interface{}) - if hls.HdfsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HdfsLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HdfsLinkedService struct. -func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hdfsLinkedServiceTypeProperties HdfsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hdfsLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HdfsLinkedServiceTypeProperties = &hdfsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HdfsLinkedServiceTypeProperties HDFS linked service properties. -type HdfsLinkedServiceTypeProperties struct { - // URL - The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // UserName - User name for Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Windows authentication. - Password BasicSecretBase `json:"password,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HdfsLinkedServiceTypeProperties struct. -func (hlstp *HdfsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - hlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = encryptedCredential - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HdfsSource a copy activity HDFS source. -type HdfsSource struct { - // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` - // DistcpSettings - Specifies Distcp-related settings. - DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HdfsSource. -func (hs HdfsSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeHdfsSource - objectMap := make(map[string]interface{}) - objectMap["recursive"] = hs.Recursive - if hs.DistcpSettings != nil { - objectMap["distcpSettings"] = hs.DistcpSettings - } - objectMap["sourceRetryCount"] = hs.SourceRetryCount - objectMap["sourceRetryWait"] = hs.SourceRetryWait - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHdfsSource() (*HdfsSource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightHiveActivity hDInsight Hive activity type. -type HDInsightHiveActivity struct { - // HDInsightHiveActivityTypeProperties - HDInsight Hive activity properties. - *HDInsightHiveActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) MarshalJSON() ([]byte, error) { - hiha.Type = TypeHDInsightHive - objectMap := make(map[string]interface{}) - if hiha.HDInsightHiveActivityTypeProperties != nil { - objectMap["typeProperties"] = hiha.HDInsightHiveActivityTypeProperties - } - if hiha.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hiha.LinkedServiceName - } - if hiha.Policy != nil { - objectMap["policy"] = hiha.Policy - } - if hiha.Name != nil { - objectMap["name"] = hiha.Name - } - if hiha.Description != nil { - objectMap["description"] = hiha.Description - } - if hiha.DependsOn != nil { - objectMap["dependsOn"] = hiha.DependsOn - } - if hiha.Type != "" { - objectMap["type"] = hiha.Type - } - for k, v := range hiha.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return &hiha, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hiha, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsBasicActivity() (BasicActivity, bool) { - return &hiha, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightHiveActivity struct. -func (hiha *HDInsightHiveActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightHiveActivityTypeProperties HDInsightHiveActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightHiveActivityTypeProperties) - if err != nil { - return err - } - hiha.HDInsightHiveActivityTypeProperties = &hDInsightHiveActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hiha.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hiha.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hiha.AdditionalProperties == nil { - hiha.AdditionalProperties = make(map[string]interface{}) - } - hiha.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hiha.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hiha.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hiha.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hiha.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightHiveActivityTypeProperties hDInsight Hive activity properties. -type HDInsightHiveActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'None', 'Always', 'Failure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // ScriptPath - Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` - // ScriptLinkedService - Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` - // Defines - Allows user to specify defines for Hive job request. - Defines map[string]interface{} `json:"defines"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightHiveActivityTypeProperties. -func (hihatp HDInsightHiveActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hihatp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = hihatp.StorageLinkedServices - } - if hihatp.Arguments != nil { - objectMap["arguments"] = hihatp.Arguments - } - if hihatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hihatp.GetDebugInfo - } - objectMap["scriptPath"] = hihatp.ScriptPath - if hihatp.ScriptLinkedService != nil { - objectMap["scriptLinkedService"] = hihatp.ScriptLinkedService - } - if hihatp.Defines != nil { - objectMap["defines"] = hihatp.Defines - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightLinkedService hDInsight linked service. -type HDInsightLinkedService struct { - // HDInsightLinkedServiceTypeProperties - HDInsight linked service properties. - *HDInsightLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightLinkedService. -func (hils HDInsightLinkedService) MarshalJSON() ([]byte, error) { - hils.Type = TypeHDInsight - objectMap := make(map[string]interface{}) - if hils.HDInsightLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hils.HDInsightLinkedServiceTypeProperties - } - if hils.ConnectVia != nil { - objectMap["connectVia"] = hils.ConnectVia - } - if hils.Description != nil { - objectMap["description"] = hils.Description - } - if hils.Parameters != nil { - objectMap["parameters"] = hils.Parameters - } - if hils.Annotations != nil { - objectMap["annotations"] = hils.Annotations - } - if hils.Type != "" { - objectMap["type"] = hils.Type - } - for k, v := range hils.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return &hils, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hils, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightLinkedService struct. -func (hils *HDInsightLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightLinkedServiceTypeProperties HDInsightLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hDInsightLinkedServiceTypeProperties) - if err != nil { - return err - } - hils.HDInsightLinkedServiceTypeProperties = &hDInsightLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hils.AdditionalProperties == nil { - hils.AdditionalProperties = make(map[string]interface{}) - } - hils.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hils.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hils.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hils.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hils.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hils.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightLinkedServiceTypeProperties hDInsight linked service properties. -type HDInsightLinkedServiceTypeProperties struct { - // ClusterURI - HDInsight cluster URI. Type: string (or Expression with resultType string). - ClusterURI interface{} `json:"clusterUri,omitempty"` - // UserName - HDInsight cluster user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - HDInsight cluster password. - Password BasicSecretBase `json:"password,omitempty"` - // LinkedServiceName - The Azure Storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // HcatalogLinkedServiceName - A reference to the Azure SQL linked service that points to the HCatalog database. - HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightLinkedServiceTypeProperties struct. -func (hilstp *HDInsightLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clusterUri": - if v != nil { - var clusterURI interface{} - err = json.Unmarshal(*v, &clusterURI) - if err != nil { - return err - } - hilstp.ClusterURI = clusterURI - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hilstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hilstp.Password = password - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hilstp.LinkedServiceName = &linkedServiceName - } - case "hcatalogLinkedServiceName": - if v != nil { - var hcatalogLinkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &hcatalogLinkedServiceName) - if err != nil { - return err - } - hilstp.HcatalogLinkedServiceName = &hcatalogLinkedServiceName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hilstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightMapReduceActivity hDInsight MapReduce activity type. -type HDInsightMapReduceActivity struct { - // HDInsightMapReduceActivityTypeProperties - HDInsight MapReduce activity properties. - *HDInsightMapReduceActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) MarshalJSON() ([]byte, error) { - himra.Type = TypeHDInsightMapReduce - objectMap := make(map[string]interface{}) - if himra.HDInsightMapReduceActivityTypeProperties != nil { - objectMap["typeProperties"] = himra.HDInsightMapReduceActivityTypeProperties - } - if himra.LinkedServiceName != nil { - objectMap["linkedServiceName"] = himra.LinkedServiceName - } - if himra.Policy != nil { - objectMap["policy"] = himra.Policy - } - if himra.Name != nil { - objectMap["name"] = himra.Name - } - if himra.Description != nil { - objectMap["description"] = himra.Description - } - if himra.DependsOn != nil { - objectMap["dependsOn"] = himra.DependsOn - } - if himra.Type != "" { - objectMap["type"] = himra.Type - } - for k, v := range himra.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return &himra, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &himra, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsBasicActivity() (BasicActivity, bool) { - return &himra, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightMapReduceActivity struct. -func (himra *HDInsightMapReduceActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightMapReduceActivityTypeProperties HDInsightMapReduceActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightMapReduceActivityTypeProperties) - if err != nil { - return err - } - himra.HDInsightMapReduceActivityTypeProperties = &hDInsightMapReduceActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - himra.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - himra.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if himra.AdditionalProperties == nil { - himra.AdditionalProperties = make(map[string]interface{}) - } - himra.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - himra.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - himra.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - himra.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - himra.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightMapReduceActivityTypeProperties hDInsight MapReduce activity properties. -type HDInsightMapReduceActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'None', 'Always', 'Failure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // ClassName - Class name. Type: string (or Expression with resultType string). - ClassName interface{} `json:"className,omitempty"` - // JarFilePath - Jar path. Type: string (or Expression with resultType string). - JarFilePath interface{} `json:"jarFilePath,omitempty"` - // JarLinkedService - Jar linked service reference. - JarLinkedService *LinkedServiceReference `json:"jarLinkedService,omitempty"` - // JarLibs - Jar libs. - JarLibs *[]interface{} `json:"jarLibs,omitempty"` - // Defines - Allows user to specify defines for the MapReduce job request. - Defines map[string]interface{} `json:"defines"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightMapReduceActivityTypeProperties. -func (himratp HDInsightMapReduceActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if himratp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = himratp.StorageLinkedServices - } - if himratp.Arguments != nil { - objectMap["arguments"] = himratp.Arguments - } - if himratp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = himratp.GetDebugInfo - } - objectMap["className"] = himratp.ClassName - objectMap["jarFilePath"] = himratp.JarFilePath - if himratp.JarLinkedService != nil { - objectMap["jarLinkedService"] = himratp.JarLinkedService - } - if himratp.JarLibs != nil { - objectMap["jarLibs"] = himratp.JarLibs - } - if himratp.Defines != nil { - objectMap["defines"] = himratp.Defines - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightOnDemandLinkedService hDInsight ondemand linked service. -type HDInsightOnDemandLinkedService struct { - // HDInsightOnDemandLinkedServiceTypeProperties - HDInsight ondemand linked service properties. - *HDInsightOnDemandLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error) { - hiodls.Type = TypeHDInsightOnDemand - objectMap := make(map[string]interface{}) - if hiodls.HDInsightOnDemandLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hiodls.HDInsightOnDemandLinkedServiceTypeProperties - } - if hiodls.ConnectVia != nil { - objectMap["connectVia"] = hiodls.ConnectVia - } - if hiodls.Description != nil { - objectMap["description"] = hiodls.Description - } - if hiodls.Parameters != nil { - objectMap["parameters"] = hiodls.Parameters - } - if hiodls.Annotations != nil { - objectMap["annotations"] = hiodls.Annotations - } - if hiodls.Type != "" { - objectMap["type"] = hiodls.Type - } - for k, v := range hiodls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return &hiodls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hiodls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightOnDemandLinkedService struct. -func (hiodls *HDInsightOnDemandLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightOnDemandLinkedServiceTypeProperties HDInsightOnDemandLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hDInsightOnDemandLinkedServiceTypeProperties) - if err != nil { - return err - } - hiodls.HDInsightOnDemandLinkedServiceTypeProperties = &hDInsightOnDemandLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hiodls.AdditionalProperties == nil { - hiodls.AdditionalProperties = make(map[string]interface{}) - } - hiodls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hiodls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hiodls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hiodls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hiodls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hiodls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightOnDemandLinkedServiceTypeProperties hDInsight ondemand linked service properties. -type HDInsightOnDemandLinkedServiceTypeProperties struct { - // ClusterSize - Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType string). - ClusterSize interface{} `json:"clusterSize,omitempty"` - // TimeToLive - The allowed idle time for the on-demand HDInsight cluster. Specifies how long the on-demand HDInsight cluster stays alive after completion of an activity run if there are no other active jobs in the cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - TimeToLive interface{} `json:"timeToLive,omitempty"` - // Version - Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // LinkedServiceName - Azure Storage linked service to be used by the on-demand cluster for storing and processing data. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // HostSubscriptionID - The customer’s subscription to host the cluster. Type: string (or Expression with resultType string). - HostSubscriptionID interface{} `json:"hostSubscriptionId,omitempty"` - // ServicePrincipalID - The service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key for the service principal id. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The Tenant id/name to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // ClusterResourceGroup - The resource group where the cluster belongs. Type: string (or Expression with resultType string). - ClusterResourceGroup interface{} `json:"clusterResourceGroup,omitempty"` - // ClusterNamePrefix - The prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). - ClusterNamePrefix interface{} `json:"clusterNamePrefix,omitempty"` - // ClusterUserName - The username to access the cluster. Type: string (or Expression with resultType string). - ClusterUserName interface{} `json:"clusterUserName,omitempty"` - // ClusterPassword - The password to access the cluster. - ClusterPassword BasicSecretBase `json:"clusterPassword,omitempty"` - // ClusterSSHUserName - The username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). - ClusterSSHUserName interface{} `json:"clusterSshUserName,omitempty"` - // ClusterSSHPassword - The password to SSH remotely connect cluster’s node (for Linux). - ClusterSSHPassword BasicSecretBase `json:"clusterSshPassword,omitempty"` - // AdditionalLinkedServiceNames - Specifies additional storage accounts for the HDInsight linked service so that the Data Factory service can register them on your behalf. - AdditionalLinkedServiceNames *[]LinkedServiceReference `json:"additionalLinkedServiceNames,omitempty"` - // HcatalogLinkedServiceName - The name of Azure SQL linked service that point to the HCatalog database. The on-demand HDInsight cluster is created by using the Azure SQL database as the metastore. - HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` - // ClusterType - The cluster type. Type: string (or Expression with resultType string). - ClusterType interface{} `json:"clusterType,omitempty"` - // SparkVersion - The version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). - SparkVersion interface{} `json:"sparkVersion,omitempty"` - // CoreConfiguration - Specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. - CoreConfiguration interface{} `json:"coreConfiguration,omitempty"` - // HBaseConfiguration - Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. - HBaseConfiguration interface{} `json:"hBaseConfiguration,omitempty"` - // HdfsConfiguration - Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. - HdfsConfiguration interface{} `json:"hdfsConfiguration,omitempty"` - // HiveConfiguration - Specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. - HiveConfiguration interface{} `json:"hiveConfiguration,omitempty"` - // MapReduceConfiguration - Specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. - MapReduceConfiguration interface{} `json:"mapReduceConfiguration,omitempty"` - // OozieConfiguration - Specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. - OozieConfiguration interface{} `json:"oozieConfiguration,omitempty"` - // StormConfiguration - Specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. - StormConfiguration interface{} `json:"stormConfiguration,omitempty"` - // YarnConfiguration - Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. - YarnConfiguration interface{} `json:"yarnConfiguration,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // HeadNodeSize - Specifies the size of the head node for the HDInsight cluster. - HeadNodeSize interface{} `json:"headNodeSize,omitempty"` - // DataNodeSize - Specifies the size of the data node for the HDInsight cluster. - DataNodeSize interface{} `json:"dataNodeSize,omitempty"` - // ZookeeperNodeSize - Specifies the size of the Zoo Keeper node for the HDInsight cluster. - ZookeeperNodeSize interface{} `json:"zookeeperNodeSize,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightOnDemandLinkedServiceTypeProperties struct. -func (hiodlstp *HDInsightOnDemandLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clusterSize": - if v != nil { - var clusterSize interface{} - err = json.Unmarshal(*v, &clusterSize) - if err != nil { - return err - } - hiodlstp.ClusterSize = clusterSize - } - case "timeToLive": - if v != nil { - var timeToLive interface{} - err = json.Unmarshal(*v, &timeToLive) - if err != nil { - return err - } - hiodlstp.TimeToLive = timeToLive - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - hiodlstp.Version = version - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hiodlstp.LinkedServiceName = &linkedServiceName - } - case "hostSubscriptionId": - if v != nil { - var hostSubscriptionID interface{} - err = json.Unmarshal(*v, &hostSubscriptionID) - if err != nil { - return err - } - hiodlstp.HostSubscriptionID = hostSubscriptionID - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - hiodlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hiodlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - hiodlstp.Tenant = tenant - } - case "clusterResourceGroup": - if v != nil { - var clusterResourceGroup interface{} - err = json.Unmarshal(*v, &clusterResourceGroup) - if err != nil { - return err - } - hiodlstp.ClusterResourceGroup = clusterResourceGroup - } - case "clusterNamePrefix": - if v != nil { - var clusterNamePrefix interface{} - err = json.Unmarshal(*v, &clusterNamePrefix) - if err != nil { - return err - } - hiodlstp.ClusterNamePrefix = clusterNamePrefix - } - case "clusterUserName": - if v != nil { - var clusterUserName interface{} - err = json.Unmarshal(*v, &clusterUserName) - if err != nil { - return err - } - hiodlstp.ClusterUserName = clusterUserName - } - case "clusterPassword": - if v != nil { - clusterPassword, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hiodlstp.ClusterPassword = clusterPassword - } - case "clusterSshUserName": - if v != nil { - var clusterSSHUserName interface{} - err = json.Unmarshal(*v, &clusterSSHUserName) - if err != nil { - return err - } - hiodlstp.ClusterSSHUserName = clusterSSHUserName - } - case "clusterSshPassword": - if v != nil { - clusterSSHPassword, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hiodlstp.ClusterSSHPassword = clusterSSHPassword - } - case "additionalLinkedServiceNames": - if v != nil { - var additionalLinkedServiceNames []LinkedServiceReference - err = json.Unmarshal(*v, &additionalLinkedServiceNames) - if err != nil { - return err - } - hiodlstp.AdditionalLinkedServiceNames = &additionalLinkedServiceNames - } - case "hcatalogLinkedServiceName": - if v != nil { - var hcatalogLinkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &hcatalogLinkedServiceName) - if err != nil { - return err - } - hiodlstp.HcatalogLinkedServiceName = &hcatalogLinkedServiceName - } - case "clusterType": - if v != nil { - var clusterType interface{} - err = json.Unmarshal(*v, &clusterType) - if err != nil { - return err - } - hiodlstp.ClusterType = clusterType - } - case "sparkVersion": - if v != nil { - var sparkVersion interface{} - err = json.Unmarshal(*v, &sparkVersion) - if err != nil { - return err - } - hiodlstp.SparkVersion = sparkVersion - } - case "coreConfiguration": - if v != nil { - var coreConfiguration interface{} - err = json.Unmarshal(*v, &coreConfiguration) - if err != nil { - return err - } - hiodlstp.CoreConfiguration = coreConfiguration - } - case "hBaseConfiguration": - if v != nil { - var hBaseConfiguration interface{} - err = json.Unmarshal(*v, &hBaseConfiguration) - if err != nil { - return err - } - hiodlstp.HBaseConfiguration = hBaseConfiguration - } - case "hdfsConfiguration": - if v != nil { - var hdfsConfiguration interface{} - err = json.Unmarshal(*v, &hdfsConfiguration) - if err != nil { - return err - } - hiodlstp.HdfsConfiguration = hdfsConfiguration - } - case "hiveConfiguration": - if v != nil { - var hiveConfiguration interface{} - err = json.Unmarshal(*v, &hiveConfiguration) - if err != nil { - return err - } - hiodlstp.HiveConfiguration = hiveConfiguration - } - case "mapReduceConfiguration": - if v != nil { - var mapReduceConfiguration interface{} - err = json.Unmarshal(*v, &mapReduceConfiguration) - if err != nil { - return err - } - hiodlstp.MapReduceConfiguration = mapReduceConfiguration - } - case "oozieConfiguration": - if v != nil { - var oozieConfiguration interface{} - err = json.Unmarshal(*v, &oozieConfiguration) - if err != nil { - return err - } - hiodlstp.OozieConfiguration = oozieConfiguration - } - case "stormConfiguration": - if v != nil { - var stormConfiguration interface{} - err = json.Unmarshal(*v, &stormConfiguration) - if err != nil { - return err - } - hiodlstp.StormConfiguration = stormConfiguration - } - case "yarnConfiguration": - if v != nil { - var yarnConfiguration interface{} - err = json.Unmarshal(*v, &yarnConfiguration) - if err != nil { - return err - } - hiodlstp.YarnConfiguration = yarnConfiguration - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hiodlstp.EncryptedCredential = encryptedCredential - } - case "headNodeSize": - if v != nil { - var headNodeSize interface{} - err = json.Unmarshal(*v, &headNodeSize) - if err != nil { - return err - } - hiodlstp.HeadNodeSize = headNodeSize - } - case "dataNodeSize": - if v != nil { - var dataNodeSize interface{} - err = json.Unmarshal(*v, &dataNodeSize) - if err != nil { - return err - } - hiodlstp.DataNodeSize = dataNodeSize - } - case "zookeeperNodeSize": - if v != nil { - var zookeeperNodeSize interface{} - err = json.Unmarshal(*v, &zookeeperNodeSize) - if err != nil { - return err - } - hiodlstp.ZookeeperNodeSize = zookeeperNodeSize - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightPigActivity hDInsight Pig activity type. -type HDInsightPigActivity struct { - // HDInsightPigActivityTypeProperties - HDInsight Pig activity properties. - *HDInsightPigActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightPigActivity. -func (hipa HDInsightPigActivity) MarshalJSON() ([]byte, error) { - hipa.Type = TypeHDInsightPig - objectMap := make(map[string]interface{}) - if hipa.HDInsightPigActivityTypeProperties != nil { - objectMap["typeProperties"] = hipa.HDInsightPigActivityTypeProperties - } - if hipa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hipa.LinkedServiceName - } - if hipa.Policy != nil { - objectMap["policy"] = hipa.Policy - } - if hipa.Name != nil { - objectMap["name"] = hipa.Name - } - if hipa.Description != nil { - objectMap["description"] = hipa.Description - } - if hipa.DependsOn != nil { - objectMap["dependsOn"] = hipa.DependsOn - } - if hipa.Type != "" { - objectMap["type"] = hipa.Type - } - for k, v := range hipa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return &hipa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hipa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsBasicActivity() (BasicActivity, bool) { - return &hipa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightPigActivity struct. -func (hipa *HDInsightPigActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightPigActivityTypeProperties HDInsightPigActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightPigActivityTypeProperties) - if err != nil { - return err - } - hipa.HDInsightPigActivityTypeProperties = &hDInsightPigActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hipa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hipa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hipa.AdditionalProperties == nil { - hipa.AdditionalProperties = make(map[string]interface{}) - } - hipa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hipa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hipa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hipa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hipa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightPigActivityTypeProperties hDInsight Pig activity properties. -type HDInsightPigActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'None', 'Always', 'Failure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // ScriptPath - Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` - // ScriptLinkedService - Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` - // Defines - Allows user to specify defines for Pig job request. - Defines map[string]interface{} `json:"defines"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightPigActivityTypeProperties. -func (hipatp HDInsightPigActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hipatp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = hipatp.StorageLinkedServices - } - if hipatp.Arguments != nil { - objectMap["arguments"] = hipatp.Arguments - } - if hipatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hipatp.GetDebugInfo - } - objectMap["scriptPath"] = hipatp.ScriptPath - if hipatp.ScriptLinkedService != nil { - objectMap["scriptLinkedService"] = hipatp.ScriptLinkedService - } - if hipatp.Defines != nil { - objectMap["defines"] = hipatp.Defines - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightSparkActivity hDInsight Spark activity. -type HDInsightSparkActivity struct { - // HDInsightSparkActivityTypeProperties - HDInsight spark activity properties. - *HDInsightSparkActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) MarshalJSON() ([]byte, error) { - hisa.Type = TypeHDInsightSpark - objectMap := make(map[string]interface{}) - if hisa.HDInsightSparkActivityTypeProperties != nil { - objectMap["typeProperties"] = hisa.HDInsightSparkActivityTypeProperties - } - if hisa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hisa.LinkedServiceName - } - if hisa.Policy != nil { - objectMap["policy"] = hisa.Policy - } - if hisa.Name != nil { - objectMap["name"] = hisa.Name - } - if hisa.Description != nil { - objectMap["description"] = hisa.Description - } - if hisa.DependsOn != nil { - objectMap["dependsOn"] = hisa.DependsOn - } - if hisa.Type != "" { - objectMap["type"] = hisa.Type - } - for k, v := range hisa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return &hisa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hisa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsBasicActivity() (BasicActivity, bool) { - return &hisa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightSparkActivity struct. -func (hisa *HDInsightSparkActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightSparkActivityTypeProperties HDInsightSparkActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightSparkActivityTypeProperties) - if err != nil { - return err - } - hisa.HDInsightSparkActivityTypeProperties = &hDInsightSparkActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hisa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hisa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hisa.AdditionalProperties == nil { - hisa.AdditionalProperties = make(map[string]interface{}) - } - hisa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hisa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hisa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hisa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hisa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightSparkActivityTypeProperties hDInsight spark activity properties. -type HDInsightSparkActivityTypeProperties struct { - // RootPath - The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType string). - RootPath interface{} `json:"rootPath,omitempty"` - // EntryFilePath - The relative path to the root folder of the code/package to be executed. Type: string (or Expression with resultType string). - EntryFilePath interface{} `json:"entryFilePath,omitempty"` - // Arguments - The user-specified arguments to HDInsightSparkActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'None', 'Always', 'Failure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // SparkJobLinkedService - The storage linked service for uploading the entry file and dependencies, and for receiving logs. - SparkJobLinkedService *LinkedServiceReference `json:"sparkJobLinkedService,omitempty"` - // ClassName - The application's Java/Spark main class. - ClassName *string `json:"className,omitempty"` - // ProxyUser - The user to impersonate that will execute the job. Type: string (or Expression with resultType string). - ProxyUser interface{} `json:"proxyUser,omitempty"` - // SparkConfig - Spark configuration property. - SparkConfig map[string]interface{} `json:"sparkConfig"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightSparkActivityTypeProperties. -func (hisatp HDInsightSparkActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["rootPath"] = hisatp.RootPath - objectMap["entryFilePath"] = hisatp.EntryFilePath - if hisatp.Arguments != nil { - objectMap["arguments"] = hisatp.Arguments - } - if hisatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hisatp.GetDebugInfo - } - if hisatp.SparkJobLinkedService != nil { - objectMap["sparkJobLinkedService"] = hisatp.SparkJobLinkedService - } - if hisatp.ClassName != nil { - objectMap["className"] = hisatp.ClassName - } - objectMap["proxyUser"] = hisatp.ProxyUser - if hisatp.SparkConfig != nil { - objectMap["sparkConfig"] = hisatp.SparkConfig - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightStreamingActivity hDInsight streaming activity type. -type HDInsightStreamingActivity struct { - // HDInsightStreamingActivityTypeProperties - HDInsight streaming activity properties. - *HDInsightStreamingActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) MarshalJSON() ([]byte, error) { - hisa.Type = TypeHDInsightStreaming - objectMap := make(map[string]interface{}) - if hisa.HDInsightStreamingActivityTypeProperties != nil { - objectMap["typeProperties"] = hisa.HDInsightStreamingActivityTypeProperties - } - if hisa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hisa.LinkedServiceName - } - if hisa.Policy != nil { - objectMap["policy"] = hisa.Policy - } - if hisa.Name != nil { - objectMap["name"] = hisa.Name - } - if hisa.Description != nil { - objectMap["description"] = hisa.Description - } - if hisa.DependsOn != nil { - objectMap["dependsOn"] = hisa.DependsOn - } - if hisa.Type != "" { - objectMap["type"] = hisa.Type - } - for k, v := range hisa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return &hisa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hisa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsBasicActivity() (BasicActivity, bool) { - return &hisa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HDInsightStreamingActivity struct. -func (hisa *HDInsightStreamingActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightStreamingActivityTypeProperties HDInsightStreamingActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightStreamingActivityTypeProperties) - if err != nil { - return err - } - hisa.HDInsightStreamingActivityTypeProperties = &hDInsightStreamingActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hisa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hisa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hisa.AdditionalProperties == nil { - hisa.AdditionalProperties = make(map[string]interface{}) - } - hisa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hisa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hisa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hisa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hisa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HDInsightStreamingActivityTypeProperties hDInsight streaming activity properties. -type HDInsightStreamingActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'None', 'Always', 'Failure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // Mapper - Mapper executable name. Type: string (or Expression with resultType string). - Mapper interface{} `json:"mapper,omitempty"` - // Reducer - Reducer executable name. Type: string (or Expression with resultType string). - Reducer interface{} `json:"reducer,omitempty"` - // Input - Input blob path. Type: string (or Expression with resultType string). - Input interface{} `json:"input,omitempty"` - // Output - Output blob path. Type: string (or Expression with resultType string). - Output interface{} `json:"output,omitempty"` - // FilePaths - Paths to streaming job files. Can be directories. - FilePaths *[]interface{} `json:"filePaths,omitempty"` - // FileLinkedService - Linked service reference where the files are located. - FileLinkedService *LinkedServiceReference `json:"fileLinkedService,omitempty"` - // Combiner - Combiner executable name. Type: string (or Expression with resultType string). - Combiner interface{} `json:"combiner,omitempty"` - // CommandEnvironment - Command line environment values. - CommandEnvironment *[]interface{} `json:"commandEnvironment,omitempty"` - // Defines - Allows user to specify defines for streaming job request. - Defines map[string]interface{} `json:"defines"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HDInsightStreamingActivityTypeProperties. -func (hisatp HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hisatp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = hisatp.StorageLinkedServices - } - if hisatp.Arguments != nil { - objectMap["arguments"] = hisatp.Arguments - } - if hisatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hisatp.GetDebugInfo - } - objectMap["mapper"] = hisatp.Mapper - objectMap["reducer"] = hisatp.Reducer - objectMap["input"] = hisatp.Input - objectMap["output"] = hisatp.Output - if hisatp.FilePaths != nil { - objectMap["filePaths"] = hisatp.FilePaths - } - if hisatp.FileLinkedService != nil { - objectMap["fileLinkedService"] = hisatp.FileLinkedService - } - objectMap["combiner"] = hisatp.Combiner - if hisatp.CommandEnvironment != nil { - objectMap["commandEnvironment"] = hisatp.CommandEnvironment - } - if hisatp.Defines != nil { - objectMap["defines"] = hisatp.Defines - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HiveLinkedService hive Server linked service. -type HiveLinkedService struct { - // HiveLinkedServiceTypeProperties - Hive Server linked service properties. - *HiveLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HiveLinkedService. -func (hls HiveLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeHive - objectMap := make(map[string]interface{}) - if hls.HiveLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HiveLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HiveLinkedService struct. -func (hls *HiveLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hiveLinkedServiceTypeProperties HiveLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hiveLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HiveLinkedServiceTypeProperties = &hiveLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HiveLinkedServiceTypeProperties hive Server linked service properties. -type HiveLinkedServiceTypeProperties struct { - // Host - IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Hive server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` - // ServerType - The type of Hive server. Possible values include: 'HiveServer1', 'HiveServer2', 'HiveThriftServer' - ServerType HiveServerType `json:"serverType,omitempty"` - // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'Binary', 'SASL', 'HTTP' - ThriftTransportProtocol HiveThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` - // AuthenticationType - The authentication method used to access the Hive server. Possible values include: 'Anonymous', 'Username', 'UsernameAndPassword', 'WindowsAzureHDInsightService' - AuthenticationType HiveAuthenticationType `json:"authenticationType,omitempty"` - // ServiceDiscoveryMode - true to indicate using the ZooKeeper service, false not. - ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` - // ZooKeeperNameSpace - The namespace on ZooKeeper under which Hive Server 2 nodes are added. - ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` - // UseNativeQuery - Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. - UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` - // Username - The user name that you use to access Hive Server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the Username field - Password BasicSecretBase `json:"password,omitempty"` - // HTTPPath - The partial URL corresponding to the Hive server. - HTTPPath interface{} `json:"httpPath,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // AllowHostNameCNMismatch - Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HiveLinkedServiceTypeProperties struct. -func (hlstp *HiveLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - hlstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - hlstp.Port = port - } - case "serverType": - if v != nil { - var serverType HiveServerType - err = json.Unmarshal(*v, &serverType) - if err != nil { - return err - } - hlstp.ServerType = serverType - } - case "thriftTransportProtocol": - if v != nil { - var thriftTransportProtocol HiveThriftTransportProtocol - err = json.Unmarshal(*v, &thriftTransportProtocol) - if err != nil { - return err - } - hlstp.ThriftTransportProtocol = thriftTransportProtocol - } - case "authenticationType": - if v != nil { - var authenticationType HiveAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "serviceDiscoveryMode": - if v != nil { - var serviceDiscoveryMode interface{} - err = json.Unmarshal(*v, &serviceDiscoveryMode) - if err != nil { - return err - } - hlstp.ServiceDiscoveryMode = serviceDiscoveryMode - } - case "zooKeeperNameSpace": - if v != nil { - var zooKeeperNameSpace interface{} - err = json.Unmarshal(*v, &zooKeeperNameSpace) - if err != nil { - return err - } - hlstp.ZooKeeperNameSpace = zooKeeperNameSpace - } - case "useNativeQuery": - if v != nil { - var useNativeQuery interface{} - err = json.Unmarshal(*v, &useNativeQuery) - if err != nil { - return err - } - hlstp.UseNativeQuery = useNativeQuery - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - hlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - hlstp.HTTPPath = HTTPPath - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - hlstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - hlstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - hlstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - hlstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - hlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HiveObjectDataset hive Server dataset. -type HiveObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HiveObjectDataset. -func (hod HiveObjectDataset) MarshalJSON() ([]byte, error) { - hod.Type = TypeHiveObject - objectMap := make(map[string]interface{}) - if hod.Description != nil { - objectMap["description"] = hod.Description - } - objectMap["structure"] = hod.Structure - if hod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hod.LinkedServiceName - } - if hod.Parameters != nil { - objectMap["parameters"] = hod.Parameters - } - if hod.Annotations != nil { - objectMap["annotations"] = hod.Annotations - } - if hod.Type != "" { - objectMap["type"] = hod.Type - } - for k, v := range hod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return &hod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HiveSource a copy activity Hive Server source. -type HiveSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HiveSource. -func (hs HiveSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeHiveSource - objectMap := make(map[string]interface{}) - objectMap["query"] = hs.Query - objectMap["sourceRetryCount"] = hs.SourceRetryCount - objectMap["sourceRetryWait"] = hs.SourceRetryWait - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHiveSource() (*HiveSource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HTTPDataset a file in an HTTP web server. -type HTTPDataset struct { - // HTTPDatasetTypeProperties - Properties specific to this dataset type. - *HTTPDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HTTPDataset. -func (hd HTTPDataset) MarshalJSON() ([]byte, error) { - hd.Type = TypeHTTPFile - objectMap := make(map[string]interface{}) - if hd.HTTPDatasetTypeProperties != nil { - objectMap["typeProperties"] = hd.HTTPDatasetTypeProperties - } - if hd.Description != nil { - objectMap["description"] = hd.Description - } - objectMap["structure"] = hd.Structure - if hd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hd.LinkedServiceName - } - if hd.Parameters != nil { - objectMap["parameters"] = hd.Parameters - } - if hd.Annotations != nil { - objectMap["annotations"] = hd.Annotations - } - if hd.Type != "" { - objectMap["type"] = hd.Type - } - for k, v := range hd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return &hd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsBasicDataset() (BasicDataset, bool) { - return &hd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HTTPDataset struct. -func (hd *HTTPDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var HTTPDatasetTypeProperties HTTPDatasetTypeProperties - err = json.Unmarshal(*v, &HTTPDatasetTypeProperties) - if err != nil { - return err - } - hd.HTTPDatasetTypeProperties = &HTTPDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hd.AdditionalProperties == nil { - hd.AdditionalProperties = make(map[string]interface{}) - } - hd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - hd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HTTPDatasetTypeProperties properties specific to this dataset type. -type HTTPDatasetTypeProperties struct { - // RelativeURL - The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` - // RequestMethod - The HTTP method for the HTTP request. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` - // RequestBody - The body for the HTTP request. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 - // ... - // request-header-name-n:request-header-value-n Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // Format - The format of files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used on files. - Compression BasicDatasetCompression `json:"compression,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HTTPDatasetTypeProperties struct. -func (hdtp *HTTPDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "relativeUrl": - if v != nil { - var relativeURL interface{} - err = json.Unmarshal(*v, &relativeURL) - if err != nil { - return err - } - hdtp.RelativeURL = relativeURL - } - case "requestMethod": - if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) - if err != nil { - return err - } - hdtp.RequestMethod = requestMethod - } - case "requestBody": - if v != nil { - var requestBody interface{} - err = json.Unmarshal(*v, &requestBody) - if err != nil { - return err - } - hdtp.RequestBody = requestBody - } - case "additionalHeaders": - if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) - if err != nil { - return err - } - hdtp.AdditionalHeaders = additionalHeaders - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - hdtp.Format = formatVar - } - case "compression": - if v != nil { - compression, err := unmarshalBasicDatasetCompression(*v) - if err != nil { - return err - } - hdtp.Compression = compression - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HTTPLinkedService linked service for an HTTP source. -type HTTPLinkedService struct { - // HTTPLinkedServiceTypeProperties - Properties specific to this linked service type. - *HTTPLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HTTPLinkedService. -func (hls HTTPLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeHTTPServer - objectMap := make(map[string]interface{}) - if hls.HTTPLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HTTPLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HTTPLinkedService struct. -func (hls *HTTPLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var HTTPLinkedServiceTypeProperties HTTPLinkedServiceTypeProperties - err = json.Unmarshal(*v, &HTTPLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HTTPLinkedServiceTypeProperties = &HTTPLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HTTPLinkedServiceTypeProperties properties specific to this linked service type. -type HTTPLinkedServiceTypeProperties struct { - // URL - The base URL of the HTTP endpoint, e.g. http://www.microsoft.com. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the HTTP server. Possible values include: 'HTTPAuthenticationTypeBasic', 'HTTPAuthenticationTypeAnonymous', 'HTTPAuthenticationTypeDigest', 'HTTPAuthenticationTypeWindows', 'HTTPAuthenticationTypeClientCertificate' - AuthenticationType HTTPAuthenticationType `json:"authenticationType,omitempty"` - // UserName - User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EmbeddedCertData - Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - EmbeddedCertData interface{} `json:"embeddedCertData,omitempty"` - // CertThumbprint - Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - CertThumbprint interface{} `json:"certThumbprint,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // EnableServerCertificateValidation - If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HTTPLinkedServiceTypeProperties struct. -func (hlstp *HTTPLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - hlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType HTTPAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - case "embeddedCertData": - if v != nil { - var embeddedCertData interface{} - err = json.Unmarshal(*v, &embeddedCertData) - if err != nil { - return err - } - hlstp.EmbeddedCertData = embeddedCertData - } - case "certThumbprint": - if v != nil { - var certThumbprint interface{} - err = json.Unmarshal(*v, &certThumbprint) - if err != nil { - return err - } - hlstp.CertThumbprint = certThumbprint - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = encryptedCredential - } - case "enableServerCertificateValidation": - if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) - if err != nil { - return err - } - hlstp.EnableServerCertificateValidation = enableServerCertificateValidation - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HTTPSource a copy activity source for an HTTP file. -type HTTPSource struct { - // HTTPRequestTimeout - Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HTTPSource. -func (hs HTTPSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeHTTPSource - objectMap := make(map[string]interface{}) - objectMap["httpRequestTimeout"] = hs.HTTPRequestTimeout - objectMap["sourceRetryCount"] = hs.SourceRetryCount - objectMap["sourceRetryWait"] = hs.SourceRetryWait - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHTTPSource() (*HTTPSource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HubspotLinkedService hubspot Serivce linked service. -type HubspotLinkedService struct { - // HubspotLinkedServiceTypeProperties - Hubspot Serivce linked service properties. - *HubspotLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HubspotLinkedService. -func (hls HubspotLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeHubspot - objectMap := make(map[string]interface{}) - if hls.HubspotLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HubspotLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HubspotLinkedService struct. -func (hls *HubspotLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hubspotLinkedServiceTypeProperties HubspotLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hubspotLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HubspotLinkedServiceTypeProperties = &hubspotLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HubspotLinkedServiceTypeProperties hubspot Serivce linked service properties. -type HubspotLinkedServiceTypeProperties struct { - // ClientID - The client ID associated with your Hubspot application. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with your Hubspot application. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // AccessToken - The access token obtained when initially authenticating your OAuth integration. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // RefreshToken - The refresh token obtained when initially authenticating your OAuth integration. - RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for HubspotLinkedServiceTypeProperties struct. -func (hlstp *HubspotLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - hlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.ClientSecret = clientSecret - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.AccessToken = accessToken - } - case "refreshToken": - if v != nil { - refreshToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.RefreshToken = refreshToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - hlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - hlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - hlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HubspotObjectDataset hubspot Serivce dataset. -type HubspotObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HubspotObjectDataset. -func (hod HubspotObjectDataset) MarshalJSON() ([]byte, error) { - hod.Type = TypeHubspotObject - objectMap := make(map[string]interface{}) - if hod.Description != nil { - objectMap["description"] = hod.Description - } - objectMap["structure"] = hod.Structure - if hod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hod.LinkedServiceName - } - if hod.Parameters != nil { - objectMap["parameters"] = hod.Parameters - } - if hod.Annotations != nil { - objectMap["annotations"] = hod.Annotations - } - if hod.Type != "" { - objectMap["type"] = hod.Type - } - for k, v := range hod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return &hod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// HubspotSource a copy activity Hubspot Serivce source. -type HubspotSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for HubspotSource. -func (hs HubspotSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeHubspotSource - objectMap := make(map[string]interface{}) - objectMap["query"] = hs.Query - objectMap["sourceRetryCount"] = hs.SourceRetryCount - objectMap["sourceRetryWait"] = hs.SourceRetryWait - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHubspotSource() (*HubspotSource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IfConditionActivity this activity evaluates a boolean expression and executes either the activities under the -// ifTrueActivities property or the ifFalseActivities property depending on the result of the expression. -type IfConditionActivity struct { - // IfConditionActivityTypeProperties - IfCondition activity properties. - *IfConditionActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IfConditionActivity. -func (ica IfConditionActivity) MarshalJSON() ([]byte, error) { - ica.Type = TypeIfCondition - objectMap := make(map[string]interface{}) - if ica.IfConditionActivityTypeProperties != nil { - objectMap["typeProperties"] = ica.IfConditionActivityTypeProperties - } - if ica.Name != nil { - objectMap["name"] = ica.Name - } - if ica.Description != nil { - objectMap["description"] = ica.Description - } - if ica.DependsOn != nil { - objectMap["dependsOn"] = ica.DependsOn - } - if ica.Type != "" { - objectMap["type"] = ica.Type - } - for k, v := range ica.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return &ica, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &ica, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ica, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for IfConditionActivity struct. -func (ica *IfConditionActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var ifConditionActivityTypeProperties IfConditionActivityTypeProperties - err = json.Unmarshal(*v, &ifConditionActivityTypeProperties) - if err != nil { - return err - } - ica.IfConditionActivityTypeProperties = &ifConditionActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ica.AdditionalProperties == nil { - ica.AdditionalProperties = make(map[string]interface{}) - } - ica.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ica.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ica.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ica.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ica.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IfConditionActivityTypeProperties ifCondition activity properties. -type IfConditionActivityTypeProperties struct { - // Expression - An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed. - Expression *Expression `json:"expression,omitempty"` - // IfTrueActivities - List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action. - IfTrueActivities *[]BasicActivity `json:"ifTrueActivities,omitempty"` - // IfFalseActivities - List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action. - IfFalseActivities *[]BasicActivity `json:"ifFalseActivities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for IfConditionActivityTypeProperties struct. -func (icatp *IfConditionActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "expression": - if v != nil { - var expression Expression - err = json.Unmarshal(*v, &expression) - if err != nil { - return err - } - icatp.Expression = &expression - } - case "ifTrueActivities": - if v != nil { - ifTrueActivities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - icatp.IfTrueActivities = &ifTrueActivities - } - case "ifFalseActivities": - if v != nil { - ifFalseActivities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - icatp.IfFalseActivities = &ifFalseActivities - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ImpalaLinkedService impala server linked service. -type ImpalaLinkedService struct { - // ImpalaLinkedServiceTypeProperties - Impala server linked service properties. - *ImpalaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ImpalaLinkedService. -func (ils ImpalaLinkedService) MarshalJSON() ([]byte, error) { - ils.Type = TypeImpala - objectMap := make(map[string]interface{}) - if ils.ImpalaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ils.ImpalaLinkedServiceTypeProperties - } - if ils.ConnectVia != nil { - objectMap["connectVia"] = ils.ConnectVia - } - if ils.Description != nil { - objectMap["description"] = ils.Description - } - if ils.Parameters != nil { - objectMap["parameters"] = ils.Parameters - } - if ils.Annotations != nil { - objectMap["annotations"] = ils.Annotations - } - if ils.Type != "" { - objectMap["type"] = ils.Type - } - for k, v := range ils.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return &ils, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ils, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ImpalaLinkedService struct. -func (ils *ImpalaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var impalaLinkedServiceTypeProperties ImpalaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &impalaLinkedServiceTypeProperties) - if err != nil { - return err - } - ils.ImpalaLinkedServiceTypeProperties = &impalaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ils.AdditionalProperties == nil { - ils.AdditionalProperties = make(map[string]interface{}) - } - ils.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ils.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ils.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ils.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ils.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ils.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ImpalaLinkedServiceTypeProperties impala server linked service properties. -type ImpalaLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Impala server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Impala server uses to listen for client connections. The default value is 21050. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication type to use. Possible values include: 'ImpalaAuthenticationTypeAnonymous', 'ImpalaAuthenticationTypeSASLUsername', 'ImpalaAuthenticationTypeUsernameAndPassword' - AuthenticationType ImpalaAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to access the Impala server. The default value is anonymous when using SASLUsername. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name when using UsernameAndPassword. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // AllowHostNameCNMismatch - Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ImpalaLinkedServiceTypeProperties struct. -func (ilstp *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - ilstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - ilstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType ImpalaAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - ilstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - ilstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ilstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - ilstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - ilstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - ilstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - ilstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - ilstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - ilstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ImpalaObjectDataset impala server dataset. -type ImpalaObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) MarshalJSON() ([]byte, error) { - iod.Type = TypeImpalaObject - objectMap := make(map[string]interface{}) - if iod.Description != nil { - objectMap["description"] = iod.Description - } - objectMap["structure"] = iod.Structure - if iod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = iod.LinkedServiceName - } - if iod.Parameters != nil { - objectMap["parameters"] = iod.Parameters - } - if iod.Annotations != nil { - objectMap["annotations"] = iod.Annotations - } - if iod.Type != "" { - objectMap["type"] = iod.Type - } - for k, v := range iod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return &iod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &iod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ImpalaSource a copy activity Impala server source. -type ImpalaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ImpalaSource. -func (is ImpalaSource) MarshalJSON() ([]byte, error) { - is.Type = TypeImpalaSource - objectMap := make(map[string]interface{}) - objectMap["query"] = is.Query - objectMap["sourceRetryCount"] = is.SourceRetryCount - objectMap["sourceRetryWait"] = is.SourceRetryWait - if is.Type != "" { - objectMap["type"] = is.Type - } - for k, v := range is.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsImpalaSource() (*ImpalaSource, bool) { - return &is, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &is, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicIntegrationRuntime azure Data Factory nested object which serves as a compute resource for activities. -type BasicIntegrationRuntime interface { - AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) - AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) - AsIntegrationRuntime() (*IntegrationRuntime, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntime azure Data Factory nested object which serves as a compute resource for activities. -type IntegrationRuntime struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Integration runtime description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeIntegrationRuntime', 'TypeSelfHosted', 'TypeManaged' - Type TypeBasicIntegrationRuntime `json:"type,omitempty"` -} - -func unmarshalBasicIntegrationRuntime(body []byte) (BasicIntegrationRuntime, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeSelfHosted): - var shir SelfHostedIntegrationRuntime - err := json.Unmarshal(body, &shir) - return shir, err - case string(TypeManaged): - var mir ManagedIntegrationRuntime - err := json.Unmarshal(body, &mir) - return mir, err - default: - var ir IntegrationRuntime - err := json.Unmarshal(body, &ir) - return ir, err - } -} -func unmarshalBasicIntegrationRuntimeArray(body []byte) ([]BasicIntegrationRuntime, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - irArray := make([]BasicIntegrationRuntime, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ir, err := unmarshalBasicIntegrationRuntime(*rawMessage) - if err != nil { - return nil, err - } - irArray[index] = ir - } - return irArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntime. -func (ir IntegrationRuntime) MarshalJSON() ([]byte, error) { - ir.Type = TypeIntegrationRuntime - objectMap := make(map[string]interface{}) - if ir.Description != nil { - objectMap["description"] = ir.Description - } - if ir.Type != "" { - objectMap["type"] = ir.Type - } - for k, v := range ir.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { - return &ir, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { - return &ir, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeAuthKeys the integration runtime authentication keys. -type IntegrationRuntimeAuthKeys struct { - autorest.Response `json:"-"` - // AuthKey1 - The primary integration runtime authentication key. - AuthKey1 *string `json:"authKey1,omitempty"` - // AuthKey2 - The secondary integration runtime authentication key. - AuthKey2 *string `json:"authKey2,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeComputeProperties the compute resource properties for managed integration runtime. -type IntegrationRuntimeComputeProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Location - The location for managed integration runtime. The supported regions could be found on https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities - Location *string `json:"location,omitempty"` - // NodeSize - The node size requirement to managed integration runtime. - NodeSize *string `json:"nodeSize,omitempty"` - // NumberOfNodes - The required number of nodes for managed integration runtime. - NumberOfNodes *int32 `json:"numberOfNodes,omitempty"` - // MaxParallelExecutionsPerNode - Maximum parallel executions count per node for managed integration runtime. - MaxParallelExecutionsPerNode *int32 `json:"maxParallelExecutionsPerNode,omitempty"` - // VNetProperties - VNet properties for managed integration runtime. - VNetProperties *IntegrationRuntimeVNetProperties `json:"vNetProperties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeComputeProperties. -func (ircp IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ircp.Location != nil { - objectMap["location"] = ircp.Location - } - if ircp.NodeSize != nil { - objectMap["nodeSize"] = ircp.NodeSize - } - if ircp.NumberOfNodes != nil { - objectMap["numberOfNodes"] = ircp.NumberOfNodes - } - if ircp.MaxParallelExecutionsPerNode != nil { - objectMap["maxParallelExecutionsPerNode"] = ircp.MaxParallelExecutionsPerNode - } - if ircp.VNetProperties != nil { - objectMap["vNetProperties"] = ircp.VNetProperties - } - for k, v := range ircp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeConnectionInfo connection information for encrypting the on-premises data source credentials. -type IntegrationRuntimeConnectionInfo struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ServiceToken - The token generated in service. Callers use this token to authenticate to integration runtime. - ServiceToken *string `json:"serviceToken,omitempty"` - // IdentityCertThumbprint - The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. - IdentityCertThumbprint *string `json:"identityCertThumbprint,omitempty"` - // HostServiceURI - The on-premises integration runtime host URL. - HostServiceURI *string `json:"hostServiceUri,omitempty"` - // Version - The integration runtime version. - Version *string `json:"version,omitempty"` - // PublicKey - The public key for encrypting a credential when transferring the credential to the integration runtime. - PublicKey *string `json:"publicKey,omitempty"` - // IsIdentityCertExprired - Whether the identity certificate is expired. - IsIdentityCertExprired *bool `json:"isIdentityCertExprired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeConnectionInfo. -func (irci IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irci.ServiceToken != nil { - objectMap["serviceToken"] = irci.ServiceToken - } - if irci.IdentityCertThumbprint != nil { - objectMap["identityCertThumbprint"] = irci.IdentityCertThumbprint - } - if irci.HostServiceURI != nil { - objectMap["hostServiceUri"] = irci.HostServiceURI - } - if irci.Version != nil { - objectMap["version"] = irci.Version - } - if irci.PublicKey != nil { - objectMap["publicKey"] = irci.PublicKey - } - if irci.IsIdentityCertExprired != nil { - objectMap["isIdentityCertExprired"] = irci.IsIdentityCertExprired - } - for k, v := range irci.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeCustomSetupScriptProperties custom setup script properties for a managed dedicated integration -// runtime. -type IntegrationRuntimeCustomSetupScriptProperties struct { - // BlobContainerURI - The URI of the Azure blob container that contains the custom setup script. - BlobContainerURI *string `json:"blobContainerUri,omitempty"` - // SasToken - The SAS token of the Azure blob container. - SasToken *SecureString `json:"sasToken,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeListResponse a list of integration runtime resources. -type IntegrationRuntimeListResponse struct { - autorest.Response `json:"-"` - // Value - List of integration runtimes. - Value *[]IntegrationRuntimeResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeListResponseIterator provides access to a complete listing of IntegrationRuntimeResource -// values. -type IntegrationRuntimeListResponseIterator struct { - i int - page IntegrationRuntimeListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *IntegrationRuntimeListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter IntegrationRuntimeListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter IntegrationRuntimeListResponseIterator) Response() IntegrationRuntimeListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter IntegrationRuntimeListResponseIterator) Value() IntegrationRuntimeResource { - if !iter.page.NotDone() { - return IntegrationRuntimeResource{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (irlr IntegrationRuntimeListResponse) IsEmpty() bool { - return irlr.Value == nil || len(*irlr.Value) == 0 -} - -// integrationRuntimeListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (irlr IntegrationRuntimeListResponse) integrationRuntimeListResponsePreparer() (*http.Request, error) { - if irlr.NextLink == nil || len(to.String(irlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(irlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeListResponsePage contains a page of IntegrationRuntimeResource values. -type IntegrationRuntimeListResponsePage struct { - fn func(IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error) - irlr IntegrationRuntimeListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *IntegrationRuntimeListResponsePage) Next() error { - next, err := page.fn(page.irlr) - if err != nil { - return err - } - page.irlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page IntegrationRuntimeListResponsePage) NotDone() bool { - return !page.irlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page IntegrationRuntimeListResponsePage) Response() IntegrationRuntimeListResponse { - return page.irlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page IntegrationRuntimeListResponsePage) Values() []IntegrationRuntimeResource { - if page.irlr.IsEmpty() { - return nil - } - return *page.irlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeMonitoringData get monitoring data response. -type IntegrationRuntimeMonitoringData struct { - autorest.Response `json:"-"` - // Name - Integration runtime name. - Name *string `json:"name,omitempty"` - // Nodes - Integration runtime node monitoring data. - Nodes *[]IntegrationRuntimeNodeMonitoringData `json:"nodes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeNodeIPAddress the IP address of self-hosted integration runtime node. -type IntegrationRuntimeNodeIPAddress struct { - autorest.Response `json:"-"` - // IPAddress - The IP address of self-hosted integration runtime node. - IPAddress *string `json:"ipAddress,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. -type IntegrationRuntimeNodeMonitoringData struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // NodeName - Name of the integration runtime node. - NodeName *string `json:"nodeName,omitempty"` - // AvailableMemoryInMB - Available memory (MB) on the integration runtime node. - AvailableMemoryInMB *int32 `json:"availableMemoryInMB,omitempty"` - // CPUUtilization - CPU percentage on the integration runtime node. - CPUUtilization *float64 `json:"cpuUtilization,omitempty"` - // ConcurrentJobsLimit - Maximum concurrent jobs on the integration runtime node. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` - // ConcurrentJobsRunning - The number of jobs currently running on the integration runtime node. - ConcurrentJobsRunning *int32 `json:"concurrentJobsRunning,omitempty"` - // MaxConcurrentJobs - The maximum concurrent jobs in this integration runtime. - MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` - // SentBytes - Sent bytes on the integration runtime node. - SentBytes *float64 `json:"sentBytes,omitempty"` - // ReceivedBytes - Received bytes on the integration runtime node. - ReceivedBytes *float64 `json:"receivedBytes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeMonitoringData. -func (irnmd IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irnmd.NodeName != nil { - objectMap["nodeName"] = irnmd.NodeName - } - if irnmd.AvailableMemoryInMB != nil { - objectMap["availableMemoryInMB"] = irnmd.AvailableMemoryInMB - } - if irnmd.CPUUtilization != nil { - objectMap["cpuUtilization"] = irnmd.CPUUtilization - } - if irnmd.ConcurrentJobsLimit != nil { - objectMap["concurrentJobsLimit"] = irnmd.ConcurrentJobsLimit - } - if irnmd.ConcurrentJobsRunning != nil { - objectMap["concurrentJobsRunning"] = irnmd.ConcurrentJobsRunning - } - if irnmd.MaxConcurrentJobs != nil { - objectMap["maxConcurrentJobs"] = irnmd.MaxConcurrentJobs - } - if irnmd.SentBytes != nil { - objectMap["sentBytes"] = irnmd.SentBytes - } - if irnmd.ReceivedBytes != nil { - objectMap["receivedBytes"] = irnmd.ReceivedBytes - } - for k, v := range irnmd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeReference integration runtime reference type. -type IntegrationRuntimeReference struct { - // Type - Type of integration runtime. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference integration runtime name. - ReferenceName *string `json:"referenceName,omitempty"` - // Parameters - Arguments for integration runtime. - Parameters map[string]interface{} `json:"parameters"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeReference. -func (irr IntegrationRuntimeReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irr.Type != nil { - objectMap["type"] = irr.Type - } - if irr.ReferenceName != nil { - objectMap["referenceName"] = irr.ReferenceName - } - if irr.Parameters != nil { - objectMap["parameters"] = irr.Parameters - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeRegenerateKeyParameters parameters to regenerate the authentication key. -type IntegrationRuntimeRegenerateKeyParameters struct { - // KeyName - The name of the authentication key to regenerate. Possible values include: 'AuthKey1', 'AuthKey2' - KeyName IntegrationRuntimeAuthKeyName `json:"keyName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeRemoveNodeRequest request to remove a node. -type IntegrationRuntimeRemoveNodeRequest struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // NodeName - The name of the node to be removed. - NodeName *string `json:"nodeName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeRemoveNodeRequest. -func (irrnr IntegrationRuntimeRemoveNodeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irrnr.NodeName != nil { - objectMap["nodeName"] = irrnr.NodeName - } - for k, v := range irrnr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeResource integration runtime resource type. -type IntegrationRuntimeResource struct { - autorest.Response `json:"-"` - // Properties - Integration runtime properties. - Properties BasicIntegrationRuntime `json:"properties,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeResource struct. -func (irr *IntegrationRuntimeResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicIntegrationRuntime(*v) - if err != nil { - return err - } - irr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - irr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - irr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - irr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - irr.Etag = &etag - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeSsisCatalogInfo catalog information for managed dedicated integration runtime. -type IntegrationRuntimeSsisCatalogInfo struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // CatalogServerEndpoint - The catalog database server URL. - CatalogServerEndpoint *string `json:"catalogServerEndpoint,omitempty"` - // CatalogAdminUserName - The administrator user name of catalog database. - CatalogAdminUserName *string `json:"catalogAdminUserName,omitempty"` - // CatalogAdminPassword - The password of the administrator user account of the catalog database. - CatalogAdminPassword *SecureString `json:"catalogAdminPassword,omitempty"` - // CatalogPricingTier - The pricing tier for the catalog database. The valid values could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible values include: 'IntegrationRuntimeSsisCatalogPricingTierBasic', 'IntegrationRuntimeSsisCatalogPricingTierStandard', 'IntegrationRuntimeSsisCatalogPricingTierPremium', 'IntegrationRuntimeSsisCatalogPricingTierPremiumRS' - CatalogPricingTier IntegrationRuntimeSsisCatalogPricingTier `json:"catalogPricingTier,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeSsisCatalogInfo. -func (irsci IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irsci.CatalogServerEndpoint != nil { - objectMap["catalogServerEndpoint"] = irsci.CatalogServerEndpoint - } - if irsci.CatalogAdminUserName != nil { - objectMap["catalogAdminUserName"] = irsci.CatalogAdminUserName - } - if irsci.CatalogAdminPassword != nil { - objectMap["catalogAdminPassword"] = irsci.CatalogAdminPassword - } - if irsci.CatalogPricingTier != "" { - objectMap["catalogPricingTier"] = irsci.CatalogPricingTier - } - for k, v := range irsci.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeSsisProperties SSIS properties for managed integration runtime. -type IntegrationRuntimeSsisProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // CatalogInfo - Catalog information for managed dedicated integration runtime. - CatalogInfo *IntegrationRuntimeSsisCatalogInfo `json:"catalogInfo,omitempty"` - // LicenseType - License type for bringing your own license scenario. Possible values include: 'BasePrice', 'LicenseIncluded' - LicenseType IntegrationRuntimeLicenseType `json:"licenseType,omitempty"` - // CustomSetupScriptProperties - Custom setup script properties for a managed dedicated integration runtime. - CustomSetupScriptProperties *IntegrationRuntimeCustomSetupScriptProperties `json:"customSetupScriptProperties,omitempty"` - // Edition - The edition for the SSIS Integration Runtime. Possible values include: 'Standard', 'Enterprise' - Edition IntegrationRuntimeEdition `json:"edition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeSsisProperties. -func (irsp IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irsp.CatalogInfo != nil { - objectMap["catalogInfo"] = irsp.CatalogInfo - } - if irsp.LicenseType != "" { - objectMap["licenseType"] = irsp.LicenseType - } - if irsp.CustomSetupScriptProperties != nil { - objectMap["customSetupScriptProperties"] = irsp.CustomSetupScriptProperties - } - if irsp.Edition != "" { - objectMap["edition"] = irsp.Edition - } - for k, v := range irsp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimesStartFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type IntegrationRuntimesStartFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future IntegrationRuntimesStartFuture) Result(client IntegrationRuntimesClient) (irsr IntegrationRuntimeStatusResponse, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return irsr, azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStartFuture") - } - if future.PollingMethod() == azure.PollingLocation { - irsr, err = client.StartResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", resp, "Failure sending request") - return - } - irsr, err = client.StartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimesStopFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type IntegrationRuntimesStopFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future IntegrationRuntimesStopFuture) Result(client IntegrationRuntimesClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStopFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.StopResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.StopResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicIntegrationRuntimeStatus integration runtime status. -type BasicIntegrationRuntimeStatus interface { - AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) - AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) - AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeStatus integration runtime status. -type IntegrationRuntimeStatus struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' - State IntegrationRuntimeState `json:"state,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' - Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` -} - -func unmarshalBasicIntegrationRuntimeStatus(body []byte) (BasicIntegrationRuntimeStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicIntegrationRuntimeStatusTypeSelfHosted): - var shirs SelfHostedIntegrationRuntimeStatus - err := json.Unmarshal(body, &shirs) - return shirs, err - case string(TypeBasicIntegrationRuntimeStatusTypeManaged): - var mirs ManagedIntegrationRuntimeStatus - err := json.Unmarshal(body, &mirs) - return mirs, err - default: - var irs IntegrationRuntimeStatus - err := json.Unmarshal(body, &irs) - return irs, err - } -} -func unmarshalBasicIntegrationRuntimeStatusArray(body []byte) ([]BasicIntegrationRuntimeStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - irsArray := make([]BasicIntegrationRuntimeStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - irs, err := unmarshalBasicIntegrationRuntimeStatus(*rawMessage) - if err != nil { - return nil, err - } - irsArray[index] = irs - } - return irsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - irs.Type = TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus - objectMap := make(map[string]interface{}) - if irs.DataFactoryName != nil { - objectMap["dataFactoryName"] = irs.DataFactoryName - } - if irs.State != "" { - objectMap["state"] = irs.State - } - if irs.Type != "" { - objectMap["type"] = irs.Type - } - for k, v := range irs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { - return &irs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { - return &irs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeStatusListResponse a list of integration runtime status. -type IntegrationRuntimeStatusListResponse struct { - // Value - List of integration runtime status. - Value *[]IntegrationRuntimeStatusResponse `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeStatusResponse integration runtime status response. -type IntegrationRuntimeStatusResponse struct { - autorest.Response `json:"-"` - // Name - The integration runtime name. - Name *string `json:"name,omitempty"` - // Properties - Integration runtime properties. - Properties BasicIntegrationRuntimeStatus `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeStatusResponse struct. -func (irsr *IntegrationRuntimeStatusResponse) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - irsr.Name = &name - } - case "properties": - if v != nil { - properties, err := unmarshalBasicIntegrationRuntimeStatus(*v) - if err != nil { - return err - } - irsr.Properties = properties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IntegrationRuntimeVNetProperties vNet properties for managed integration runtime. -type IntegrationRuntimeVNetProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // VNetID - The ID of the VNet that this integration runtime will join. - VNetID *string `json:"vNetId,omitempty"` - // Subnet - The name of the subnet this integration runtime will join. - Subnet *string `json:"subnet,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for IntegrationRuntimeVNetProperties. -func (irvnp IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irvnp.VNetID != nil { - objectMap["vNetId"] = irvnp.VNetID - } - if irvnp.Subnet != nil { - objectMap["subnet"] = irvnp.Subnet - } - for k, v := range irvnp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// JiraLinkedService jira Serivce linked service. -type JiraLinkedService struct { - // JiraLinkedServiceTypeProperties - Jira Serivce linked service properties. - *JiraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for JiraLinkedService. -func (jls JiraLinkedService) MarshalJSON() ([]byte, error) { - jls.Type = TypeJira - objectMap := make(map[string]interface{}) - if jls.JiraLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = jls.JiraLinkedServiceTypeProperties - } - if jls.ConnectVia != nil { - objectMap["connectVia"] = jls.ConnectVia - } - if jls.Description != nil { - objectMap["description"] = jls.Description - } - if jls.Parameters != nil { - objectMap["parameters"] = jls.Parameters - } - if jls.Annotations != nil { - objectMap["annotations"] = jls.Annotations - } - if jls.Type != "" { - objectMap["type"] = jls.Type - } - for k, v := range jls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return &jls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &jls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for JiraLinkedService struct. -func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var jiraLinkedServiceTypeProperties JiraLinkedServiceTypeProperties - err = json.Unmarshal(*v, &jiraLinkedServiceTypeProperties) - if err != nil { - return err - } - jls.JiraLinkedServiceTypeProperties = &jiraLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jls.AdditionalProperties == nil { - jls.AdditionalProperties = make(map[string]interface{}) - } - jls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - jls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - jls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - jls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - jls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// JiraLinkedServiceTypeProperties jira Serivce linked service properties. -type JiraLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Jira service. (e.g. jira.example.com) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Jira server uses to listen for client connections. The default value is 443 if connecting through HTTPS, or 8080 if connecting through HTTP. - Port interface{} `json:"port,omitempty"` - // Username - The user name that you use to access Jira Service. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the username field. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for JiraLinkedServiceTypeProperties struct. -func (jlstp *JiraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - jlstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - jlstp.Port = port - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - jlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - jlstp.Password = password - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - jlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - jlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - jlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - jlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// JiraObjectDataset jira Serivce dataset. -type JiraObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for JiraObjectDataset. -func (jod JiraObjectDataset) MarshalJSON() ([]byte, error) { - jod.Type = TypeJiraObject - objectMap := make(map[string]interface{}) - if jod.Description != nil { - objectMap["description"] = jod.Description - } - objectMap["structure"] = jod.Structure - if jod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = jod.LinkedServiceName - } - if jod.Parameters != nil { - objectMap["parameters"] = jod.Parameters - } - if jod.Annotations != nil { - objectMap["annotations"] = jod.Annotations - } - if jod.Type != "" { - objectMap["type"] = jod.Type - } - for k, v := range jod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return &jod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &jod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// JiraSource a copy activity Jira Serivce source. -type JiraSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for JiraSource. -func (js JiraSource) MarshalJSON() ([]byte, error) { - js.Type = TypeJiraSource - objectMap := make(map[string]interface{}) - objectMap["query"] = js.Query - objectMap["sourceRetryCount"] = js.SourceRetryCount - objectMap["sourceRetryWait"] = js.SourceRetryWait - if js.Type != "" { - objectMap["type"] = js.Type - } - for k, v := range js.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsJiraSource() (*JiraSource, bool) { - return &js, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBasicCopySource() (BasicCopySource, bool) { - return &js, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// JSONFormat the data stored in JSON format. -type JSONFormat struct { - // FilePattern - File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. It is case-sensitive. Possible values include: 'SetOfObjects', 'ArrayOfObjects' - FilePattern JSONFormatFilePattern `json:"filePattern,omitempty"` - // NestingSeparator - The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // EncodingName - The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark (BOM) denotes another Unicode encoding. The full list of supported values can be found in the 'Name' column of the table of encodings in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. Type: string (or Expression with resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` - // JSONNodeReference - The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string). - JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` - // JSONPathDefinition - The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields under root object, start with "$"; for fields inside the array chosen by jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. Type: object (or Expression with resultType object). - JSONPathDefinition interface{} `json:"jsonPathDefinition,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for JSONFormat. -func (jf JSONFormat) MarshalJSON() ([]byte, error) { - jf.Type = TypeJSONFormat - objectMap := make(map[string]interface{}) - if jf.FilePattern != "" { - objectMap["filePattern"] = jf.FilePattern - } - objectMap["nestingSeparator"] = jf.NestingSeparator - objectMap["encodingName"] = jf.EncodingName - objectMap["jsonNodeReference"] = jf.JSONNodeReference - objectMap["jsonPathDefinition"] = jf.JSONPathDefinition - objectMap["serializer"] = jf.Serializer - objectMap["deserializer"] = jf.Deserializer - if jf.Type != "" { - objectMap["type"] = jf.Type - } - for k, v := range jf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsParquetFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOrcFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAvroFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJSONFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsJSONFormat() (*JSONFormat, bool) { - return &jf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTextFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &jf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedIntegrationRuntime the linked integration runtime information. -type LinkedIntegrationRuntime struct { - // Name - The name of the linked integration runtime. - Name *string `json:"name,omitempty"` - // SubscriptionID - The subscription ID for which the linked integration runtime belong to. - SubscriptionID *string `json:"subscriptionId,omitempty"` - // DataFactoryName - The name of the data factory for which the linked integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // DataFactoryLocation - The location of the data factory for which the linked integration runtime belong to. - DataFactoryLocation *string `json:"dataFactoryLocation,omitempty"` - // CreateTime - The creating time of the linked integration runtime. - CreateTime *date.Time `json:"createTime,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedIntegrationRuntimeKey the base definition of a secret type. -type LinkedIntegrationRuntimeKey struct { - // Key - Type of the secret. - Key *SecureString `json:"key,omitempty"` - // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeProperties', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' - AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeKey. -func (lirk LinkedIntegrationRuntimeKey) MarshalJSON() ([]byte, error) { - lirk.AuthorizationType = AuthorizationTypeKey - objectMap := make(map[string]interface{}) - if lirk.Key != nil { - objectMap["key"] = lirk.Key - } - if lirk.AuthorizationType != "" { - objectMap["authorizationType"] = lirk.AuthorizationType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeRbac is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeKey. -func (lirk LinkedIntegrationRuntimeKey) AsLinkedIntegrationRuntimeRbac() (*LinkedIntegrationRuntimeRbac, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeKey is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeKey. -func (lirk LinkedIntegrationRuntimeKey) AsLinkedIntegrationRuntimeKey() (*LinkedIntegrationRuntimeKey, bool) { - return &lirk, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeProperties is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeKey. -func (lirk LinkedIntegrationRuntimeKey) AsLinkedIntegrationRuntimeProperties() (*LinkedIntegrationRuntimeProperties, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedIntegrationRuntimeProperties is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeKey. -func (lirk LinkedIntegrationRuntimeKey) AsBasicLinkedIntegrationRuntimeProperties() (BasicLinkedIntegrationRuntimeProperties, bool) { - return &lirk, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicLinkedIntegrationRuntimeProperties the base definition of a secret type. -type BasicLinkedIntegrationRuntimeProperties interface { - AsLinkedIntegrationRuntimeRbac() (*LinkedIntegrationRuntimeRbac, bool) - AsLinkedIntegrationRuntimeKey() (*LinkedIntegrationRuntimeKey, bool) - AsLinkedIntegrationRuntimeProperties() (*LinkedIntegrationRuntimeProperties, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedIntegrationRuntimeProperties the base definition of a secret type. -type LinkedIntegrationRuntimeProperties struct { - // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeProperties', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' - AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` -} - -func unmarshalBasicLinkedIntegrationRuntimeProperties(body []byte) (BasicLinkedIntegrationRuntimeProperties, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["authorizationType"] { - case string(AuthorizationTypeRBAC): - var lirr LinkedIntegrationRuntimeRbac - err := json.Unmarshal(body, &lirr) - return lirr, err - case string(AuthorizationTypeKey): - var lirk LinkedIntegrationRuntimeKey - err := json.Unmarshal(body, &lirk) - return lirk, err - default: - var lirp LinkedIntegrationRuntimeProperties - err := json.Unmarshal(body, &lirp) - return lirp, err - } -} -func unmarshalBasicLinkedIntegrationRuntimePropertiesArray(body []byte) ([]BasicLinkedIntegrationRuntimeProperties, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - lirpArray := make([]BasicLinkedIntegrationRuntimeProperties, len(rawMessages)) - - for index, rawMessage := range rawMessages { - lirp, err := unmarshalBasicLinkedIntegrationRuntimeProperties(*rawMessage) - if err != nil { - return nil, err - } - lirpArray[index] = lirp - } - return lirpArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeProperties. -func (lirp LinkedIntegrationRuntimeProperties) MarshalJSON() ([]byte, error) { - lirp.AuthorizationType = AuthorizationTypeLinkedIntegrationRuntimeProperties - objectMap := make(map[string]interface{}) - if lirp.AuthorizationType != "" { - objectMap["authorizationType"] = lirp.AuthorizationType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeRbac is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeProperties. -func (lirp LinkedIntegrationRuntimeProperties) AsLinkedIntegrationRuntimeRbac() (*LinkedIntegrationRuntimeRbac, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeKey is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeProperties. -func (lirp LinkedIntegrationRuntimeProperties) AsLinkedIntegrationRuntimeKey() (*LinkedIntegrationRuntimeKey, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeProperties is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeProperties. -func (lirp LinkedIntegrationRuntimeProperties) AsLinkedIntegrationRuntimeProperties() (*LinkedIntegrationRuntimeProperties, bool) { - return &lirp, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedIntegrationRuntimeProperties is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeProperties. -func (lirp LinkedIntegrationRuntimeProperties) AsBasicLinkedIntegrationRuntimeProperties() (BasicLinkedIntegrationRuntimeProperties, bool) { - return &lirp, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedIntegrationRuntimeRbac the base definition of a secret type. -type LinkedIntegrationRuntimeRbac struct { - // ResourceID - The resource ID of the integration runtime to be shared. - ResourceID *string `json:"resourceId,omitempty"` - // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeProperties', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' - AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeRbac. -func (lirr LinkedIntegrationRuntimeRbac) MarshalJSON() ([]byte, error) { - lirr.AuthorizationType = AuthorizationTypeRBAC - objectMap := make(map[string]interface{}) - if lirr.ResourceID != nil { - objectMap["resourceId"] = lirr.ResourceID - } - if lirr.AuthorizationType != "" { - objectMap["authorizationType"] = lirr.AuthorizationType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeRbac is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeRbac. -func (lirr LinkedIntegrationRuntimeRbac) AsLinkedIntegrationRuntimeRbac() (*LinkedIntegrationRuntimeRbac, bool) { - return &lirr, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeKey is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeRbac. -func (lirr LinkedIntegrationRuntimeRbac) AsLinkedIntegrationRuntimeKey() (*LinkedIntegrationRuntimeKey, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedIntegrationRuntimeProperties is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeRbac. -func (lirr LinkedIntegrationRuntimeRbac) AsLinkedIntegrationRuntimeProperties() (*LinkedIntegrationRuntimeProperties, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedIntegrationRuntimeProperties is the BasicLinkedIntegrationRuntimeProperties implementation for LinkedIntegrationRuntimeRbac. -func (lirr LinkedIntegrationRuntimeRbac) AsBasicLinkedIntegrationRuntimeProperties() (BasicLinkedIntegrationRuntimeProperties, bool) { - return &lirr, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedIntegrationRuntimeTypeProperties the base definition of a secret type. -type LinkedIntegrationRuntimeTypeProperties struct { - LinkedInfo BasicLinkedIntegrationRuntimeProperties `json:"linkedInfo,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for LinkedIntegrationRuntimeTypeProperties struct. -func (lirtp *LinkedIntegrationRuntimeTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "linkedInfo": - if v != nil { - linkedInfo, err := unmarshalBasicLinkedIntegrationRuntimeProperties(*v) - if err != nil { - return err - } - lirtp.LinkedInfo = linkedInfo - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicLinkedService the Azure Data Factory nested object which contains the information and credential which can be -// used to connect with related store or compute resource. -type BasicLinkedService interface { - AsResponsysLinkedService() (*ResponsysLinkedService, bool) - AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) - AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) - AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) - AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) - AsNetezzaLinkedService() (*NetezzaLinkedService, bool) - AsVerticaLinkedService() (*VerticaLinkedService, bool) - AsZohoLinkedService() (*ZohoLinkedService, bool) - AsXeroLinkedService() (*XeroLinkedService, bool) - AsSquareLinkedService() (*SquareLinkedService, bool) - AsSparkLinkedService() (*SparkLinkedService, bool) - AsShopifyLinkedService() (*ShopifyLinkedService, bool) - AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) - AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) - AsPrestoLinkedService() (*PrestoLinkedService, bool) - AsPhoenixLinkedService() (*PhoenixLinkedService, bool) - AsPaypalLinkedService() (*PaypalLinkedService, bool) - AsMarketoLinkedService() (*MarketoLinkedService, bool) - AsMariaDBLinkedService() (*MariaDBLinkedService, bool) - AsMagentoLinkedService() (*MagentoLinkedService, bool) - AsJiraLinkedService() (*JiraLinkedService, bool) - AsImpalaLinkedService() (*ImpalaLinkedService, bool) - AsHubspotLinkedService() (*HubspotLinkedService, bool) - AsHiveLinkedService() (*HiveLinkedService, bool) - AsHBaseLinkedService() (*HBaseLinkedService, bool) - AsGreenplumLinkedService() (*GreenplumLinkedService, bool) - AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) - AsEloquaLinkedService() (*EloquaLinkedService, bool) - AsDrillLinkedService() (*DrillLinkedService, bool) - AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) - AsConcurLinkedService() (*ConcurLinkedService, bool) - AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) - AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) - AsSapHanaLinkedService() (*SapHanaLinkedService, bool) - AsSapBWLinkedService() (*SapBWLinkedService, bool) - AsSftpServerLinkedService() (*SftpServerLinkedService, bool) - AsFtpServerLinkedService() (*FtpServerLinkedService, bool) - AsHTTPLinkedService() (*HTTPLinkedService, bool) - AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) - AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) - AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) - AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) - AsSapEccLinkedService() (*SapEccLinkedService, bool) - AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) - AsSalesforceLinkedService() (*SalesforceLinkedService, bool) - AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) - AsMongoDbLinkedService() (*MongoDbLinkedService, bool) - AsCassandraLinkedService() (*CassandraLinkedService, bool) - AsWebLinkedService() (*WebLinkedService, bool) - AsODataLinkedService() (*ODataLinkedService, bool) - AsHdfsLinkedService() (*HdfsLinkedService, bool) - AsOdbcLinkedService() (*OdbcLinkedService, bool) - AsAzureMLLinkedService() (*AzureMLLinkedService, bool) - AsTeradataLinkedService() (*TeradataLinkedService, bool) - AsDb2LinkedService() (*Db2LinkedService, bool) - AsSybaseLinkedService() (*SybaseLinkedService, bool) - AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) - AsMySQLLinkedService() (*MySQLLinkedService, bool) - AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) - AsOracleLinkedService() (*OracleLinkedService, bool) - AsFileServerLinkedService() (*FileServerLinkedService, bool) - AsHDInsightLinkedService() (*HDInsightLinkedService, bool) - AsDynamicsLinkedService() (*DynamicsLinkedService, bool) - AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) - AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) - AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) - AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) - AsSQLServerLinkedService() (*SQLServerLinkedService, bool) - AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) - AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) - AsLinkedService() (*LinkedService, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedService the Azure Data Factory nested object which contains the information and credential which can be -// used to connect with related store or compute resource. -type LinkedService struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -func unmarshalBasicLinkedService(body []byte) (BasicLinkedService, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeResponsys): - var rls ResponsysLinkedService - err := json.Unmarshal(body, &rls) - return rls, err - case string(TypeAzureDatabricks): - var adls AzureDatabricksLinkedService - err := json.Unmarshal(body, &adls) - return adls, err - case string(TypeAzureDataLakeAnalytics): - var adlals AzureDataLakeAnalyticsLinkedService - err := json.Unmarshal(body, &adlals) - return adlals, err - case string(TypeHDInsightOnDemand): - var hiodls HDInsightOnDemandLinkedService - err := json.Unmarshal(body, &hiodls) - return hiodls, err - case string(TypeSalesforceMarketingCloud): - var smcls SalesforceMarketingCloudLinkedService - err := json.Unmarshal(body, &smcls) - return smcls, err - case string(TypeNetezza): - var nls NetezzaLinkedService - err := json.Unmarshal(body, &nls) - return nls, err - case string(TypeVertica): - var vls VerticaLinkedService - err := json.Unmarshal(body, &vls) - return vls, err - case string(TypeZoho): - var zls ZohoLinkedService - err := json.Unmarshal(body, &zls) - return zls, err - case string(TypeXero): - var xls XeroLinkedService - err := json.Unmarshal(body, &xls) - return xls, err - case string(TypeSquare): - var sls SquareLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeSpark): - var sls SparkLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeShopify): - var sls ShopifyLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeServiceNow): - var snls ServiceNowLinkedService - err := json.Unmarshal(body, &snls) - return snls, err - case string(TypeQuickBooks): - var qbls QuickBooksLinkedService - err := json.Unmarshal(body, &qbls) - return qbls, err - case string(TypePresto): - var pls PrestoLinkedService - err := json.Unmarshal(body, &pls) - return pls, err - case string(TypePhoenix): - var pls PhoenixLinkedService - err := json.Unmarshal(body, &pls) - return pls, err - case string(TypePaypal): - var pls PaypalLinkedService - err := json.Unmarshal(body, &pls) - return pls, err - case string(TypeMarketo): - var mls MarketoLinkedService - err := json.Unmarshal(body, &mls) - return mls, err - case string(TypeMariaDB): - var mdls MariaDBLinkedService - err := json.Unmarshal(body, &mdls) - return mdls, err - case string(TypeMagento): - var mls MagentoLinkedService - err := json.Unmarshal(body, &mls) - return mls, err - case string(TypeJira): - var jls JiraLinkedService - err := json.Unmarshal(body, &jls) - return jls, err - case string(TypeImpala): - var ils ImpalaLinkedService - err := json.Unmarshal(body, &ils) - return ils, err - case string(TypeHubspot): - var hls HubspotLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeHive): - var hls HiveLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeHBase): - var hbls HBaseLinkedService - err := json.Unmarshal(body, &hbls) - return hbls, err - case string(TypeGreenplum): - var gls GreenplumLinkedService - err := json.Unmarshal(body, &gls) - return gls, err - case string(TypeGoogleBigQuery): - var gbqls GoogleBigQueryLinkedService - err := json.Unmarshal(body, &gbqls) - return gbqls, err - case string(TypeEloqua): - var els EloquaLinkedService - err := json.Unmarshal(body, &els) - return els, err - case string(TypeDrill): - var dls DrillLinkedService - err := json.Unmarshal(body, &dls) - return dls, err - case string(TypeCouchbase): - var cls CouchbaseLinkedService - err := json.Unmarshal(body, &cls) - return cls, err - case string(TypeConcur): - var cls ConcurLinkedService - err := json.Unmarshal(body, &cls) - return cls, err - case string(TypeAzurePostgreSQL): - var apsls AzurePostgreSQLLinkedService - err := json.Unmarshal(body, &apsls) - return apsls, err - case string(TypeAmazonMWS): - var amls AmazonMWSLinkedService - err := json.Unmarshal(body, &amls) - return amls, err - case string(TypeSapHana): - var shls SapHanaLinkedService - err := json.Unmarshal(body, &shls) - return shls, err - case string(TypeSapBW): - var sbls SapBWLinkedService - err := json.Unmarshal(body, &sbls) - return sbls, err - case string(TypeSftp): - var ssls SftpServerLinkedService - err := json.Unmarshal(body, &ssls) - return ssls, err - case string(TypeFtpServer): - var fsls FtpServerLinkedService - err := json.Unmarshal(body, &fsls) - return fsls, err - case string(TypeHTTPServer): - var hls HTTPLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeAzureSearch): - var asls AzureSearchLinkedService - err := json.Unmarshal(body, &asls) - return asls, err - case string(TypeCustomDataSource): - var cdsls CustomDataSourceLinkedService - err := json.Unmarshal(body, &cdsls) - return cdsls, err - case string(TypeAmazonRedshift): - var arls AmazonRedshiftLinkedService - err := json.Unmarshal(body, &arls) - return arls, err - case string(TypeAmazonS3): - var asls AmazonS3LinkedService - err := json.Unmarshal(body, &asls) - return asls, err - case string(TypeSapEcc): - var sels SapEccLinkedService - err := json.Unmarshal(body, &sels) - return sels, err - case string(TypeSapCloudForCustomer): - var scfcls SapCloudForCustomerLinkedService - err := json.Unmarshal(body, &scfcls) - return scfcls, err - case string(TypeSalesforce): - var sls SalesforceLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeAzureDataLakeStore): - var adlsls AzureDataLakeStoreLinkedService - err := json.Unmarshal(body, &adlsls) - return adlsls, err - case string(TypeMongoDb): - var mdls MongoDbLinkedService - err := json.Unmarshal(body, &mdls) - return mdls, err - case string(TypeCassandra): - var cls CassandraLinkedService - err := json.Unmarshal(body, &cls) - return cls, err - case string(TypeWeb): - var wls WebLinkedService - err := json.Unmarshal(body, &wls) - return wls, err - case string(TypeOData): - var odls ODataLinkedService - err := json.Unmarshal(body, &odls) - return odls, err - case string(TypeHdfs): - var hls HdfsLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeOdbc): - var ols OdbcLinkedService - err := json.Unmarshal(body, &ols) - return ols, err - case string(TypeAzureML): - var amls AzureMLLinkedService - err := json.Unmarshal(body, &amls) - return amls, err - case string(TypeTeradata): - var TLSVar TeradataLinkedService - err := json.Unmarshal(body, &TLSVar) - return TLSVar, err - case string(TypeDb2): - var d2ls Db2LinkedService - err := json.Unmarshal(body, &d2ls) - return d2ls, err - case string(TypeSybase): - var sls SybaseLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypePostgreSQL): - var psls PostgreSQLLinkedService - err := json.Unmarshal(body, &psls) - return psls, err - case string(TypeMySQL): - var msls MySQLLinkedService - err := json.Unmarshal(body, &msls) - return msls, err - case string(TypeAzureMySQL): - var amsls AzureMySQLLinkedService - err := json.Unmarshal(body, &amsls) - return amsls, err - case string(TypeOracle): - var ols OracleLinkedService - err := json.Unmarshal(body, &ols) - return ols, err - case string(TypeFileServer): - var fsls FileServerLinkedService - err := json.Unmarshal(body, &fsls) - return fsls, err - case string(TypeHDInsight): - var hils HDInsightLinkedService - err := json.Unmarshal(body, &hils) - return hils, err - case string(TypeDynamics): - var dls DynamicsLinkedService - err := json.Unmarshal(body, &dls) - return dls, err - case string(TypeCosmosDb): - var cdls CosmosDbLinkedService - err := json.Unmarshal(body, &cdls) - return cdls, err - case string(TypeAzureKeyVault): - var akvls AzureKeyVaultLinkedService - err := json.Unmarshal(body, &akvls) - return akvls, err - case string(TypeAzureBatch): - var abls AzureBatchLinkedService - err := json.Unmarshal(body, &abls) - return abls, err - case string(TypeAzureSQLDatabase): - var asdls AzureSQLDatabaseLinkedService - err := json.Unmarshal(body, &asdls) - return asdls, err - case string(TypeSQLServer): - var ssls SQLServerLinkedService - err := json.Unmarshal(body, &ssls) - return ssls, err - case string(TypeAzureSQLDW): - var asdls AzureSQLDWLinkedService - err := json.Unmarshal(body, &asdls) - return asdls, err - case string(TypeAzureStorage): - var asls AzureStorageLinkedService - err := json.Unmarshal(body, &asls) - return asls, err - default: - var ls LinkedService - err := json.Unmarshal(body, &ls) - return ls, err - } -} -func unmarshalBasicLinkedServiceArray(body []byte) ([]BasicLinkedService, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - lsArray := make([]BasicLinkedService, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ls, err := unmarshalBasicLinkedService(*rawMessage) - if err != nil { - return nil, err - } - lsArray[index] = ls - } - return lsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for LinkedService. -func (ls LinkedService) MarshalJSON() ([]byte, error) { - ls.Type = TypeLinkedService - objectMap := make(map[string]interface{}) - if ls.ConnectVia != nil { - objectMap["connectVia"] = ls.ConnectVia - } - if ls.Description != nil { - objectMap["description"] = ls.Description - } - if ls.Parameters != nil { - objectMap["parameters"] = ls.Parameters - } - if ls.Annotations != nil { - objectMap["annotations"] = ls.Annotations - } - if ls.Type != "" { - objectMap["type"] = ls.Type - } - for k, v := range ls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsLinkedService() (*LinkedService, bool) { - return &ls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedServiceListResponse a list of linked service resources. -type LinkedServiceListResponse struct { - autorest.Response `json:"-"` - // Value - List of linked services. - Value *[]LinkedServiceResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedServiceListResponseIterator provides access to a complete listing of LinkedServiceResource values. -type LinkedServiceListResponseIterator struct { - i int - page LinkedServiceListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *LinkedServiceListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter LinkedServiceListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter LinkedServiceListResponseIterator) Response() LinkedServiceListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter LinkedServiceListResponseIterator) Value() LinkedServiceResource { - if !iter.page.NotDone() { - return LinkedServiceResource{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (lslr LinkedServiceListResponse) IsEmpty() bool { - return lslr.Value == nil || len(*lslr.Value) == 0 -} - -// linkedServiceListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (lslr LinkedServiceListResponse) linkedServiceListResponsePreparer() (*http.Request, error) { - if lslr.NextLink == nil || len(to.String(lslr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(lslr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedServiceListResponsePage contains a page of LinkedServiceResource values. -type LinkedServiceListResponsePage struct { - fn func(LinkedServiceListResponse) (LinkedServiceListResponse, error) - lslr LinkedServiceListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *LinkedServiceListResponsePage) Next() error { - next, err := page.fn(page.lslr) - if err != nil { - return err - } - page.lslr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page LinkedServiceListResponsePage) NotDone() bool { - return !page.lslr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page LinkedServiceListResponsePage) Response() LinkedServiceListResponse { - return page.lslr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page LinkedServiceListResponsePage) Values() []LinkedServiceResource { - if page.lslr.IsEmpty() { - return nil - } - return *page.lslr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedServiceReference linked service reference type. -type LinkedServiceReference struct { - // Type - Linked service reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference LinkedService name. - ReferenceName *string `json:"referenceName,omitempty"` - // Parameters - Arguments for LinkedService. - Parameters map[string]interface{} `json:"parameters"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for LinkedServiceReference. -func (lsr LinkedServiceReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if lsr.Type != nil { - objectMap["type"] = lsr.Type - } - if lsr.ReferenceName != nil { - objectMap["referenceName"] = lsr.ReferenceName - } - if lsr.Parameters != nil { - objectMap["parameters"] = lsr.Parameters - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LinkedServiceResource linked service resource type. -type LinkedServiceResource struct { - autorest.Response `json:"-"` - // Properties - Properties of linked service. - Properties BasicLinkedService `json:"properties,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for LinkedServiceResource struct. -func (lsr *LinkedServiceResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicLinkedService(*v) - if err != nil { - return err - } - lsr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - lsr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - lsr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lsr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - lsr.Etag = &etag - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LookupActivity lookup activity. -type LookupActivity struct { - // LookupActivityTypeProperties - Lookup activity properties. - *LookupActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for LookupActivity. -func (la LookupActivity) MarshalJSON() ([]byte, error) { - la.Type = TypeLookup - objectMap := make(map[string]interface{}) - if la.LookupActivityTypeProperties != nil { - objectMap["typeProperties"] = la.LookupActivityTypeProperties - } - if la.LinkedServiceName != nil { - objectMap["linkedServiceName"] = la.LinkedServiceName - } - if la.Policy != nil { - objectMap["policy"] = la.Policy - } - if la.Name != nil { - objectMap["name"] = la.Name - } - if la.Description != nil { - objectMap["description"] = la.Description - } - if la.DependsOn != nil { - objectMap["dependsOn"] = la.DependsOn - } - if la.Type != "" { - objectMap["type"] = la.Type - } - for k, v := range la.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsLookupActivity() (*LookupActivity, bool) { - return &la, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &la, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsBasicActivity() (BasicActivity, bool) { - return &la, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for LookupActivity struct. -func (la *LookupActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var lookupActivityTypeProperties LookupActivityTypeProperties - err = json.Unmarshal(*v, &lookupActivityTypeProperties) - if err != nil { - return err - } - la.LookupActivityTypeProperties = &lookupActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - la.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - la.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if la.AdditionalProperties == nil { - la.AdditionalProperties = make(map[string]interface{}) - } - la.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - la.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - la.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - la.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - la.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// LookupActivityTypeProperties lookup activity properties. -type LookupActivityTypeProperties struct { - // Source - Dataset-specific source properties, same as copy activity source. - Source BasicCopySource `json:"source,omitempty"` - // Dataset - Lookup activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // FirstRowOnly - Whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). - FirstRowOnly interface{} `json:"firstRowOnly,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for LookupActivityTypeProperties struct. -func (latp *LookupActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "source": - if v != nil { - source, err := unmarshalBasicCopySource(*v) - if err != nil { - return err - } - latp.Source = source - } - case "dataset": - if v != nil { - var dataset DatasetReference - err = json.Unmarshal(*v, &dataset) - if err != nil { - return err - } - latp.Dataset = &dataset - } - case "firstRowOnly": - if v != nil { - var firstRowOnly interface{} - err = json.Unmarshal(*v, &firstRowOnly) - if err != nil { - return err - } - latp.FirstRowOnly = firstRowOnly - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MagentoLinkedService magento server linked service. -type MagentoLinkedService struct { - // MagentoLinkedServiceTypeProperties - Magento server linked service properties. - *MagentoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MagentoLinkedService. -func (mls MagentoLinkedService) MarshalJSON() ([]byte, error) { - mls.Type = TypeMagento - objectMap := make(map[string]interface{}) - if mls.MagentoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mls.MagentoLinkedServiceTypeProperties - } - if mls.ConnectVia != nil { - objectMap["connectVia"] = mls.ConnectVia - } - if mls.Description != nil { - objectMap["description"] = mls.Description - } - if mls.Parameters != nil { - objectMap["parameters"] = mls.Parameters - } - if mls.Annotations != nil { - objectMap["annotations"] = mls.Annotations - } - if mls.Type != "" { - objectMap["type"] = mls.Type - } - for k, v := range mls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return &mls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MagentoLinkedService struct. -func (mls *MagentoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var magentoLinkedServiceTypeProperties MagentoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &magentoLinkedServiceTypeProperties) - if err != nil { - return err - } - mls.MagentoLinkedServiceTypeProperties = &magentoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mls.AdditionalProperties == nil { - mls.AdditionalProperties = make(map[string]interface{}) - } - mls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MagentoLinkedServiceTypeProperties magento server linked service properties. -type MagentoLinkedServiceTypeProperties struct { - // Host - The URL of the Magento instance. (i.e. 192.168.222.110/magento3) - Host interface{} `json:"host,omitempty"` - // AccessToken - The access token from Magento. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MagentoLinkedServiceTypeProperties struct. -func (mlstp *MagentoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - mlstp.Host = host - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mlstp.AccessToken = accessToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - mlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - mlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - mlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MagentoObjectDataset magento server dataset. -type MagentoObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MagentoObjectDataset. -func (mod MagentoObjectDataset) MarshalJSON() ([]byte, error) { - mod.Type = TypeMagentoObject - objectMap := make(map[string]interface{}) - if mod.Description != nil { - objectMap["description"] = mod.Description - } - objectMap["structure"] = mod.Structure - if mod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mod.LinkedServiceName - } - if mod.Parameters != nil { - objectMap["parameters"] = mod.Parameters - } - if mod.Annotations != nil { - objectMap["annotations"] = mod.Annotations - } - if mod.Type != "" { - objectMap["type"] = mod.Type - } - for k, v := range mod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return &mod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &mod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MagentoSource a copy activity Magento server source. -type MagentoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MagentoSource. -func (ms MagentoSource) MarshalJSON() ([]byte, error) { - ms.Type = TypeMagentoSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ms.Query - objectMap["sourceRetryCount"] = ms.SourceRetryCount - objectMap["sourceRetryWait"] = ms.SourceRetryWait - if ms.Type != "" { - objectMap["type"] = ms.Type - } - for k, v := range ms.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMagentoSource() (*MagentoSource, bool) { - return &ms, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ms, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntime managed integration runtime, including managed elastic and managed dedicated -// integration runtimes. -type ManagedIntegrationRuntime struct { - // State - Integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' - State IntegrationRuntimeState `json:"state,omitempty"` - // ManagedIntegrationRuntimeTypeProperties - Managed integration runtime properties. - *ManagedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Integration runtime description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeIntegrationRuntime', 'TypeSelfHosted', 'TypeManaged' - Type TypeBasicIntegrationRuntime `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { - mir.Type = TypeManaged - objectMap := make(map[string]interface{}) - if mir.State != "" { - objectMap["state"] = mir.State - } - if mir.ManagedIntegrationRuntimeTypeProperties != nil { - objectMap["typeProperties"] = mir.ManagedIntegrationRuntimeTypeProperties - } - if mir.Description != nil { - objectMap["description"] = mir.Description - } - if mir.Type != "" { - objectMap["type"] = mir.Type - } - for k, v := range mir.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { - return &mir, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { - return &mir, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ManagedIntegrationRuntime struct. -func (mir *ManagedIntegrationRuntime) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "state": - if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - mir.State = state - } - case "typeProperties": - if v != nil { - var managedIntegrationRuntimeTypeProperties ManagedIntegrationRuntimeTypeProperties - err = json.Unmarshal(*v, &managedIntegrationRuntimeTypeProperties) - if err != nil { - return err - } - mir.ManagedIntegrationRuntimeTypeProperties = &managedIntegrationRuntimeTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mir.AdditionalProperties == nil { - mir.AdditionalProperties = make(map[string]interface{}) - } - mir.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mir.Description = &description - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntime - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mir.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntimeError error definition for managed integration runtime. -type ManagedIntegrationRuntimeError struct { - // Time - The time when the error occurred. - Time *date.Time `json:"time,omitempty"` - // Code - Error code. - Code *string `json:"code,omitempty"` - // Parameters - Managed integration runtime error parameters. - Parameters *[]string `json:"parameters,omitempty"` - // Message - Error message. - Message *string `json:"message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntimeNode properties of integration runtime node. -type ManagedIntegrationRuntimeNode struct { - // NodeID - The managed integration runtime node id. - NodeID *string `json:"nodeId,omitempty"` - // Status - The managed integration runtime node status. Possible values include: 'ManagedIntegrationRuntimeNodeStatusStarting', 'ManagedIntegrationRuntimeNodeStatusAvailable', 'ManagedIntegrationRuntimeNodeStatusRecycling', 'ManagedIntegrationRuntimeNodeStatusUnavailable' - Status ManagedIntegrationRuntimeNodeStatus `json:"status,omitempty"` - // Errors - The errors that occurred on this integration runtime node. - Errors *[]ManagedIntegrationRuntimeError `json:"errors,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntimeOperationResult properties of managed integration runtime operation result. -type ManagedIntegrationRuntimeOperationResult struct { - // Type - The operation type. Could be start or stop. - Type *string `json:"type,omitempty"` - // StartTime - The start time of the operation. - StartTime *date.Time `json:"startTime,omitempty"` - // Result - The operation result. - Result *string `json:"result,omitempty"` - // ErrorCode - The error code. - ErrorCode *string `json:"errorCode,omitempty"` - // Parameters - Managed integration runtime error parameters. - Parameters *[]string `json:"parameters,omitempty"` - // ActivityID - The activity id for the operation request. - ActivityID *string `json:"activityId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntimeStatus managed integration runtime status. -type ManagedIntegrationRuntimeStatus struct { - // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. - *ManagedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' - State IntegrationRuntimeState `json:"state,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' - Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - mirs.Type = TypeBasicIntegrationRuntimeStatusTypeManaged - objectMap := make(map[string]interface{}) - if mirs.ManagedIntegrationRuntimeStatusTypeProperties != nil { - objectMap["typeProperties"] = mirs.ManagedIntegrationRuntimeStatusTypeProperties - } - if mirs.DataFactoryName != nil { - objectMap["dataFactoryName"] = mirs.DataFactoryName - } - if mirs.State != "" { - objectMap["state"] = mirs.State - } - if mirs.Type != "" { - objectMap["type"] = mirs.Type - } - for k, v := range mirs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { - return &mirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { - return &mirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ManagedIntegrationRuntimeStatus struct. -func (mirs *ManagedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var managedIntegrationRuntimeStatusTypeProperties ManagedIntegrationRuntimeStatusTypeProperties - err = json.Unmarshal(*v, &managedIntegrationRuntimeStatusTypeProperties) - if err != nil { - return err - } - mirs.ManagedIntegrationRuntimeStatusTypeProperties = &managedIntegrationRuntimeStatusTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mirs.AdditionalProperties == nil { - mirs.AdditionalProperties = make(map[string]interface{}) - } - mirs.AdditionalProperties[k] = additionalProperties - } - case "dataFactoryName": - if v != nil { - var dataFactoryName string - err = json.Unmarshal(*v, &dataFactoryName) - if err != nil { - return err - } - mirs.DataFactoryName = &dataFactoryName - } - case "state": - if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - mirs.State = state - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntimeStatus - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mirs.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntimeStatusTypeProperties managed integration runtime status type properties. -type ManagedIntegrationRuntimeStatusTypeProperties struct { - // CreateTime - The time at which the integration runtime was created, in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // Nodes - The list of nodes for managed integration runtime. - Nodes *[]ManagedIntegrationRuntimeNode `json:"nodes,omitempty"` - // OtherErrors - The errors that occurred on this integration runtime. - OtherErrors *[]ManagedIntegrationRuntimeError `json:"otherErrors,omitempty"` - // LastOperation - The last operation result that occurred on this integration runtime. - LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. -type ManagedIntegrationRuntimeTypeProperties struct { - // ComputeProperties - The compute resource for managed integration runtime. - ComputeProperties *IntegrationRuntimeComputeProperties `json:"computeProperties,omitempty"` - // SsisProperties - SSIS properties for managed integration runtime. - SsisProperties *IntegrationRuntimeSsisProperties `json:"ssisProperties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MariaDBLinkedService mariaDB server linked service. -type MariaDBLinkedService struct { - // MariaDBLinkedServiceTypeProperties - MariaDB server linked service properties. - *MariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MariaDBLinkedService. -func (mdls MariaDBLinkedService) MarshalJSON() ([]byte, error) { - mdls.Type = TypeMariaDB - objectMap := make(map[string]interface{}) - if mdls.MariaDBLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mdls.MariaDBLinkedServiceTypeProperties - } - if mdls.ConnectVia != nil { - objectMap["connectVia"] = mdls.ConnectVia - } - if mdls.Description != nil { - objectMap["description"] = mdls.Description - } - if mdls.Parameters != nil { - objectMap["parameters"] = mdls.Parameters - } - if mdls.Annotations != nil { - objectMap["annotations"] = mdls.Annotations - } - if mdls.Type != "" { - objectMap["type"] = mdls.Type - } - for k, v := range mdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return &mdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MariaDBLinkedService struct. -func (mdls *MariaDBLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mariaDBLinkedServiceTypeProperties MariaDBLinkedServiceTypeProperties - err = json.Unmarshal(*v, &mariaDBLinkedServiceTypeProperties) - if err != nil { - return err - } - mdls.MariaDBLinkedServiceTypeProperties = &mariaDBLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdls.AdditionalProperties == nil { - mdls.AdditionalProperties = make(map[string]interface{}) - } - mdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MariaDBLinkedServiceTypeProperties mariaDB server linked service properties. -type MariaDBLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MariaDBLinkedServiceTypeProperties struct. -func (mdlstp *MariaDBLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mdlstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mdlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MariaDBSource a copy activity MariaDB server source. -type MariaDBSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MariaDBSource. -func (mds MariaDBSource) MarshalJSON() ([]byte, error) { - mds.Type = TypeMariaDBSource - objectMap := make(map[string]interface{}) - objectMap["query"] = mds.Query - objectMap["sourceRetryCount"] = mds.SourceRetryCount - objectMap["sourceRetryWait"] = mds.SourceRetryWait - if mds.Type != "" { - objectMap["type"] = mds.Type - } - for k, v := range mds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMariaDBSource() (*MariaDBSource, bool) { - return &mds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsBasicCopySource() (BasicCopySource, bool) { - return &mds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MariaDBTableDataset mariaDB server dataset. -type MariaDBTableDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) MarshalJSON() ([]byte, error) { - mdtd.Type = TypeMariaDBTable - objectMap := make(map[string]interface{}) - if mdtd.Description != nil { - objectMap["description"] = mdtd.Description - } - objectMap["structure"] = mdtd.Structure - if mdtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mdtd.LinkedServiceName - } - if mdtd.Parameters != nil { - objectMap["parameters"] = mdtd.Parameters - } - if mdtd.Annotations != nil { - objectMap["annotations"] = mdtd.Annotations - } - if mdtd.Type != "" { - objectMap["type"] = mdtd.Type - } - for k, v := range mdtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return &mdtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &mdtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarketoLinkedService marketo server linked service. -type MarketoLinkedService struct { - // MarketoLinkedServiceTypeProperties - Marketo server linked service properties. - *MarketoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MarketoLinkedService. -func (mls MarketoLinkedService) MarshalJSON() ([]byte, error) { - mls.Type = TypeMarketo - objectMap := make(map[string]interface{}) - if mls.MarketoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mls.MarketoLinkedServiceTypeProperties - } - if mls.ConnectVia != nil { - objectMap["connectVia"] = mls.ConnectVia - } - if mls.Description != nil { - objectMap["description"] = mls.Description - } - if mls.Parameters != nil { - objectMap["parameters"] = mls.Parameters - } - if mls.Annotations != nil { - objectMap["annotations"] = mls.Annotations - } - if mls.Type != "" { - objectMap["type"] = mls.Type - } - for k, v := range mls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return &mls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MarketoLinkedService struct. -func (mls *MarketoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var marketoLinkedServiceTypeProperties MarketoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &marketoLinkedServiceTypeProperties) - if err != nil { - return err - } - mls.MarketoLinkedServiceTypeProperties = &marketoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mls.AdditionalProperties == nil { - mls.AdditionalProperties = make(map[string]interface{}) - } - mls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarketoLinkedServiceTypeProperties marketo server linked service properties. -type MarketoLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // ClientID - The client Id of your Marketo service. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret of your Marketo service. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MarketoLinkedServiceTypeProperties struct. -func (mlstp *MarketoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - mlstp.Endpoint = endpoint - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - mlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mlstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - mlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - mlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - mlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarketoObjectDataset marketo server dataset. -type MarketoObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MarketoObjectDataset. -func (mod MarketoObjectDataset) MarshalJSON() ([]byte, error) { - mod.Type = TypeMarketoObject - objectMap := make(map[string]interface{}) - if mod.Description != nil { - objectMap["description"] = mod.Description - } - objectMap["structure"] = mod.Structure - if mod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mod.LinkedServiceName - } - if mod.Parameters != nil { - objectMap["parameters"] = mod.Parameters - } - if mod.Annotations != nil { - objectMap["annotations"] = mod.Annotations - } - if mod.Type != "" { - objectMap["type"] = mod.Type - } - for k, v := range mod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return &mod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &mod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarketoSource a copy activity Marketo server source. -type MarketoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MarketoSource. -func (ms MarketoSource) MarshalJSON() ([]byte, error) { - ms.Type = TypeMarketoSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ms.Query - objectMap["sourceRetryCount"] = ms.SourceRetryCount - objectMap["sourceRetryWait"] = ms.SourceRetryWait - if ms.Type != "" { - objectMap["type"] = ms.Type - } - for k, v := range ms.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMarketoSource() (*MarketoSource, bool) { - return &ms, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ms, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MongoDbCollectionDataset the MongoDB database dataset. -type MongoDbCollectionDataset struct { - // MongoDbCollectionDatasetTypeProperties - MongoDB database dataset properties. - *MongoDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) MarshalJSON() ([]byte, error) { - mdcd.Type = TypeMongoDbCollection - objectMap := make(map[string]interface{}) - if mdcd.MongoDbCollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = mdcd.MongoDbCollectionDatasetTypeProperties - } - if mdcd.Description != nil { - objectMap["description"] = mdcd.Description - } - objectMap["structure"] = mdcd.Structure - if mdcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mdcd.LinkedServiceName - } - if mdcd.Parameters != nil { - objectMap["parameters"] = mdcd.Parameters - } - if mdcd.Annotations != nil { - objectMap["annotations"] = mdcd.Annotations - } - if mdcd.Type != "" { - objectMap["type"] = mdcd.Type - } - for k, v := range mdcd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return &mdcd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &mdcd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MongoDbCollectionDataset struct. -func (mdcd *MongoDbCollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbCollectionDatasetTypeProperties MongoDbCollectionDatasetTypeProperties - err = json.Unmarshal(*v, &mongoDbCollectionDatasetTypeProperties) - if err != nil { - return err - } - mdcd.MongoDbCollectionDatasetTypeProperties = &mongoDbCollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdcd.AdditionalProperties == nil { - mdcd.AdditionalProperties = make(map[string]interface{}) - } - mdcd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdcd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mdcd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mdcd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdcd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdcd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdcd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MongoDbCollectionDatasetTypeProperties mongoDB database dataset properties. -type MongoDbCollectionDatasetTypeProperties struct { - // CollectionName - The table name of the MongoDB database. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MongoDbLinkedService linked service for MongoDb data source. -type MongoDbLinkedService struct { - // MongoDbLinkedServiceTypeProperties - MongoDB linked service properties. - *MongoDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MongoDbLinkedService. -func (mdls MongoDbLinkedService) MarshalJSON() ([]byte, error) { - mdls.Type = TypeMongoDb - objectMap := make(map[string]interface{}) - if mdls.MongoDbLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mdls.MongoDbLinkedServiceTypeProperties - } - if mdls.ConnectVia != nil { - objectMap["connectVia"] = mdls.ConnectVia - } - if mdls.Description != nil { - objectMap["description"] = mdls.Description - } - if mdls.Parameters != nil { - objectMap["parameters"] = mdls.Parameters - } - if mdls.Annotations != nil { - objectMap["annotations"] = mdls.Annotations - } - if mdls.Type != "" { - objectMap["type"] = mdls.Type - } - for k, v := range mdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return &mdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mdls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MongoDbLinkedService struct. -func (mdls *MongoDbLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbLinkedServiceTypeProperties MongoDbLinkedServiceTypeProperties - err = json.Unmarshal(*v, &mongoDbLinkedServiceTypeProperties) - if err != nil { - return err - } - mdls.MongoDbLinkedServiceTypeProperties = &mongoDbLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdls.AdditionalProperties == nil { - mdls.AdditionalProperties = make(map[string]interface{}) - } - mdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MongoDbLinkedServiceTypeProperties mongoDB linked service properties. -type MongoDbLinkedServiceTypeProperties struct { - // Server - The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the MongoDB database. Possible values include: 'MongoDbAuthenticationTypeBasic', 'MongoDbAuthenticationTypeAnonymous' - AuthenticationType MongoDbAuthenticationType `json:"authenticationType,omitempty"` - // DatabaseName - The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). - DatabaseName interface{} `json:"databaseName,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // AuthSource - Database to verify the username and password. Type: string (or Expression with resultType string). - AuthSource interface{} `json:"authSource,omitempty"` - // Port - The TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or Expression with resultType boolean). - EnableSsl interface{} `json:"enableSsl,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression with resultType boolean). - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MongoDbLinkedServiceTypeProperties struct. -func (mdlstp *MongoDbLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - mdlstp.Server = server - } - case "authenticationType": - if v != nil { - var authenticationType MongoDbAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - mdlstp.AuthenticationType = authenticationType - } - case "databaseName": - if v != nil { - var databaseName interface{} - err = json.Unmarshal(*v, &databaseName) - if err != nil { - return err - } - mdlstp.DatabaseName = databaseName - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - mdlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mdlstp.Password = password - } - case "authSource": - if v != nil { - var authSource interface{} - err = json.Unmarshal(*v, &authSource) - if err != nil { - return err - } - mdlstp.AuthSource = authSource - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - mdlstp.Port = port - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - mdlstp.EnableSsl = enableSsl - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - mdlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mdlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MongoDbSource a copy activity source for a MongoDB database. -type MongoDbSource struct { - // Query - Database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MongoDbSource. -func (mds MongoDbSource) MarshalJSON() ([]byte, error) { - mds.Type = TypeMongoDbSource - objectMap := make(map[string]interface{}) - objectMap["query"] = mds.Query - objectMap["sourceRetryCount"] = mds.SourceRetryCount - objectMap["sourceRetryWait"] = mds.SourceRetryWait - if mds.Type != "" { - objectMap["type"] = mds.Type - } - for k, v := range mds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMongoDbSource() (*MongoDbSource, bool) { - return &mds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsBasicCopySource() (BasicCopySource, bool) { - return &mds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicMultiplePipelineTrigger base class for all triggers that support one to many model for trigger to pipeline. -type BasicMultiplePipelineTrigger interface { - AsBlobTrigger() (*BlobTrigger, bool) - AsScheduleTrigger() (*ScheduleTrigger, bool) - AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MultiplePipelineTrigger base class for all triggers that support one to many model for trigger to pipeline. -type MultiplePipelineTrigger struct { - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Type - Possible values include: 'TypeTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -func unmarshalBasicMultiplePipelineTrigger(body []byte) (BasicMultiplePipelineTrigger, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBlobTrigger): - var bt BlobTrigger - err := json.Unmarshal(body, &bt) - return bt, err - case string(TypeScheduleTrigger): - var st ScheduleTrigger - err := json.Unmarshal(body, &st) - return st, err - default: - var mpt MultiplePipelineTrigger - err := json.Unmarshal(body, &mpt) - return mpt, err - } -} -func unmarshalBasicMultiplePipelineTriggerArray(body []byte) ([]BasicMultiplePipelineTrigger, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - mptArray := make([]BasicMultiplePipelineTrigger, len(rawMessages)) - - for index, rawMessage := range rawMessages { - mpt, err := unmarshalBasicMultiplePipelineTrigger(*rawMessage) - if err != nil { - return nil, err - } - mptArray[index] = mpt - } - return mptArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) MarshalJSON() ([]byte, error) { - mpt.Type = TypeMultiplePipelineTrigger - objectMap := make(map[string]interface{}) - if mpt.Pipelines != nil { - objectMap["pipelines"] = mpt.Pipelines - } - if mpt.Description != nil { - objectMap["description"] = mpt.Description - } - if mpt.RuntimeState != "" { - objectMap["runtimeState"] = mpt.RuntimeState - } - if mpt.Type != "" { - objectMap["type"] = mpt.Type - } - for k, v := range mpt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTumblingWindowTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsScheduleTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMultiplePipelineTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return &mpt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &mpt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &mpt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MySQLLinkedService linked service for MySQL data source. -type MySQLLinkedService struct { - // MySQLLinkedServiceTypeProperties - MySQL linked service properties. - *MySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for MySQLLinkedService. -func (msls MySQLLinkedService) MarshalJSON() ([]byte, error) { - msls.Type = TypeMySQL - objectMap := make(map[string]interface{}) - if msls.MySQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = msls.MySQLLinkedServiceTypeProperties - } - if msls.ConnectVia != nil { - objectMap["connectVia"] = msls.ConnectVia - } - if msls.Description != nil { - objectMap["description"] = msls.Description - } - if msls.Parameters != nil { - objectMap["parameters"] = msls.Parameters - } - if msls.Annotations != nil { - objectMap["annotations"] = msls.Annotations - } - if msls.Type != "" { - objectMap["type"] = msls.Type - } - for k, v := range msls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return &msls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &msls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MySQLLinkedService struct. -func (msls *MySQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mySQLLinkedServiceTypeProperties MySQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &mySQLLinkedServiceTypeProperties) - if err != nil { - return err - } - msls.MySQLLinkedServiceTypeProperties = &mySQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if msls.AdditionalProperties == nil { - msls.AdditionalProperties = make(map[string]interface{}) - } - msls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - msls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - msls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - msls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - msls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - msls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MySQLLinkedServiceTypeProperties mySQL linked service properties. -type MySQLLinkedServiceTypeProperties struct { - // Server - Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Database - Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Schema - Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for MySQLLinkedServiceTypeProperties struct. -func (mslstp *MySQLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - mslstp.Server = server - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - mslstp.Database = databaseVar - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mslstp.Schema = schema - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - mslstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NetezzaLinkedService netezza linked service. -type NetezzaLinkedService struct { - // NetezzaLinkedServiceTypeProperties - Netezza linked service properties. - *NetezzaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for NetezzaLinkedService. -func (nls NetezzaLinkedService) MarshalJSON() ([]byte, error) { - nls.Type = TypeNetezza - objectMap := make(map[string]interface{}) - if nls.NetezzaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = nls.NetezzaLinkedServiceTypeProperties - } - if nls.ConnectVia != nil { - objectMap["connectVia"] = nls.ConnectVia - } - if nls.Description != nil { - objectMap["description"] = nls.Description - } - if nls.Parameters != nil { - objectMap["parameters"] = nls.Parameters - } - if nls.Annotations != nil { - objectMap["annotations"] = nls.Annotations - } - if nls.Type != "" { - objectMap["type"] = nls.Type - } - for k, v := range nls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return &nls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &nls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for NetezzaLinkedService struct. -func (nls *NetezzaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var netezzaLinkedServiceTypeProperties NetezzaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &netezzaLinkedServiceTypeProperties) - if err != nil { - return err - } - nls.NetezzaLinkedServiceTypeProperties = &netezzaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if nls.AdditionalProperties == nil { - nls.AdditionalProperties = make(map[string]interface{}) - } - nls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - nls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - nls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - nls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - nls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - nls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NetezzaLinkedServiceTypeProperties netezza linked service properties. -type NetezzaLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for NetezzaLinkedServiceTypeProperties struct. -func (nlstp *NetezzaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - nlstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - nlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NetezzaSource a copy activity Netezza source. -type NetezzaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for NetezzaSource. -func (ns NetezzaSource) MarshalJSON() ([]byte, error) { - ns.Type = TypeNetezzaSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ns.Query - objectMap["sourceRetryCount"] = ns.SourceRetryCount - objectMap["sourceRetryWait"] = ns.SourceRetryWait - if ns.Type != "" { - objectMap["type"] = ns.Type - } - for k, v := range ns.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return &ns, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ns, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NetezzaTableDataset netezza dataset. -type NetezzaTableDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for NetezzaTableDataset. -func (ntd NetezzaTableDataset) MarshalJSON() ([]byte, error) { - ntd.Type = TypeNetezzaTable - objectMap := make(map[string]interface{}) - if ntd.Description != nil { - objectMap["description"] = ntd.Description - } - objectMap["structure"] = ntd.Structure - if ntd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ntd.LinkedServiceName - } - if ntd.Parameters != nil { - objectMap["parameters"] = ntd.Parameters - } - if ntd.Annotations != nil { - objectMap["annotations"] = ntd.Annotations - } - if ntd.Type != "" { - objectMap["type"] = ntd.Type - } - for k, v := range ntd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return &ntd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &ntd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ODataLinkedService open Data Protocol (OData) linked service. -type ODataLinkedService struct { - // ODataLinkedServiceTypeProperties - OData linked service properties. - *ODataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ODataLinkedService. -func (odls ODataLinkedService) MarshalJSON() ([]byte, error) { - odls.Type = TypeOData - objectMap := make(map[string]interface{}) - if odls.ODataLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = odls.ODataLinkedServiceTypeProperties - } - if odls.ConnectVia != nil { - objectMap["connectVia"] = odls.ConnectVia - } - if odls.Description != nil { - objectMap["description"] = odls.Description - } - if odls.Parameters != nil { - objectMap["parameters"] = odls.Parameters - } - if odls.Annotations != nil { - objectMap["annotations"] = odls.Annotations - } - if odls.Type != "" { - objectMap["type"] = odls.Type - } - for k, v := range odls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return &odls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &odls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ODataLinkedService struct. -func (odls *ODataLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oDataLinkedServiceTypeProperties ODataLinkedServiceTypeProperties - err = json.Unmarshal(*v, &oDataLinkedServiceTypeProperties) - if err != nil { - return err - } - odls.ODataLinkedServiceTypeProperties = &oDataLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if odls.AdditionalProperties == nil { - odls.AdditionalProperties = make(map[string]interface{}) - } - odls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - odls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - odls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - odls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - odls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - odls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ODataLinkedServiceTypeProperties oData linked service properties. -type ODataLinkedServiceTypeProperties struct { - // URL - The URL of the OData service endpoint. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Type of authentication used to connect to the OData service. Possible values include: 'ODataAuthenticationTypeBasic', 'ODataAuthenticationTypeAnonymous' - AuthenticationType ODataAuthenticationType `json:"authenticationType,omitempty"` - // UserName - User name of the OData service. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password of the OData service. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ODataLinkedServiceTypeProperties struct. -func (odlstp *ODataLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - odlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType ODataAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - odlstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - odlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - odlstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - odlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ODataResourceDataset the Open Data Protocol (OData) resource dataset. -type ODataResourceDataset struct { - // ODataResourceDatasetTypeProperties - OData dataset properties. - *ODataResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ODataResourceDataset. -func (odrd ODataResourceDataset) MarshalJSON() ([]byte, error) { - odrd.Type = TypeODataResource - objectMap := make(map[string]interface{}) - if odrd.ODataResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = odrd.ODataResourceDatasetTypeProperties - } - if odrd.Description != nil { - objectMap["description"] = odrd.Description - } - objectMap["structure"] = odrd.Structure - if odrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = odrd.LinkedServiceName - } - if odrd.Parameters != nil { - objectMap["parameters"] = odrd.Parameters - } - if odrd.Annotations != nil { - objectMap["annotations"] = odrd.Annotations - } - if odrd.Type != "" { - objectMap["type"] = odrd.Type - } - for k, v := range odrd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return &odrd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &odrd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ODataResourceDataset struct. -func (odrd *ODataResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oDataResourceDatasetTypeProperties ODataResourceDatasetTypeProperties - err = json.Unmarshal(*v, &oDataResourceDatasetTypeProperties) - if err != nil { - return err - } - odrd.ODataResourceDatasetTypeProperties = &oDataResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if odrd.AdditionalProperties == nil { - odrd.AdditionalProperties = make(map[string]interface{}) - } - odrd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - odrd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - odrd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - odrd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - odrd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - odrd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - odrd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ODataResourceDatasetTypeProperties oData dataset properties. -type ODataResourceDatasetTypeProperties struct { - // Path - The OData resource path. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OdbcLinkedService open Database Connectivity (ODBC) linked service. -type OdbcLinkedService struct { - // OdbcLinkedServiceTypeProperties - ODBC linked service properties. - *OdbcLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for OdbcLinkedService. -func (ols OdbcLinkedService) MarshalJSON() ([]byte, error) { - ols.Type = TypeOdbc - objectMap := make(map[string]interface{}) - if ols.OdbcLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ols.OdbcLinkedServiceTypeProperties - } - if ols.ConnectVia != nil { - objectMap["connectVia"] = ols.ConnectVia - } - if ols.Description != nil { - objectMap["description"] = ols.Description - } - if ols.Parameters != nil { - objectMap["parameters"] = ols.Parameters - } - if ols.Annotations != nil { - objectMap["annotations"] = ols.Annotations - } - if ols.Type != "" { - objectMap["type"] = ols.Type - } - for k, v := range ols.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return &ols, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ols, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for OdbcLinkedService struct. -func (ols *OdbcLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var odbcLinkedServiceTypeProperties OdbcLinkedServiceTypeProperties - err = json.Unmarshal(*v, &odbcLinkedServiceTypeProperties) - if err != nil { - return err - } - ols.OdbcLinkedServiceTypeProperties = &odbcLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ols.AdditionalProperties == nil { - ols.AdditionalProperties = make(map[string]interface{}) - } - ols.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ols.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ols.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ols.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ols.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ols.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OdbcLinkedServiceTypeProperties ODBC linked service properties. -type OdbcLinkedServiceTypeProperties struct { - // ConnectionString - The non-access credential portion of the connection string as well as an optional encrypted credential. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // AuthenticationType - Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // Credential - The access credential portion of the connection string specified in driver-specific property-value format. - Credential BasicSecretBase `json:"credential,omitempty"` - // UserName - User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for OdbcLinkedServiceTypeProperties struct. -func (olstp *OdbcLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - olstp.ConnectionString = connectionString - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - olstp.AuthenticationType = authenticationType - } - case "credential": - if v != nil { - credential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - olstp.Credential = credential - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - olstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - olstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - olstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OdbcSink a copy activity ODBC sink. -type OdbcSink struct { - // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for OdbcSink. -func (osVar OdbcSink) MarshalJSON() ([]byte, error) { - osVar.Type = TypeOdbcSink - objectMap := make(map[string]interface{}) - objectMap["preCopyScript"] = osVar.PreCopyScript - objectMap["writeBatchSize"] = osVar.WriteBatchSize - objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout - objectMap["sinkRetryCount"] = osVar.SinkRetryCount - objectMap["sinkRetryWait"] = osVar.SinkRetryWait - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsOdbcSink() (*OdbcSink, bool) { - return &osVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsBasicCopySink() (BasicCopySink, bool) { - return &osVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Operation azure Data Factory API operation definition. -type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` - // Origin - The intended executor of the operation. - Origin *string `json:"origin,omitempty"` - // Display - Metadata associated with the operation. - Display *OperationDisplay `json:"display,omitempty"` - // OperationProperties - Additional details about the operation. - *OperationProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Operation. -func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if o.Name != nil { - objectMap["name"] = o.Name - } - if o.Origin != nil { - objectMap["origin"] = o.Origin - } - if o.Display != nil { - objectMap["display"] = o.Display - } - if o.OperationProperties != nil { - objectMap["properties"] = o.OperationProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for Operation struct. -func (o *Operation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - o.Name = &name - } - case "origin": - if v != nil { - var origin string - err = json.Unmarshal(*v, &origin) - if err != nil { - return err - } - o.Origin = &origin - } - case "display": - if v != nil { - var display OperationDisplay - err = json.Unmarshal(*v, &display) - if err != nil { - return err - } - o.Display = &display - } - case "properties": - if v != nil { - var operationProperties OperationProperties - err = json.Unmarshal(*v, &operationProperties) - if err != nil { - return err - } - o.OperationProperties = &operationProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationDisplay metadata associated with the operation. -type OperationDisplay struct { - // Description - The description of the operation. - Description *string `json:"description,omitempty"` - // Provider - The name of the provider. - Provider *string `json:"provider,omitempty"` - // Resource - The name of the resource type on which the operation is performed. - Resource *string `json:"resource,omitempty"` - // Operation - The type of operation: get, read, delete, etc. - Operation *string `json:"operation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationListResponse a list of operations that can be performed by the Data Factory service. -type OperationListResponse struct { - autorest.Response `json:"-"` - // Value - List of Data Factory operations supported by the Data Factory resource provider. - Value *[]Operation `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationLogSpecification details about an operation related to logs. -type OperationLogSpecification struct { - // Name - The name of the log category. - Name *string `json:"name,omitempty"` - // DisplayName - Localized display name. - DisplayName *string `json:"displayName,omitempty"` - // BlobDuration - Blobs created in the customer storage account, per hour. - BlobDuration *string `json:"blobDuration,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationMetricAvailability defines how often data for a metric becomes available. -type OperationMetricAvailability struct { - // TimeGrain - The granularity for the metric. - TimeGrain *string `json:"timeGrain,omitempty"` - // BlobDuration - Blob created in the customer storage account, per hour. - BlobDuration *string `json:"blobDuration,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationMetricSpecification details about an operation related to metrics. -type OperationMetricSpecification struct { - // Name - The name of the metric. - Name *string `json:"name,omitempty"` - // DisplayName - Localized display name of the metric. - DisplayName *string `json:"displayName,omitempty"` - // DisplayDescription - The description of the metric. - DisplayDescription *string `json:"displayDescription,omitempty"` - // Unit - The unit that the metric is measured in. - Unit *string `json:"unit,omitempty"` - // AggregationType - The type of metric aggregation. - AggregationType *string `json:"aggregationType,omitempty"` - // EnableRegionalMdmAccount - Whether or not the service is using regional MDM accounts. - EnableRegionalMdmAccount *string `json:"enableRegionalMdmAccount,omitempty"` - // SourceMdmAccount - The name of the MDM account. - SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` - // SourceMdmNamespace - The name of the MDM namespace. - SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` - // Availabilities - Defines how often data for metrics becomes available. - Availabilities *[]OperationMetricAvailability `json:"availabilities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationProperties additional details about an operation. -type OperationProperties struct { - // ServiceSpecification - Details about a service operation. - ServiceSpecification *OperationServiceSpecification `json:"serviceSpecification,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationServiceSpecification details about a service operation. -type OperationServiceSpecification struct { - // LogSpecifications - Details about operations related to logs. - LogSpecifications *[]OperationLogSpecification `json:"logSpecifications,omitempty"` - // MetricSpecifications - Details about operations related to metrics. - MetricSpecifications *[]OperationMetricSpecification `json:"metricSpecifications,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OracleLinkedService oracle database. -type OracleLinkedService struct { - // OracleLinkedServiceTypeProperties - Oracle database linked service properties. - *OracleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for OracleLinkedService. -func (ols OracleLinkedService) MarshalJSON() ([]byte, error) { - ols.Type = TypeOracle - objectMap := make(map[string]interface{}) - if ols.OracleLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ols.OracleLinkedServiceTypeProperties - } - if ols.ConnectVia != nil { - objectMap["connectVia"] = ols.ConnectVia - } - if ols.Description != nil { - objectMap["description"] = ols.Description - } - if ols.Parameters != nil { - objectMap["parameters"] = ols.Parameters - } - if ols.Annotations != nil { - objectMap["annotations"] = ols.Annotations - } - if ols.Type != "" { - objectMap["type"] = ols.Type - } - for k, v := range ols.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return &ols, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ols, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for OracleLinkedService struct. -func (ols *OracleLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oracleLinkedServiceTypeProperties OracleLinkedServiceTypeProperties - err = json.Unmarshal(*v, &oracleLinkedServiceTypeProperties) - if err != nil { - return err - } - ols.OracleLinkedServiceTypeProperties = &oracleLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ols.AdditionalProperties == nil { - ols.AdditionalProperties = make(map[string]interface{}) - } - ols.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ols.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ols.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ols.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ols.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ols.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OracleLinkedServiceTypeProperties oracle database linked service properties. -type OracleLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for OracleLinkedServiceTypeProperties struct. -func (olstp *OracleLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - olstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - olstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OracleSink a copy activity Oracle sink. -type OracleSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for OracleSink. -func (osVar OracleSink) MarshalJSON() ([]byte, error) { - osVar.Type = TypeOracleSink - objectMap := make(map[string]interface{}) - objectMap["preCopyScript"] = osVar.PreCopyScript - objectMap["writeBatchSize"] = osVar.WriteBatchSize - objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout - objectMap["sinkRetryCount"] = osVar.SinkRetryCount - objectMap["sinkRetryWait"] = osVar.SinkRetryWait - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsOracleSink() (*OracleSink, bool) { - return &osVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsBasicCopySink() (BasicCopySink, bool) { - return &osVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OracleSource a copy activity Oracle source. -type OracleSource struct { - // OracleReaderQuery - Oracle reader query. Type: string (or Expression with resultType string). - OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` - // QueryTimeout - Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for OracleSource. -func (osVar OracleSource) MarshalJSON() ([]byte, error) { - osVar.Type = TypeOracleSource - objectMap := make(map[string]interface{}) - objectMap["oracleReaderQuery"] = osVar.OracleReaderQuery - objectMap["queryTimeout"] = osVar.QueryTimeout - objectMap["sourceRetryCount"] = osVar.SourceRetryCount - objectMap["sourceRetryWait"] = osVar.SourceRetryWait - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsOracleSource() (*OracleSource, bool) { - return &osVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsBasicCopySource() (BasicCopySource, bool) { - return &osVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OracleTableDataset the on-premises Oracle database dataset. -type OracleTableDataset struct { - // OracleTableDatasetTypeProperties - On-premises Oracle dataset properties. - *OracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for OracleTableDataset. -func (otd OracleTableDataset) MarshalJSON() ([]byte, error) { - otd.Type = TypeOracleTable - objectMap := make(map[string]interface{}) - if otd.OracleTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = otd.OracleTableDatasetTypeProperties - } - if otd.Description != nil { - objectMap["description"] = otd.Description - } - objectMap["structure"] = otd.Structure - if otd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = otd.LinkedServiceName - } - if otd.Parameters != nil { - objectMap["parameters"] = otd.Parameters - } - if otd.Annotations != nil { - objectMap["annotations"] = otd.Annotations - } - if otd.Type != "" { - objectMap["type"] = otd.Type - } - for k, v := range otd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return &otd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &otd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for OracleTableDataset struct. -func (otd *OracleTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oracleTableDatasetTypeProperties OracleTableDatasetTypeProperties - err = json.Unmarshal(*v, &oracleTableDatasetTypeProperties) - if err != nil { - return err - } - otd.OracleTableDatasetTypeProperties = &oracleTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if otd.AdditionalProperties == nil { - otd.AdditionalProperties = make(map[string]interface{}) - } - otd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - otd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - otd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - otd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - otd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - otd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - otd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OracleTableDatasetTypeProperties on-premises Oracle dataset properties. -type OracleTableDatasetTypeProperties struct { - // TableName - The table name of the on-premises Oracle database. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OrcFormat the data stored in Optimized Row Columnar (ORC) format. -type OrcFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for OrcFormat. -func (of OrcFormat) MarshalJSON() ([]byte, error) { - of.Type = TypeOrcFormat - objectMap := make(map[string]interface{}) - objectMap["serializer"] = of.Serializer - objectMap["deserializer"] = of.Deserializer - if of.Type != "" { - objectMap["type"] = of.Type - } - for k, v := range of.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsParquetFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOrcFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsOrcFormat() (*OrcFormat, bool) { - return &of, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAvroFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJSONFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTextFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &of, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ParameterSpecification definition of a single parameter for an entity. -type ParameterSpecification struct { - // Type - Parameter type. Possible values include: 'ParameterTypeObject', 'ParameterTypeString', 'ParameterTypeInt', 'ParameterTypeFloat', 'ParameterTypeBool', 'ParameterTypeArray', 'ParameterTypeSecureString' - Type ParameterType `json:"type,omitempty"` - // DefaultValue - Default value of parameter. - DefaultValue interface{} `json:"defaultValue,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ParquetFormat the data stored in Parquet format. -type ParquetFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ParquetFormat. -func (pf ParquetFormat) MarshalJSON() ([]byte, error) { - pf.Type = TypeParquetFormat - objectMap := make(map[string]interface{}) - objectMap["serializer"] = pf.Serializer - objectMap["deserializer"] = pf.Deserializer - if pf.Type != "" { - objectMap["type"] = pf.Type - } - for k, v := range pf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsParquetFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsParquetFormat() (*ParquetFormat, bool) { - return &pf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOrcFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAvroFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJSONFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTextFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &pf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PaypalLinkedService paypal Serivce linked service. -type PaypalLinkedService struct { - // PaypalLinkedServiceTypeProperties - Paypal Serivce linked service properties. - *PaypalLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PaypalLinkedService. -func (pls PaypalLinkedService) MarshalJSON() ([]byte, error) { - pls.Type = TypePaypal - objectMap := make(map[string]interface{}) - if pls.PaypalLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = pls.PaypalLinkedServiceTypeProperties - } - if pls.ConnectVia != nil { - objectMap["connectVia"] = pls.ConnectVia - } - if pls.Description != nil { - objectMap["description"] = pls.Description - } - if pls.Parameters != nil { - objectMap["parameters"] = pls.Parameters - } - if pls.Annotations != nil { - objectMap["annotations"] = pls.Annotations - } - if pls.Type != "" { - objectMap["type"] = pls.Type - } - for k, v := range pls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return &pls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &pls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PaypalLinkedService struct. -func (pls *PaypalLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var paypalLinkedServiceTypeProperties PaypalLinkedServiceTypeProperties - err = json.Unmarshal(*v, &paypalLinkedServiceTypeProperties) - if err != nil { - return err - } - pls.PaypalLinkedServiceTypeProperties = &paypalLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pls.AdditionalProperties == nil { - pls.AdditionalProperties = make(map[string]interface{}) - } - pls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - pls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PaypalLinkedServiceTypeProperties paypal Serivce linked service properties. -type PaypalLinkedServiceTypeProperties struct { - // Host - The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) - Host interface{} `json:"host,omitempty"` - // ClientID - The client ID associated with your PayPal application. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with your PayPal application. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PaypalLinkedServiceTypeProperties struct. -func (plstp *PaypalLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - plstp.Host = host - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - plstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - plstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - plstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - plstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - plstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - plstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PaypalObjectDataset paypal Serivce dataset. -type PaypalObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PaypalObjectDataset. -func (pod PaypalObjectDataset) MarshalJSON() ([]byte, error) { - pod.Type = TypePaypalObject - objectMap := make(map[string]interface{}) - if pod.Description != nil { - objectMap["description"] = pod.Description - } - objectMap["structure"] = pod.Structure - if pod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pod.LinkedServiceName - } - if pod.Parameters != nil { - objectMap["parameters"] = pod.Parameters - } - if pod.Annotations != nil { - objectMap["annotations"] = pod.Annotations - } - if pod.Type != "" { - objectMap["type"] = pod.Type - } - for k, v := range pod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return &pod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &pod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PaypalSource a copy activity Paypal Serivce source. -type PaypalSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PaypalSource. -func (ps PaypalSource) MarshalJSON() ([]byte, error) { - ps.Type = TypePaypalSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ps.Query - objectMap["sourceRetryCount"] = ps.SourceRetryCount - objectMap["sourceRetryWait"] = ps.SourceRetryWait - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsPaypalSource() (*PaypalSource, bool) { - return &ps, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ps, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PhoenixLinkedService phoenix server linked service. -type PhoenixLinkedService struct { - // PhoenixLinkedServiceTypeProperties - Phoenix server linked service properties. - *PhoenixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PhoenixLinkedService. -func (pls PhoenixLinkedService) MarshalJSON() ([]byte, error) { - pls.Type = TypePhoenix - objectMap := make(map[string]interface{}) - if pls.PhoenixLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = pls.PhoenixLinkedServiceTypeProperties - } - if pls.ConnectVia != nil { - objectMap["connectVia"] = pls.ConnectVia - } - if pls.Description != nil { - objectMap["description"] = pls.Description - } - if pls.Parameters != nil { - objectMap["parameters"] = pls.Parameters - } - if pls.Annotations != nil { - objectMap["annotations"] = pls.Annotations - } - if pls.Type != "" { - objectMap["type"] = pls.Type - } - for k, v := range pls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return &pls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &pls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PhoenixLinkedService struct. -func (pls *PhoenixLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var phoenixLinkedServiceTypeProperties PhoenixLinkedServiceTypeProperties - err = json.Unmarshal(*v, &phoenixLinkedServiceTypeProperties) - if err != nil { - return err - } - pls.PhoenixLinkedServiceTypeProperties = &phoenixLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pls.AdditionalProperties == nil { - pls.AdditionalProperties = make(map[string]interface{}) - } - pls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - pls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PhoenixLinkedServiceTypeProperties phoenix server linked service properties. -type PhoenixLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Phoenix server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. - Port interface{} `json:"port,omitempty"` - // HTTPPath - The partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). The default value is hbasephoenix if using WindowsAzureHDInsightService. - HTTPPath interface{} `json:"httpPath,omitempty"` - // AuthenticationType - The authentication mechanism used to connect to the Phoenix server. Possible values include: 'PhoenixAuthenticationTypeAnonymous', 'PhoenixAuthenticationTypeUsernameAndPassword', 'PhoenixAuthenticationTypeWindowsAzureHDInsightService' - AuthenticationType PhoenixAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the Phoenix server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // AllowHostNameCNMismatch - Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PhoenixLinkedServiceTypeProperties struct. -func (plstp *PhoenixLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - plstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - plstp.Port = port - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - plstp.HTTPPath = HTTPPath - } - case "authenticationType": - if v != nil { - var authenticationType PhoenixAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - plstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - plstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - plstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - plstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - plstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - plstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - plstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - plstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - plstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PhoenixObjectDataset phoenix server dataset. -type PhoenixObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) MarshalJSON() ([]byte, error) { - pod.Type = TypePhoenixObject - objectMap := make(map[string]interface{}) - if pod.Description != nil { - objectMap["description"] = pod.Description - } - objectMap["structure"] = pod.Structure - if pod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pod.LinkedServiceName - } - if pod.Parameters != nil { - objectMap["parameters"] = pod.Parameters - } - if pod.Annotations != nil { - objectMap["annotations"] = pod.Annotations - } - if pod.Type != "" { - objectMap["type"] = pod.Type - } - for k, v := range pod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return &pod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &pod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PhoenixSource a copy activity Phoenix server source. -type PhoenixSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PhoenixSource. -func (ps PhoenixSource) MarshalJSON() ([]byte, error) { - ps.Type = TypePhoenixSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ps.Query - objectMap["sourceRetryCount"] = ps.SourceRetryCount - objectMap["sourceRetryWait"] = ps.SourceRetryWait - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsPhoenixSource() (*PhoenixSource, bool) { - return &ps, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ps, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Pipeline a data factory pipeline. -type Pipeline struct { - // Description - The description of the pipeline. - Description *string `json:"description,omitempty"` - // Activities - List of activities in pipeline. - Activities *[]BasicActivity `json:"activities,omitempty"` - // Parameters - List of parameters for pipeline. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Concurrency - The max number of concurrent runs for the pipeline. - Concurrency *int32 `json:"concurrency,omitempty"` - // Annotations - List of tags that can be used for describing the Pipeline. - Annotations *[]interface{} `json:"annotations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Pipeline. -func (p Pipeline) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if p.Description != nil { - objectMap["description"] = p.Description - } - if p.Activities != nil { - objectMap["activities"] = p.Activities - } - if p.Parameters != nil { - objectMap["parameters"] = p.Parameters - } - if p.Concurrency != nil { - objectMap["concurrency"] = p.Concurrency - } - if p.Annotations != nil { - objectMap["annotations"] = p.Annotations - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for Pipeline struct. -func (p *Pipeline) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - p.Description = &description - } - case "activities": - if v != nil { - activities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - p.Activities = &activities - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - p.Parameters = parameters - } - case "concurrency": - if v != nil { - var concurrency int32 - err = json.Unmarshal(*v, &concurrency) - if err != nil { - return err - } - p.Concurrency = &concurrency - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - p.Annotations = &annotations - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineListResponse a list of pipeline resources. -type PipelineListResponse struct { - autorest.Response `json:"-"` - // Value - List of pipelines. - Value *[]PipelineResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineListResponseIterator provides access to a complete listing of PipelineResource values. -type PipelineListResponseIterator struct { - i int - page PipelineListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *PipelineListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter PipelineListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter PipelineListResponseIterator) Response() PipelineListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter PipelineListResponseIterator) Value() PipelineResource { - if !iter.page.NotDone() { - return PipelineResource{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (plr PipelineListResponse) IsEmpty() bool { - return plr.Value == nil || len(*plr.Value) == 0 -} - -// pipelineListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (plr PipelineListResponse) pipelineListResponsePreparer() (*http.Request, error) { - if plr.NextLink == nil || len(to.String(plr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(plr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineListResponsePage contains a page of PipelineResource values. -type PipelineListResponsePage struct { - fn func(PipelineListResponse) (PipelineListResponse, error) - plr PipelineListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *PipelineListResponsePage) Next() error { - next, err := page.fn(page.plr) - if err != nil { - return err - } - page.plr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page PipelineListResponsePage) NotDone() bool { - return !page.plr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page PipelineListResponsePage) Response() PipelineListResponse { - return page.plr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page PipelineListResponsePage) Values() []PipelineResource { - if page.plr.IsEmpty() { - return nil - } - return *page.plr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineReference pipeline reference type. -type PipelineReference struct { - // Type - Pipeline reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference pipeline name. - ReferenceName *string `json:"referenceName,omitempty"` - // Name - Reference name. - Name *string `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineResource pipeline resource type. -type PipelineResource struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Pipeline - Properties of the pipeline. - *Pipeline `json:"properties,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PipelineResource. -func (pr PipelineResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pr.Pipeline != nil { - objectMap["properties"] = pr.Pipeline - } - if pr.ID != nil { - objectMap["id"] = pr.ID - } - if pr.Name != nil { - objectMap["name"] = pr.Name - } - if pr.Type != nil { - objectMap["type"] = pr.Type - } - if pr.Etag != nil { - objectMap["etag"] = pr.Etag - } - for k, v := range pr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PipelineResource struct. -func (pr *PipelineResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pr.AdditionalProperties == nil { - pr.AdditionalProperties = make(map[string]interface{}) - } - pr.AdditionalProperties[k] = additionalProperties - } - case "properties": - if v != nil { - var pipeline Pipeline - err = json.Unmarshal(*v, &pipeline) - if err != nil { - return err - } - pr.Pipeline = &pipeline - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - pr.Etag = &etag - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRun information about a pipeline run. -type PipelineRun struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // RunID - Identifier of a run. - RunID *string `json:"runId,omitempty"` - // PipelineName - The pipeline name. - PipelineName *string `json:"pipelineName,omitempty"` - // Parameters - The full or partial list of parameter name, value pair used in the pipeline run. - Parameters map[string]*string `json:"parameters"` - // InvokedBy - Entity that started the pipeline run. - InvokedBy *PipelineRunInvokedBy `json:"invokedBy,omitempty"` - // LastUpdated - The last updated timestamp for the pipeline run event in ISO8601 format. - LastUpdated *date.Time `json:"lastUpdated,omitempty"` - // RunStart - The start time of a pipeline run in ISO8601 format. - RunStart *date.Time `json:"runStart,omitempty"` - // RunEnd - The end time of a pipeline run in ISO8601 format. - RunEnd *date.Time `json:"runEnd,omitempty"` - // DurationInMs - The duration of a pipeline run. - DurationInMs *int32 `json:"durationInMs,omitempty"` - // Status - The status of a pipeline run. - Status *string `json:"status,omitempty"` - // Message - The message from a pipeline run. - Message *string `json:"message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PipelineRun. -func (pr PipelineRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pr.RunID != nil { - objectMap["runId"] = pr.RunID - } - if pr.PipelineName != nil { - objectMap["pipelineName"] = pr.PipelineName - } - if pr.Parameters != nil { - objectMap["parameters"] = pr.Parameters - } - if pr.InvokedBy != nil { - objectMap["invokedBy"] = pr.InvokedBy - } - if pr.LastUpdated != nil { - objectMap["lastUpdated"] = pr.LastUpdated - } - if pr.RunStart != nil { - objectMap["runStart"] = pr.RunStart - } - if pr.RunEnd != nil { - objectMap["runEnd"] = pr.RunEnd - } - if pr.DurationInMs != nil { - objectMap["durationInMs"] = pr.DurationInMs - } - if pr.Status != nil { - objectMap["status"] = pr.Status - } - if pr.Message != nil { - objectMap["message"] = pr.Message - } - for k, v := range pr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunFilterParameters query parameters for listing pipeline runs. -type PipelineRunFilterParameters struct { - // ContinuationToken - The continuation token for getting the next page of results. Null for first page. - ContinuationToken *string `json:"continuationToken,omitempty"` - // LastUpdatedAfter - The time at or after which the pipeline run event was updated in 'ISO 8601' format. - LastUpdatedAfter *date.Time `json:"lastUpdatedAfter,omitempty"` - // LastUpdatedBefore - The time at or before which the pipeline run event was updated in 'ISO 8601' format. - LastUpdatedBefore *date.Time `json:"lastUpdatedBefore,omitempty"` - // Filters - List of filters. - Filters *[]PipelineRunQueryFilter `json:"filters,omitempty"` - // OrderBy - List of OrderBy option. - OrderBy *[]PipelineRunQueryOrderBy `json:"orderBy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunInvokedBy provides entity name and id that started the pipeline run. -type PipelineRunInvokedBy struct { - // Name - Name of the entity that started the pipeline run. - Name *string `json:"name,omitempty"` - // ID - The ID of the entity that started the run. - ID *string `json:"id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunQueryFilter query filter option for listing pipeline runs. -type PipelineRunQueryFilter struct { - // Operand - Parameter name to be used for filter. Possible values include: 'PipelineName', 'Status', 'RunStart', 'RunEnd' - Operand PipelineRunQueryFilterOperand `json:"operand,omitempty"` - // Operator - Operator to be used for filter. Possible values include: 'Equals', 'NotEquals', 'In', 'NotIn' - Operator PipelineRunQueryFilterOperator `json:"operator,omitempty"` - // Values - List of filter values. - Values *[]string `json:"values,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunQueryOrderBy an object to provide order by options for listing pipeline runs. -type PipelineRunQueryOrderBy struct { - // OrderBy - Parameter name to be used for order by. Possible values include: 'PipelineRunQueryOrderByFieldRunStart', 'PipelineRunQueryOrderByFieldRunEnd' - OrderBy PipelineRunQueryOrderByField `json:"orderBy,omitempty"` - // Order - Sorting order of the parameter. Possible values include: 'ASC', 'DESC' - Order PipelineRunQueryOrder `json:"order,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunQueryResponse a list pipeline runs. -type PipelineRunQueryResponse struct { - autorest.Response `json:"-"` - // Value - List of pipeline runs. - Value *[]PipelineRun `json:"value,omitempty"` - // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PolybaseSettings polyBase settings. -type PolybaseSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // RejectType - Reject type. Possible values include: 'Value', 'Percentage' - RejectType PolybaseSettingsRejectType `json:"rejectType,omitempty"` - // RejectValue - Specifies the value or the percentage of rows that can be rejected before the query fails. Type: number (or Expression with resultType number), minimum: 0. - RejectValue interface{} `json:"rejectValue,omitempty"` - // RejectSampleValue - Determines the number of rows to attempt to retrieve before the PolyBase recalculates the percentage of rejected rows. Type: integer (or Expression with resultType integer), minimum: 0. - RejectSampleValue interface{} `json:"rejectSampleValue,omitempty"` - // UseTypeDefault - Specifies how to handle missing values in delimited text files when PolyBase retrieves data from the text file. Type: boolean (or Expression with resultType boolean). - UseTypeDefault interface{} `json:"useTypeDefault,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PolybaseSettings. -func (ps PolybaseSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ps.RejectType != "" { - objectMap["rejectType"] = ps.RejectType - } - objectMap["rejectValue"] = ps.RejectValue - objectMap["rejectSampleValue"] = ps.RejectSampleValue - objectMap["useTypeDefault"] = ps.UseTypeDefault - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PostgreSQLLinkedService linked service for PostgreSQL data source. -type PostgreSQLLinkedService struct { - // PostgreSQLLinkedServiceTypeProperties - PostgreSQL linked service properties. - *PostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - psls.Type = TypePostgreSQL - objectMap := make(map[string]interface{}) - if psls.PostgreSQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = psls.PostgreSQLLinkedServiceTypeProperties - } - if psls.ConnectVia != nil { - objectMap["connectVia"] = psls.ConnectVia - } - if psls.Description != nil { - objectMap["description"] = psls.Description - } - if psls.Parameters != nil { - objectMap["parameters"] = psls.Parameters - } - if psls.Annotations != nil { - objectMap["annotations"] = psls.Annotations - } - if psls.Type != "" { - objectMap["type"] = psls.Type - } - for k, v := range psls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return &psls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &psls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PostgreSQLLinkedService struct. -func (psls *PostgreSQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var postgreSQLLinkedServiceTypeProperties PostgreSQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &postgreSQLLinkedServiceTypeProperties) - if err != nil { - return err - } - psls.PostgreSQLLinkedServiceTypeProperties = &postgreSQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if psls.AdditionalProperties == nil { - psls.AdditionalProperties = make(map[string]interface{}) - } - psls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - psls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - psls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - psls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - psls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - psls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PostgreSQLLinkedServiceTypeProperties postgreSQL linked service properties. -type PostgreSQLLinkedServiceTypeProperties struct { - // Server - Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Database - Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Schema - Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PostgreSQLLinkedServiceTypeProperties struct. -func (pslstp *PostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - pslstp.Server = server - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - pslstp.Database = databaseVar - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - pslstp.Schema = schema - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - pslstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - pslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - pslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PrestoLinkedService presto server linked service. -type PrestoLinkedService struct { - // PrestoLinkedServiceTypeProperties - Presto server linked service properties. - *PrestoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PrestoLinkedService. -func (pls PrestoLinkedService) MarshalJSON() ([]byte, error) { - pls.Type = TypePresto - objectMap := make(map[string]interface{}) - if pls.PrestoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = pls.PrestoLinkedServiceTypeProperties - } - if pls.ConnectVia != nil { - objectMap["connectVia"] = pls.ConnectVia - } - if pls.Description != nil { - objectMap["description"] = pls.Description - } - if pls.Parameters != nil { - objectMap["parameters"] = pls.Parameters - } - if pls.Annotations != nil { - objectMap["annotations"] = pls.Annotations - } - if pls.Type != "" { - objectMap["type"] = pls.Type - } - for k, v := range pls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return &pls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &pls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PrestoLinkedService struct. -func (pls *PrestoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var prestoLinkedServiceTypeProperties PrestoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &prestoLinkedServiceTypeProperties) - if err != nil { - return err - } - pls.PrestoLinkedServiceTypeProperties = &prestoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pls.AdditionalProperties == nil { - pls.AdditionalProperties = make(map[string]interface{}) - } - pls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - pls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PrestoLinkedServiceTypeProperties presto server linked service properties. -type PrestoLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Presto server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // ServerVersion - The version of the Presto server. (i.e. 0.148-t) - ServerVersion interface{} `json:"serverVersion,omitempty"` - // Catalog - The catalog context for all request against the server. - Catalog interface{} `json:"catalog,omitempty"` - // Port - The TCP port that the Presto server uses to listen for client connections. The default value is 8080. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication mechanism used to connect to the Presto server. Possible values include: 'PrestoAuthenticationTypeAnonymous', 'PrestoAuthenticationTypeLDAP' - AuthenticationType PrestoAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the Presto server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // AllowHostNameCNMismatch - Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // TimeZoneID - The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. - TimeZoneID interface{} `json:"timeZoneID,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for PrestoLinkedServiceTypeProperties struct. -func (plstp *PrestoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - plstp.Host = host - } - case "serverVersion": - if v != nil { - var serverVersion interface{} - err = json.Unmarshal(*v, &serverVersion) - if err != nil { - return err - } - plstp.ServerVersion = serverVersion - } - case "catalog": - if v != nil { - var catalog interface{} - err = json.Unmarshal(*v, &catalog) - if err != nil { - return err - } - plstp.Catalog = catalog - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - plstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType PrestoAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - plstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - plstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - plstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - plstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - plstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - plstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - plstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - plstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "timeZoneID": - if v != nil { - var timeZoneID interface{} - err = json.Unmarshal(*v, &timeZoneID) - if err != nil { - return err - } - plstp.TimeZoneID = timeZoneID - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - plstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PrestoObjectDataset presto server dataset. -type PrestoObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PrestoObjectDataset. -func (pod PrestoObjectDataset) MarshalJSON() ([]byte, error) { - pod.Type = TypePrestoObject - objectMap := make(map[string]interface{}) - if pod.Description != nil { - objectMap["description"] = pod.Description - } - objectMap["structure"] = pod.Structure - if pod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pod.LinkedServiceName - } - if pod.Parameters != nil { - objectMap["parameters"] = pod.Parameters - } - if pod.Annotations != nil { - objectMap["annotations"] = pod.Annotations - } - if pod.Type != "" { - objectMap["type"] = pod.Type - } - for k, v := range pod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return &pod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &pod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PrestoSource a copy activity Presto server source. -type PrestoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for PrestoSource. -func (ps PrestoSource) MarshalJSON() ([]byte, error) { - ps.Type = TypePrestoSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ps.Query - objectMap["sourceRetryCount"] = ps.SourceRetryCount - objectMap["sourceRetryWait"] = ps.SourceRetryWait - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsPrestoSource() (*PrestoSource, bool) { - return &ps, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ps, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QuickBooksLinkedService quickBooks server linked service. -type QuickBooksLinkedService struct { - // QuickBooksLinkedServiceTypeProperties - QuickBooks server linked service properties. - *QuickBooksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) MarshalJSON() ([]byte, error) { - qbls.Type = TypeQuickBooks - objectMap := make(map[string]interface{}) - if qbls.QuickBooksLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = qbls.QuickBooksLinkedServiceTypeProperties - } - if qbls.ConnectVia != nil { - objectMap["connectVia"] = qbls.ConnectVia - } - if qbls.Description != nil { - objectMap["description"] = qbls.Description - } - if qbls.Parameters != nil { - objectMap["parameters"] = qbls.Parameters - } - if qbls.Annotations != nil { - objectMap["annotations"] = qbls.Annotations - } - if qbls.Type != "" { - objectMap["type"] = qbls.Type - } - for k, v := range qbls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return &qbls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &qbls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for QuickBooksLinkedService struct. -func (qbls *QuickBooksLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var quickBooksLinkedServiceTypeProperties QuickBooksLinkedServiceTypeProperties - err = json.Unmarshal(*v, &quickBooksLinkedServiceTypeProperties) - if err != nil { - return err - } - qbls.QuickBooksLinkedServiceTypeProperties = &quickBooksLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if qbls.AdditionalProperties == nil { - qbls.AdditionalProperties = make(map[string]interface{}) - } - qbls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - qbls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - qbls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - qbls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - qbls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - qbls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QuickBooksLinkedServiceTypeProperties quickBooks server linked service properties. -type QuickBooksLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // CompanyID - The company ID of the QuickBooks company to authorize. - CompanyID interface{} `json:"companyId,omitempty"` - // AccessToken - The access token for OAuth 1.0 authentication. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // AccessTokenSecret - The access token secret for OAuth 1.0 authentication. - AccessTokenSecret BasicSecretBase `json:"accessTokenSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for QuickBooksLinkedServiceTypeProperties struct. -func (qblstp *QuickBooksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - qblstp.Endpoint = endpoint - } - case "companyId": - if v != nil { - var companyID interface{} - err = json.Unmarshal(*v, &companyID) - if err != nil { - return err - } - qblstp.CompanyID = companyID - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - qblstp.AccessToken = accessToken - } - case "accessTokenSecret": - if v != nil { - accessTokenSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - qblstp.AccessTokenSecret = accessTokenSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - qblstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - qblstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QuickBooksObjectDataset quickBooks server dataset. -type QuickBooksObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) MarshalJSON() ([]byte, error) { - qbod.Type = TypeQuickBooksObject - objectMap := make(map[string]interface{}) - if qbod.Description != nil { - objectMap["description"] = qbod.Description - } - objectMap["structure"] = qbod.Structure - if qbod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = qbod.LinkedServiceName - } - if qbod.Parameters != nil { - objectMap["parameters"] = qbod.Parameters - } - if qbod.Annotations != nil { - objectMap["annotations"] = qbod.Annotations - } - if qbod.Type != "" { - objectMap["type"] = qbod.Type - } - for k, v := range qbod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return &qbod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &qbod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QuickBooksSource a copy activity QuickBooks server source. -type QuickBooksSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for QuickBooksSource. -func (qbs QuickBooksSource) MarshalJSON() ([]byte, error) { - qbs.Type = TypeQuickBooksSource - objectMap := make(map[string]interface{}) - objectMap["query"] = qbs.Query - objectMap["sourceRetryCount"] = qbs.SourceRetryCount - objectMap["sourceRetryWait"] = qbs.SourceRetryWait - if qbs.Type != "" { - objectMap["type"] = qbs.Type - } - for k, v := range qbs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return &qbs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsBasicCopySource() (BasicCopySource, bool) { - return &qbs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RecurrenceSchedule the recurrence schedule. -type RecurrenceSchedule struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Minutes - The minutes. - Minutes *[]int32 `json:"minutes,omitempty"` - // Hours - The hours. - Hours *[]int32 `json:"hours,omitempty"` - // WeekDays - The days of the week. - WeekDays *[]DaysOfWeek `json:"weekDays,omitempty"` - // MonthDays - The month days. - MonthDays *[]int32 `json:"monthDays,omitempty"` - // MonthlyOccurrences - The monthly occurrences. - MonthlyOccurrences *[]RecurrenceScheduleOccurrence `json:"monthlyOccurrences,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for RecurrenceSchedule. -func (rs RecurrenceSchedule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rs.Minutes != nil { - objectMap["minutes"] = rs.Minutes - } - if rs.Hours != nil { - objectMap["hours"] = rs.Hours - } - if rs.WeekDays != nil { - objectMap["weekDays"] = rs.WeekDays - } - if rs.MonthDays != nil { - objectMap["monthDays"] = rs.MonthDays - } - if rs.MonthlyOccurrences != nil { - objectMap["monthlyOccurrences"] = rs.MonthlyOccurrences - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RecurrenceScheduleOccurrence the recurrence schedule occurence. -type RecurrenceScheduleOccurrence struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Day - The day of the week. Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' - Day DayOfWeek `json:"day,omitempty"` - // Occurrence - The occurrence. - Occurrence *int32 `json:"occurrence,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for RecurrenceScheduleOccurrence. -func (rso RecurrenceScheduleOccurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rso.Day != "" { - objectMap["day"] = rso.Day - } - if rso.Occurrence != nil { - objectMap["occurrence"] = rso.Occurrence - } - for k, v := range rso.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RedirectIncompatibleRowSettings redirect incompatible row settings -type RedirectIncompatibleRowSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // LinkedServiceName - Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked service used for redirecting incompatible row. Must be specified if redirectIncompatibleRowSettings is specified. Type: string (or Expression with resultType string). - LinkedServiceName interface{} `json:"linkedServiceName,omitempty"` - // Path - The path for storing the redirect incompatible row data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for RedirectIncompatibleRowSettings. -func (rirs RedirectIncompatibleRowSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["linkedServiceName"] = rirs.LinkedServiceName - objectMap["path"] = rirs.Path - for k, v := range rirs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RedshiftUnloadSettings the Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift -// with unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then copied into the -// targeted sink from the interim S3. -type RedshiftUnloadSettings struct { - // S3LinkedServiceName - The name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon Redshift source. - S3LinkedServiceName *LinkedServiceReference `json:"s3LinkedServiceName,omitempty"` - // BucketName - The bucket of the interim Amazon S3 which will be used to store the unloaded data from Amazon Redshift source. The bucket must be in the same region as the Amazon Redshift source. Type: string (or Expression with resultType string). - BucketName interface{} `json:"bucketName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RelationalSource a copy activity source for various relational databases. -type RelationalSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for RelationalSource. -func (rs RelationalSource) MarshalJSON() ([]byte, error) { - rs.Type = TypeRelationalSource - objectMap := make(map[string]interface{}) - objectMap["query"] = rs.Query - objectMap["sourceRetryCount"] = rs.SourceRetryCount - objectMap["sourceRetryWait"] = rs.SourceRetryWait - if rs.Type != "" { - objectMap["type"] = rs.Type - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsRelationalSource() (*RelationalSource, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsBasicCopySource() (BasicCopySource, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RelationalTableDataset the relational table dataset. -type RelationalTableDataset struct { - // RelationalTableDatasetTypeProperties - Relational table dataset properties. - *RelationalTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for RelationalTableDataset. -func (rtd RelationalTableDataset) MarshalJSON() ([]byte, error) { - rtd.Type = TypeRelationalTable - objectMap := make(map[string]interface{}) - if rtd.RelationalTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = rtd.RelationalTableDatasetTypeProperties - } - if rtd.Description != nil { - objectMap["description"] = rtd.Description - } - objectMap["structure"] = rtd.Structure - if rtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = rtd.LinkedServiceName - } - if rtd.Parameters != nil { - objectMap["parameters"] = rtd.Parameters - } - if rtd.Annotations != nil { - objectMap["annotations"] = rtd.Annotations - } - if rtd.Type != "" { - objectMap["type"] = rtd.Type - } - for k, v := range rtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return &rtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &rtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for RelationalTableDataset struct. -func (rtd *RelationalTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var relationalTableDatasetTypeProperties RelationalTableDatasetTypeProperties - err = json.Unmarshal(*v, &relationalTableDatasetTypeProperties) - if err != nil { - return err - } - rtd.RelationalTableDatasetTypeProperties = &relationalTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rtd.AdditionalProperties == nil { - rtd.AdditionalProperties = make(map[string]interface{}) - } - rtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - rtd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - rtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rtd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rtd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RelationalTableDatasetTypeProperties relational table dataset properties. -type RelationalTableDatasetTypeProperties struct { - // TableName - The relational table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Resource azure Data Factory top-level resource. -type Resource struct { - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Location - The resource location. - Location *string `json:"location,omitempty"` - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ResponsysLinkedService responsys linked service. -type ResponsysLinkedService struct { - // ResponsysLinkedServiceTypeProperties - Responsys linked service properties. - *ResponsysLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ResponsysLinkedService. -func (rls ResponsysLinkedService) MarshalJSON() ([]byte, error) { - rls.Type = TypeResponsys - objectMap := make(map[string]interface{}) - if rls.ResponsysLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = rls.ResponsysLinkedServiceTypeProperties - } - if rls.ConnectVia != nil { - objectMap["connectVia"] = rls.ConnectVia - } - if rls.Description != nil { - objectMap["description"] = rls.Description - } - if rls.Parameters != nil { - objectMap["parameters"] = rls.Parameters - } - if rls.Annotations != nil { - objectMap["annotations"] = rls.Annotations - } - if rls.Type != "" { - objectMap["type"] = rls.Type - } - for k, v := range rls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return &rls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &rls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ResponsysLinkedService struct. -func (rls *ResponsysLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var responsysLinkedServiceTypeProperties ResponsysLinkedServiceTypeProperties - err = json.Unmarshal(*v, &responsysLinkedServiceTypeProperties) - if err != nil { - return err - } - rls.ResponsysLinkedServiceTypeProperties = &responsysLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rls.AdditionalProperties == nil { - rls.AdditionalProperties = make(map[string]interface{}) - } - rls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - rls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ResponsysLinkedServiceTypeProperties responsys linked service properties. -type ResponsysLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Responsys server. - Endpoint interface{} `json:"endpoint,omitempty"` - // ClientID - The client ID associated with the Responsys application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with the Responsys application. Type: string (or Expression with resultType string). - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ResponsysLinkedServiceTypeProperties struct. -func (rlstp *ResponsysLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - rlstp.Endpoint = endpoint - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - rlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - rlstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - rlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - rlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - rlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - rlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ResponsysObjectDataset responsys dataset. -type ResponsysObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) MarshalJSON() ([]byte, error) { - rod.Type = TypeResponsysObject - objectMap := make(map[string]interface{}) - if rod.Description != nil { - objectMap["description"] = rod.Description - } - objectMap["structure"] = rod.Structure - if rod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = rod.LinkedServiceName - } - if rod.Parameters != nil { - objectMap["parameters"] = rod.Parameters - } - if rod.Annotations != nil { - objectMap["annotations"] = rod.Annotations - } - if rod.Type != "" { - objectMap["type"] = rod.Type - } - for k, v := range rod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return &rod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &rod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ResponsysSource a copy activity Responsys source. -type ResponsysSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ResponsysSource. -func (rs ResponsysSource) MarshalJSON() ([]byte, error) { - rs.Type = TypeResponsysSource - objectMap := make(map[string]interface{}) - objectMap["query"] = rs.Query - objectMap["sourceRetryCount"] = rs.SourceRetryCount - objectMap["sourceRetryWait"] = rs.SourceRetryWait - if rs.Type != "" { - objectMap["type"] = rs.Type - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsResponsysSource() (*ResponsysSource, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsBasicCopySource() (BasicCopySource, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// RetryPolicy execution policy for an activity. -type RetryPolicy struct { - // Count - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Count interface{} `json:"count,omitempty"` - // IntervalInSeconds - Interval between retries in seconds. Default is 30. - IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceLinkedService linked service for Salesforce. -type SalesforceLinkedService struct { - // SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. - *SalesforceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SalesforceLinkedService. -func (sls SalesforceLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeSalesforce - objectMap := make(map[string]interface{}) - if sls.SalesforceLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SalesforceLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedService struct. -func (sls *SalesforceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceLinkedServiceTypeProperties SalesforceLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SalesforceLinkedServiceTypeProperties = &salesforceLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceLinkedServiceTypeProperties salesforce linked service properties. -type SalesforceLinkedServiceTypeProperties struct { - // EnvironmentURL - The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. To copy data from custom domain, specify, for example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` - // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication of the Salesforce instance. - Password BasicSecretBase `json:"password,omitempty"` - // SecurityToken - The security token is required to remotely access Salesforce instance. - SecurityToken BasicSecretBase `json:"securityToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedServiceTypeProperties struct. -func (slstp *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "environmentUrl": - if v != nil { - var environmentURL interface{} - err = json.Unmarshal(*v, &environmentURL) - if err != nil { - return err - } - slstp.EnvironmentURL = environmentURL - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - slstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.Password = password - } - case "securityToken": - if v != nil { - securityToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.SecurityToken = securityToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceMarketingCloudLinkedService salesforce Marketing Cloud linked service. -type SalesforceMarketingCloudLinkedService struct { - // SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. - *SalesforceMarketingCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { - smcls.Type = TypeSalesforceMarketingCloud - objectMap := make(map[string]interface{}) - if smcls.SalesforceMarketingCloudLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = smcls.SalesforceMarketingCloudLinkedServiceTypeProperties - } - if smcls.ConnectVia != nil { - objectMap["connectVia"] = smcls.ConnectVia - } - if smcls.Description != nil { - objectMap["description"] = smcls.Description - } - if smcls.Parameters != nil { - objectMap["parameters"] = smcls.Parameters - } - if smcls.Annotations != nil { - objectMap["annotations"] = smcls.Annotations - } - if smcls.Type != "" { - objectMap["type"] = smcls.Type - } - for k, v := range smcls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return &smcls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &smcls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedService struct. -func (smcls *SalesforceMarketingCloudLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceMarketingCloudLinkedServiceTypeProperties SalesforceMarketingCloudLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceMarketingCloudLinkedServiceTypeProperties) - if err != nil { - return err - } - smcls.SalesforceMarketingCloudLinkedServiceTypeProperties = &salesforceMarketingCloudLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if smcls.AdditionalProperties == nil { - smcls.AdditionalProperties = make(map[string]interface{}) - } - smcls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - smcls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - smcls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - smcls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - smcls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - smcls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceMarketingCloudLinkedServiceTypeProperties salesforce Marketing Cloud linked service properties. -type SalesforceMarketingCloudLinkedServiceTypeProperties struct { - // ClientID - The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedServiceTypeProperties struct. -func (smclstp *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - smclstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - smclstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - smclstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - smclstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - smclstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - smclstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceMarketingCloudObjectDataset salesforce Marketing Cloud dataset. -type SalesforceMarketingCloudObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error) { - smcod.Type = TypeSalesforceMarketingCloudObject - objectMap := make(map[string]interface{}) - if smcod.Description != nil { - objectMap["description"] = smcod.Description - } - objectMap["structure"] = smcod.Structure - if smcod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = smcod.LinkedServiceName - } - if smcod.Parameters != nil { - objectMap["parameters"] = smcod.Parameters - } - if smcod.Annotations != nil { - objectMap["annotations"] = smcod.Annotations - } - if smcod.Type != "" { - objectMap["type"] = smcod.Type - } - for k, v := range smcod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return &smcod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &smcod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceMarketingCloudSource a copy activity Salesforce Marketing Cloud source. -type SalesforceMarketingCloudSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { - smcs.Type = TypeSalesforceMarketingCloudSource - objectMap := make(map[string]interface{}) - objectMap["query"] = smcs.Query - objectMap["sourceRetryCount"] = smcs.SourceRetryCount - objectMap["sourceRetryWait"] = smcs.SourceRetryWait - if smcs.Type != "" { - objectMap["type"] = smcs.Type - } - for k, v := range smcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return &smcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBasicCopySource() (BasicCopySource, bool) { - return &smcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceObjectDataset the Salesforce object dataset. -type SalesforceObjectDataset struct { - // SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. - *SalesforceObjectDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeSalesforceObject - objectMap := make(map[string]interface{}) - if sod.SalesforceObjectDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.SalesforceObjectDatasetTypeProperties - } - if sod.Description != nil { - objectMap["description"] = sod.Description - } - objectMap["structure"] = sod.Structure - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SalesforceObjectDataset struct. -func (sod *SalesforceObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceObjectDatasetTypeProperties SalesforceObjectDatasetTypeProperties - err = json.Unmarshal(*v, &salesforceObjectDatasetTypeProperties) - if err != nil { - return err - } - sod.SalesforceObjectDatasetTypeProperties = &salesforceObjectDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) - } - sod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sod.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sod.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sod.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceObjectDatasetTypeProperties salesforce object dataset properties. -type SalesforceObjectDatasetTypeProperties struct { - // ObjectAPIName - The Salesforce object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceSink a copy activity Salesforce sink. -type SalesforceSink struct { - // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'Insert', 'Upsert' - WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` - // ExternalIDFieldName - The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with resultType string). - ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` - // IgnoreNullValues - The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. Default value is false. If set it to true, it means ADF will leave the data in the destination object unchanged when doing upsert/update operation and insert defined default value when doing insert operation, versus ADF will update the data in the destination object to NULL when doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SalesforceSink. -func (ss SalesforceSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeSalesforceSink - objectMap := make(map[string]interface{}) - if ss.WriteBehavior != "" { - objectMap["writeBehavior"] = ss.WriteBehavior - } - objectMap["externalIdFieldName"] = ss.ExternalIDFieldName - objectMap["ignoreNullValues"] = ss.IgnoreNullValues - objectMap["writeBatchSize"] = ss.WriteBatchSize - objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout - objectMap["sinkRetryCount"] = ss.SinkRetryCount - objectMap["sinkRetryWait"] = ss.SinkRetryWait - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSalesforceSink() (*SalesforceSink, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SalesforceSource a copy activity Salesforce source. -type SalesforceSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is Query. Possible values include: 'Query', 'QueryAll' - ReadBehavior SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SalesforceSource. -func (ss SalesforceSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSalesforceSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ss.Query - if ss.ReadBehavior != "" { - objectMap["readBehavior"] = ss.ReadBehavior - } - objectMap["sourceRetryCount"] = ss.SourceRetryCount - objectMap["sourceRetryWait"] = ss.SourceRetryWait - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceSource() (*SalesforceSource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapBWLinkedService SAP Business Warehouse Linked Service. -type SapBWLinkedService struct { - // SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. - *SapBWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapBWLinkedService. -func (sbls SapBWLinkedService) MarshalJSON() ([]byte, error) { - sbls.Type = TypeSapBW - objectMap := make(map[string]interface{}) - if sbls.SapBWLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sbls.SapBWLinkedServiceTypeProperties - } - if sbls.ConnectVia != nil { - objectMap["connectVia"] = sbls.ConnectVia - } - if sbls.Description != nil { - objectMap["description"] = sbls.Description - } - if sbls.Parameters != nil { - objectMap["parameters"] = sbls.Parameters - } - if sbls.Annotations != nil { - objectMap["annotations"] = sbls.Annotations - } - if sbls.Type != "" { - objectMap["type"] = sbls.Type - } - for k, v := range sbls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return &sbls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sbls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapBWLinkedService struct. -func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapBWLinkedServiceTypeProperties SapBWLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapBWLinkedServiceTypeProperties) - if err != nil { - return err - } - sbls.SapBWLinkedServiceTypeProperties = &sapBWLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sbls.AdditionalProperties == nil { - sbls.AdditionalProperties = make(map[string]interface{}) - } - sbls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sbls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sbls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sbls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sbls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sbls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapBWLinkedServiceTypeProperties properties specific to this linked service type. -type SapBWLinkedServiceTypeProperties struct { - // Server - Host name of the SAP BW instance. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // SystemNumber - System number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` - // ClientID - Client ID of the client on the BW system. (Usually a three-digit decimal number represented as a string) Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // UserName - Username to access the SAP BW server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP BW server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapBWLinkedServiceTypeProperties struct. -func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - sblstp.Server = server - } - case "systemNumber": - if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) - if err != nil { - return err - } - sblstp.SystemNumber = systemNumber - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - sblstp.ClientID = clientID - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sblstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sblstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sblstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapCloudForCustomerLinkedService linked service for SAP Cloud for Customer. -type SapCloudForCustomerLinkedService struct { - // SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. - *SapCloudForCustomerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { - scfcls.Type = TypeSapCloudForCustomer - objectMap := make(map[string]interface{}) - if scfcls.SapCloudForCustomerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = scfcls.SapCloudForCustomerLinkedServiceTypeProperties - } - if scfcls.ConnectVia != nil { - objectMap["connectVia"] = scfcls.ConnectVia - } - if scfcls.Description != nil { - objectMap["description"] = scfcls.Description - } - if scfcls.Parameters != nil { - objectMap["parameters"] = scfcls.Parameters - } - if scfcls.Annotations != nil { - objectMap["annotations"] = scfcls.Annotations - } - if scfcls.Type != "" { - objectMap["type"] = scfcls.Type - } - for k, v := range scfcls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return &scfcls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &scfcls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedService struct. -func (scfcls *SapCloudForCustomerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapCloudForCustomerLinkedServiceTypeProperties SapCloudForCustomerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapCloudForCustomerLinkedServiceTypeProperties) - if err != nil { - return err - } - scfcls.SapCloudForCustomerLinkedServiceTypeProperties = &sapCloudForCustomerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if scfcls.AdditionalProperties == nil { - scfcls.AdditionalProperties = make(map[string]interface{}) - } - scfcls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - scfcls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - scfcls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - scfcls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - scfcls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - scfcls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapCloudForCustomerLinkedServiceTypeProperties SAP Cloud for Customer linked service properties. -type SapCloudForCustomerLinkedServiceTypeProperties struct { - // URL - The URL of SAP Cloud for Customer OData API. For example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Username - The username for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedServiceTypeProperties struct. -func (scfclstp *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - scfclstp.URL = URL - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - scfclstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - scfclstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - scfclstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapCloudForCustomerResourceDataset the path of the SAP Cloud for Customer OData entity. -type SapCloudForCustomerResourceDataset struct { - // SapCloudForCustomerResourceDatasetTypeProperties - SAP Cloud For Customer OData resource dataset properties. - *SapCloudForCustomerResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error) { - scfcrd.Type = TypeSapCloudForCustomerResource - objectMap := make(map[string]interface{}) - if scfcrd.SapCloudForCustomerResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = scfcrd.SapCloudForCustomerResourceDatasetTypeProperties - } - if scfcrd.Description != nil { - objectMap["description"] = scfcrd.Description - } - objectMap["structure"] = scfcrd.Structure - if scfcrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = scfcrd.LinkedServiceName - } - if scfcrd.Parameters != nil { - objectMap["parameters"] = scfcrd.Parameters - } - if scfcrd.Annotations != nil { - objectMap["annotations"] = scfcrd.Annotations - } - if scfcrd.Type != "" { - objectMap["type"] = scfcrd.Type - } - for k, v := range scfcrd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return &scfcrd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &scfcrd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerResourceDataset struct. -func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapCloudForCustomerResourceDatasetTypeProperties SapCloudForCustomerResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapCloudForCustomerResourceDatasetTypeProperties) - if err != nil { - return err - } - scfcrd.SapCloudForCustomerResourceDatasetTypeProperties = &sapCloudForCustomerResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if scfcrd.AdditionalProperties == nil { - scfcrd.AdditionalProperties = make(map[string]interface{}) - } - scfcrd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - scfcrd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - scfcrd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - scfcrd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - scfcrd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - scfcrd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - scfcrd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapCloudForCustomerResourceDatasetTypeProperties sap Cloud For Customer OData resource dataset properties. -type SapCloudForCustomerResourceDatasetTypeProperties struct { - // Path - The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapCloudForCustomerSink a copy activity SAP Cloud for Customer sink. -type SapCloudForCustomerSink struct { - // WriteBehavior - The write behavior for the operation. Default is 'Insert'. Possible values include: 'SapCloudForCustomerSinkWriteBehaviorInsert', 'SapCloudForCustomerSinkWriteBehaviorUpdate' - WriteBehavior SapCloudForCustomerSinkWriteBehavior `json:"writeBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { - scfcs.Type = TypeSapCloudForCustomerSink - objectMap := make(map[string]interface{}) - if scfcs.WriteBehavior != "" { - objectMap["writeBehavior"] = scfcs.WriteBehavior - } - objectMap["writeBatchSize"] = scfcs.WriteBatchSize - objectMap["writeBatchTimeout"] = scfcs.WriteBatchTimeout - objectMap["sinkRetryCount"] = scfcs.SinkRetryCount - objectMap["sinkRetryWait"] = scfcs.SinkRetryWait - if scfcs.Type != "" { - objectMap["type"] = scfcs.Type - } - for k, v := range scfcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return &scfcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBasicCopySink() (BasicCopySink, bool) { - return &scfcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapCloudForCustomerSource a copy activity source for SAP Cloud for Customer source. -type SapCloudForCustomerSource struct { - // Query - SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { - scfcs.Type = TypeSapCloudForCustomerSource - objectMap := make(map[string]interface{}) - objectMap["query"] = scfcs.Query - objectMap["sourceRetryCount"] = scfcs.SourceRetryCount - objectMap["sourceRetryWait"] = scfcs.SourceRetryWait - if scfcs.Type != "" { - objectMap["type"] = scfcs.Type - } - for k, v := range scfcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return &scfcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &scfcs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapEccLinkedService linked service for SAP ERP Central Component(SAP ECC). -type SapEccLinkedService struct { - // SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. - *SapEccLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapEccLinkedService. -func (sels SapEccLinkedService) MarshalJSON() ([]byte, error) { - sels.Type = TypeSapEcc - objectMap := make(map[string]interface{}) - if sels.SapEccLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sels.SapEccLinkedServiceTypeProperties - } - if sels.ConnectVia != nil { - objectMap["connectVia"] = sels.ConnectVia - } - if sels.Description != nil { - objectMap["description"] = sels.Description - } - if sels.Parameters != nil { - objectMap["parameters"] = sels.Parameters - } - if sels.Annotations != nil { - objectMap["annotations"] = sels.Annotations - } - if sels.Type != "" { - objectMap["type"] = sels.Type - } - for k, v := range sels.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return &sels, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sels, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapEccLinkedService struct. -func (sels *SapEccLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapEccLinkedServiceTypeProperties SapEccLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapEccLinkedServiceTypeProperties) - if err != nil { - return err - } - sels.SapEccLinkedServiceTypeProperties = &sapEccLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sels.AdditionalProperties == nil { - sels.AdditionalProperties = make(map[string]interface{}) - } - sels.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sels.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sels.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sels.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sels.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sels.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapEccLinkedServiceTypeProperties SAP ECC linked service properties. -type SapEccLinkedServiceTypeProperties struct { - // URL - The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). - URL *string `json:"url,omitempty"` - // Username - The username for Basic authentication. Type: string (or Expression with resultType string). - Username *string `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string (or Expression with resultType string). - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapEccLinkedServiceTypeProperties struct. -func (selstp *SapEccLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL string - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - selstp.URL = &URL - } - case "username": - if v != nil { - var username string - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - selstp.Username = &username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - selstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - selstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapEccResourceDataset the path of the SAP ECC OData entity. -type SapEccResourceDataset struct { - // SapEccResourceDatasetTypeProperties - SAP ECC OData resource dataset properties. - *SapEccResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapEccResourceDataset. -func (serd SapEccResourceDataset) MarshalJSON() ([]byte, error) { - serd.Type = TypeSapEccResource - objectMap := make(map[string]interface{}) - if serd.SapEccResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = serd.SapEccResourceDatasetTypeProperties - } - if serd.Description != nil { - objectMap["description"] = serd.Description - } - objectMap["structure"] = serd.Structure - if serd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = serd.LinkedServiceName - } - if serd.Parameters != nil { - objectMap["parameters"] = serd.Parameters - } - if serd.Annotations != nil { - objectMap["annotations"] = serd.Annotations - } - if serd.Type != "" { - objectMap["type"] = serd.Type - } - for k, v := range serd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return &serd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &serd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapEccResourceDataset struct. -func (serd *SapEccResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapEccResourceDatasetTypeProperties SapEccResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapEccResourceDatasetTypeProperties) - if err != nil { - return err - } - serd.SapEccResourceDatasetTypeProperties = &sapEccResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if serd.AdditionalProperties == nil { - serd.AdditionalProperties = make(map[string]interface{}) - } - serd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - serd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - serd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - serd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - serd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - serd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - serd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapEccResourceDatasetTypeProperties sap ECC OData resource dataset properties. -type SapEccResourceDatasetTypeProperties struct { - // Path - The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - Path *string `json:"path,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapEccSource a copy activity source for SAP ECC source. -type SapEccSource struct { - // Query - SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query *string `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapEccSource. -func (ses SapEccSource) MarshalJSON() ([]byte, error) { - ses.Type = TypeSapEccSource - objectMap := make(map[string]interface{}) - if ses.Query != nil { - objectMap["query"] = ses.Query - } - objectMap["sourceRetryCount"] = ses.SourceRetryCount - objectMap["sourceRetryWait"] = ses.SourceRetryWait - if ses.Type != "" { - objectMap["type"] = ses.Type - } - for k, v := range ses.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapEccSource() (*SapEccSource, bool) { - return &ses, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ses, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapHanaLinkedService SAP HANA Linked Service. -type SapHanaLinkedService struct { - // SapHanaLinkedServiceProperties - Properties specific to this linked service type. - *SapHanaLinkedServiceProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SapHanaLinkedService. -func (shls SapHanaLinkedService) MarshalJSON() ([]byte, error) { - shls.Type = TypeSapHana - objectMap := make(map[string]interface{}) - if shls.SapHanaLinkedServiceProperties != nil { - objectMap["typeProperties"] = shls.SapHanaLinkedServiceProperties - } - if shls.ConnectVia != nil { - objectMap["connectVia"] = shls.ConnectVia - } - if shls.Description != nil { - objectMap["description"] = shls.Description - } - if shls.Parameters != nil { - objectMap["parameters"] = shls.Parameters - } - if shls.Annotations != nil { - objectMap["annotations"] = shls.Annotations - } - if shls.Type != "" { - objectMap["type"] = shls.Type - } - for k, v := range shls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return &shls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &shls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedService struct. -func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapHanaLinkedServiceProperties SapHanaLinkedServiceProperties - err = json.Unmarshal(*v, &sapHanaLinkedServiceProperties) - if err != nil { - return err - } - shls.SapHanaLinkedServiceProperties = &sapHanaLinkedServiceProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shls.AdditionalProperties == nil { - shls.AdditionalProperties = make(map[string]interface{}) - } - shls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - shls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - shls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - shls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - shls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SapHanaLinkedServiceProperties properties specific to this linked service type. -type SapHanaLinkedServiceProperties struct { - // Server - Host name of the SAP HANA server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the SAP HANA server. Possible values include: 'SapHanaAuthenticationTypeBasic', 'SapHanaAuthenticationTypeWindows' - AuthenticationType SapHanaAuthenticationType `json:"authenticationType,omitempty"` - // UserName - Username to access the SAP HANA server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP HANA server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedServiceProperties struct. -func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - shlsp.Server = server - } - case "authenticationType": - if v != nil { - var authenticationType SapHanaAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - shlsp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - shlsp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - shlsp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - shlsp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ScheduleTrigger trigger that creates pipeline runs periodically, on schedule. -type ScheduleTrigger struct { - // ScheduleTriggerTypeProperties - Schedule Trigger properties. - *ScheduleTriggerTypeProperties `json:"typeProperties,omitempty"` - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Type - Possible values include: 'TypeTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ScheduleTrigger. -func (st ScheduleTrigger) MarshalJSON() ([]byte, error) { - st.Type = TypeScheduleTrigger - objectMap := make(map[string]interface{}) - if st.ScheduleTriggerTypeProperties != nil { - objectMap["typeProperties"] = st.ScheduleTriggerTypeProperties - } - if st.Pipelines != nil { - objectMap["pipelines"] = st.Pipelines - } - if st.Description != nil { - objectMap["description"] = st.Description - } - if st.RuntimeState != "" { - objectMap["runtimeState"] = st.RuntimeState - } - if st.Type != "" { - objectMap["type"] = st.Type - } - for k, v := range st.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsScheduleTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return &st, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &st, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &st, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ScheduleTrigger struct. -func (st *ScheduleTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var scheduleTriggerTypeProperties ScheduleTriggerTypeProperties - err = json.Unmarshal(*v, &scheduleTriggerTypeProperties) - if err != nil { - return err - } - st.ScheduleTriggerTypeProperties = &scheduleTriggerTypeProperties - } - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - st.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if st.AdditionalProperties == nil { - st.AdditionalProperties = make(map[string]interface{}) - } - st.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - st.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - st.RuntimeState = runtimeState - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - st.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ScheduleTriggerRecurrence the workflow trigger recurrence. -type ScheduleTriggerRecurrence struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Frequency - The frequency. Possible values include: 'NotSpecified', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' - Frequency RecurrenceFrequency `json:"frequency,omitempty"` - // Interval - The interval. - Interval *int32 `json:"interval,omitempty"` - // StartTime - The start time. - StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time. - EndTime *date.Time `json:"endTime,omitempty"` - // TimeZone - The time zone. - TimeZone *string `json:"timeZone,omitempty"` - // Schedule - The recurrence schedule. - Schedule *RecurrenceSchedule `json:"schedule,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ScheduleTriggerRecurrence. -func (str ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if str.Frequency != "" { - objectMap["frequency"] = str.Frequency - } - if str.Interval != nil { - objectMap["interval"] = str.Interval - } - if str.StartTime != nil { - objectMap["startTime"] = str.StartTime - } - if str.EndTime != nil { - objectMap["endTime"] = str.EndTime - } - if str.TimeZone != nil { - objectMap["timeZone"] = str.TimeZone - } - if str.Schedule != nil { - objectMap["schedule"] = str.Schedule - } - for k, v := range str.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ScheduleTriggerTypeProperties schedule Trigger properties. -type ScheduleTriggerTypeProperties struct { - // Recurrence - Recurrence schedule configuration. - Recurrence *ScheduleTriggerRecurrence `json:"recurrence,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicSecretBase the base definition of a secret type. -type BasicSecretBase interface { - AsSecureString() (*SecureString, bool) - AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) - AsSecretBase() (*SecretBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SecretBase the base definition of a secret type. -type SecretBase struct { - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` -} - -func unmarshalBasicSecretBase(body []byte) (BasicSecretBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeSecureString): - var ss SecureString - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeAzureKeyVaultSecret): - var akvsr AzureKeyVaultSecretReference - err := json.Unmarshal(body, &akvsr) - return akvsr, err - default: - var sb SecretBase - err := json.Unmarshal(body, &sb) - return sb, err - } -} -func unmarshalBasicSecretBaseArray(body []byte) ([]BasicSecretBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sbArray := make([]BasicSecretBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sb, err := unmarshalBasicSecretBase(*rawMessage) - if err != nil { - return nil, err - } - sbArray[index] = sb - } - return sbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SecretBase. -func (sb SecretBase) MarshalJSON() ([]byte, error) { - sb.Type = TypeSecretBase - objectMap := make(map[string]interface{}) - if sb.Type != "" { - objectMap["type"] = sb.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSecureString is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsSecureString() (*SecureString, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSecretBase is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsSecretBase() (*SecretBase, bool) { - return &sb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicSecretBase is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsBasicSecretBase() (BasicSecretBase, bool) { - return &sb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SecureString azure Data Factory secure string definition. The string value will be masked with asterisks '*' -// during Get or List API calls. -type SecureString struct { - // Value - Value of secure string. - Value *string `json:"value,omitempty"` - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SecureString. -func (ss SecureString) MarshalJSON() ([]byte, error) { - ss.Type = TypeSecureString - objectMap := make(map[string]interface{}) - if ss.Value != nil { - objectMap["value"] = ss.Value - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSecureString is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsSecureString() (*SecureString, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSecretBase is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsSecretBase() (*SecretBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicSecretBase is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsBasicSecretBase() (BasicSecretBase, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SelfHostedIntegrationRuntime self-hosted integration runtime. -type SelfHostedIntegrationRuntime struct { - // LinkedIntegrationRuntimeTypeProperties - When this property is not null, means this is a linked integration runtime. The property is used to access original integration runtime. - *LinkedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Integration runtime description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeIntegrationRuntime', 'TypeSelfHosted', 'TypeManaged' - Type TypeBasicIntegrationRuntime `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { - shir.Type = TypeSelfHosted - objectMap := make(map[string]interface{}) - if shir.LinkedIntegrationRuntimeTypeProperties != nil { - objectMap["typeProperties"] = shir.LinkedIntegrationRuntimeTypeProperties - } - if shir.Description != nil { - objectMap["description"] = shir.Description - } - if shir.Type != "" { - objectMap["type"] = shir.Type - } - for k, v := range shir.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { - return &shir, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { - return &shir, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntime struct. -func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var linkedIntegrationRuntimeTypeProperties LinkedIntegrationRuntimeTypeProperties - err = json.Unmarshal(*v, &linkedIntegrationRuntimeTypeProperties) - if err != nil { - return err - } - shir.LinkedIntegrationRuntimeTypeProperties = &linkedIntegrationRuntimeTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shir.AdditionalProperties == nil { - shir.AdditionalProperties = make(map[string]interface{}) - } - shir.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - shir.Description = &description - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntime - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shir.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SelfHostedIntegrationRuntimeNode properties of Self-hosted integration runtime node. -type SelfHostedIntegrationRuntimeNode struct { - autorest.Response `json:"-"` - // NodeName - Name of the integration runtime node. - NodeName *string `json:"nodeName,omitempty"` - // MachineName - Machine name of the integration runtime node. - MachineName *string `json:"machineName,omitempty"` - // HostServiceURI - URI for the host machine of the integration runtime. - HostServiceURI *string `json:"hostServiceUri,omitempty"` - // Status - Status of the integration runtime node. Possible values include: 'SelfHostedIntegrationRuntimeNodeStatusNeedRegistration', 'SelfHostedIntegrationRuntimeNodeStatusOnline', 'SelfHostedIntegrationRuntimeNodeStatusLimited', 'SelfHostedIntegrationRuntimeNodeStatusOffline', 'SelfHostedIntegrationRuntimeNodeStatusUpgrading', 'SelfHostedIntegrationRuntimeNodeStatusInitializing', 'SelfHostedIntegrationRuntimeNodeStatusInitializeFailed' - Status SelfHostedIntegrationRuntimeNodeStatus `json:"status,omitempty"` - // Capabilities - The integration runtime capabilities dictionary - Capabilities map[string]*string `json:"capabilities"` - // VersionStatus - Status of the integration runtime node version. - VersionStatus *string `json:"versionStatus,omitempty"` - // Version - Version of the integration runtime node. - Version *string `json:"version,omitempty"` - // RegisterTime - The time at which the integration runtime node was registered in ISO8601 format. - RegisterTime *date.Time `json:"registerTime,omitempty"` - // LastConnectTime - The most recent time at which the integration runtime was connected in ISO8601 format. - LastConnectTime *date.Time `json:"lastConnectTime,omitempty"` - // ExpiryTime - The time at which the integration runtime will expire in ISO8601 format. - ExpiryTime *date.Time `json:"expiryTime,omitempty"` - // LastStartTime - The time the node last started up. - LastStartTime *date.Time `json:"lastStartTime,omitempty"` - // LastStopTime - The integration runtime node last stop time. - LastStopTime *date.Time `json:"lastStopTime,omitempty"` - // LastUpdateResult - The result of the last integration runtime node update. Possible values include: 'Succeed', 'Fail' - LastUpdateResult IntegrationRuntimeUpdateResult `json:"lastUpdateResult,omitempty"` - // LastStartUpdateTime - The last time for the integration runtime node update start. - LastStartUpdateTime *date.Time `json:"lastStartUpdateTime,omitempty"` - // LastEndUpdateTime - The last time for the integration runtime node update end. - LastEndUpdateTime *date.Time `json:"lastEndUpdateTime,omitempty"` - // IsActiveDispatcher - Indicates whether this node is the active dispatcher for integration runtime requests. - IsActiveDispatcher *bool `json:"isActiveDispatcher,omitempty"` - // ConcurrentJobsLimit - Maximum concurrent jobs on the integration runtime node. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` - // MaxConcurrentJobs - The maximum concurrent jobs in this integration runtime. - MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeNode. -func (shirn SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if shirn.NodeName != nil { - objectMap["nodeName"] = shirn.NodeName - } - if shirn.MachineName != nil { - objectMap["machineName"] = shirn.MachineName - } - if shirn.HostServiceURI != nil { - objectMap["hostServiceUri"] = shirn.HostServiceURI - } - if shirn.Status != "" { - objectMap["status"] = shirn.Status - } - if shirn.Capabilities != nil { - objectMap["capabilities"] = shirn.Capabilities - } - if shirn.VersionStatus != nil { - objectMap["versionStatus"] = shirn.VersionStatus - } - if shirn.Version != nil { - objectMap["version"] = shirn.Version - } - if shirn.RegisterTime != nil { - objectMap["registerTime"] = shirn.RegisterTime - } - if shirn.LastConnectTime != nil { - objectMap["lastConnectTime"] = shirn.LastConnectTime - } - if shirn.ExpiryTime != nil { - objectMap["expiryTime"] = shirn.ExpiryTime - } - if shirn.LastStartTime != nil { - objectMap["lastStartTime"] = shirn.LastStartTime - } - if shirn.LastStopTime != nil { - objectMap["lastStopTime"] = shirn.LastStopTime - } - if shirn.LastUpdateResult != "" { - objectMap["lastUpdateResult"] = shirn.LastUpdateResult - } - if shirn.LastStartUpdateTime != nil { - objectMap["lastStartUpdateTime"] = shirn.LastStartUpdateTime - } - if shirn.LastEndUpdateTime != nil { - objectMap["lastEndUpdateTime"] = shirn.LastEndUpdateTime - } - if shirn.IsActiveDispatcher != nil { - objectMap["isActiveDispatcher"] = shirn.IsActiveDispatcher - } - if shirn.ConcurrentJobsLimit != nil { - objectMap["concurrentJobsLimit"] = shirn.ConcurrentJobsLimit - } - if shirn.MaxConcurrentJobs != nil { - objectMap["maxConcurrentJobs"] = shirn.MaxConcurrentJobs - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SelfHostedIntegrationRuntimeStatus self-hosted integration runtime status. -type SelfHostedIntegrationRuntimeStatus struct { - // SelfHostedIntegrationRuntimeStatusTypeProperties - Self-hosted integration runtime status type properties. - *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline' - State IntegrationRuntimeState `json:"state,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' - Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - shirs.Type = TypeBasicIntegrationRuntimeStatusTypeSelfHosted - objectMap := make(map[string]interface{}) - if shirs.SelfHostedIntegrationRuntimeStatusTypeProperties != nil { - objectMap["typeProperties"] = shirs.SelfHostedIntegrationRuntimeStatusTypeProperties - } - if shirs.DataFactoryName != nil { - objectMap["dataFactoryName"] = shirs.DataFactoryName - } - if shirs.State != "" { - objectMap["state"] = shirs.State - } - if shirs.Type != "" { - objectMap["type"] = shirs.Type - } - for k, v := range shirs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { - return &shirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { - return &shirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeStatus struct. -func (shirs *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var selfHostedIntegrationRuntimeStatusTypeProperties SelfHostedIntegrationRuntimeStatusTypeProperties - err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeStatusTypeProperties) - if err != nil { - return err - } - shirs.SelfHostedIntegrationRuntimeStatusTypeProperties = &selfHostedIntegrationRuntimeStatusTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shirs.AdditionalProperties == nil { - shirs.AdditionalProperties = make(map[string]interface{}) - } - shirs.AdditionalProperties[k] = additionalProperties - } - case "dataFactoryName": - if v != nil { - var dataFactoryName string - err = json.Unmarshal(*v, &dataFactoryName) - if err != nil { - return err - } - shirs.DataFactoryName = &dataFactoryName - } - case "state": - if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - shirs.State = state - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntimeStatus - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shirs.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SelfHostedIntegrationRuntimeStatusTypeProperties self-hosted integration runtime status type properties. -type SelfHostedIntegrationRuntimeStatusTypeProperties struct { - // CreateTime - The time at which the integration runtime was created, in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // TaskQueueID - The task queue id of the integration runtime. - TaskQueueID *string `json:"taskQueueId,omitempty"` - // InternalChannelEncryption - It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' - InternalChannelEncryption IntegrationRuntimeInternalChannelEncryptionMode `json:"internalChannelEncryption,omitempty"` - // Version - Version of the integration runtime. - Version *string `json:"version,omitempty"` - // Nodes - The list of nodes for this integration runtime. - Nodes *[]SelfHostedIntegrationRuntimeNode `json:"nodes,omitempty"` - // ScheduledUpdateDate - The date at which the integration runtime will be scheduled to update, in ISO8601 format. - ScheduledUpdateDate *date.Time `json:"scheduledUpdateDate,omitempty"` - // UpdateDelayOffset - The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours - UpdateDelayOffset *string `json:"updateDelayOffset,omitempty"` - // LocalTimeZoneOffset - The local time zone offset in hours. - LocalTimeZoneOffset *string `json:"localTimeZoneOffset,omitempty"` - // Capabilities - Object with additional information about integration runtime capabilities. - Capabilities map[string]*string `json:"capabilities"` - // ServiceUrls - The URLs for the services used in integration runtime backend service. - ServiceUrls *[]string `json:"serviceUrls,omitempty"` - // AutoUpdate - Whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'On', 'Off' - AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` - // VersionStatus - Status of the integration runtime version. - VersionStatus *string `json:"versionStatus,omitempty"` - // Links - The list of linked integration runtimes that are created to share with this integration runtime. - Links *[]LinkedIntegrationRuntime `json:"links,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatusTypeProperties. -func (shirstp SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if shirstp.CreateTime != nil { - objectMap["createTime"] = shirstp.CreateTime - } - if shirstp.TaskQueueID != nil { - objectMap["taskQueueId"] = shirstp.TaskQueueID - } - if shirstp.InternalChannelEncryption != "" { - objectMap["internalChannelEncryption"] = shirstp.InternalChannelEncryption - } - if shirstp.Version != nil { - objectMap["version"] = shirstp.Version - } - if shirstp.Nodes != nil { - objectMap["nodes"] = shirstp.Nodes - } - if shirstp.ScheduledUpdateDate != nil { - objectMap["scheduledUpdateDate"] = shirstp.ScheduledUpdateDate - } - if shirstp.UpdateDelayOffset != nil { - objectMap["updateDelayOffset"] = shirstp.UpdateDelayOffset - } - if shirstp.LocalTimeZoneOffset != nil { - objectMap["localTimeZoneOffset"] = shirstp.LocalTimeZoneOffset - } - if shirstp.Capabilities != nil { - objectMap["capabilities"] = shirstp.Capabilities - } - if shirstp.ServiceUrls != nil { - objectMap["serviceUrls"] = shirstp.ServiceUrls - } - if shirstp.AutoUpdate != "" { - objectMap["autoUpdate"] = shirstp.AutoUpdate - } - if shirstp.VersionStatus != nil { - objectMap["versionStatus"] = shirstp.VersionStatus - } - if shirstp.Links != nil { - objectMap["links"] = shirstp.Links - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ServiceNowLinkedService serviceNow server linked service. -type ServiceNowLinkedService struct { - // ServiceNowLinkedServiceTypeProperties - ServiceNow server linked service properties. - *ServiceNowLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) MarshalJSON() ([]byte, error) { - snls.Type = TypeServiceNow - objectMap := make(map[string]interface{}) - if snls.ServiceNowLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = snls.ServiceNowLinkedServiceTypeProperties - } - if snls.ConnectVia != nil { - objectMap["connectVia"] = snls.ConnectVia - } - if snls.Description != nil { - objectMap["description"] = snls.Description - } - if snls.Parameters != nil { - objectMap["parameters"] = snls.Parameters - } - if snls.Annotations != nil { - objectMap["annotations"] = snls.Annotations - } - if snls.Type != "" { - objectMap["type"] = snls.Type - } - for k, v := range snls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return &snls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &snls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedService struct. -func (snls *ServiceNowLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var serviceNowLinkedServiceTypeProperties ServiceNowLinkedServiceTypeProperties - err = json.Unmarshal(*v, &serviceNowLinkedServiceTypeProperties) - if err != nil { - return err - } - snls.ServiceNowLinkedServiceTypeProperties = &serviceNowLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if snls.AdditionalProperties == nil { - snls.AdditionalProperties = make(map[string]interface{}) - } - snls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - snls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - snls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - snls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - snls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - snls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ServiceNowLinkedServiceTypeProperties serviceNow server linked service properties. -type ServiceNowLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the ServiceNow server. (i.e. ServiceNowData.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // AuthenticationType - The authentication type to use. Possible values include: 'ServiceNowAuthenticationTypeBasic', 'ServiceNowAuthenticationTypeOAuth2' - AuthenticationType ServiceNowAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name for Basic and OAuth2 authentication. - Password BasicSecretBase `json:"password,omitempty"` - // ClientID - The client id for OAuth2 authentication. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret for OAuth2 authentication. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedServiceTypeProperties struct. -func (snlstp *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - snlstp.Endpoint = endpoint - } - case "authenticationType": - if v != nil { - var authenticationType ServiceNowAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - snlstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - snlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - snlstp.Password = password - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - snlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - snlstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - snlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - snlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - snlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - snlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ServiceNowObjectDataset serviceNow server dataset. -type ServiceNowObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) MarshalJSON() ([]byte, error) { - snod.Type = TypeServiceNowObject - objectMap := make(map[string]interface{}) - if snod.Description != nil { - objectMap["description"] = snod.Description - } - objectMap["structure"] = snod.Structure - if snod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = snod.LinkedServiceName - } - if snod.Parameters != nil { - objectMap["parameters"] = snod.Parameters - } - if snod.Annotations != nil { - objectMap["annotations"] = snod.Annotations - } - if snod.Type != "" { - objectMap["type"] = snod.Type - } - for k, v := range snod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return &snod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &snod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ServiceNowSource a copy activity ServiceNow server source. -type ServiceNowSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ServiceNowSource. -func (sns ServiceNowSource) MarshalJSON() ([]byte, error) { - sns.Type = TypeServiceNowSource - objectMap := make(map[string]interface{}) - objectMap["query"] = sns.Query - objectMap["sourceRetryCount"] = sns.SourceRetryCount - objectMap["sourceRetryWait"] = sns.SourceRetryWait - if sns.Type != "" { - objectMap["type"] = sns.Type - } - for k, v := range sns.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return &sns, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sns, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SftpServerLinkedService a linked service for an SSH File Transfer Protocol (SFTP) server. -type SftpServerLinkedService struct { - // SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. - *SftpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SftpServerLinkedService. -func (ssls SftpServerLinkedService) MarshalJSON() ([]byte, error) { - ssls.Type = TypeSftp - objectMap := make(map[string]interface{}) - if ssls.SftpServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ssls.SftpServerLinkedServiceTypeProperties - } - if ssls.ConnectVia != nil { - objectMap["connectVia"] = ssls.ConnectVia - } - if ssls.Description != nil { - objectMap["description"] = ssls.Description - } - if ssls.Parameters != nil { - objectMap["parameters"] = ssls.Parameters - } - if ssls.Annotations != nil { - objectMap["annotations"] = ssls.Annotations - } - if ssls.Type != "" { - objectMap["type"] = ssls.Type - } - for k, v := range ssls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return &ssls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ssls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedService struct. -func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sftpServerLinkedServiceTypeProperties SftpServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sftpServerLinkedServiceTypeProperties) - if err != nil { - return err - } - ssls.SftpServerLinkedServiceTypeProperties = &sftpServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssls.AdditionalProperties == nil { - ssls.AdditionalProperties = make(map[string]interface{}) - } - ssls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ssls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ssls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ssls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SftpServerLinkedServiceTypeProperties properties specific to this linked service type. -type SftpServerLinkedServiceTypeProperties struct { - // Host - The SFTP server host name. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // Port - The TCP port number that the SFTP server uses to listen for client connections. Default value is 22. Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'SftpAuthenticationTypeBasic', 'SftpAuthenticationTypeSSHPublicKey' - AuthenticationType SftpAuthenticationType `json:"authenticationType,omitempty"` - // UserName - The username used to log on to the SFTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to logon the SFTP server for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` - // PrivateKeyPath - The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with resultType string). - PrivateKeyPath interface{} `json:"privateKeyPath,omitempty"` - // PrivateKeyContent - Base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. - PrivateKeyContent BasicSecretBase `json:"privateKeyContent,omitempty"` - // PassPhrase - The password to decrypt the SSH private key if the SSH private key is encrypted. - PassPhrase BasicSecretBase `json:"passPhrase,omitempty"` - // SkipHostKeyValidation - If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). - SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` - // HostKeyFingerprint - The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - HostKeyFingerprint interface{} `json:"hostKeyFingerprint,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedServiceTypeProperties struct. -func (sslstp *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - sslstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - sslstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType SftpAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - sslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sslstp.EncryptedCredential = encryptedCredential - } - case "privateKeyPath": - if v != nil { - var privateKeyPath interface{} - err = json.Unmarshal(*v, &privateKeyPath) - if err != nil { - return err - } - sslstp.PrivateKeyPath = privateKeyPath - } - case "privateKeyContent": - if v != nil { - privateKeyContent, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.PrivateKeyContent = privateKeyContent - } - case "passPhrase": - if v != nil { - passPhrase, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.PassPhrase = passPhrase - } - case "skipHostKeyValidation": - if v != nil { - var skipHostKeyValidation interface{} - err = json.Unmarshal(*v, &skipHostKeyValidation) - if err != nil { - return err - } - sslstp.SkipHostKeyValidation = skipHostKeyValidation - } - case "hostKeyFingerprint": - if v != nil { - var hostKeyFingerprint interface{} - err = json.Unmarshal(*v, &hostKeyFingerprint) - if err != nil { - return err - } - sslstp.HostKeyFingerprint = hostKeyFingerprint - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ShopifyLinkedService shopify Serivce linked service. -type ShopifyLinkedService struct { - // ShopifyLinkedServiceTypeProperties - Shopify Serivce linked service properties. - *ShopifyLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ShopifyLinkedService. -func (sls ShopifyLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeShopify - objectMap := make(map[string]interface{}) - if sls.ShopifyLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.ShopifyLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedService struct. -func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var shopifyLinkedServiceTypeProperties ShopifyLinkedServiceTypeProperties - err = json.Unmarshal(*v, &shopifyLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.ShopifyLinkedServiceTypeProperties = &shopifyLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ShopifyLinkedServiceTypeProperties shopify Serivce linked service properties. -type ShopifyLinkedServiceTypeProperties struct { - // Host - The endpoint of the Shopify server. (i.e. mystore.myshopify.com) - Host interface{} `json:"host,omitempty"` - // AccessToken - The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedServiceTypeProperties struct. -func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - slstp.Host = host - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.AccessToken = accessToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - slstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - slstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - slstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ShopifyObjectDataset shopify Serivce dataset. -type ShopifyObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeShopifyObject - objectMap := make(map[string]interface{}) - if sod.Description != nil { - objectMap["description"] = sod.Description - } - objectMap["structure"] = sod.Structure - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ShopifySource a copy activity Shopify Serivce source. -type ShopifySource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ShopifySource. -func (ss ShopifySource) MarshalJSON() ([]byte, error) { - ss.Type = TypeShopifySource - objectMap := make(map[string]interface{}) - objectMap["query"] = ss.Query - objectMap["sourceRetryCount"] = ss.SourceRetryCount - objectMap["sourceRetryWait"] = ss.SourceRetryWait - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsShopifySource() (*ShopifySource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SparkLinkedService spark Server linked service. -type SparkLinkedService struct { - // SparkLinkedServiceTypeProperties - Spark Server linked service properties. - *SparkLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SparkLinkedService. -func (sls SparkLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeSpark - objectMap := make(map[string]interface{}) - if sls.SparkLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SparkLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SparkLinkedService struct. -func (sls *SparkLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sparkLinkedServiceTypeProperties SparkLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sparkLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SparkLinkedServiceTypeProperties = &sparkLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SparkLinkedServiceTypeProperties spark Server linked service properties. -type SparkLinkedServiceTypeProperties struct { - // Host - IP address or host name of the Spark server - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Spark server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` - // ServerType - The type of Spark server. Possible values include: 'SharkServer', 'SharkServer2', 'SparkThriftServer' - ServerType SparkServerType `json:"serverType,omitempty"` - // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'SparkThriftTransportProtocolBinary', 'SparkThriftTransportProtocolSASL', 'SparkThriftTransportProtocolHTTP' - ThriftTransportProtocol SparkThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` - // AuthenticationType - The authentication method used to access the Spark server. Possible values include: 'SparkAuthenticationTypeAnonymous', 'SparkAuthenticationTypeUsername', 'SparkAuthenticationTypeUsernameAndPassword', 'SparkAuthenticationTypeWindowsAzureHDInsightService' - AuthenticationType SparkAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name that you use to access Spark Server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the Username field - Password BasicSecretBase `json:"password,omitempty"` - // HTTPPath - The partial URL corresponding to the Spark server. - HTTPPath interface{} `json:"httpPath,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // AllowHostNameCNMismatch - Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SparkLinkedServiceTypeProperties struct. -func (slstp *SparkLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - slstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - slstp.Port = port - } - case "serverType": - if v != nil { - var serverType SparkServerType - err = json.Unmarshal(*v, &serverType) - if err != nil { - return err - } - slstp.ServerType = serverType - } - case "thriftTransportProtocol": - if v != nil { - var thriftTransportProtocol SparkThriftTransportProtocol - err = json.Unmarshal(*v, &thriftTransportProtocol) - if err != nil { - return err - } - slstp.ThriftTransportProtocol = thriftTransportProtocol - } - case "authenticationType": - if v != nil { - var authenticationType SparkAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - slstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - slstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.Password = password - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - slstp.HTTPPath = HTTPPath - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - slstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - slstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - slstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - slstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - slstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SparkObjectDataset spark Server dataset. -type SparkObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SparkObjectDataset. -func (sod SparkObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeSparkObject - objectMap := make(map[string]interface{}) - if sod.Description != nil { - objectMap["description"] = sod.Description - } - objectMap["structure"] = sod.Structure - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SparkSource a copy activity Spark Server source. -type SparkSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SparkSource. -func (ss SparkSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSparkSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ss.Query - objectMap["sourceRetryCount"] = ss.SourceRetryCount - objectMap["sourceRetryWait"] = ss.SourceRetryWait - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSparkSource() (*SparkSource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLDWSink a copy activity SQL Data Warehouse sink. -type SQLDWSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AllowPolyBase - Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean). - AllowPolyBase interface{} `json:"allowPolyBase,omitempty"` - // PolyBaseSettings - Specifies PolyBase-related settings when allowPolyBase is true. - PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLDWSink. -func (sds SQLDWSink) MarshalJSON() ([]byte, error) { - sds.Type = TypeSQLDWSink - objectMap := make(map[string]interface{}) - objectMap["preCopyScript"] = sds.PreCopyScript - objectMap["allowPolyBase"] = sds.AllowPolyBase - if sds.PolyBaseSettings != nil { - objectMap["polyBaseSettings"] = sds.PolyBaseSettings - } - objectMap["writeBatchSize"] = sds.WriteBatchSize - objectMap["writeBatchTimeout"] = sds.WriteBatchTimeout - objectMap["sinkRetryCount"] = sds.SinkRetryCount - objectMap["sinkRetryWait"] = sds.SinkRetryWait - if sds.Type != "" { - objectMap["type"] = sds.Type - } - for k, v := range sds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLDWSink() (*SQLDWSink, bool) { - return &sds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBasicCopySink() (BasicCopySink, bool) { - return &sds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLDWSource a copy activity SQL Data Warehouse source. -type SQLDWSource struct { - // SQLReaderQuery - SQL Data Warehouse reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Data Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: StoredProcedureParameter. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLDWSource. -func (sds SQLDWSource) MarshalJSON() ([]byte, error) { - sds.Type = TypeSQLDWSource - objectMap := make(map[string]interface{}) - objectMap["sqlReaderQuery"] = sds.SQLReaderQuery - objectMap["sqlReaderStoredProcedureName"] = sds.SQLReaderStoredProcedureName - objectMap["storedProcedureParameters"] = sds.StoredProcedureParameters - objectMap["sourceRetryCount"] = sds.SourceRetryCount - objectMap["sourceRetryWait"] = sds.SourceRetryWait - if sds.Type != "" { - objectMap["type"] = sds.Type - } - for k, v := range sds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLDWSource() (*SQLDWSource, bool) { - return &sds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sds, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLServerLinkedService SQL Server linked service. -type SQLServerLinkedService struct { - // SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. - *SQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLServerLinkedService. -func (ssls SQLServerLinkedService) MarshalJSON() ([]byte, error) { - ssls.Type = TypeSQLServer - objectMap := make(map[string]interface{}) - if ssls.SQLServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ssls.SQLServerLinkedServiceTypeProperties - } - if ssls.ConnectVia != nil { - objectMap["connectVia"] = ssls.ConnectVia - } - if ssls.Description != nil { - objectMap["description"] = ssls.Description - } - if ssls.Parameters != nil { - objectMap["parameters"] = ssls.Parameters - } - if ssls.Annotations != nil { - objectMap["annotations"] = ssls.Annotations - } - if ssls.Type != "" { - objectMap["type"] = ssls.Type - } - for k, v := range ssls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return &ssls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ssls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedService struct. -func (ssls *SQLServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var SQLServerLinkedServiceTypeProperties SQLServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &SQLServerLinkedServiceTypeProperties) - if err != nil { - return err - } - ssls.SQLServerLinkedServiceTypeProperties = &SQLServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssls.AdditionalProperties == nil { - ssls.AdditionalProperties = make(map[string]interface{}) - } - ssls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ssls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ssls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ssls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLServerLinkedServiceTypeProperties SQL Server linked service properties. -type SQLServerLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // UserName - The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The on-premises Windows authentication password. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedServiceTypeProperties struct. -func (sslstp *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.ConnectionString = connectionString - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sslstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLServerStoredProcedureActivity SQL stored procedure activity type. -type SQLServerStoredProcedureActivity struct { - // SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. - *SQLServerStoredProcedureActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { - ssspa.Type = TypeSQLServerStoredProcedure - objectMap := make(map[string]interface{}) - if ssspa.SQLServerStoredProcedureActivityTypeProperties != nil { - objectMap["typeProperties"] = ssspa.SQLServerStoredProcedureActivityTypeProperties - } - if ssspa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ssspa.LinkedServiceName - } - if ssspa.Policy != nil { - objectMap["policy"] = ssspa.Policy - } - if ssspa.Name != nil { - objectMap["name"] = ssspa.Name - } - if ssspa.Description != nil { - objectMap["description"] = ssspa.Description - } - if ssspa.DependsOn != nil { - objectMap["dependsOn"] = ssspa.DependsOn - } - if ssspa.Type != "" { - objectMap["type"] = ssspa.Type - } - for k, v := range ssspa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return &ssspa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ssspa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicActivity() (BasicActivity, bool) { - return &ssspa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SQLServerStoredProcedureActivity struct. -func (ssspa *SQLServerStoredProcedureActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var SQLServerStoredProcedureActivityTypeProperties SQLServerStoredProcedureActivityTypeProperties - err = json.Unmarshal(*v, &SQLServerStoredProcedureActivityTypeProperties) - if err != nil { - return err - } - ssspa.SQLServerStoredProcedureActivityTypeProperties = &SQLServerStoredProcedureActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ssspa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ssspa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssspa.AdditionalProperties == nil { - ssspa.AdditionalProperties = make(map[string]interface{}) - } - ssspa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ssspa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssspa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ssspa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssspa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLServerStoredProcedureActivityTypeProperties SQL stored procedure activity properties. -type SQLServerStoredProcedureActivityTypeProperties struct { - // StoredProcedureName - Stored procedure name. Type: string (or Expression with resultType string). - StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivityTypeProperties. -func (ssspatp SQLServerStoredProcedureActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["storedProcedureName"] = ssspatp.StoredProcedureName - if ssspatp.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ssspatp.StoredProcedureParameters - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLServerTableDataset the on-premises SQL Server dataset. -type SQLServerTableDataset struct { - // SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. - *SQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLServerTableDataset. -func (sstd SQLServerTableDataset) MarshalJSON() ([]byte, error) { - sstd.Type = TypeSQLServerTable - objectMap := make(map[string]interface{}) - if sstd.SQLServerTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = sstd.SQLServerTableDatasetTypeProperties - } - if sstd.Description != nil { - objectMap["description"] = sstd.Description - } - objectMap["structure"] = sstd.Structure - if sstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sstd.LinkedServiceName - } - if sstd.Parameters != nil { - objectMap["parameters"] = sstd.Parameters - } - if sstd.Annotations != nil { - objectMap["annotations"] = sstd.Annotations - } - if sstd.Type != "" { - objectMap["type"] = sstd.Type - } - for k, v := range sstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SQLServerTableDataset struct. -func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var SQLServerTableDatasetTypeProperties SQLServerTableDatasetTypeProperties - err = json.Unmarshal(*v, &SQLServerTableDatasetTypeProperties) - if err != nil { - return err - } - sstd.SQLServerTableDatasetTypeProperties = &SQLServerTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sstd.AdditionalProperties == nil { - sstd.AdditionalProperties = make(map[string]interface{}) - } - sstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sstd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sstd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sstd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLServerTableDatasetTypeProperties on-premises SQL Server dataset properties. -type SQLServerTableDatasetTypeProperties struct { - // TableName - The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLSink a copy activity SQL sink. -type SQLSink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySink', 'TypeSalesforceSink', 'TypeDynamicsSink', 'TypeOdbcSink', 'TypeAzureSearchIndexSink', 'TypeAzureDataLakeStoreSink', 'TypeOracleSink', 'TypeSQLDWSink', 'TypeSQLSink', 'TypeDocumentDbCollectionSink', 'TypeFileSystemSink', 'TypeBlobSink', 'TypeAzureTableSink', 'TypeAzureQueueSink', 'TypeSapCloudForCustomerSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLSink. -func (ss SQLSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeSQLSink - objectMap := make(map[string]interface{}) - objectMap["sqlWriterStoredProcedureName"] = ss.SQLWriterStoredProcedureName - objectMap["sqlWriterTableType"] = ss.SQLWriterTableType - objectMap["preCopyScript"] = ss.PreCopyScript - if ss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters - } - objectMap["writeBatchSize"] = ss.WriteBatchSize - objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout - objectMap["sinkRetryCount"] = ss.SinkRetryCount - objectMap["sinkRetryWait"] = ss.SinkRetryWait - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLSink() (*SQLSink, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureQueueSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SQLSource a copy activity SQL source. -type SQLSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters map[string]*StoredProcedureParameter `json:"storedProcedureParameters"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SQLSource. -func (ss SQLSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSQLSource - objectMap := make(map[string]interface{}) - objectMap["sqlReaderQuery"] = ss.SQLReaderQuery - objectMap["sqlReaderStoredProcedureName"] = ss.SQLReaderStoredProcedureName - if ss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters - } - objectMap["sourceRetryCount"] = ss.SourceRetryCount - objectMap["sourceRetryWait"] = ss.SourceRetryWait - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLSource() (*SQLSource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SquareLinkedService square Serivce linked service. -type SquareLinkedService struct { - // SquareLinkedServiceTypeProperties - Square Serivce linked service properties. - *SquareLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SquareLinkedService. -func (sls SquareLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeSquare - objectMap := make(map[string]interface{}) - if sls.SquareLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SquareLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SquareLinkedService struct. -func (sls *SquareLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var squareLinkedServiceTypeProperties SquareLinkedServiceTypeProperties - err = json.Unmarshal(*v, &squareLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SquareLinkedServiceTypeProperties = &squareLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SquareLinkedServiceTypeProperties square Serivce linked service properties. -type SquareLinkedServiceTypeProperties struct { - // Host - The URL of the Square instance. (i.e. mystore.mysquare.com) - Host interface{} `json:"host,omitempty"` - // ClientID - The client ID associated with your Square application. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with your Square application. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // RedirectURI - The redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500) - RedirectURI interface{} `json:"redirectUri,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SquareLinkedServiceTypeProperties struct. -func (slstp *SquareLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - slstp.Host = host - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - slstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.ClientSecret = clientSecret - } - case "redirectUri": - if v != nil { - var redirectURI interface{} - err = json.Unmarshal(*v, &redirectURI) - if err != nil { - return err - } - slstp.RedirectURI = redirectURI - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - slstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - slstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - slstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SquareObjectDataset square Serivce dataset. -type SquareObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SquareObjectDataset. -func (sod SquareObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeSquareObject - objectMap := make(map[string]interface{}) - if sod.Description != nil { - objectMap["description"] = sod.Description - } - objectMap["structure"] = sod.Structure - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SquareSource a copy activity Square Serivce source. -type SquareSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SquareSource. -func (ss SquareSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeSquareSource - objectMap := make(map[string]interface{}) - objectMap["query"] = ss.Query - objectMap["sourceRetryCount"] = ss.SourceRetryCount - objectMap["sourceRetryWait"] = ss.SourceRetryWait - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSquareSource() (*SquareSource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SSISExecutionParameter SSIS execution parameter. -type SSISExecutionParameter struct { - // Value - SSIS package execution parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SSISPackageLocation SSIS package location. -type SSISPackageLocation struct { - // PackagePath - The SSIS package path. - PackagePath *string `json:"packagePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SSISPropertyOverride SSIS property override. -type SSISPropertyOverride struct { - // Value - SSIS package property override value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // IsSensitive - Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true - IsSensitive *bool `json:"isSensitive,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StagingSettings staging settings. -type StagingSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // LinkedServiceName - Staging linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Path - The path to storage for storing the interim data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` - // EnableCompression - Specifies whether to use compression when copying data via an interim staging. Default value is false. Type: boolean (or Expression with resultType boolean). - EnableCompression interface{} `json:"enableCompression,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for StagingSettings. -func (ss StagingSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ss.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ss.LinkedServiceName - } - objectMap["path"] = ss.Path - objectMap["enableCompression"] = ss.EnableCompression - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StoredProcedureParameter SQL stored procedure parameter. -type StoredProcedureParameter struct { - // Value - Stored procedure parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // Type - Stored procedure parameter type. Possible values include: 'String', 'Int', 'Decimal', 'GUID', 'Boolean', 'Date' - Type StoredProcedureParameterType `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SubResource azure Data Factory nested resource, which belongs to a factory. -type SubResource struct { - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SybaseLinkedService linked service for Sybase data source. -type SybaseLinkedService struct { - // SybaseLinkedServiceTypeProperties - Sybase linked service properties. - *SybaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for SybaseLinkedService. -func (sls SybaseLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeSybase - objectMap := make(map[string]interface{}) - if sls.SybaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SybaseLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SybaseLinkedService struct. -func (sls *SybaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sybaseLinkedServiceTypeProperties SybaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sybaseLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SybaseLinkedServiceTypeProperties = &sybaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// SybaseLinkedServiceTypeProperties sybase linked service properties. -type SybaseLinkedServiceTypeProperties struct { - // Server - Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Database - Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Schema - Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. Possible values include: 'SybaseAuthenticationTypeBasic', 'SybaseAuthenticationTypeWindows' - AuthenticationType SybaseAuthenticationType `json:"authenticationType,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for SybaseLinkedServiceTypeProperties struct. -func (slstp *SybaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - slstp.Server = server - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - slstp.Database = databaseVar - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - slstp.Schema = schema - } - case "authenticationType": - if v != nil { - var authenticationType SybaseAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - slstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - slstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TabularTranslator a copy activity tabular translator. -type TabularTranslator struct { - // ColumnMappings - Column mappings. Type: string (or Expression with resultType string). - ColumnMappings interface{} `json:"columnMappings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeCopyTranslator', 'TypeTabularTranslator' - Type TypeBasicCopyTranslator `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for TabularTranslator. -func (tt TabularTranslator) MarshalJSON() ([]byte, error) { - tt.Type = TypeTabularTranslator - objectMap := make(map[string]interface{}) - objectMap["columnMappings"] = tt.ColumnMappings - if tt.Type != "" { - objectMap["type"] = tt.Type - } - for k, v := range tt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTabularTranslator is the BasicCopyTranslator implementation for TabularTranslator. -func (tt TabularTranslator) AsTabularTranslator() (*TabularTranslator, bool) { - return &tt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyTranslator is the BasicCopyTranslator implementation for TabularTranslator. -func (tt TabularTranslator) AsCopyTranslator() (*CopyTranslator, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopyTranslator is the BasicCopyTranslator implementation for TabularTranslator. -func (tt TabularTranslator) AsBasicCopyTranslator() (BasicCopyTranslator, bool) { - return &tt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TeradataLinkedService linked service for Teradata data source. -type TeradataLinkedService struct { - // TeradataLinkedServiceTypeProperties - Teradata linked service properties. - *TeradataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for TeradataLinkedService. -func (TLSVar TeradataLinkedService) MarshalJSON() ([]byte, error) { - TLSVar.Type = TypeTeradata - objectMap := make(map[string]interface{}) - if TLSVar.TeradataLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = TLSVar.TeradataLinkedServiceTypeProperties - } - if TLSVar.ConnectVia != nil { - objectMap["connectVia"] = TLSVar.ConnectVia - } - if TLSVar.Description != nil { - objectMap["description"] = TLSVar.Description - } - if TLSVar.Parameters != nil { - objectMap["parameters"] = TLSVar.Parameters - } - if TLSVar.Annotations != nil { - objectMap["annotations"] = TLSVar.Annotations - } - if TLSVar.Type != "" { - objectMap["type"] = TLSVar.Type - } - for k, v := range TLSVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return &TLSVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &TLSVar, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for TeradataLinkedService struct. -func (TLSVar *TeradataLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var teradataLinkedServiceTypeProperties TeradataLinkedServiceTypeProperties - err = json.Unmarshal(*v, &teradataLinkedServiceTypeProperties) - if err != nil { - return err - } - TLSVar.TeradataLinkedServiceTypeProperties = &teradataLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if TLSVar.AdditionalProperties == nil { - TLSVar.AdditionalProperties = make(map[string]interface{}) - } - TLSVar.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - TLSVar.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - TLSVar.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - TLSVar.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - TLSVar.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - TLSVar.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TeradataLinkedServiceTypeProperties teradata linked service properties. -type TeradataLinkedServiceTypeProperties struct { - // Server - Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Schema - Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. Possible values include: 'TeradataAuthenticationTypeBasic', 'TeradataAuthenticationTypeWindows' - AuthenticationType TeradataAuthenticationType `json:"authenticationType,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for TeradataLinkedServiceTypeProperties struct. -func (tlstp *TeradataLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - tlstp.Server = server - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - tlstp.Schema = schema - } - case "authenticationType": - if v != nil { - var authenticationType TeradataAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - tlstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - tlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - tlstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - tlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TextFormat the data stored in text format. -type TextFormat struct { - // ColumnDelimiter - The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` - // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` - // EscapeChar - The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` - // QuoteChar - The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` - // EncodingName - The code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` - // TreatEmptyAsNull - Treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` - // SkipLineCount - The number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with resultType integer). - SkipLineCount interface{} `json:"skipLineCount,omitempty"` - // FirstRowAsHeader - When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeDatasetStorageFormat', 'TypeParquetFormat', 'TypeOrcFormat', 'TypeAvroFormat', 'TypeJSONFormat', 'TypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for TextFormat. -func (tf TextFormat) MarshalJSON() ([]byte, error) { - tf.Type = TypeTextFormat - objectMap := make(map[string]interface{}) - objectMap["columnDelimiter"] = tf.ColumnDelimiter - objectMap["rowDelimiter"] = tf.RowDelimiter - objectMap["escapeChar"] = tf.EscapeChar - objectMap["quoteChar"] = tf.QuoteChar - objectMap["nullValue"] = tf.NullValue - objectMap["encodingName"] = tf.EncodingName - objectMap["treatEmptyAsNull"] = tf.TreatEmptyAsNull - objectMap["skipLineCount"] = tf.SkipLineCount - objectMap["firstRowAsHeader"] = tf.FirstRowAsHeader - objectMap["serializer"] = tf.Serializer - objectMap["deserializer"] = tf.Deserializer - if tf.Type != "" { - objectMap["type"] = tf.Type - } - for k, v := range tf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsParquetFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOrcFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAvroFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJSONFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTextFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsTextFormat() (*TextFormat, bool) { - return &tf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &tf, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicTrigger azure data factory nested object which contains information about creating pipeline run -type BasicTrigger interface { - AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) - AsBlobTrigger() (*BlobTrigger, bool) - AsScheduleTrigger() (*ScheduleTrigger, bool) - AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) - AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) - AsTrigger() (*Trigger, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Trigger azure data factory nested object which contains information about creating pipeline run -type Trigger struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Type - Possible values include: 'TypeTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -func unmarshalBasicTrigger(body []byte) (BasicTrigger, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeTumblingWindowTrigger): - var twt TumblingWindowTrigger - err := json.Unmarshal(body, &twt) - return twt, err - case string(TypeBlobTrigger): - var bt BlobTrigger - err := json.Unmarshal(body, &bt) - return bt, err - case string(TypeScheduleTrigger): - var st ScheduleTrigger - err := json.Unmarshal(body, &st) - return st, err - case string(TypeMultiplePipelineTrigger): - var mpt MultiplePipelineTrigger - err := json.Unmarshal(body, &mpt) - return mpt, err - default: - var t Trigger - err := json.Unmarshal(body, &t) - return t, err - } -} -func unmarshalBasicTriggerArray(body []byte) ([]BasicTrigger, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - tArray := make([]BasicTrigger, len(rawMessages)) - - for index, rawMessage := range rawMessages { - t, err := unmarshalBasicTrigger(*rawMessage) - if err != nil { - return nil, err - } - tArray[index] = t - } - return tArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for Trigger. -func (t Trigger) MarshalJSON() ([]byte, error) { - t.Type = TypeTrigger - objectMap := make(map[string]interface{}) - if t.Description != nil { - objectMap["description"] = t.Description - } - if t.RuntimeState != "" { - objectMap["runtimeState"] = t.RuntimeState - } - if t.Type != "" { - objectMap["type"] = t.Type - } - for k, v := range t.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTumblingWindowTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsScheduleTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMultiplePipelineTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsTrigger() (*Trigger, bool) { - return &t, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsBasicTrigger() (BasicTrigger, bool) { - return &t, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerListResponse a list of trigger resources. -type TriggerListResponse struct { - autorest.Response `json:"-"` - // Value - List of triggers. - Value *[]TriggerResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerListResponseIterator provides access to a complete listing of TriggerResource values. -type TriggerListResponseIterator struct { - i int - page TriggerListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *TriggerListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter TriggerListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter TriggerListResponseIterator) Response() TriggerListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter TriggerListResponseIterator) Value() TriggerResource { - if !iter.page.NotDone() { - return TriggerResource{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (tlr TriggerListResponse) IsEmpty() bool { - return tlr.Value == nil || len(*tlr.Value) == 0 -} - -// triggerListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (tlr TriggerListResponse) triggerListResponsePreparer() (*http.Request, error) { - if tlr.NextLink == nil || len(to.String(tlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(tlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerListResponsePage contains a page of TriggerResource values. -type TriggerListResponsePage struct { - fn func(TriggerListResponse) (TriggerListResponse, error) - tlr TriggerListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *TriggerListResponsePage) Next() error { - next, err := page.fn(page.tlr) - if err != nil { - return err - } - page.tlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page TriggerListResponsePage) NotDone() bool { - return !page.tlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page TriggerListResponsePage) Response() TriggerListResponse { - return page.tlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page TriggerListResponsePage) Values() []TriggerResource { - if page.tlr.IsEmpty() { - return nil - } - return *page.tlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerPipelineReference pipeline that needs to be triggered with the given parameters. -type TriggerPipelineReference struct { - // PipelineReference - Pipeline reference. - PipelineReference *PipelineReference `json:"pipelineReference,omitempty"` - // Parameters - Pipeline parameters. - Parameters map[string]interface{} `json:"parameters"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for TriggerPipelineReference. -func (tpr TriggerPipelineReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if tpr.PipelineReference != nil { - objectMap["pipelineReference"] = tpr.PipelineReference - } - if tpr.Parameters != nil { - objectMap["parameters"] = tpr.Parameters - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerResource trigger resource type. -type TriggerResource struct { - autorest.Response `json:"-"` - // Properties - Properties of the trigger. - Properties BasicTrigger `json:"properties,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Etag - Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for TriggerResource struct. -func (tr *TriggerResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicTrigger(*v) - if err != nil { - return err - } - tr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - tr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - tr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - tr.Etag = &etag - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerRun trigger runs. -type TriggerRun struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // TriggerRunID - Trigger run id. - TriggerRunID *string `json:"triggerRunId,omitempty"` - // TriggerName - Trigger name. - TriggerName *string `json:"triggerName,omitempty"` - // TriggerType - Trigger type. - TriggerType *string `json:"triggerType,omitempty"` - // TriggerRunTimestamp - Trigger run start time. - TriggerRunTimestamp *date.Time `json:"triggerRunTimestamp,omitempty"` - // Status - Trigger run status. Possible values include: 'TriggerRunStatusSucceeded', 'TriggerRunStatusFailed', 'TriggerRunStatusInprogress' - Status TriggerRunStatus `json:"status,omitempty"` - // Message - Trigger error message. - Message *string `json:"message,omitempty"` - // Properties - List of property name and value related to trigger run. Name, value pair depends on type of trigger. - Properties map[string]*string `json:"properties"` - // TriggeredPipelines - List of pipeline name and run Id triggered by the trigger run. - TriggeredPipelines map[string]*string `json:"triggeredPipelines"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for TriggerRun. -func (tr TriggerRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if tr.TriggerRunID != nil { - objectMap["triggerRunId"] = tr.TriggerRunID - } - if tr.TriggerName != nil { - objectMap["triggerName"] = tr.TriggerName - } - if tr.TriggerType != nil { - objectMap["triggerType"] = tr.TriggerType - } - if tr.TriggerRunTimestamp != nil { - objectMap["triggerRunTimestamp"] = tr.TriggerRunTimestamp - } - if tr.Status != "" { - objectMap["status"] = tr.Status - } - if tr.Message != nil { - objectMap["message"] = tr.Message - } - if tr.Properties != nil { - objectMap["properties"] = tr.Properties - } - if tr.TriggeredPipelines != nil { - objectMap["triggeredPipelines"] = tr.TriggeredPipelines - } - for k, v := range tr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerRunListResponse a list of trigger runs. -type TriggerRunListResponse struct { - autorest.Response `json:"-"` - // Value - List of trigger runs. - Value *[]TriggerRun `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerRunListResponseIterator provides access to a complete listing of TriggerRun values. -type TriggerRunListResponseIterator struct { - i int - page TriggerRunListResponsePage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *TriggerRunListResponseIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter TriggerRunListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (iter TriggerRunListResponseIterator) Response() TriggerRunListResponse { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter TriggerRunListResponseIterator) Value() TriggerRun { - if !iter.page.NotDone() { - return TriggerRun{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// IsEmpty returns true if the ListResult contains no values. -func (trlr TriggerRunListResponse) IsEmpty() bool { - return trlr.Value == nil || len(*trlr.Value) == 0 -} - -// triggerRunListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (trlr TriggerRunListResponse) triggerRunListResponsePreparer() (*http.Request, error) { - if trlr.NextLink == nil || len(to.String(trlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(trlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggerRunListResponsePage contains a page of TriggerRun values. -type TriggerRunListResponsePage struct { - fn func(TriggerRunListResponse) (TriggerRunListResponse, error) - trlr TriggerRunListResponse -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *TriggerRunListResponsePage) Next() error { - next, err := page.fn(page.trlr) - if err != nil { - return err - } - page.trlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page TriggerRunListResponsePage) NotDone() bool { - return !page.trlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Response returns the raw server response from the last page request. -func (page TriggerRunListResponsePage) Response() TriggerRunListResponse { - return page.trlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page TriggerRunListResponsePage) Values() []TriggerRun { - if page.trlr.IsEmpty() { - return nil - } - return *page.trlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggersStartFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type TriggersStartFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future TriggersStartFuture) Result(client TriggersClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStartFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("datafactory.TriggersStartFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.StartResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStartFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStartFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.StartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStartFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggersStopFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type TriggersStopFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future TriggersStopFuture) Result(client TriggersClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStopFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("datafactory.TriggersStopFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.StopResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStopFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStopFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.StopResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStopFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TumblingWindowTrigger trigger that schedules pipeline runs for all fixed time interval windows from a start time -// without gaps and also supports backfill scenarios (when start time is in the past). -type TumblingWindowTrigger struct { - // Pipeline - Pipeline for which runs are created when an event is fired for trigger window that is ready. - Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` - // TumblingWindowTriggerTypeProperties - Tumbling Window Trigger properties. - *TumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Type - Possible values include: 'TypeTrigger', 'TypeTumblingWindowTrigger', 'TypeBlobTrigger', 'TypeScheduleTrigger', 'TypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) MarshalJSON() ([]byte, error) { - twt.Type = TypeTumblingWindowTrigger - objectMap := make(map[string]interface{}) - if twt.Pipeline != nil { - objectMap["pipeline"] = twt.Pipeline - } - if twt.TumblingWindowTriggerTypeProperties != nil { - objectMap["typeProperties"] = twt.TumblingWindowTriggerTypeProperties - } - if twt.Description != nil { - objectMap["description"] = twt.Description - } - if twt.RuntimeState != "" { - objectMap["runtimeState"] = twt.RuntimeState - } - if twt.Type != "" { - objectMap["type"] = twt.Type - } - for k, v := range twt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTumblingWindowTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return &twt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsScheduleTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMultiplePipelineTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &twt, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for TumblingWindowTrigger struct. -func (twt *TumblingWindowTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "pipeline": - if v != nil { - var pipeline TriggerPipelineReference - err = json.Unmarshal(*v, &pipeline) - if err != nil { - return err - } - twt.Pipeline = &pipeline - } - case "typeProperties": - if v != nil { - var tumblingWindowTriggerTypeProperties TumblingWindowTriggerTypeProperties - err = json.Unmarshal(*v, &tumblingWindowTriggerTypeProperties) - if err != nil { - return err - } - twt.TumblingWindowTriggerTypeProperties = &tumblingWindowTriggerTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if twt.AdditionalProperties == nil { - twt.AdditionalProperties = make(map[string]interface{}) - } - twt.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - twt.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - twt.RuntimeState = runtimeState - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - twt.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TumblingWindowTriggerTypeProperties tumbling Window Trigger properties. -type TumblingWindowTriggerTypeProperties struct { - // Frequency - The frequency of the time windows. Possible values include: 'TumblingWindowFrequencyMinute', 'TumblingWindowFrequencyHour' - Frequency TumblingWindowFrequency `json:"frequency,omitempty"` - // Interval - The interval of the time windows. The minimum interval allowed is 15 Minutes. - Interval *int32 `json:"interval,omitempty"` - // StartTime - The start time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported. - StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time for the time period for the trigger during which events are fired for windows that are ready. Only UTC time is currently supported. - EndTime *date.Time `json:"endTime,omitempty"` - // Delay - Specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. The default is 0. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Delay interface{} `json:"delay,omitempty"` - // MaxConcurrency - The max number of parallel time windows (ready for execution) for which a new run is triggered. - MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` - // RetryPolicy - Retry policy that will be applied for failed pipeline runs. - RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UntilActivity this activity executes inner activities until the specified boolean expression results to true or -// timeout is reached, whichever is earlier. -type UntilActivity struct { - // UntilActivityTypeProperties - Until activity properties. - *UntilActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for UntilActivity. -func (ua UntilActivity) MarshalJSON() ([]byte, error) { - ua.Type = TypeUntil - objectMap := make(map[string]interface{}) - if ua.UntilActivityTypeProperties != nil { - objectMap["typeProperties"] = ua.UntilActivityTypeProperties - } - if ua.Name != nil { - objectMap["name"] = ua.Name - } - if ua.Description != nil { - objectMap["description"] = ua.Description - } - if ua.DependsOn != nil { - objectMap["dependsOn"] = ua.DependsOn - } - if ua.Type != "" { - objectMap["type"] = ua.Type - } - for k, v := range ua.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsUntilActivity() (*UntilActivity, bool) { - return &ua, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &ua, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsBasicActivity() (BasicActivity, bool) { - return &ua, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for UntilActivity struct. -func (ua *UntilActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var untilActivityTypeProperties UntilActivityTypeProperties - err = json.Unmarshal(*v, &untilActivityTypeProperties) - if err != nil { - return err - } - ua.UntilActivityTypeProperties = &untilActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ua.AdditionalProperties == nil { - ua.AdditionalProperties = make(map[string]interface{}) - } - ua.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ua.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ua.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ua.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ua.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UntilActivityTypeProperties until activity properties. -type UntilActivityTypeProperties struct { - // Expression - An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true - Expression *Expression `json:"expression,omitempty"` - // Timeout - Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` - // Activities - List of activities to execute. - Activities *[]BasicActivity `json:"activities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for UntilActivityTypeProperties struct. -func (uatp *UntilActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "expression": - if v != nil { - var expression Expression - err = json.Unmarshal(*v, &expression) - if err != nil { - return err - } - uatp.Expression = &expression - } - case "timeout": - if v != nil { - var timeout interface{} - err = json.Unmarshal(*v, &timeout) - if err != nil { - return err - } - uatp.Timeout = timeout - } - case "activities": - if v != nil { - activities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - uatp.Activities = &activities - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateIntegrationRuntimeNodeRequest update integration runtime node request. -type UpdateIntegrationRuntimeNodeRequest struct { - // ConcurrentJobsLimit - The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UpdateIntegrationRuntimeRequest update integration runtime request. -type UpdateIntegrationRuntimeRequest struct { - // AutoUpdate - Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: 'On', 'Off' - AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` - // UpdateDelayOffset - The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. - UpdateDelayOffset *string `json:"updateDelayOffset,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// VerticaLinkedService vertica linked service. -type VerticaLinkedService struct { - // VerticaLinkedServiceTypeProperties - Vertica linked service properties. - *VerticaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for VerticaLinkedService. -func (vls VerticaLinkedService) MarshalJSON() ([]byte, error) { - vls.Type = TypeVertica - objectMap := make(map[string]interface{}) - if vls.VerticaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = vls.VerticaLinkedServiceTypeProperties - } - if vls.ConnectVia != nil { - objectMap["connectVia"] = vls.ConnectVia - } - if vls.Description != nil { - objectMap["description"] = vls.Description - } - if vls.Parameters != nil { - objectMap["parameters"] = vls.Parameters - } - if vls.Annotations != nil { - objectMap["annotations"] = vls.Annotations - } - if vls.Type != "" { - objectMap["type"] = vls.Type - } - for k, v := range vls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return &vls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &vls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for VerticaLinkedService struct. -func (vls *VerticaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var verticaLinkedServiceTypeProperties VerticaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &verticaLinkedServiceTypeProperties) - if err != nil { - return err - } - vls.VerticaLinkedServiceTypeProperties = &verticaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if vls.AdditionalProperties == nil { - vls.AdditionalProperties = make(map[string]interface{}) - } - vls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - vls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - vls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - vls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - vls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - vls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// VerticaLinkedServiceTypeProperties vertica linked service properties. -type VerticaLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. - ConnectionString BasicSecretBase `json:"connectionString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for VerticaLinkedServiceTypeProperties struct. -func (vlstp *VerticaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - connectionString, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - vlstp.ConnectionString = connectionString - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - vlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// VerticaSource a copy activity Vertica source. -type VerticaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for VerticaSource. -func (vs VerticaSource) MarshalJSON() ([]byte, error) { - vs.Type = TypeVerticaSource - objectMap := make(map[string]interface{}) - objectMap["query"] = vs.Query - objectMap["sourceRetryCount"] = vs.SourceRetryCount - objectMap["sourceRetryWait"] = vs.SourceRetryWait - if vs.Type != "" { - objectMap["type"] = vs.Type - } - for k, v := range vs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsVerticaSource() (*VerticaSource, bool) { - return &vs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &vs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// VerticaTableDataset vertica dataset. -type VerticaTableDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for VerticaTableDataset. -func (vtd VerticaTableDataset) MarshalJSON() ([]byte, error) { - vtd.Type = TypeVerticaTable - objectMap := make(map[string]interface{}) - if vtd.Description != nil { - objectMap["description"] = vtd.Description - } - objectMap["structure"] = vtd.Structure - if vtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = vtd.LinkedServiceName - } - if vtd.Parameters != nil { - objectMap["parameters"] = vtd.Parameters - } - if vtd.Annotations != nil { - objectMap["annotations"] = vtd.Annotations - } - if vtd.Type != "" { - objectMap["type"] = vtd.Type - } - for k, v := range vtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return &vtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &vtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WaitActivity this activity suspends pipeline execution for the specified interval. -type WaitActivity struct { - // WaitActivityTypeProperties - Wait activity properties. - *WaitActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WaitActivity. -func (wa WaitActivity) MarshalJSON() ([]byte, error) { - wa.Type = TypeWait - objectMap := make(map[string]interface{}) - if wa.WaitActivityTypeProperties != nil { - objectMap["typeProperties"] = wa.WaitActivityTypeProperties - } - if wa.Name != nil { - objectMap["name"] = wa.Name - } - if wa.Description != nil { - objectMap["description"] = wa.Description - } - if wa.DependsOn != nil { - objectMap["dependsOn"] = wa.DependsOn - } - if wa.Type != "" { - objectMap["type"] = wa.Type - } - for k, v := range wa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsWaitActivity() (*WaitActivity, bool) { - return &wa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &wa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsBasicActivity() (BasicActivity, bool) { - return &wa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for WaitActivity struct. -func (wa *WaitActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var waitActivityTypeProperties WaitActivityTypeProperties - err = json.Unmarshal(*v, &waitActivityTypeProperties) - if err != nil { - return err - } - wa.WaitActivityTypeProperties = &waitActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wa.AdditionalProperties == nil { - wa.AdditionalProperties = make(map[string]interface{}) - } - wa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - wa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - wa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WaitActivityTypeProperties wait activity properties. -type WaitActivityTypeProperties struct { - // WaitTimeInSeconds - Duration in seconds. - WaitTimeInSeconds *int32 `json:"waitTimeInSeconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebActivity web activity. -type WebActivity struct { - // WebActivityTypeProperties - Web activity properties. - *WebActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // Type - Possible values include: 'TypeActivity', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeFilter', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebActivity. -func (wa WebActivity) MarshalJSON() ([]byte, error) { - wa.Type = TypeWebActivity - objectMap := make(map[string]interface{}) - if wa.WebActivityTypeProperties != nil { - objectMap["typeProperties"] = wa.WebActivityTypeProperties - } - if wa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = wa.LinkedServiceName - } - if wa.Policy != nil { - objectMap["policy"] = wa.Policy - } - if wa.Name != nil { - objectMap["name"] = wa.Name - } - if wa.Description != nil { - objectMap["description"] = wa.Description - } - if wa.DependsOn != nil { - objectMap["dependsOn"] = wa.DependsOn - } - if wa.Type != "" { - objectMap["type"] = wa.Type - } - for k, v := range wa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDatabricksNotebookActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGetMetadataActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsWebActivity() (*WebActivity, bool) { - return &wa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLookupActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightSparkActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightStreamingActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightPigActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightHiveActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopyActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicExecutionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &wa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFilterActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsUntilActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWaitActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsForEachActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsIfConditionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsExecutePipelineActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsControlActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicControlActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsBasicActivity() (BasicActivity, bool) { - return &wa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for WebActivity struct. -func (wa *WebActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var webActivityTypeProperties WebActivityTypeProperties - err = json.Unmarshal(*v, &webActivityTypeProperties) - if err != nil { - return err - } - wa.WebActivityTypeProperties = &webActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - wa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - wa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wa.AdditionalProperties == nil { - wa.AdditionalProperties = make(map[string]interface{}) - } - wa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - wa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wa.Description = &description - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - wa.DependsOn = &dependsOn - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wa.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebActivityAuthentication web activity authentication properties. -type WebActivityAuthentication struct { - // Type - Web activity authentication (Basic/ClientCertificate/MSI) - Type *string `json:"type,omitempty"` - // Pfx - Base64-encoded contents of a PFX file. - Pfx *SecureString `json:"pfx,omitempty"` - // Username - Web activity authentication user name for basic authentication. - Username *string `json:"username,omitempty"` - // Password - Password for the PFX file or basic authentication. - Password *SecureString `json:"password,omitempty"` - // Resource - Resource for which Azure Auth token will be requested when using MSI Authentication. - Resource *string `json:"resource,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebActivityTypeProperties web activity type properties. -type WebActivityTypeProperties struct { - // Method - Rest API method for target endpoint. Possible values include: 'GET', 'POST', 'PUT', 'DELETE' - Method WebActivityMethod `json:"method,omitempty"` - // URL - Web activity target endpoint and path. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Headers - Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). - Headers interface{} `json:"headers,omitempty"` - // Body - Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). - Body interface{} `json:"body,omitempty"` - // Authentication - Authentication method used for calling the endpoint. - Authentication *WebActivityAuthentication `json:"authentication,omitempty"` - // Datasets - List of datasets passed to web endpoint. - Datasets *[]DatasetReference `json:"datasets,omitempty"` - // LinkedServices - List of linked services passed to web endpoint. - LinkedServices *[]LinkedServiceReference `json:"linkedServices,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebAnonymousAuthentication a WebLinkedService that uses anonymous authentication to communicate with an HTTP -// endpoint. -type WebAnonymousAuthentication struct { - // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) MarshalJSON() ([]byte, error) { - waa.AuthenticationType = AuthenticationTypeAnonymous - objectMap := make(map[string]interface{}) - objectMap["url"] = waa.URL - if waa.AuthenticationType != "" { - objectMap["authenticationType"] = waa.AuthenticationType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return &waa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &waa, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebBasicAuthentication a WebLinkedService that uses basic authentication to communicate with an HTTP endpoint. -type WebBasicAuthentication struct { - // Username - User name for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebBasicAuthentication. -func (wba WebBasicAuthentication) MarshalJSON() ([]byte, error) { - wba.AuthenticationType = AuthenticationTypeBasic - objectMap := make(map[string]interface{}) - objectMap["username"] = wba.Username - objectMap["password"] = wba.Password - objectMap["url"] = wba.URL - if wba.AuthenticationType != "" { - objectMap["authenticationType"] = wba.AuthenticationType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return &wba, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &wba, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for WebBasicAuthentication struct. -func (wba *WebBasicAuthentication) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - wba.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wba.Password = password - } - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - wba.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType AuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - wba.AuthenticationType = authenticationType - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebClientCertificateAuthentication a WebLinkedService that uses client certificate based authentication to -// communicate with an HTTP endpoint. This scheme follows mutual authentication; the server must also provide valid -// credentials to the client. -type WebClientCertificateAuthentication struct { - // Pfx - Base64-encoded contents of a PFX file. - Pfx BasicSecretBase `json:"pfx,omitempty"` - // Password - Password for the PFX file. - Password BasicSecretBase `json:"password,omitempty"` - // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) MarshalJSON() ([]byte, error) { - wcca.AuthenticationType = AuthenticationTypeClientCertificate - objectMap := make(map[string]interface{}) - objectMap["pfx"] = wcca.Pfx - objectMap["password"] = wcca.Password - objectMap["url"] = wcca.URL - if wcca.AuthenticationType != "" { - objectMap["authenticationType"] = wcca.AuthenticationType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return &wcca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &wcca, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for WebClientCertificateAuthentication struct. -func (wcca *WebClientCertificateAuthentication) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "pfx": - if v != nil { - pfx, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wcca.Pfx = pfx - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wcca.Password = password - } - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - wcca.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType AuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - wcca.AuthenticationType = authenticationType - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebLinkedService web linked service. -type WebLinkedService struct { - // TypeProperties - Web linked service properties. - TypeProperties BasicWebLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebLinkedService. -func (wls WebLinkedService) MarshalJSON() ([]byte, error) { - wls.Type = TypeWeb - objectMap := make(map[string]interface{}) - objectMap["typeProperties"] = wls.TypeProperties - if wls.ConnectVia != nil { - objectMap["connectVia"] = wls.ConnectVia - } - if wls.Description != nil { - objectMap["description"] = wls.Description - } - if wls.Parameters != nil { - objectMap["parameters"] = wls.Parameters - } - if wls.Annotations != nil { - objectMap["annotations"] = wls.Annotations - } - if wls.Type != "" { - objectMap["type"] = wls.Type - } - for k, v := range wls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return &wls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &wls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for WebLinkedService struct. -func (wls *WebLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - typeProperties, err := unmarshalBasicWebLinkedServiceTypeProperties(*v) - if err != nil { - return err - } - wls.TypeProperties = typeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wls.AdditionalProperties == nil { - wls.AdditionalProperties = make(map[string]interface{}) - } - wls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - wls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - wls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - wls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// BasicWebLinkedServiceTypeProperties base definition of WebLinkedServiceTypeProperties, this typeProperties is -// polymorphic based on authenticationType, so not flattened in SDK models. -type BasicWebLinkedServiceTypeProperties interface { - AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) - AsWebBasicAuthentication() (*WebBasicAuthentication, bool) - AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) - AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebLinkedServiceTypeProperties base definition of WebLinkedServiceTypeProperties, this typeProperties is -// polymorphic based on authenticationType, so not flattened in SDK models. -type WebLinkedServiceTypeProperties struct { - // URL - The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -func unmarshalBasicWebLinkedServiceTypeProperties(body []byte) (BasicWebLinkedServiceTypeProperties, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["authenticationType"] { - case string(AuthenticationTypeClientCertificate): - var wcca WebClientCertificateAuthentication - err := json.Unmarshal(body, &wcca) - return wcca, err - case string(AuthenticationTypeBasic): - var wba WebBasicAuthentication - err := json.Unmarshal(body, &wba) - return wba, err - case string(AuthenticationTypeAnonymous): - var waa WebAnonymousAuthentication - err := json.Unmarshal(body, &waa) - return waa, err - default: - var wlstp WebLinkedServiceTypeProperties - err := json.Unmarshal(body, &wlstp) - return wlstp, err - } -} -func unmarshalBasicWebLinkedServiceTypePropertiesArray(body []byte) ([]BasicWebLinkedServiceTypeProperties, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - wlstpArray := make([]BasicWebLinkedServiceTypeProperties, len(rawMessages)) - - for index, rawMessage := range rawMessages { - wlstp, err := unmarshalBasicWebLinkedServiceTypeProperties(*rawMessage) - if err != nil { - return nil, err - } - wlstpArray[index] = wlstp - } - return wlstpArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - wlstp.AuthenticationType = AuthenticationTypeWebLinkedServiceTypeProperties - objectMap := make(map[string]interface{}) - objectMap["url"] = wlstp.URL - if wlstp.AuthenticationType != "" { - objectMap["authenticationType"] = wlstp.AuthenticationType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return &wlstp, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &wlstp, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebSource a copy activity source for web page table. -type WebSource struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebSource. -func (ws WebSource) MarshalJSON() ([]byte, error) { - ws.Type = TypeWebSource - objectMap := make(map[string]interface{}) - objectMap["sourceRetryCount"] = ws.SourceRetryCount - objectMap["sourceRetryWait"] = ws.SourceRetryWait - if ws.Type != "" { - objectMap["type"] = ws.Type - } - for k, v := range ws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsWebSource() (*WebSource, bool) { - return &ws, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ws, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebTableDataset the dataset points to a HTML table in the web page. -type WebTableDataset struct { - // WebTableDatasetTypeProperties - Web table dataset properties. - *WebTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for WebTableDataset. -func (wtd WebTableDataset) MarshalJSON() ([]byte, error) { - wtd.Type = TypeWebTable - objectMap := make(map[string]interface{}) - if wtd.WebTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = wtd.WebTableDatasetTypeProperties - } - if wtd.Description != nil { - objectMap["description"] = wtd.Description - } - objectMap["structure"] = wtd.Structure - if wtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = wtd.LinkedServiceName - } - if wtd.Parameters != nil { - objectMap["parameters"] = wtd.Parameters - } - if wtd.Annotations != nil { - objectMap["annotations"] = wtd.Annotations - } - if wtd.Type != "" { - objectMap["type"] = wtd.Type - } - for k, v := range wtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return &wtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &wtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for WebTableDataset struct. -func (wtd *WebTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var webTableDatasetTypeProperties WebTableDatasetTypeProperties - err = json.Unmarshal(*v, &webTableDatasetTypeProperties) - if err != nil { - return err - } - wtd.WebTableDatasetTypeProperties = &webTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wtd.AdditionalProperties == nil { - wtd.AdditionalProperties = make(map[string]interface{}) - } - wtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - wtd.Structure = structure - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - wtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - wtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - wtd.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wtd.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// WebTableDatasetTypeProperties web table dataset properties. -type WebTableDatasetTypeProperties struct { - // Index - The zero-based index of the table in the web page. Type: integer (or Expression with resultType integer), minimum: 0. - Index interface{} `json:"index,omitempty"` - // Path - The relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// XeroLinkedService xero Serivce linked service. -type XeroLinkedService struct { - // XeroLinkedServiceTypeProperties - Xero Serivce linked service properties. - *XeroLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for XeroLinkedService. -func (xls XeroLinkedService) MarshalJSON() ([]byte, error) { - xls.Type = TypeXero - objectMap := make(map[string]interface{}) - if xls.XeroLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = xls.XeroLinkedServiceTypeProperties - } - if xls.ConnectVia != nil { - objectMap["connectVia"] = xls.ConnectVia - } - if xls.Description != nil { - objectMap["description"] = xls.Description - } - if xls.Parameters != nil { - objectMap["parameters"] = xls.Parameters - } - if xls.Annotations != nil { - objectMap["annotations"] = xls.Annotations - } - if xls.Type != "" { - objectMap["type"] = xls.Type - } - for k, v := range xls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return &xls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &xls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for XeroLinkedService struct. -func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var xeroLinkedServiceTypeProperties XeroLinkedServiceTypeProperties - err = json.Unmarshal(*v, &xeroLinkedServiceTypeProperties) - if err != nil { - return err - } - xls.XeroLinkedServiceTypeProperties = &xeroLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xls.AdditionalProperties == nil { - xls.AdditionalProperties = make(map[string]interface{}) - } - xls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - xls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - xls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - xls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - xls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// XeroLinkedServiceTypeProperties xero Serivce linked service properties. -type XeroLinkedServiceTypeProperties struct { - // Host - The endpoint of the Xero server. (i.e. api.xero.com) - Host interface{} `json:"host,omitempty"` - // ConsumerKey - The consumer key associated with the Xero application. - ConsumerKey BasicSecretBase `json:"consumerKey,omitempty"` - // PrivateKey - The private key from the .pem file that was generated for your Xero private application. You must include all the text from the .pem file, including the Unix line endings( - // ). - PrivateKey BasicSecretBase `json:"privateKey,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for XeroLinkedServiceTypeProperties struct. -func (xlstp *XeroLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - xlstp.Host = host - } - case "consumerKey": - if v != nil { - consumerKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - xlstp.ConsumerKey = consumerKey - } - case "privateKey": - if v != nil { - privateKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - xlstp.PrivateKey = privateKey - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - xlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - xlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - xlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - xlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// XeroObjectDataset xero Serivce dataset. -type XeroObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for XeroObjectDataset. -func (xod XeroObjectDataset) MarshalJSON() ([]byte, error) { - xod.Type = TypeXeroObject - objectMap := make(map[string]interface{}) - if xod.Description != nil { - objectMap["description"] = xod.Description - } - objectMap["structure"] = xod.Structure - if xod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = xod.LinkedServiceName - } - if xod.Parameters != nil { - objectMap["parameters"] = xod.Parameters - } - if xod.Annotations != nil { - objectMap["annotations"] = xod.Annotations - } - if xod.Type != "" { - objectMap["type"] = xod.Type - } - for k, v := range xod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return &xod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &xod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// XeroSource a copy activity Xero Serivce source. -type XeroSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for XeroSource. -func (xs XeroSource) MarshalJSON() ([]byte, error) { - xs.Type = TypeXeroSource - objectMap := make(map[string]interface{}) - objectMap["query"] = xs.Query - objectMap["sourceRetryCount"] = xs.SourceRetryCount - objectMap["sourceRetryWait"] = xs.SourceRetryWait - if xs.Type != "" { - objectMap["type"] = xs.Type - } - for k, v := range xs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsXeroSource() (*XeroSource, bool) { - return &xs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBasicCopySource() (BasicCopySource, bool) { - return &xs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ZohoLinkedService zoho server linked service. -type ZohoLinkedService struct { - // ZohoLinkedServiceTypeProperties - Zoho server linked service properties. - *ZohoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeLinkedService', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforce', 'TypeAzureDataLakeStore', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ZohoLinkedService. -func (zls ZohoLinkedService) MarshalJSON() ([]byte, error) { - zls.Type = TypeZoho - objectMap := make(map[string]interface{}) - if zls.ZohoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = zls.ZohoLinkedServiceTypeProperties - } - if zls.ConnectVia != nil { - objectMap["connectVia"] = zls.ConnectVia - } - if zls.Description != nil { - objectMap["description"] = zls.Description - } - if zls.Parameters != nil { - objectMap["parameters"] = zls.Parameters - } - if zls.Annotations != nil { - objectMap["annotations"] = zls.Annotations - } - if zls.Type != "" { - objectMap["type"] = zls.Type - } - for k, v := range zls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return &zls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapHanaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapBWLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSftpServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFtpServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOdbcLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsTeradataLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDb2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSybaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMySQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHDInsightLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &zls, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ZohoLinkedService struct. -func (zls *ZohoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var zohoLinkedServiceTypeProperties ZohoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &zohoLinkedServiceTypeProperties) - if err != nil { - return err - } - zls.ZohoLinkedServiceTypeProperties = &zohoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if zls.AdditionalProperties == nil { - zls.AdditionalProperties = make(map[string]interface{}) - } - zls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - zls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - zls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - zls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - zls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - zls.Type = typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ZohoLinkedServiceTypeProperties zoho server linked service properties. -type ZohoLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) - Endpoint interface{} `json:"endpoint,omitempty"` - // AccessToken - The access token for Zoho authentication. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UnmarshalJSON is the custom unmarshaler for ZohoLinkedServiceTypeProperties struct. -func (zlstp *ZohoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - zlstp.Endpoint = endpoint - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - zlstp.AccessToken = accessToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - zlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - zlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - zlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential interface{} - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - zlstp.EncryptedCredential = encryptedCredential - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ZohoObjectDataset zoho server dataset. -type ZohoObjectDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeDataset', 'TypeResponsysObject', 'TypeSalesforceMarketingCloudObject', 'TypeVerticaTable', 'TypeNetezzaTable', 'TypeZohoObject', 'TypeXeroObject', 'TypeSquareObject', 'TypeSparkObject', 'TypeShopifyObject', 'TypeServiceNowObject', 'TypeQuickBooksObject', 'TypePrestoObject', 'TypePhoenixObject', 'TypePaypalObject', 'TypeMarketoObject', 'TypeMariaDBTable', 'TypeMagentoObject', 'TypeJiraObject', 'TypeImpalaObject', 'TypeHubspotObject', 'TypeHiveObject', 'TypeHBaseObject', 'TypeGreenplumTable', 'TypeGoogleBigQueryObject', 'TypeEloquaObject', 'TypeDrillTable', 'TypeCouchbaseTable', 'TypeConcurObject', 'TypeAzurePostgreSQLTable', 'TypeAmazonMWSObject', 'TypeHTTPFile', 'TypeAzureSearchIndex', 'TypeWebTable', 'TypeSQLServerTable', 'TypeSapEccResource', 'TypeSapCloudForCustomerResource', 'TypeSalesforceObject', 'TypeRelationalTable', 'TypeAzureMySQLTable', 'TypeOracleTable', 'TypeODataResource', 'TypeMongoDbCollection', 'TypeFileShare', 'TypeAzureDataLakeStoreFile', 'TypeDynamicsEntity', 'TypeDocumentDbCollection', 'TypeCustomDataset', 'TypeCassandraTable', 'TypeAzureSQLDWTable', 'TypeAzureSQLTable', 'TypeAzureTable', 'TypeAzureBlob', 'TypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ZohoObjectDataset. -func (zod ZohoObjectDataset) MarshalJSON() ([]byte, error) { - zod.Type = TypeZohoObject - objectMap := make(map[string]interface{}) - if zod.Description != nil { - objectMap["description"] = zod.Description - } - objectMap["structure"] = zod.Structure - if zod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = zod.LinkedServiceName - } - if zod.Parameters != nil { - objectMap["parameters"] = zod.Parameters - } - if zod.Annotations != nil { - objectMap["annotations"] = zod.Annotations - } - if zod.Type != "" { - objectMap["type"] = zod.Type - } - for k, v := range zod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return &zod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifyObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSearchIndexDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLServerTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsODataResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileShareDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsEntityDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCustomDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureBlobDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonS3Dataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &zod, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ZohoSource a copy activity Zoho server source. -type ZohoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` - // Type - Possible values include: 'TypeCopySource', 'TypeAmazonRedshiftSource', 'TypeResponsysSource', 'TypeSalesforceMarketingCloudSource', 'TypeVerticaSource', 'TypeNetezzaSource', 'TypeZohoSource', 'TypeXeroSource', 'TypeSquareSource', 'TypeSparkSource', 'TypeShopifySource', 'TypeServiceNowSource', 'TypeQuickBooksSource', 'TypePrestoSource', 'TypePhoenixSource', 'TypePaypalSource', 'TypeMarketoSource', 'TypeMariaDBSource', 'TypeMagentoSource', 'TypeJiraSource', 'TypeImpalaSource', 'TypeHubspotSource', 'TypeHiveSource', 'TypeHBaseSource', 'TypeGreenplumSource', 'TypeGoogleBigQuerySource', 'TypeEloquaSource', 'TypeDrillSource', 'TypeCouchbaseSource', 'TypeConcurSource', 'TypeAzurePostgreSQLSource', 'TypeAmazonMWSSource', 'TypeHTTPSource', 'TypeAzureDataLakeStoreSource', 'TypeMongoDbSource', 'TypeCassandraSource', 'TypeWebSource', 'TypeOracleSource', 'TypeAzureMySQLSource', 'TypeHdfsSource', 'TypeFileSystemSource', 'TypeSQLDWSource', 'TypeSQLSource', 'TypeSapEccSource', 'TypeSapCloudForCustomerSource', 'TypeSalesforceSource', 'TypeRelationalSource', 'TypeDynamicsSource', 'TypeDocumentDbCollectionSource', 'TypeBlobSource', 'TypeAzureTableSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// MarshalJSON is the custom marshaler for ZohoSource. -func (zs ZohoSource) MarshalJSON() ([]byte, error) { - zs.Type = TypeZohoSource - objectMap := make(map[string]interface{}) - objectMap["query"] = zs.Query - objectMap["sourceRetryCount"] = zs.SourceRetryCount - objectMap["sourceRetryWait"] = zs.SourceRetryWait - if zs.Type != "" { - objectMap["type"] = zs.Type - } - for k, v := range zs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonRedshiftSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsResponsysSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsVerticaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsNetezzaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsZohoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsZohoSource() (*ZohoSource, bool) { - return &zs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsXeroSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSquareSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSparkSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsShopifySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsServiceNowSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsQuickBooksSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPrestoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPhoenixSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsPaypalSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMarketoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMariaDBSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMagentoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsJiraSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsImpalaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHubspotSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHiveSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHBaseSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGreenplumSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsGoogleBigQuerySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsEloquaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDrillSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCouchbaseSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsConcurSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAmazonMWSSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHTTPSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsMongoDbSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCassandraSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsWebSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsOracleSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureMySQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsHdfsSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsFileSystemSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLDWSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapEccSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsSalesforceSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsRelationalSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDynamicsSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBlobSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsAzureTableSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsCopySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// AsBasicCopySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &zs, true -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/operations.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/operations.go deleted file mode 100644 index d8a9ee23861d..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/operations.go +++ /dev/null @@ -1,106 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// OperationsClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that -// interact with Azure Data Factory V2 services. -type OperationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewOperationsClient creates an instance of the OperationsClient client. -func NewOperationsClient(subscriptionID string) OperationsClient { - return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. -func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { - return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// List lists the available Azure Data Factory API operations. -func (client OperationsClient) List(ctx context.Context) (result OperationListResponse, err error) { - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.OperationsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.OperationsClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.OperationsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListPreparer prepares the List request. -func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.DataFactory/operations"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/pipelineruns.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/pipelineruns.go deleted file mode 100644 index d11f8eeff02e..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/pipelineruns.go +++ /dev/null @@ -1,219 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelineRunsClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that -// interact with Azure Data Factory V2 services. -type PipelineRunsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewPipelineRunsClient creates an instance of the PipelineRunsClient client. -func NewPipelineRunsClient(subscriptionID string) PipelineRunsClient { - return NewPipelineRunsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewPipelineRunsClientWithBaseURI creates an instance of the PipelineRunsClient client. -func NewPipelineRunsClientWithBaseURI(baseURI string, subscriptionID string) PipelineRunsClient { - return PipelineRunsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Get get a pipeline run by its run ID. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// runID - the pipeline run identifier. -func (client PipelineRunsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, runID string) (result PipelineRun, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.PipelineRunsClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, factoryName, runID) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetPreparer prepares the Get request. -func (client PipelineRunsClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string, runID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "runId": autorest.Encode("path", runID), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PipelineRunsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PipelineRunsClient) GetResponder(resp *http.Response) (result PipelineRun, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QueryByFactory query pipeline runs in the factory based on input filter conditions. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// filterParameters - parameters to filter the pipeline run. -func (client PipelineRunsClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, filterParameters PipelineRunFilterParameters) (result PipelineRunQueryResponse, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: filterParameters, - Constraints: []validation.Constraint{{Target: "filterParameters.LastUpdatedAfter", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "filterParameters.LastUpdatedBefore", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.PipelineRunsClient", "QueryByFactory", err.Error()) - } - - req, err := client.QueryByFactoryPreparer(ctx, resourceGroupName, factoryName, filterParameters) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "QueryByFactory", nil, "Failure preparing request") - return - } - - resp, err := client.QueryByFactorySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "QueryByFactory", resp, "Failure sending request") - return - } - - result, err = client.QueryByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelineRunsClient", "QueryByFactory", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QueryByFactoryPreparer prepares the QueryByFactory request. -func (client PipelineRunsClient) QueryByFactoryPreparer(ctx context.Context, resourceGroupName string, factoryName string, filterParameters PipelineRunFilterParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns", pathParameters), - autorest.WithJSON(filterParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QueryByFactorySender sends the QueryByFactory request. The method will close the -// http.Response Body if it receives an error. -func (client PipelineRunsClient) QueryByFactorySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// QueryByFactoryResponder handles the response to the QueryByFactory request. The method always -// closes the http.Response Body. -func (client PipelineRunsClient) QueryByFactoryResponder(resp *http.Response) (result PipelineRunQueryResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/pipelines.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/pipelines.go deleted file mode 100644 index ec974059b14a..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/pipelines.go +++ /dev/null @@ -1,532 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// PipelinesClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that interact -// with Azure Data Factory V2 services. -type PipelinesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewPipelinesClient creates an instance of the PipelinesClient client. -func NewPipelinesClient(subscriptionID string) PipelinesClient { - return NewPipelinesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewPipelinesClientWithBaseURI creates an instance of the PipelinesClient client. -func NewPipelinesClientWithBaseURI(baseURI string, subscriptionID string) PipelinesClient { - return PipelinesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdate creates or updates a pipeline. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// pipelineName - the pipeline name. -// pipeline - pipeline resource definition. -// ifMatch - eTag of the pipeline entity. Should only be specified for update, for which it should match -// existing entity or can be * for unconditional update. -func (client PipelinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, pipeline PipelineResource, ifMatch string) (result PipelineResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: pipelineName, - Constraints: []validation.Constraint{{Target: "pipelineName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "pipelineName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "pipelineName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: pipeline, - Constraints: []validation.Constraint{{Target: "pipeline.Pipeline", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "pipeline.Pipeline.Concurrency", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "pipeline.Pipeline.Concurrency", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}, - }}}}}); err != nil { - return result, validation.NewError("datafactory.PipelinesClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, factoryName, pipelineName, pipeline, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client PipelinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, pipeline PipelineResource, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "pipelineName": autorest.Encode("path", pipelineName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}", pathParameters), - autorest.WithJSON(pipeline), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client PipelinesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client PipelinesClient) CreateOrUpdateResponder(resp *http.Response) (result PipelineResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateRun creates a run of a pipeline. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// pipelineName - the pipeline name. -// parameters - parameters of the pipeline run. -func (client PipelinesClient) CreateRun(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, parameters map[string]interface{}) (result CreateRunResponse, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: pipelineName, - Constraints: []validation.Constraint{{Target: "pipelineName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "pipelineName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "pipelineName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.PipelinesClient", "CreateRun", err.Error()) - } - - req, err := client.CreateRunPreparer(ctx, resourceGroupName, factoryName, pipelineName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateRun", nil, "Failure preparing request") - return - } - - resp, err := client.CreateRunSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateRun", resp, "Failure sending request") - return - } - - result, err = client.CreateRunResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateRun", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateRunPreparer prepares the CreateRun request. -func (client PipelinesClient) CreateRunPreparer(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, parameters map[string]interface{}) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "pipelineName": autorest.Encode("path", pipelineName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if parameters != nil && len(parameters) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(parameters)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateRunSender sends the CreateRun request. The method will close the -// http.Response Body if it receives an error. -func (client PipelinesClient) CreateRunSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateRunResponder handles the response to the CreateRun request. The method always -// closes the http.Response Body. -func (client PipelinesClient) CreateRunResponder(resp *http.Response) (result CreateRunResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Delete deletes a pipeline. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// pipelineName - the pipeline name. -func (client PipelinesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: pipelineName, - Constraints: []validation.Constraint{{Target: "pipelineName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "pipelineName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "pipelineName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.PipelinesClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, factoryName, pipelineName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeletePreparer prepares the Delete request. -func (client PipelinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "pipelineName": autorest.Encode("path", pipelineName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client PipelinesClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client PipelinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Get gets a pipeline. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// pipelineName - the pipeline name. -func (client PipelinesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string) (result PipelineResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: pipelineName, - Constraints: []validation.Constraint{{Target: "pipelineName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "pipelineName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "pipelineName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.PipelinesClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, factoryName, pipelineName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetPreparer prepares the Get request. -func (client PipelinesClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "pipelineName": autorest.Encode("path", pipelineName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PipelinesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PipelinesClient) GetResponder(resp *http.Response) (result PipelineResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactory lists pipelines. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -func (client PipelinesClient) ListByFactory(ctx context.Context, resourceGroupName string, factoryName string) (result PipelineListResponsePage, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.PipelinesClient", "ListByFactory", err.Error()) - } - - result.fn = client.listByFactoryNextResults - req, err := client.ListByFactoryPreparer(ctx, resourceGroupName, factoryName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "ListByFactory", nil, "Failure preparing request") - return - } - - resp, err := client.ListByFactorySender(req) - if err != nil { - result.plr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "ListByFactory", resp, "Failure sending request") - return - } - - result.plr, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "ListByFactory", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryPreparer prepares the ListByFactory request. -func (client PipelinesClient) ListByFactoryPreparer(ctx context.Context, resourceGroupName string, factoryName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactorySender sends the ListByFactory request. The method will close the -// http.Response Body if it receives an error. -func (client PipelinesClient) ListByFactorySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryResponder handles the response to the ListByFactory request. The method always -// closes the http.Response Body. -func (client PipelinesClient) ListByFactoryResponder(resp *http.Response) (result PipelineListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByFactoryNextResults retrieves the next set of results, if any. -func (client PipelinesClient) listByFactoryNextResults(lastResults PipelineListResponse) (result PipelineListResponse, err error) { - req, err := lastResults.pipelineListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "listByFactoryNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByFactorySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "listByFactoryNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryComplete enumerates all values, automatically crossing page boundaries as required. -func (client PipelinesClient) ListByFactoryComplete(ctx context.Context, resourceGroupName string, factoryName string) (result PipelineListResponseIterator, err error) { - result.page, err = client.ListByFactory(ctx, resourceGroupName, factoryName) - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/triggers.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/triggers.go deleted file mode 100644 index dde66bd059ff..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/triggers.go +++ /dev/null @@ -1,737 +0,0 @@ -package datafactory - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// TriggersClient is the the Azure Data Factory V2 management API provides a RESTful set of web services that interact -// with Azure Data Factory V2 services. -type TriggersClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewTriggersClient creates an instance of the TriggersClient client. -func NewTriggersClient(subscriptionID string) TriggersClient { - return NewTriggersClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// NewTriggersClientWithBaseURI creates an instance of the TriggersClient client. -func NewTriggersClientWithBaseURI(baseURI string, subscriptionID string) TriggersClient { - return TriggersClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdate creates or updates a trigger. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// triggerName - the trigger name. -// trigger - trigger resource definition. -// ifMatch - eTag of the trigger entity. Should only be specified for update, for which it should match -// existing entity or can be * for unconditional update. -func (client TriggersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, trigger TriggerResource, ifMatch string) (result TriggerResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: triggerName, - Constraints: []validation.Constraint{{Target: "triggerName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "triggerName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}, - {TargetValue: trigger, - Constraints: []validation.Constraint{{Target: "trigger.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.TriggersClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, factoryName, triggerName, trigger, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client TriggersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, trigger TriggerResource, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "triggerName": autorest.Encode("path", triggerName), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}", pathParameters), - autorest.WithJSON(trigger), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client TriggersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client TriggersClient) CreateOrUpdateResponder(resp *http.Response) (result TriggerResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Delete deletes a trigger. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// triggerName - the trigger name. -func (client TriggersClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (result autorest.Response, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: triggerName, - Constraints: []validation.Constraint{{Target: "triggerName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "triggerName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.TriggersClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, factoryName, triggerName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeletePreparer prepares the Delete request. -func (client TriggersClient) DeletePreparer(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "triggerName": autorest.Encode("path", triggerName), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client TriggersClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client TriggersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Get gets a trigger. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// triggerName - the trigger name. -func (client TriggersClient) Get(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (result TriggerResource, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: triggerName, - Constraints: []validation.Constraint{{Target: "triggerName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "triggerName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.TriggersClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, factoryName, triggerName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetPreparer prepares the Get request. -func (client TriggersClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "triggerName": autorest.Encode("path", triggerName), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client TriggersClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client TriggersClient) GetResponder(resp *http.Response) (result TriggerResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactory lists triggers. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -func (client TriggersClient) ListByFactory(ctx context.Context, resourceGroupName string, factoryName string) (result TriggerListResponsePage, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.TriggersClient", "ListByFactory", err.Error()) - } - - result.fn = client.listByFactoryNextResults - req, err := client.ListByFactoryPreparer(ctx, resourceGroupName, factoryName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListByFactory", nil, "Failure preparing request") - return - } - - resp, err := client.ListByFactorySender(req) - if err != nil { - result.tlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListByFactory", resp, "Failure sending request") - return - } - - result.tlr, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListByFactory", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryPreparer prepares the ListByFactory request. -func (client TriggersClient) ListByFactoryPreparer(ctx context.Context, resourceGroupName string, factoryName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactorySender sends the ListByFactory request. The method will close the -// http.Response Body if it receives an error. -func (client TriggersClient) ListByFactorySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryResponder handles the response to the ListByFactory request. The method always -// closes the http.Response Body. -func (client TriggersClient) ListByFactoryResponder(resp *http.Response) (result TriggerListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByFactoryNextResults retrieves the next set of results, if any. -func (client TriggersClient) listByFactoryNextResults(lastResults TriggerListResponse) (result TriggerListResponse, err error) { - req, err := lastResults.triggerListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listByFactoryNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByFactorySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listByFactoryNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByFactoryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listByFactoryNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListByFactoryComplete enumerates all values, automatically crossing page boundaries as required. -func (client TriggersClient) ListByFactoryComplete(ctx context.Context, resourceGroupName string, factoryName string) (result TriggerListResponseIterator, err error) { - result.page, err = client.ListByFactory(ctx, resourceGroupName, factoryName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListRuns list trigger runs. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// triggerName - the trigger name. -// startTime - start time for trigger runs. -// endTime - end time for trigger runs. -func (client TriggersClient) ListRuns(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, startTime date.Time, endTime date.Time) (result TriggerRunListResponsePage, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: triggerName, - Constraints: []validation.Constraint{{Target: "triggerName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "triggerName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.TriggersClient", "ListRuns", err.Error()) - } - - result.fn = client.listRunsNextResults - req, err := client.ListRunsPreparer(ctx, resourceGroupName, factoryName, triggerName, startTime, endTime) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListRuns", nil, "Failure preparing request") - return - } - - resp, err := client.ListRunsSender(req) - if err != nil { - result.trlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListRuns", resp, "Failure sending request") - return - } - - result.trlr, err = client.ListRunsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "ListRuns", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListRunsPreparer prepares the ListRuns request. -func (client TriggersClient) ListRunsPreparer(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, startTime date.Time, endTime date.Time) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "triggerName": autorest.Encode("path", triggerName), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "endTime": autorest.Encode("query", endTime), - "startTime": autorest.Encode("query", startTime), - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerruns", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListRunsSender sends the ListRuns request. The method will close the -// http.Response Body if it receives an error. -func (client TriggersClient) ListRunsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListRunsResponder handles the response to the ListRuns request. The method always -// closes the http.Response Body. -func (client TriggersClient) ListRunsResponder(resp *http.Response) (result TriggerRunListResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listRunsNextResults retrieves the next set of results, if any. -func (client TriggersClient) listRunsNextResults(lastResults TriggerRunListResponse) (result TriggerRunListResponse, err error) { - req, err := lastResults.triggerRunListResponsePreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listRunsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListRunsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listRunsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListRunsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "listRunsNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// ListRunsComplete enumerates all values, automatically crossing page boundaries as required. -func (client TriggersClient) ListRunsComplete(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, startTime date.Time, endTime date.Time) (result TriggerRunListResponseIterator, err error) { - result.page, err = client.ListRuns(ctx, resourceGroupName, factoryName, triggerName, startTime, endTime) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Start starts a trigger. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// triggerName - the trigger name. -func (client TriggersClient) Start(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (result TriggersStartFuture, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: triggerName, - Constraints: []validation.Constraint{{Target: "triggerName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "triggerName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.TriggersClient", "Start", err.Error()) - } - - req, err := client.StartPreparer(ctx, resourceGroupName, factoryName, triggerName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Start", nil, "Failure preparing request") - return - } - - result, err = client.StartSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Start", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StartPreparer prepares the Start request. -func (client TriggersClient) StartPreparer(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "triggerName": autorest.Encode("path", triggerName), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StartSender sends the Start request. The method will close the -// http.Response Body if it receives an error. -func (client TriggersClient) StartSender(req *http.Request) (future TriggersStartFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StartResponder handles the response to the Start request. The method always -// closes the http.Response Body. -func (client TriggersClient) StartResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Stop stops a trigger. -// Parameters: -// resourceGroupName - the resource group name. -// factoryName - the factory name. -// triggerName - the trigger name. -func (client TriggersClient) Stop(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (result TriggersStopFuture, 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: factoryName, - Constraints: []validation.Constraint{{Target: "factoryName", Name: validation.MaxLength, Rule: 63, Chain: nil}, - {Target: "factoryName", Name: validation.MinLength, Rule: 3, Chain: nil}, - {Target: "factoryName", Name: validation.Pattern, Rule: `^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$`, Chain: nil}}}, - {TargetValue: triggerName, - Constraints: []validation.Constraint{{Target: "triggerName", Name: validation.MaxLength, Rule: 260, Chain: nil}, - {Target: "triggerName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "triggerName", Name: validation.Pattern, Rule: `^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("datafactory.TriggersClient", "Stop", err.Error()) - } - - req, err := client.StopPreparer(ctx, resourceGroupName, factoryName, triggerName) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Stop", nil, "Failure preparing request") - return - } - - result, err = client.StopSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersClient", "Stop", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StopPreparer prepares the Stop request. -func (client TriggersClient) StopPreparer(ctx context.Context, resourceGroupName string, factoryName string, triggerName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "factoryName": autorest.Encode("path", factoryName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "triggerName": autorest.Encode("path", triggerName), - } - - const APIVersion = "2017-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StopSender sends the Stop request. The method will close the -// http.Response Body if it receives an error. -func (client TriggersClient) StopSender(req *http.Request) (future TriggersStopFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// StopResponder handles the response to the Stop request. The method always -// closes the http.Response Body. -func (client TriggersClient) StopResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/datafactory/mgmt/2017-09-01-preview/datafactory/version.go b/services/datafactory/mgmt/2017-09-01-preview/datafactory/version.go deleted file mode 100644 index a3e52ec161a4..000000000000 --- a/services/datafactory/mgmt/2017-09-01-preview/datafactory/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package datafactory - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " datafactory/2017-09-01-preview" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory instead -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/dns/mgmt/2018-03-01-preview/dns/client.go b/services/dns/mgmt/2018-03-01-preview/dns/client.go deleted file mode 100644 index 5731f414716c..000000000000 --- a/services/dns/mgmt/2018-03-01-preview/dns/client.go +++ /dev/null @@ -1,54 +0,0 @@ -// Package dns implements the Azure ARM Dns service API version 2018-03-01-preview. -// -// The DNS Management Client. -package dns - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Dns - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// BaseClient is the base client for Dns. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/services/dns/mgmt/2018-03-01-preview/dns/models.go b/services/dns/mgmt/2018-03-01-preview/dns/models.go deleted file mode 100644 index a03dabb9ba04..000000000000 --- a/services/dns/mgmt/2018-03-01-preview/dns/models.go +++ /dev/null @@ -1,856 +0,0 @@ -package dns - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/to" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordType enumerates the values for record type. -type RecordType string - -const ( - // A ... - A RecordType = "A" - // AAAA ... - AAAA RecordType = "AAAA" - // CAA ... - CAA RecordType = "CAA" - // CNAME ... - CNAME RecordType = "CNAME" - // MX ... - MX RecordType = "MX" - // NS ... - NS RecordType = "NS" - // PTR ... - PTR RecordType = "PTR" - // SOA ... - SOA RecordType = "SOA" - // SRV ... - SRV RecordType = "SRV" - // TXT ... - TXT RecordType = "TXT" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// PossibleRecordTypeValues returns an array of possible values for the RecordType const type. -func PossibleRecordTypeValues() [10]RecordType { - return [10]RecordType{A, AAAA, CAA, CNAME, MX, NS, PTR, SOA, SRV, TXT} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZoneType enumerates the values for zone type. -type ZoneType string - -const ( - // Private ... - Private ZoneType = "Private" - // Public ... - Public ZoneType = "Public" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// PossibleZoneTypeValues returns an array of possible values for the ZoneType const type. -func PossibleZoneTypeValues() [2]ZoneType { - return [2]ZoneType{Private, Public} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// AaaaRecord an AAAA record. -type AaaaRecord struct { - // Ipv6Address - The IPv6 address of this AAAA record. - Ipv6Address *string `json:"ipv6Address,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ARecord an A record. -type ARecord struct { - // Ipv4Address - The IPv4 address of this A record. - Ipv4Address *string `json:"ipv4Address,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CaaRecord a CAA record. -type CaaRecord struct { - // Flags - The flags for this CAA record as an integer between 0 and 255. - Flags *int32 `json:"flags,omitempty"` - // Tag - The tag for this CAA record. - Tag *string `json:"tag,omitempty"` - // Value - The value for this CAA record. - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CloudError an error message -type CloudError struct { - // Error - The error message body - Error *CloudErrorBody `json:"error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CloudErrorBody the body of an error message -type CloudErrorBody struct { - // Code - The error code - Code *string `json:"code,omitempty"` - // Message - A description of what caused the error - Message *string `json:"message,omitempty"` - // Target - The target resource of the error message - Target *string `json:"target,omitempty"` - // Details - Extra error information - Details *[]CloudErrorBody `json:"details,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CnameRecord a CNAME record. -type CnameRecord struct { - // Cname - The canonical name for this CNAME record. - Cname *string `json:"cname,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// MxRecord an MX record. -type MxRecord struct { - // Preference - The preference value for this MX record. - Preference *int32 `json:"preference,omitempty"` - // Exchange - The domain name of the mail host for this MX record. - Exchange *string `json:"exchange,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NsRecord an NS record. -type NsRecord struct { - // Nsdname - The name server name for this NS record. - Nsdname *string `json:"nsdname,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// PtrRecord a PTR record. -type PtrRecord struct { - // Ptrdname - The PTR target domain name for this PTR record. - Ptrdname *string `json:"ptrdname,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordSet describes a DNS record set (a collection of DNS records with the same name and type). -type RecordSet struct { - autorest.Response `json:"-"` - // ID - The ID of the record set. - ID *string `json:"id,omitempty"` - // Name - The name of the record set. - Name *string `json:"name,omitempty"` - // Type - The type of the record set. - Type *string `json:"type,omitempty"` - // Etag - The etag of the record set. - Etag *string `json:"etag,omitempty"` - // RecordSetProperties - The properties of the record set. - *RecordSetProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// MarshalJSON is the custom marshaler for RecordSet. -func (rs RecordSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rs.ID != nil { - objectMap["id"] = rs.ID - } - if rs.Name != nil { - objectMap["name"] = rs.Name - } - if rs.Type != nil { - objectMap["type"] = rs.Type - } - if rs.Etag != nil { - objectMap["etag"] = rs.Etag - } - if rs.RecordSetProperties != nil { - objectMap["properties"] = rs.RecordSetProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UnmarshalJSON is the custom unmarshaler for RecordSet struct. -func (rs *RecordSet) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - rs.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - rs.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rs.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - rs.Etag = &etag - } - case "properties": - if v != nil { - var recordSetProperties RecordSetProperties - err = json.Unmarshal(*v, &recordSetProperties) - if err != nil { - return err - } - rs.RecordSetProperties = &recordSetProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordSetListResult the response to a record set List operation. -type RecordSetListResult struct { - autorest.Response `json:"-"` - // Value - Information about the record sets in the response. - Value *[]RecordSet `json:"value,omitempty"` - // NextLink - The continuation token for the next page of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordSetListResultIterator provides access to a complete listing of RecordSet values. -type RecordSetListResultIterator struct { - i int - page RecordSetListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *RecordSetListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter RecordSetListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Response returns the raw server response from the last page request. -func (iter RecordSetListResultIterator) Response() RecordSetListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter RecordSetListResultIterator) Value() RecordSet { - if !iter.page.NotDone() { - return RecordSet{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// IsEmpty returns true if the ListResult contains no values. -func (rslr RecordSetListResult) IsEmpty() bool { - return rslr.Value == nil || len(*rslr.Value) == 0 -} - -// recordSetListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (rslr RecordSetListResult) recordSetListResultPreparer() (*http.Request, error) { - if rslr.NextLink == nil || len(to.String(rslr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(rslr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordSetListResultPage contains a page of RecordSet values. -type RecordSetListResultPage struct { - fn func(RecordSetListResult) (RecordSetListResult, error) - rslr RecordSetListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *RecordSetListResultPage) Next() error { - next, err := page.fn(page.rslr) - if err != nil { - return err - } - page.rslr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page RecordSetListResultPage) NotDone() bool { - return !page.rslr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Response returns the raw server response from the last page request. -func (page RecordSetListResultPage) Response() RecordSetListResult { - return page.rslr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page RecordSetListResultPage) Values() []RecordSet { - if page.rslr.IsEmpty() { - return nil - } - return *page.rslr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordSetProperties represents the properties of the records in the record set. -type RecordSetProperties struct { - // Metadata - The metadata attached to the record set. - Metadata map[string]*string `json:"metadata"` - // TTL - The TTL (time-to-live) of the records in the record set. - TTL *int64 `json:"TTL,omitempty"` - // Fqdn - Fully qualified domain name of the record set. - Fqdn *string `json:"fqdn,omitempty"` - // ARecords - The list of A records in the record set. - ARecords *[]ARecord `json:"ARecords,omitempty"` - // AaaaRecords - The list of AAAA records in the record set. - AaaaRecords *[]AaaaRecord `json:"AAAARecords,omitempty"` - // MxRecords - The list of MX records in the record set. - MxRecords *[]MxRecord `json:"MXRecords,omitempty"` - // NsRecords - The list of NS records in the record set. - NsRecords *[]NsRecord `json:"NSRecords,omitempty"` - // PtrRecords - The list of PTR records in the record set. - PtrRecords *[]PtrRecord `json:"PTRRecords,omitempty"` - // SrvRecords - The list of SRV records in the record set. - SrvRecords *[]SrvRecord `json:"SRVRecords,omitempty"` - // TxtRecords - The list of TXT records in the record set. - TxtRecords *[]TxtRecord `json:"TXTRecords,omitempty"` - // CnameRecord - The CNAME record in the record set. - CnameRecord *CnameRecord `json:"CNAMERecord,omitempty"` - // SoaRecord - The SOA record in the record set. - SoaRecord *SoaRecord `json:"SOARecord,omitempty"` - // CaaRecords - The list of CAA records in the record set. - CaaRecords *[]CaaRecord `json:"caaRecords,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// MarshalJSON is the custom marshaler for RecordSetProperties. -func (rsp RecordSetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rsp.Metadata != nil { - objectMap["metadata"] = rsp.Metadata - } - if rsp.TTL != nil { - objectMap["TTL"] = rsp.TTL - } - if rsp.Fqdn != nil { - objectMap["fqdn"] = rsp.Fqdn - } - if rsp.ARecords != nil { - objectMap["ARecords"] = rsp.ARecords - } - if rsp.AaaaRecords != nil { - objectMap["AAAARecords"] = rsp.AaaaRecords - } - if rsp.MxRecords != nil { - objectMap["MXRecords"] = rsp.MxRecords - } - if rsp.NsRecords != nil { - objectMap["NSRecords"] = rsp.NsRecords - } - if rsp.PtrRecords != nil { - objectMap["PTRRecords"] = rsp.PtrRecords - } - if rsp.SrvRecords != nil { - objectMap["SRVRecords"] = rsp.SrvRecords - } - if rsp.TxtRecords != nil { - objectMap["TXTRecords"] = rsp.TxtRecords - } - if rsp.CnameRecord != nil { - objectMap["CNAMERecord"] = rsp.CnameRecord - } - if rsp.SoaRecord != nil { - objectMap["SOARecord"] = rsp.SoaRecord - } - if rsp.CaaRecords != nil { - objectMap["caaRecords"] = rsp.CaaRecords - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordSetUpdateParameters parameters supplied to update a record set. -type RecordSetUpdateParameters struct { - // RecordSet - Specifies information about the record set being updated. - RecordSet *RecordSet `json:"RecordSet,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Resource common properties of an Azure Resource Manager resource -type Resource struct { - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type. - Type *string `json:"type,omitempty"` - // Location - Resource location. - Location *string `json:"location,omitempty"` - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// MarshalJSON is the custom marshaler for Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// SoaRecord an SOA record. -type SoaRecord struct { - // Host - The domain name of the authoritative name server for this SOA record. - Host *string `json:"host,omitempty"` - // Email - The email contact for this SOA record. - Email *string `json:"email,omitempty"` - // SerialNumber - The serial number for this SOA record. - SerialNumber *int64 `json:"serialNumber,omitempty"` - // RefreshTime - The refresh value for this SOA record. - RefreshTime *int64 `json:"refreshTime,omitempty"` - // RetryTime - The retry time for this SOA record. - RetryTime *int64 `json:"retryTime,omitempty"` - // ExpireTime - The expire time for this SOA record. - ExpireTime *int64 `json:"expireTime,omitempty"` - // MinimumTTL - The minimum value for this SOA record. By convention this is used to determine the negative caching duration. - MinimumTTL *int64 `json:"minimumTTL,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// SrvRecord an SRV record. -type SrvRecord struct { - // Priority - The priority value for this SRV record. - Priority *int32 `json:"priority,omitempty"` - // Weight - The weight value for this SRV record. - Weight *int32 `json:"weight,omitempty"` - // Port - The port value for this SRV record. - Port *int32 `json:"port,omitempty"` - // Target - The target domain name for this SRV record. - Target *string `json:"target,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// SubResource a reference to a another resource -type SubResource struct { - // ID - Resource Id. - ID *string `json:"id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// TxtRecord a TXT record. -type TxtRecord struct { - // Value - The text value of this TXT record. - Value *[]string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Zone describes a DNS zone. -type Zone struct { - autorest.Response `json:"-"` - // Etag - The etag of the zone. - Etag *string `json:"etag,omitempty"` - // ZoneProperties - The properties of the zone. - *ZoneProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type. - Type *string `json:"type,omitempty"` - // Location - Resource location. - Location *string `json:"location,omitempty"` - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// MarshalJSON is the custom marshaler for Zone. -func (z Zone) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if z.Etag != nil { - objectMap["etag"] = z.Etag - } - if z.ZoneProperties != nil { - objectMap["properties"] = z.ZoneProperties - } - if z.ID != nil { - objectMap["id"] = z.ID - } - if z.Name != nil { - objectMap["name"] = z.Name - } - if z.Type != nil { - objectMap["type"] = z.Type - } - if z.Location != nil { - objectMap["location"] = z.Location - } - if z.Tags != nil { - objectMap["tags"] = z.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UnmarshalJSON is the custom unmarshaler for Zone struct. -func (z *Zone) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - z.Etag = &etag - } - case "properties": - if v != nil { - var zoneProperties ZoneProperties - err = json.Unmarshal(*v, &zoneProperties) - if err != nil { - return err - } - z.ZoneProperties = &zoneProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - z.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - z.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - z.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - z.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - z.Tags = tags - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZoneListResult the response to a Zone List or ListAll operation. -type ZoneListResult struct { - autorest.Response `json:"-"` - // Value - Information about the DNS zones. - Value *[]Zone `json:"value,omitempty"` - // NextLink - The continuation token for the next page of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZoneListResultIterator provides access to a complete listing of Zone values. -type ZoneListResultIterator struct { - i int - page ZoneListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ZoneListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ZoneListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Response returns the raw server response from the last page request. -func (iter ZoneListResultIterator) Response() ZoneListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ZoneListResultIterator) Value() Zone { - if !iter.page.NotDone() { - return Zone{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// IsEmpty returns true if the ListResult contains no values. -func (zlr ZoneListResult) IsEmpty() bool { - return zlr.Value == nil || len(*zlr.Value) == 0 -} - -// zoneListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (zlr ZoneListResult) zoneListResultPreparer() (*http.Request, error) { - if zlr.NextLink == nil || len(to.String(zlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(zlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZoneListResultPage contains a page of Zone values. -type ZoneListResultPage struct { - fn func(ZoneListResult) (ZoneListResult, error) - zlr ZoneListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ZoneListResultPage) Next() error { - next, err := page.fn(page.zlr) - if err != nil { - return err - } - page.zlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ZoneListResultPage) NotDone() bool { - return !page.zlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Response returns the raw server response from the last page request. -func (page ZoneListResultPage) Response() ZoneListResult { - return page.zlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Values returns the slice of values for the current page or nil if there are no values. -func (page ZoneListResultPage) Values() []Zone { - if page.zlr.IsEmpty() { - return nil - } - return *page.zlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZoneProperties represents the properties of the zone. -type ZoneProperties struct { - // MaxNumberOfRecordSets - The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. - MaxNumberOfRecordSets *int64 `json:"maxNumberOfRecordSets,omitempty"` - // NumberOfRecordSets - The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. - NumberOfRecordSets *int64 `json:"numberOfRecordSets,omitempty"` - // NameServers - The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. - NameServers *[]string `json:"nameServers,omitempty"` - // ZoneType - The type of this DNS zone (Public or Private). Possible values include: 'Public', 'Private' - ZoneType ZoneType `json:"zoneType,omitempty"` - // RegistrationVirtualNetworks - A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private. - RegistrationVirtualNetworks *[]SubResource `json:"registrationVirtualNetworks,omitempty"` - // ResolutionVirtualNetworks - A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private. - ResolutionVirtualNetworks *[]SubResource `json:"resolutionVirtualNetworks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZonesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type ZonesDeleteFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future ZonesDeleteFuture) Result(client ZonesClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesDeleteFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("dns.ZonesDeleteFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.DeleteResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesDeleteFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesDeleteFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesDeleteFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZoneUpdate describes a request to update a DNS zone. -type ZoneUpdate struct { - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// MarshalJSON is the custom marshaler for ZoneUpdate. -func (zu ZoneUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if zu.Tags != nil { - objectMap["tags"] = zu.Tags - } - return json.Marshal(objectMap) -} diff --git a/services/dns/mgmt/2018-03-01-preview/dns/recordsets.go b/services/dns/mgmt/2018-03-01-preview/dns/recordsets.go deleted file mode 100644 index 31222a980b42..000000000000 --- a/services/dns/mgmt/2018-03-01-preview/dns/recordsets.go +++ /dev/null @@ -1,694 +0,0 @@ -package dns - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// RecordSetsClient is the the DNS Management Client. -type RecordSetsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NewRecordSetsClient creates an instance of the RecordSetsClient client. -func NewRecordSetsClient(subscriptionID string) RecordSetsClient { - return NewRecordSetsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NewRecordSetsClientWithBaseURI creates an instance of the RecordSetsClient client. -func NewRecordSetsClientWithBaseURI(baseURI string, subscriptionID string) RecordSetsClient { - return RecordSetsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdate creates or updates a record set within a DNS zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the -// type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created -// when the DNS zone is created). parameters is parameters supplied to the CreateOrUpdate operation. ifMatch is the -// etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag -// value to prevent accidentally overwritting any concurrent changes. ifNoneMatch is set to '*' to allow a new -// record set to be created, but to prevent updating an existing record set. Other values will be ignored. -func (client RecordSetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string, ifNoneMatch string) (result RecordSet, err error) { - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, zoneName, relativeRecordSetName, recordType, parameters, ifMatch, ifNoneMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client RecordSetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string, ifNoneMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "recordType": autorest.Encode("path", recordType), - "relativeRecordSetName": relativeRecordSetName, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - if len(ifNoneMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-None-Match", autorest.String(ifNoneMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client RecordSetsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client RecordSetsClient) CreateOrUpdateResponder(resp *http.Response) (result RecordSet, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Delete deletes a record set from a DNS zone. This operation cannot be undone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the -// type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the DNS -// zone is deleted). ifMatch is the etag of the record set. Omit this value to always delete the current record -// set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes. -func (client RecordSetsClient) Delete(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, ifMatch string) (result autorest.Response, err error) { - req, err := client.DeletePreparer(ctx, resourceGroupName, zoneName, relativeRecordSetName, recordType, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// DeletePreparer prepares the Delete request. -func (client RecordSetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "recordType": autorest.Encode("path", recordType), - "relativeRecordSetName": relativeRecordSetName, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client RecordSetsClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client RecordSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Get gets a record set. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the -// type of DNS record in this record set. -func (client RecordSetsClient) Get(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType) (result RecordSet, err error) { - req, err := client.GetPreparer(ctx, resourceGroupName, zoneName, relativeRecordSetName, recordType) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// GetPreparer prepares the Get request. -func (client RecordSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "recordType": autorest.Encode("path", recordType), - "relativeRecordSetName": relativeRecordSetName, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client RecordSetsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client RecordSetsClient) GetResponder(resp *http.Response) (result RecordSet, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListAllByDNSZone lists all record sets in a DNS zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). top is the maximum number of record sets to return. If not specified, returns up to 100 record sets. -// recordSetNameSuffix is the suffix label of the record set name that has to be used to filter the record set -// enumerations. If this parameter is specified, Enumeration will return only records that end with -// . -func (client RecordSetsClient) ListAllByDNSZone(ctx context.Context, resourceGroupName string, zoneName string, top *int32, recordSetNameSuffix string) (result RecordSetListResultPage, err error) { - result.fn = client.listAllByDNSZoneNextResults - req, err := client.ListAllByDNSZonePreparer(ctx, resourceGroupName, zoneName, top, recordSetNameSuffix) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListAllByDNSZone", nil, "Failure preparing request") - return - } - - resp, err := client.ListAllByDNSZoneSender(req) - if err != nil { - result.rslr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListAllByDNSZone", resp, "Failure sending request") - return - } - - result.rslr, err = client.ListAllByDNSZoneResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListAllByDNSZone", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListAllByDNSZonePreparer prepares the ListAllByDNSZone request. -func (client RecordSetsClient) ListAllByDNSZonePreparer(ctx context.Context, resourceGroupName string, zoneName string, top *int32, recordSetNameSuffix string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if len(recordSetNameSuffix) > 0 { - queryParameters["$recordsetnamesuffix"] = autorest.Encode("query", recordSetNameSuffix) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/all", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListAllByDNSZoneSender sends the ListAllByDNSZone request. The method will close the -// http.Response Body if it receives an error. -func (client RecordSetsClient) ListAllByDNSZoneSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListAllByDNSZoneResponder handles the response to the ListAllByDNSZone request. The method always -// closes the http.Response Body. -func (client RecordSetsClient) ListAllByDNSZoneResponder(resp *http.Response) (result RecordSetListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listAllByDNSZoneNextResults retrieves the next set of results, if any. -func (client RecordSetsClient) listAllByDNSZoneNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error) { - req, err := lastResults.recordSetListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listAllByDNSZoneNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListAllByDNSZoneSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listAllByDNSZoneNextResults", resp, "Failure sending next results request") - } - result, err = client.ListAllByDNSZoneResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listAllByDNSZoneNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListAllByDNSZoneComplete enumerates all values, automatically crossing page boundaries as required. -func (client RecordSetsClient) ListAllByDNSZoneComplete(ctx context.Context, resourceGroupName string, zoneName string, top *int32, recordSetNameSuffix string) (result RecordSetListResultIterator, err error) { - result.page, err = client.ListAllByDNSZone(ctx, resourceGroupName, zoneName, top, recordSetNameSuffix) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByDNSZone lists all record sets in a DNS zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). top is the maximum number of record sets to return. If not specified, returns up to 100 record sets. -// recordsetnamesuffix is the suffix label of the record set name that has to be used to filter the record set -// enumerations. If this parameter is specified, Enumeration will return only records that end with -// . -func (client RecordSetsClient) ListByDNSZone(ctx context.Context, resourceGroupName string, zoneName string, top *int32, recordsetnamesuffix string) (result RecordSetListResultPage, err error) { - result.fn = client.listByDNSZoneNextResults - req, err := client.ListByDNSZonePreparer(ctx, resourceGroupName, zoneName, top, recordsetnamesuffix) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", nil, "Failure preparing request") - return - } - - resp, err := client.ListByDNSZoneSender(req) - if err != nil { - result.rslr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", resp, "Failure sending request") - return - } - - result.rslr, err = client.ListByDNSZoneResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByDNSZone", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByDNSZonePreparer prepares the ListByDNSZone request. -func (client RecordSetsClient) ListByDNSZonePreparer(ctx context.Context, resourceGroupName string, zoneName string, top *int32, recordsetnamesuffix string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if len(recordsetnamesuffix) > 0 { - queryParameters["$recordsetnamesuffix"] = autorest.Encode("query", recordsetnamesuffix) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByDNSZoneSender sends the ListByDNSZone request. The method will close the -// http.Response Body if it receives an error. -func (client RecordSetsClient) ListByDNSZoneSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByDNSZoneResponder handles the response to the ListByDNSZone request. The method always -// closes the http.Response Body. -func (client RecordSetsClient) ListByDNSZoneResponder(resp *http.Response) (result RecordSetListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByDNSZoneNextResults retrieves the next set of results, if any. -func (client RecordSetsClient) listByDNSZoneNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error) { - req, err := lastResults.recordSetListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByDNSZoneSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByDNSZoneResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByDNSZoneNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByDNSZoneComplete enumerates all values, automatically crossing page boundaries as required. -func (client RecordSetsClient) ListByDNSZoneComplete(ctx context.Context, resourceGroupName string, zoneName string, top *int32, recordsetnamesuffix string) (result RecordSetListResultIterator, err error) { - result.page, err = client.ListByDNSZone(ctx, resourceGroupName, zoneName, top, recordsetnamesuffix) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByType lists the record sets of a specified type in a DNS zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). recordType is the type of record sets to enumerate. top is the maximum number of record sets to return. If -// not specified, returns up to 100 record sets. recordsetnamesuffix is the suffix label of the record set name -// that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will -// return only records that end with . -func (client RecordSetsClient) ListByType(ctx context.Context, resourceGroupName string, zoneName string, recordType RecordType, top *int32, recordsetnamesuffix string) (result RecordSetListResultPage, err error) { - result.fn = client.listByTypeNextResults - req, err := client.ListByTypePreparer(ctx, resourceGroupName, zoneName, recordType, top, recordsetnamesuffix) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", nil, "Failure preparing request") - return - } - - resp, err := client.ListByTypeSender(req) - if err != nil { - result.rslr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", resp, "Failure sending request") - return - } - - result.rslr, err = client.ListByTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "ListByType", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByTypePreparer prepares the ListByType request. -func (client RecordSetsClient) ListByTypePreparer(ctx context.Context, resourceGroupName string, zoneName string, recordType RecordType, top *int32, recordsetnamesuffix string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "recordType": autorest.Encode("path", recordType), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if len(recordsetnamesuffix) > 0 { - queryParameters["$recordsetnamesuffix"] = autorest.Encode("query", recordsetnamesuffix) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByTypeSender sends the ListByType request. The method will close the -// http.Response Body if it receives an error. -func (client RecordSetsClient) ListByTypeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByTypeResponder handles the response to the ListByType request. The method always -// closes the http.Response Body. -func (client RecordSetsClient) ListByTypeResponder(resp *http.Response) (result RecordSetListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByTypeNextResults retrieves the next set of results, if any. -func (client RecordSetsClient) listByTypeNextResults(lastResults RecordSetListResult) (result RecordSetListResult, err error) { - req, err := lastResults.recordSetListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByTypeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "listByTypeNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByTypeComplete enumerates all values, automatically crossing page boundaries as required. -func (client RecordSetsClient) ListByTypeComplete(ctx context.Context, resourceGroupName string, zoneName string, recordType RecordType, top *int32, recordsetnamesuffix string) (result RecordSetListResultIterator, err error) { - result.page, err = client.ListByType(ctx, resourceGroupName, zoneName, recordType, top, recordsetnamesuffix) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Update updates a record set within a DNS zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). relativeRecordSetName is the name of the record set, relative to the name of the zone. recordType is the -// type of DNS record in this record set. parameters is parameters supplied to the Update operation. ifMatch is the -// etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag -// value to prevent accidentally overwritting concurrent changes. -func (client RecordSetsClient) Update(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string) (result RecordSet, err error) { - req, err := client.UpdatePreparer(ctx, resourceGroupName, zoneName, relativeRecordSetName, recordType, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.RecordSetsClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UpdatePreparer prepares the Update request. -func (client RecordSetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType RecordType, parameters RecordSet, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "recordType": autorest.Encode("path", recordType), - "relativeRecordSetName": relativeRecordSetName, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client RecordSetsClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client RecordSetsClient) UpdateResponder(resp *http.Response) (result RecordSet, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/dns/mgmt/2018-03-01-preview/dns/version.go b/services/dns/mgmt/2018-03-01-preview/dns/version.go deleted file mode 100644 index 0cabbd595cee..000000000000 --- a/services/dns/mgmt/2018-03-01-preview/dns/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package dns - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " dns/2018-03-01-preview" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/dns/mgmt/2018-03-01-preview/dns/zones.go b/services/dns/mgmt/2018-03-01-preview/dns/zones.go deleted file mode 100644 index f3594dd9deb0..000000000000 --- a/services/dns/mgmt/2018-03-01-preview/dns/zones.go +++ /dev/null @@ -1,557 +0,0 @@ -package dns - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ZonesClient is the the DNS Management Client. -type ZonesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NewZonesClient creates an instance of the ZonesClient client. -func NewZonesClient(subscriptionID string) ZonesClient { - return NewZonesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// NewZonesClientWithBaseURI creates an instance of the ZonesClient client. -func NewZonesClientWithBaseURI(baseURI string, subscriptionID string) ZonesClient { - return ZonesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdate creates or updates a DNS zone. Does not modify DNS records within the zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). parameters is parameters supplied to the CreateOrUpdate operation. ifMatch is the etag of the DNS zone. -// Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally -// overwritting any concurrent changes. ifNoneMatch is set to '*' to allow a new DNS zone to be created, but to -// prevent updating an existing zone. Other values will be ignored. -func (client ZonesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ifNoneMatch string) (result Zone, err error) { - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, zoneName, parameters, ifMatch, ifNoneMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ZonesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, zoneName string, parameters Zone, ifMatch string, ifNoneMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - if len(ifNoneMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-None-Match", autorest.String(ifNoneMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ZonesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ZonesClient) CreateOrUpdateResponder(resp *http.Response) (result Zone, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Delete deletes a DNS zone. WARNING: All DNS records in the zone will also be deleted. This operation cannot be -// undone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). ifMatch is the etag of the DNS zone. Omit this value to always delete the current zone. Specify the -// last-seen etag value to prevent accidentally deleting any concurrent changes. -func (client ZonesClient) Delete(ctx context.Context, resourceGroupName string, zoneName string, ifMatch string) (result ZonesDeleteFuture, err error) { - req, err := client.DeletePreparer(ctx, resourceGroupName, zoneName, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Delete", nil, "Failure preparing request") - return - } - - result, err = client.DeleteSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Delete", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// DeletePreparer prepares the Delete request. -func (client ZonesClient) DeletePreparer(ctx context.Context, resourceGroupName string, zoneName string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ZonesClient) DeleteSender(req *http.Request) (future ZonesDeleteFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ZonesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Get gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). -func (client ZonesClient) Get(ctx context.Context, resourceGroupName string, zoneName string) (result Zone, err error) { - req, err := client.GetPreparer(ctx, resourceGroupName, zoneName) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// GetPreparer prepares the Get request. -func (client ZonesClient) GetPreparer(ctx context.Context, resourceGroupName string, zoneName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ZonesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ZonesClient) GetResponder(resp *http.Response) (result Zone, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// List lists the DNS zones in all resource groups in a subscription. -// -// top is the maximum number of DNS zones to return. If not specified, returns up to 100 zones. -func (client ZonesClient) List(ctx context.Context, top *int32) (result ZoneListResultPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, top) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.zlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", resp, "Failure sending request") - return - } - - result.zlr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListPreparer prepares the List request. -func (client ZonesClient) ListPreparer(ctx context.Context, top *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnszones", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ZonesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ZonesClient) ListResponder(resp *http.Response) (result ZoneListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client ZonesClient) listNextResults(lastResults ZoneListResult) (result ZoneListResult, err error) { - req, err := lastResults.zoneListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client ZonesClient) ListComplete(ctx context.Context, top *int32) (result ZoneListResultIterator, err error) { - result.page, err = client.List(ctx, top) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByResourceGroup lists the DNS zones within a resource group. -// -// resourceGroupName is the name of the resource group. top is the maximum number of record sets to return. If not -// specified, returns up to 100 record sets. -func (client ZonesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, top *int32) (result ZoneListResultPage, err error) { - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, top) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.zlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.zlr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client ZonesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, top *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client ZonesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client ZonesClient) ListByResourceGroupResponder(resp *http.Response) (result ZoneListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client ZonesClient) listByResourceGroupNextResults(lastResults ZoneListResult) (result ZoneListResult, err error) { - req, err := lastResults.zoneListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client ZonesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, top *int32) (result ZoneListResultIterator, err error) { - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName, top) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// Update updates a DNS zone. Does not modify DNS records within the zone. -// -// resourceGroupName is the name of the resource group. zoneName is the name of the DNS zone (without a terminating -// dot). parameters is parameters supplied to the Update operation. ifMatch is the etag of the DNS zone. Omit this -// value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally -// overwritting any concurrent changes. -func (client ZonesClient) Update(ctx context.Context, resourceGroupName string, zoneName string, parameters ZoneUpdate, ifMatch string) (result Zone, err error) { - req, err := client.UpdatePreparer(ctx, resourceGroupName, zoneName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "dns.ZonesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UpdatePreparer prepares the Update request. -func (client ZonesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, zoneName string, parameters ZoneUpdate, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "zoneName": autorest.Encode("path", zoneName), - } - - const APIVersion = "2018-03-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client ZonesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/dns/mgmt/2018-03-01-preview/dns instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client ZonesClient) UpdateResponder(resp *http.Response) (result Zone, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/managementpartner/mgmt/2018-02-01/managementpartner/client.go b/services/managementpartner/mgmt/2018-02-01/managementpartner/client.go deleted file mode 100644 index 8bb425639e99..000000000000 --- a/services/managementpartner/mgmt/2018-02-01/managementpartner/client.go +++ /dev/null @@ -1,52 +0,0 @@ -// Package managementpartner implements the Azure ARM Managementpartner service API version 2018-02-01. -// -// This API describe ACE Provisioning ManagementPartner -package managementpartner - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Managementpartner - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// BaseClient is the base client for Managementpartner. -type BaseClient struct { - autorest.Client - BaseURI string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// New creates an instance of the BaseClient client. -func New() BaseClient { - return NewWithBaseURI(DefaultBaseURI) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - } -} diff --git a/services/managementpartner/mgmt/2018-02-01/managementpartner/models.go b/services/managementpartner/mgmt/2018-02-01/managementpartner/models.go deleted file mode 100644 index 2f8cffdd2be4..000000000000 --- a/services/managementpartner/mgmt/2018-02-01/managementpartner/models.go +++ /dev/null @@ -1,336 +0,0 @@ -package managementpartner - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/to" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Code enumerates the values for code. -type Code string - -const ( - // BadRequest ... - BadRequest Code = "BadRequest" - // Conflict ... - Conflict Code = "Conflict" - // NotFound ... - NotFound Code = "NotFound" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// PossibleCodeValues returns an array of possible values for the Code const type. -func PossibleCodeValues() []Code { - return []Code{BadRequest, Conflict, NotFound} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// State enumerates the values for state. -type State string - -const ( - // Active ... - Active State = "Active" - // Deleted ... - Deleted State = "Deleted" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// PossibleStateValues returns an array of possible values for the State const type. -func PossibleStateValues() []State { - return []State{Active, Deleted} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Error this is the management partner operations error -type Error struct { - // Error - this is the ExtendedErrorInfo property - Error *ExtendedErrorInfo `json:"error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// ExtendedErrorInfo this is the extended error info -type ExtendedErrorInfo struct { - // Code - this is the error response code. Possible values include: 'NotFound', 'Conflict', 'BadRequest' - Code Code `json:"code,omitempty"` - // Message - this is the extended error info message - Message *string `json:"message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// OperationDisplay this is the management partner operation -type OperationDisplay struct { - // Provider - the is management partner provider - Provider *string `json:"provider,omitempty"` - // Resource - the is management partner resource - Resource *string `json:"resource,omitempty"` - // Operation - the is management partner operation - Operation *string `json:"operation,omitempty"` - // Description - the is management partner operation description - Description *string `json:"description,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// OperationList this is the management partner operations list -type OperationList struct { - autorest.Response `json:"-"` - // Value - this is the operation response list - Value *[]OperationResponse `json:"value,omitempty"` - // NextLink - Url to get the next page of items. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// OperationListIterator provides access to a complete listing of OperationResponse values. -type OperationListIterator struct { - i int - page OperationListPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *OperationListIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter OperationListIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Response returns the raw server response from the last page request. -func (iter OperationListIterator) Response() OperationList { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter OperationListIterator) Value() OperationResponse { - if !iter.page.NotDone() { - return OperationResponse{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// IsEmpty returns true if the ListResult contains no values. -func (ol OperationList) IsEmpty() bool { - return ol.Value == nil || len(*ol.Value) == 0 -} - -// operationListPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (ol OperationList) operationListPreparer() (*http.Request, error) { - if ol.NextLink == nil || len(to.String(ol.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(ol.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// OperationListPage contains a page of OperationResponse values. -type OperationListPage struct { - fn func(OperationList) (OperationList, error) - ol OperationList -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *OperationListPage) Next() error { - next, err := page.fn(page.ol) - if err != nil { - return err - } - page.ol = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page OperationListPage) NotDone() bool { - return !page.ol.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Response returns the raw server response from the last page request. -func (page OperationListPage) Response() OperationList { - return page.ol -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page OperationListPage) Values() []OperationResponse { - if page.ol.IsEmpty() { - return nil - } - return *page.ol.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// OperationResponse this is the management partner operations response -type OperationResponse struct { - // Name - this is the operation response name - Name *string `json:"name,omitempty"` - // Display - this is the operation display - Display *OperationDisplay `json:"display,omitempty"` - // Origin - the is operation response origin information - Origin *string `json:"origin,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// PartnerProperties this is the management partner properties -type PartnerProperties struct { - // PartnerID - This is the partner id - PartnerID *string `json:"partnerId,omitempty"` - // PartnerName - This is the partner name - PartnerName *string `json:"partnerName,omitempty"` - // TenantID - This is the tenant id. - TenantID *string `json:"tenantId,omitempty"` - // ObjectID - This is the object id. - ObjectID *string `json:"objectId,omitempty"` - // Version - This is the version. - Version *string `json:"version,omitempty"` - // UpdatedTime - This is the DateTime when the partner was updated. - UpdatedTime *date.Time `json:"updatedTime,omitempty"` - // CreatedTime - This is the DateTime when the partner was created. - CreatedTime *date.Time `json:"createdTime,omitempty"` - // State - This is the partner state. Possible values include: 'Active', 'Deleted' - State State `json:"state,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// PartnerResponse this is the management partner operations response -type PartnerResponse struct { - autorest.Response `json:"-"` - // Etag - Type of the partner - Etag *int32 `json:"etag,omitempty"` - // ID - Identifier of the partner - ID *string `json:"id,omitempty"` - // Name - Name of the partner - Name *string `json:"name,omitempty"` - // PartnerProperties - Properties of the partner - *PartnerProperties `json:"properties,omitempty"` - // Type - Type of resource. "Microsoft.ManagementPartner/partners" - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// MarshalJSON is the custom marshaler for PartnerResponse. -func (pr PartnerResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pr.Etag != nil { - objectMap["etag"] = pr.Etag - } - if pr.ID != nil { - objectMap["id"] = pr.ID - } - if pr.Name != nil { - objectMap["name"] = pr.Name - } - if pr.PartnerProperties != nil { - objectMap["properties"] = pr.PartnerProperties - } - if pr.Type != nil { - objectMap["type"] = pr.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// UnmarshalJSON is the custom unmarshaler for PartnerResponse struct. -func (pr *PartnerResponse) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "etag": - if v != nil { - var etag int32 - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - pr.Etag = &etag - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pr.Name = &name - } - case "properties": - if v != nil { - var partnerProperties PartnerProperties - err = json.Unmarshal(*v, &partnerProperties) - if err != nil { - return err - } - pr.PartnerProperties = &partnerProperties - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pr.Type = &typeVar - } - } - } - - return nil -} diff --git a/services/managementpartner/mgmt/2018-02-01/managementpartner/operation.go b/services/managementpartner/mgmt/2018-02-01/managementpartner/operation.go deleted file mode 100644 index 2847213512f1..000000000000 --- a/services/managementpartner/mgmt/2018-02-01/managementpartner/operation.go +++ /dev/null @@ -1,134 +0,0 @@ -package managementpartner - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// OperationClient is the this API describe ACE Provisioning ManagementPartner -type OperationClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// NewOperationClient creates an instance of the OperationClient client. -func NewOperationClient() OperationClient { - return NewOperationClientWithBaseURI(DefaultBaseURI) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// NewOperationClientWithBaseURI creates an instance of the OperationClient client. -func NewOperationClientWithBaseURI(baseURI string) OperationClient { - return OperationClient{NewWithBaseURI(baseURI)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// List list all the operations. -func (client OperationClient) List(ctx context.Context) (result OperationListPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.OperationClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.ol.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managementpartner.OperationClient", "List", resp, "Failure sending request") - return - } - - result.ol, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.OperationClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// ListPreparer prepares the List request. -func (client OperationClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.ManagementPartner/operations"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client OperationClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client OperationClient) ListResponder(resp *http.Response) (result OperationList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client OperationClient) listNextResults(lastResults OperationList) (result OperationList, err error) { - req, err := lastResults.operationListPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "managementpartner.OperationClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "managementpartner.OperationClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.OperationClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client OperationClient) ListComplete(ctx context.Context) (result OperationListIterator, err error) { - result.page, err = client.List(ctx) - return -} diff --git a/services/managementpartner/mgmt/2018-02-01/managementpartner/partner.go b/services/managementpartner/mgmt/2018-02-01/managementpartner/partner.go deleted file mode 100644 index 464f3ca73af3..000000000000 --- a/services/managementpartner/mgmt/2018-02-01/managementpartner/partner.go +++ /dev/null @@ -1,314 +0,0 @@ -package managementpartner - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// PartnerClient is the this API describe ACE Provisioning ManagementPartner -type PartnerClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// NewPartnerClient creates an instance of the PartnerClient client. -func NewPartnerClient() PartnerClient { - return NewPartnerClientWithBaseURI(DefaultBaseURI) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// NewPartnerClientWithBaseURI creates an instance of the PartnerClient client. -func NewPartnerClientWithBaseURI(baseURI string) PartnerClient { - return PartnerClient{NewWithBaseURI(baseURI)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Create create a management partner for the objectId and tenantId. -// -// partnerID is id of the Partner -func (client PartnerClient) Create(ctx context.Context, partnerID string) (result PartnerResponse, err error) { - req, err := client.CreatePreparer(ctx, partnerID) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// CreatePreparer prepares the Create request. -func (client PartnerClient) CreatePreparer(ctx context.Context, partnerID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partnerId": autorest.Encode("path", partnerID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.ManagementPartner/partners/{partnerId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client PartnerClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client PartnerClient) CreateResponder(resp *http.Response) (result PartnerResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Delete delete the management partner for the objectId and tenantId. -// -// partnerID is id of the Partner -func (client PartnerClient) Delete(ctx context.Context, partnerID string) (result autorest.Response, err error) { - req, err := client.DeletePreparer(ctx, partnerID) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// DeletePreparer prepares the Delete request. -func (client PartnerClient) DeletePreparer(ctx context.Context, partnerID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partnerId": autorest.Encode("path", partnerID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.ManagementPartner/partners/{partnerId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client PartnerClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client PartnerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Get get the management partner using the partnerId, objectId and tenantId. -// -// partnerID is id of the Partner -func (client PartnerClient) Get(ctx context.Context, partnerID string) (result PartnerResponse, err error) { - req, err := client.GetPreparer(ctx, partnerID) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// GetPreparer prepares the Get request. -func (client PartnerClient) GetPreparer(ctx context.Context, partnerID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partnerId": autorest.Encode("path", partnerID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.ManagementPartner/partners/{partnerId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PartnerClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PartnerClient) GetResponder(resp *http.Response) (result PartnerResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Update update the management partner for the objectId and tenantId. -// -// partnerID is id of the Partner -func (client PartnerClient) Update(ctx context.Context, partnerID string) (result PartnerResponse, err error) { - req, err := client.UpdatePreparer(ctx, partnerID) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managementpartner.PartnerClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// UpdatePreparer prepares the Update request. -func (client PartnerClient) UpdatePreparer(ctx context.Context, partnerID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partnerId": autorest.Encode("path", partnerID), - } - - const APIVersion = "2018-02-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.ManagementPartner/partners/{partnerId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client PartnerClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client PartnerClient) UpdateResponder(resp *http.Response) (result PartnerResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/managementpartner/mgmt/2018-02-01/managementpartner/version.go b/services/managementpartner/mgmt/2018-02-01/managementpartner/version.go deleted file mode 100644 index a056154d7482..000000000000 --- a/services/managementpartner/mgmt/2018-02-01/managementpartner/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package managementpartner - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " managementpartner/2018-02-01" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/managementpartner/mgmt/2018-02-01/managementpartner instead. -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/api.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/api.go deleted file mode 100644 index 8ac11d24342b..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/api.go +++ /dev/null @@ -1,856 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIClient is the apiManagement Client -type APIClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIClient creates an instance of the APIClient client. -func NewAPIClient(subscriptionID string) APIClient { - return NewAPIClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIClientWithBaseURI creates an instance of the APIClient client. -func NewAPIClientWithBaseURI(baseURI string, subscriptionID string) APIClient { - return APIClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates new or updates existing specified API of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// parameters - create or update parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client APIClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APICreateOrUpdateParameter, ifMatch string) (result APIContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APICreateOrUpdateParameter, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIClient) CreateOrUpdateResponder(resp *http.Response) (result APIContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified API of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -// deleteRevisions - delete all revisions of the Api. -func (client APIClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string, deleteRevisions *bool) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, ifMatch, deleteRevisions) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string, deleteRevisions *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if deleteRevisions != nil { - queryParameters["deleteRevisions"] = autorest.Encode("query", *deleteRevisions) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client APIClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result APIContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIClient) GetResponder(resp *http.Response) (result APIContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all APIs of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -// expandAPIVersionSet - include full ApiVersionSet resource in response -func (client APIClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandAPIVersionSet *bool) (result APICollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.ListByService") - defer func() { - sc := -1 - if result.ac.Response.Response != nil { - sc = result.ac.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip, expandAPIVersionSet) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.ac.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure sending request") - return - } - - result.ac, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client APIClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandAPIVersionSet *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - if expandAPIVersionSet != nil { - queryParameters["expandApiVersionSet"] = autorest.Encode("query", *expandAPIVersionSet) - } else { - queryParameters["expandApiVersionSet"] = autorest.Encode("query", false) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client APIClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client APIClient) ListByServiceResponder(resp *http.Response) (result APICollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client APIClient) listByServiceNextResults(ctx context.Context, lastResults APICollection) (result APICollection, err error) { - req, err := lastResults.aPICollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandAPIVersionSet *bool) (result APICollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip, expandAPIVersionSet) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTags lists a collection of apis associated with tags. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | isCurrent | eq | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagResourceCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.ListByTags") - defer func() { - sc := -1 - if result.trc.Response.Response != nil { - sc = result.trc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIClient", "ListByTags", err.Error()) - } - - result.fn = client.listByTagsNextResults - req, err := client.ListByTagsPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", nil, "Failure preparing request") - return - } - - resp, err := client.ListByTagsSender(req) - if err != nil { - result.trc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure sending request") - return - } - - result.trc, err = client.ListByTagsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "ListByTags", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsPreparer prepares the ListByTags request. -func (client APIClient) ListByTagsPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsSender sends the ListByTags request. The method will close the -// http.Response Body if it receives an error. -func (client APIClient) ListByTagsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsResponder handles the response to the ListByTags request. The method always -// closes the http.Response Body. -func (client APIClient) ListByTagsResponder(resp *http.Response) (result TagResourceCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByTagsNextResults retrieves the next set of results, if any. -func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults TagResourceCollection) (result TagResourceCollection, err error) { - req, err := lastResults.tagResourceCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByTagsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByTagsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "listByTagsNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIClient) ListByTagsComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagResourceCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.ListByTags") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByTags(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the specified API of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// parameters - API Update Contract parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APIUpdateContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, apiid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client APIClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APIUpdateContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client APIClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client APIClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go deleted file mode 100644 index c1d822606c8c..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go +++ /dev/null @@ -1,721 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIDiagnosticClient is the apiManagement Client -type APIDiagnosticClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIDiagnosticClient creates an instance of the APIDiagnosticClient client. -func NewAPIDiagnosticClient(subscriptionID string) APIDiagnosticClient { - return NewAPIDiagnosticClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIDiagnosticClientWithBaseURI creates an instance of the APIDiagnosticClient client. -func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient { - return APIDiagnosticClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates a new Diagnostic for an API or updates an existing one. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (result DiagnosticContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.DiagnosticContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.DiagnosticContractProperties.Enabled", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIDiagnosticClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIDiagnosticClient) CreateOrUpdateResponder(resp *http.Response) (result DiagnosticContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified Diagnostic from an API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIDiagnosticClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIDiagnosticClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the Diagnostic for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string) (result DiagnosticContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIDiagnosticClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIDiagnosticClient) GetResponder(resp *http.Response) (result DiagnosticContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -func (client APIDiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIDiagnosticClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIDiagnosticClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all diagnostics of an API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result DiagnosticCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticClient.ListByService") - defer func() { - sc := -1 - if result.dc.Response.Response != nil { - sc = result.dc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.dc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure sending request") - return - } - - result.dc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client APIDiagnosticClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client APIDiagnosticClient) ListByServiceResponder(resp *http.Response) (result DiagnosticCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, lastResults DiagnosticCollection) (result DiagnosticCollection, err error) { - req, err := lastResults.diagnosticCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIDiagnosticClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result DiagnosticCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the Diagnostic for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// parameters - diagnostic Update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client APIDiagnosticClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client APIDiagnosticClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go deleted file mode 100644 index 0029484313e6..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go +++ /dev/null @@ -1,522 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIDiagnosticLoggerClient is the apiManagement Client -type APIDiagnosticLoggerClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIDiagnosticLoggerClient creates an instance of the APIDiagnosticLoggerClient client. -func NewAPIDiagnosticLoggerClient(subscriptionID string) APIDiagnosticLoggerClient { - return NewAPIDiagnosticLoggerClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIDiagnosticLoggerClientWithBaseURI creates an instance of the APIDiagnosticLoggerClient client. -func NewAPIDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticLoggerClient { - return APIDiagnosticLoggerClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExists checks that logger entity specified by identifier is associated with the diagnostics entity. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client APIDiagnosticLoggerClient) CheckEntityExists(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticLoggerClient.CheckEntityExists") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticLoggerClient", "CheckEntityExists", err.Error()) - } - - req, err := client.CheckEntityExistsPreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CheckEntityExists", nil, "Failure preparing request") - return - } - - resp, err := client.CheckEntityExistsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CheckEntityExists", resp, "Failure sending request") - return - } - - result, err = client.CheckEntityExistsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CheckEntityExists", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsPreparer prepares the CheckEntityExists request. -func (client APIDiagnosticLoggerClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsSender sends the CheckEntityExists request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticLoggerClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always -// closes the http.Response Body. -func (client APIDiagnosticLoggerClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate attaches a logger to a dignostic for an API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client APIDiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (result LoggerContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticLoggerClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticLoggerClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIDiagnosticLoggerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticLoggerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIDiagnosticLoggerClient) CreateOrUpdateResponder(resp *http.Response) (result LoggerContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified Logger from Diagnostic for an API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client APIDiagnosticLoggerClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticLoggerClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticLoggerClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIDiagnosticLoggerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticLoggerClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIDiagnosticLoggerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all loggers assosiated with the specified Diagnostic of an API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | type | eq | | -// top - number of records to return. -// skip - number of records to skip. -func (client APIDiagnosticLoggerClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, filter string, top *int32, skip *int32) (result LoggerCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticLoggerClient.ListByService") - defer func() { - sc := -1 - if result.lc.Response.Response != nil { - sc = result.lc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIDiagnosticLoggerClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, apiid, diagnosticID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.lc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "ListByService", resp, "Failure sending request") - return - } - - result.lc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client APIDiagnosticLoggerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client APIDiagnosticLoggerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client APIDiagnosticLoggerClient) ListByServiceResponder(resp *http.Response) (result LoggerCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client APIDiagnosticLoggerClient) listByServiceNextResults(ctx context.Context, lastResults LoggerCollection) (result LoggerCollection, err error) { - req, err := lastResults.loggerCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIDiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIDiagnosticLoggerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, filter string, top *int32, skip *int32) (result LoggerCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIDiagnosticLoggerClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, diagnosticID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go deleted file mode 100644 index 7644b01979f6..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go +++ /dev/null @@ -1,146 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIExportClient is the apiManagement Client -type APIExportClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIExportClient creates an instance of the APIExportClient client. -func NewAPIExportClient(subscriptionID string) APIExportClient { - return NewAPIExportClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIExportClientWithBaseURI creates an instance of the APIExportClient client. -func NewAPIExportClientWithBaseURI(baseURI string, subscriptionID string) APIExportClient { - return APIExportClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key -// valid for 5 minutes. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// formatParameter - format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 -// minutes. -func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, formatParameter ExportFormat) (result APIExportResult, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIExportClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIExportClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, formatParameter) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIExportClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIExportClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, formatParameter ExportFormat) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "export": autorest.Encode("query", "true"), - "format": autorest.Encode("query", formatParameter), - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIExportClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIExportClient) GetResponder(resp *http.Response) (result APIExportResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go deleted file mode 100644 index 82da0f4f8a80..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go +++ /dev/null @@ -1,621 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIIssueClient is the apiManagement Client -type APIIssueClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIIssueClient creates an instance of the APIIssueClient client. -func NewAPIIssueClient(subscriptionID string) APIIssueClient { - return NewAPIIssueClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIIssueClientWithBaseURI creates an instance of the APIIssueClient client. -func NewAPIIssueClientWithBaseURI(baseURI string, subscriptionID string) APIIssueClient { - return APIIssueClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates a new Issue for an API or updates an existing one. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// parameters - create parameters. -// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of -// the GET request or it should be * for unconditional update. -func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueContract, ifMatch string) (result IssueContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.IssueContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.IssueContractProperties.Title", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.IssueContractProperties.Description", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.IssueContractProperties.UserID", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIIssueClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIIssueClient) CreateOrUpdateResponder(resp *http.Response) (result IssueContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified Issue from an API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of -// the GET request or it should be * for unconditional update. -func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIIssueClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIIssueClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the Issue for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string) (result IssueContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, issueID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIIssueClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIIssueClient) GetResponder(resp *http.Response) (result IssueContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the Issue for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -func (client APIIssueClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, issueID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIIssueClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIIssueClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all issues assosiated with the specified API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | state | eq | | -// | userId | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIIssueClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result IssueCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.ListByService") - defer func() { - sc := -1 - if result.ic.Response.Response != nil { - sc = result.ic.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.ic.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", resp, "Failure sending request") - return - } - - result.ic, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client APIIssueClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client APIIssueClient) ListByServiceResponder(resp *http.Response) (result IssueCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client APIIssueClient) listByServiceNextResults(ctx context.Context, lastResults IssueCollection) (result IssueCollection, err error) { - req, err := lastResults.issueCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIIssueClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result IssueCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go deleted file mode 100644 index 270830205c74..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go +++ /dev/null @@ -1,650 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIIssueAttachmentClient is the apiManagement Client -type APIIssueAttachmentClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIIssueAttachmentClient creates an instance of the APIIssueAttachmentClient client. -func NewAPIIssueAttachmentClient(subscriptionID string) APIIssueAttachmentClient { - return NewAPIIssueAttachmentClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIIssueAttachmentClientWithBaseURI creates an instance of the APIIssueAttachmentClient client. -func NewAPIIssueAttachmentClientWithBaseURI(baseURI string, subscriptionID string) APIIssueAttachmentClient { - return APIIssueAttachmentClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates a new Attachment for the Issue in an API or updates an existing one. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// attachmentID - attachment identifier within an Issue. Must be unique in the current Issue. -// parameters - create parameters. -// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of -// the GET request or it should be * for unconditional update. -func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string, parameters IssueAttachmentContract, ifMatch string) (result IssueAttachmentContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueAttachmentClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: attachmentID, - Constraints: []validation.Constraint{{Target: "attachmentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "attachmentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "attachmentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.IssueAttachmentContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.IssueAttachmentContractProperties.Title", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.IssueAttachmentContractProperties.ContentFormat", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.IssueAttachmentContractProperties.Content", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, attachmentID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIIssueAttachmentClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string, parameters IssueAttachmentContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "attachmentId": autorest.Encode("path", attachmentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueAttachmentClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIIssueAttachmentClient) CreateOrUpdateResponder(resp *http.Response) (result IssueAttachmentContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified comment from an Issue. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// attachmentID - attachment identifier within an Issue. Must be unique in the current Issue. -// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of -// the GET request or it should be * for unconditional update. -func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueAttachmentClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: attachmentID, - Constraints: []validation.Constraint{{Target: "attachmentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "attachmentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "attachmentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueAttachmentClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, attachmentID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIIssueAttachmentClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "attachmentId": autorest.Encode("path", attachmentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueAttachmentClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIIssueAttachmentClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the issue Attachment for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// attachmentID - attachment identifier within an Issue. Must be unique in the current Issue. -func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string) (result IssueAttachmentContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueAttachmentClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: attachmentID, - Constraints: []validation.Constraint{{Target: "attachmentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "attachmentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "attachmentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueAttachmentClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, issueID, attachmentID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIIssueAttachmentClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "attachmentId": autorest.Encode("path", attachmentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueAttachmentClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIIssueAttachmentClient) GetResponder(resp *http.Response) (result IssueAttachmentContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// attachmentID - attachment identifier within an Issue. Must be unique in the current Issue. -func (client APIIssueAttachmentClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueAttachmentClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: attachmentID, - Constraints: []validation.Constraint{{Target: "attachmentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "attachmentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "attachmentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueAttachmentClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, issueID, attachmentID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIIssueAttachmentClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "attachmentId": autorest.Encode("path", attachmentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueAttachmentClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIIssueAttachmentClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all comments for the Issue assosiated with the specified API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | userId | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIIssueAttachmentClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (result IssueAttachmentCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueAttachmentClient.ListByService") - defer func() { - sc := -1 - if result.iac.Response.Response != nil { - sc = result.iac.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueAttachmentClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.iac.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", resp, "Failure sending request") - return - } - - result.iac, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client APIIssueAttachmentClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueAttachmentClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client APIIssueAttachmentClient) ListByServiceResponder(resp *http.Response) (result IssueAttachmentCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client APIIssueAttachmentClient) listByServiceNextResults(ctx context.Context, lastResults IssueAttachmentCollection) (result IssueAttachmentCollection, err error) { - req, err := lastResults.issueAttachmentCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueAttachmentClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIIssueAttachmentClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (result IssueAttachmentCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueAttachmentClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, issueID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go deleted file mode 100644 index 65bc1d059fde..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go +++ /dev/null @@ -1,649 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIIssueCommentClient is the apiManagement Client -type APIIssueCommentClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIIssueCommentClient creates an instance of the APIIssueCommentClient client. -func NewAPIIssueCommentClient(subscriptionID string) APIIssueCommentClient { - return NewAPIIssueCommentClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIIssueCommentClientWithBaseURI creates an instance of the APIIssueCommentClient client. -func NewAPIIssueCommentClientWithBaseURI(baseURI string, subscriptionID string) APIIssueCommentClient { - return APIIssueCommentClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates a new Comment for the Issue in an API or updates an existing one. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// commentID - comment identifier within an Issue. Must be unique in the current Issue. -// parameters - create parameters. -// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of -// the GET request or it should be * for unconditional update. -func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string, parameters IssueCommentContract, ifMatch string) (result IssueCommentContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueCommentClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: commentID, - Constraints: []validation.Constraint{{Target: "commentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "commentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "commentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.IssueCommentContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.IssueCommentContractProperties.Text", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.IssueCommentContractProperties.UserID", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueCommentClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, commentID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIIssueCommentClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string, parameters IssueCommentContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "commentId": autorest.Encode("path", commentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueCommentClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIIssueCommentClient) CreateOrUpdateResponder(resp *http.Response) (result IssueCommentContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified comment from an Issue. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// commentID - comment identifier within an Issue. Must be unique in the current Issue. -// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of -// the GET request or it should be * for unconditional update. -func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueCommentClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: commentID, - Constraints: []validation.Constraint{{Target: "commentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "commentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "commentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueCommentClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, commentID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIIssueCommentClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "commentId": autorest.Encode("path", commentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueCommentClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIIssueCommentClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the issue Comment for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// commentID - comment identifier within an Issue. Must be unique in the current Issue. -func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string) (result IssueCommentContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueCommentClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: commentID, - Constraints: []validation.Constraint{{Target: "commentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "commentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "commentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueCommentClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, issueID, commentID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIIssueCommentClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "commentId": autorest.Encode("path", commentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueCommentClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIIssueCommentClient) GetResponder(resp *http.Response) (result IssueCommentContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// commentID - comment identifier within an Issue. Must be unique in the current Issue. -func (client APIIssueCommentClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueCommentClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: commentID, - Constraints: []validation.Constraint{{Target: "commentID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "commentID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "commentID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueCommentClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, issueID, commentID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIIssueCommentClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "commentId": autorest.Encode("path", commentID), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueCommentClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIIssueCommentClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all comments for the Issue assosiated with the specified API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// issueID - issue identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | userId | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIIssueCommentClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (result IssueCommentCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueCommentClient.ListByService") - defer func() { - sc := -1 - if result.icc.Response.Response != nil { - sc = result.icc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: issueID, - Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIIssueCommentClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.icc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", resp, "Failure sending request") - return - } - - result.icc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client APIIssueCommentClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "issueId": autorest.Encode("path", issueID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client APIIssueCommentClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client APIIssueCommentClient) ListByServiceResponder(resp *http.Response) (result IssueCommentCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client APIIssueCommentClient) listByServiceNextResults(ctx context.Context, lastResults IssueCommentCollection) (result IssueCommentCollection, err error) { - req, err := lastResults.issueCommentCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIIssueCommentClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIIssueCommentClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (result IssueCommentCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueCommentClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, issueID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go deleted file mode 100644 index c5bd4312e47f..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go +++ /dev/null @@ -1,744 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIOperationClient is the apiManagement Client -type APIOperationClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIOperationClient creates an instance of the APIOperationClient client. -func NewAPIOperationClient(subscriptionID string) APIOperationClient { - return NewAPIOperationClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIOperationClientWithBaseURI creates an instance of the APIOperationClient client. -func NewAPIOperationClientWithBaseURI(baseURI string, subscriptionID string) APIOperationClient { - return APIOperationClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates a new operation in the API or updates an existing one. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationContract, ifMatch string) (result OperationContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.OperationContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.OperationContractProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.OperationContractProperties.DisplayName", Name: validation.MaxLength, Rule: 300, Chain: nil}, - {Target: "parameters.OperationContractProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - {Target: "parameters.OperationContractProperties.Method", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.OperationContractProperties.URLTemplate", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.OperationContractProperties.URLTemplate", Name: validation.MaxLength, Rule: 1000, Chain: nil}, - {Target: "parameters.OperationContractProperties.URLTemplate", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, operationID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIOperationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIOperationClient) CreateOrUpdateResponder(resp *http.Response) (result OperationContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified operation in the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, operationID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIOperationClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIOperationClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the API Operation specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -func (client APIOperationClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (result OperationContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, operationID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIOperationClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIOperationClient) GetResponder(resp *http.Response) (result OperationContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the API operation specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, operationID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIOperationClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIOperationClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPI lists a collection of the operations for the specified API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result OperationCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationClient.ListByAPI") - defer func() { - sc := -1 - if result.oc.Response.Response != nil { - sc = result.oc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationClient", "ListByAPI", err.Error()) - } - - result.fn = client.listByAPINextResults - req, err := client.ListByAPIPreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.ListByAPISender(req) - if err != nil { - result.oc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure sending request") - return - } - - result.oc, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "ListByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIPreparer prepares the ListByAPI request. -func (client APIOperationClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPISender sends the ListByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationClient) ListByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIResponder handles the response to the ListByAPI request. The method always -// closes the http.Response Body. -func (client APIOperationClient) ListByAPIResponder(resp *http.Response) (result OperationCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByAPINextResults retrieves the next set of results, if any. -func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastResults OperationCollection) (result OperationCollection, err error) { - req, err := lastResults.operationCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure sending next results request") - } - result, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "listByAPINextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIOperationClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result OperationCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationClient.ListByAPI") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByAPI(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the operation in the API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// parameters - API Operation Update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIOperationClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationUpdateContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, apiid, operationID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client APIOperationClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationUpdateContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client APIOperationClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go deleted file mode 100644 index aeeb3f0abf44..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go +++ /dev/null @@ -1,576 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIOperationPolicyClient is the apiManagement Client -type APIOperationPolicyClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIOperationPolicyClient creates an instance of the APIOperationPolicyClient client. -func NewAPIOperationPolicyClient(subscriptionID string) APIOperationPolicyClient { - return NewAPIOperationPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIOperationPolicyClientWithBaseURI creates an instance of the APIOperationPolicyClient client. -func NewAPIOperationPolicyClientWithBaseURI(baseURI string, subscriptionID string) APIOperationPolicyClient { - return APIOperationPolicyClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates policy configuration for the API Operation level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// parameters - the policy contents to apply. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters PolicyContract, ifMatch string) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationPolicyClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.PolicyContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.PolicyContractProperties.PolicyContent", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationPolicyClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, operationID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIOperationPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters PolicyContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIOperationPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the policy configuration at the Api Operation. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationPolicyClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationPolicyClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, operationID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIOperationPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationPolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIOperationPolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get the policy configuration at the API Operation level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationPolicyClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationPolicyClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, operationID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIOperationPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationPolicyClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIOperationPolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the API operation policy specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationPolicyClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationPolicyClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, operationID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIOperationPolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationPolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIOperationPolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperation get the list of policy configuration at the API Operation level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (result PolicyCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIOperationPolicyClient.ListByOperation") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIOperationPolicyClient", "ListByOperation", err.Error()) - } - - req, err := client.ListByOperationPreparer(ctx, resourceGroupName, serviceName, apiid, operationID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", nil, "Failure preparing request") - return - } - - resp, err := client.ListByOperationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure sending request") - return - } - - result, err = client.ListByOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIOperationPolicyClient", "ListByOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationPreparer prepares the ListByOperation request. -func (client APIOperationPolicyClient) ListByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationSender sends the ListByOperation request. The method will close the -// http.Response Body if it receives an error. -func (client APIOperationPolicyClient) ListByOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationResponder handles the response to the ListByOperation request. The method always -// closes the http.Response Body. -func (client APIOperationPolicyClient) ListByOperationResponder(resp *http.Response) (result PolicyCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go deleted file mode 100644 index 0b13ab2aeafc..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go +++ /dev/null @@ -1,541 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIPolicyClient is the apiManagement Client -type APIPolicyClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIPolicyClient creates an instance of the APIPolicyClient client. -func NewAPIPolicyClient(subscriptionID string) APIPolicyClient { - return NewAPIPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIPolicyClientWithBaseURI creates an instance of the APIPolicyClient client. -func NewAPIPolicyClientWithBaseURI(baseURI string, subscriptionID string) APIPolicyClient { - return APIPolicyClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates policy configuration for the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// parameters - the policy contents to apply. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters PolicyContract, ifMatch string) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIPolicyClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.PolicyContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.PolicyContractProperties.PolicyContent", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIPolicyClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters PolicyContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the policy configuration at the Api. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIPolicyClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIPolicyClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIPolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIPolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get the policy configuration at the API level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIPolicyClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIPolicyClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIPolicyClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIPolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the API policy specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIPolicyClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIPolicyClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIPolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIPolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIPolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPI get the policy configuration at the API level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result PolicyCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIPolicyClient.ListByAPI") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIPolicyClient", "ListByAPI", err.Error()) - } - - req, err := client.ListByAPIPreparer(ctx, resourceGroupName, serviceName, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.ListByAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure sending request") - return - } - - result, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIPolicyClient", "ListByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIPreparer prepares the ListByAPI request. -func (client APIPolicyClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/policies", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPISender sends the ListByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client APIPolicyClient) ListByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIResponder handles the response to the ListByAPI request. The method always -// closes the http.Response Body. -func (client APIPolicyClient) ListByAPIResponder(resp *http.Response) (result PolicyCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go deleted file mode 100644 index e300a407b1a7..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go +++ /dev/null @@ -1,199 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIProductClient is the apiManagement Client -type APIProductClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIProductClient creates an instance of the APIProductClient client. -func NewAPIProductClient(subscriptionID string) APIProductClient { - return NewAPIProductClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIProductClientWithBaseURI creates an instance of the APIProductClient client. -func NewAPIProductClientWithBaseURI(baseURI string, subscriptionID string) APIProductClient { - return APIProductClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByApis lists all Products, which the API is part of. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------|------------------------|---------------------------------------------| -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result ProductCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIProductClient.ListByApis") - defer func() { - sc := -1 - if result.pc.Response.Response != nil { - sc = result.pc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIProductClient", "ListByApis", err.Error()) - } - - result.fn = client.listByApisNextResults - req, err := client.ListByApisPreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", nil, "Failure preparing request") - return - } - - resp, err := client.ListByApisSender(req) - if err != nil { - result.pc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure sending request") - return - } - - result.pc, err = client.ListByApisResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "ListByApis", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByApisPreparer prepares the ListByApis request. -func (client APIProductClient) ListByApisPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByApisSender sends the ListByApis request. The method will close the -// http.Response Body if it receives an error. -func (client APIProductClient) ListByApisSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByApisResponder handles the response to the ListByApis request. The method always -// closes the http.Response Body. -func (client APIProductClient) ListByApisResponder(resp *http.Response) (result ProductCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByApisNextResults retrieves the next set of results, if any. -func (client APIProductClient) listByApisNextResults(ctx context.Context, lastResults ProductCollection) (result ProductCollection, err error) { - req, err := lastResults.productCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByApisSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByApisResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIProductClient", "listByApisNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByApisComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIProductClient) ListByApisComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result ProductCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIProductClient.ListByApis") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByApis(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go deleted file mode 100644 index 006c4e586639..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go +++ /dev/null @@ -1,716 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIReleaseClient is the apiManagement Client -type APIReleaseClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIReleaseClient creates an instance of the APIReleaseClient client. -func NewAPIReleaseClient(subscriptionID string) APIReleaseClient { - return NewAPIReleaseClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIReleaseClientWithBaseURI creates an instance of the APIReleaseClient client. -func NewAPIReleaseClientWithBaseURI(baseURI string, subscriptionID string) APIReleaseClient { - return APIReleaseClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Create creates a new Release for the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// releaseID - release identifier within an API. Must be unique in the current API Management service instance. -// parameters - create parameters. -func (client APIReleaseClient) Create(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, parameters APIReleaseContract) (result APIReleaseContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseClient.Create") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: releaseID, - Constraints: []validation.Constraint{{Target: "releaseID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "releaseID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "releaseID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIReleaseClient", "Create", err.Error()) - } - - req, err := client.CreatePreparer(ctx, resourceGroupName, serviceName, apiid, releaseID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreatePreparer prepares the Create request. -func (client APIReleaseClient) CreatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, parameters APIReleaseContract) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "releaseId": autorest.Encode("path", releaseID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client APIReleaseClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client APIReleaseClient) CreateResponder(resp *http.Response) (result APIReleaseContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified release in the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// releaseID - release identifier within an API. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIReleaseClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: releaseID, - Constraints: []validation.Constraint{{Target: "releaseID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "releaseID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "releaseID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIReleaseClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, releaseID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIReleaseClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "releaseId": autorest.Encode("path", releaseID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIReleaseClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIReleaseClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get returns the details of an API release. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// releaseID - release identifier within an API. Must be unique in the current API Management service instance. -func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string) (result APIReleaseContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: releaseID, - Constraints: []validation.Constraint{{Target: "releaseID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "releaseID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "releaseID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIReleaseClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, releaseID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIReleaseClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "releaseId": autorest.Encode("path", releaseID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIReleaseClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIReleaseClient) GetResponder(resp *http.Response) (result APIReleaseContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag returns the etag of an API release. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// releaseID - release identifier within an API. Must be unique in the current API Management service instance. -func (client APIReleaseClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: releaseID, - Constraints: []validation.Constraint{{Target: "releaseID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "releaseID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "releaseID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIReleaseClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, releaseID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIReleaseClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "releaseId": autorest.Encode("path", releaseID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIReleaseClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIReleaseClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists all releases of an API. An API release is created when making an API Revision current. Releases are also -// used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip -// parameters. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------|------------------------|---------------------------------------------| -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// |notes|ge le eq ne gt lt|substringof contains startswith endswith| -// top - number of records to return. -// skip - number of records to skip. -func (client APIReleaseClient) List(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result APIReleaseCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseClient.List") - defer func() { - sc := -1 - if result.arc.Response.Response != nil { - sc = result.arc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIReleaseClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.arc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "List", resp, "Failure sending request") - return - } - - result.arc, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client APIReleaseClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client APIReleaseClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client APIReleaseClient) ListResponder(resp *http.Response) (result APIReleaseCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client APIReleaseClient) listNextResults(ctx context.Context, lastResults APIReleaseCollection) (result APIReleaseCollection, err error) { - req, err := lastResults.aPIReleaseCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIReleaseClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result APIReleaseCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the release of the API specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// releaseID - release identifier within an API. Must be unique in the current API Management service instance. -// parameters - API Release Update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIReleaseClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, parameters APIReleaseContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: releaseID, - Constraints: []validation.Constraint{{Target: "releaseID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "releaseID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "releaseID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIReleaseClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, apiid, releaseID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIReleaseClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client APIReleaseClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, parameters APIReleaseContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "releaseId": autorest.Encode("path", releaseID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client APIReleaseClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client APIReleaseClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go deleted file mode 100644 index ed4e6bdba6ec..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go +++ /dev/null @@ -1,200 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIRevisionsClient is the apiManagement Client -type APIRevisionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIRevisionsClient creates an instance of the APIRevisionsClient client. -func NewAPIRevisionsClient(subscriptionID string) APIRevisionsClient { - return NewAPIRevisionsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIRevisionsClientWithBaseURI creates an instance of the APIRevisionsClient client. -func NewAPIRevisionsClientWithBaseURI(baseURI string, subscriptionID string) APIRevisionsClient { - return APIRevisionsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists all revisions of an API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// -// |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| -// top - number of records to return. -// skip - number of records to skip. -func (client APIRevisionsClient) List(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result APIRevisionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIRevisionsClient.List") - defer func() { - sc := -1 - if result.arc.Response.Response != nil { - sc = result.arc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIRevisionsClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.arc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "List", resp, "Failure sending request") - return - } - - result.arc, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client APIRevisionsClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client APIRevisionsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client APIRevisionsClient) ListResponder(resp *http.Response) (result APIRevisionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client APIRevisionsClient) listNextResults(ctx context.Context, lastResults APIRevisionCollection) (result APIRevisionCollection, err error) { - req, err := lastResults.aPIRevisionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIRevisionsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIRevisionsClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result APIRevisionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIRevisionsClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go deleted file mode 100644 index 5f7856dda54b..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go +++ /dev/null @@ -1,600 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APISchemaClient is the apiManagement Client -type APISchemaClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPISchemaClient creates an instance of the APISchemaClient client. -func NewAPISchemaClient(subscriptionID string) APISchemaClient { - return NewAPISchemaClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPISchemaClientWithBaseURI creates an instance of the APISchemaClient client. -func NewAPISchemaClientWithBaseURI(baseURI string, subscriptionID string) APISchemaClient { - return APISchemaClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates schema configuration for the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// schemaID - schema identifier within an API. Must be unique in the current API Management service instance. -// parameters - the schema contents to apply. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client APISchemaClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string, parameters SchemaContract, ifMatch string) (result SchemaContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APISchemaClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: schemaID, - Constraints: []validation.Constraint{{Target: "schemaID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "schemaID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "schemaID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.SchemaContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SchemaContractProperties.ContentType", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APISchemaClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, schemaID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APISchemaClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string, parameters SchemaContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "schemaId": autorest.Encode("path", schemaID), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APISchemaClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APISchemaClient) CreateOrUpdateResponder(resp *http.Response) (result SchemaContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the schema configuration at the Api. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// schemaID - schema identifier within an API. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APISchemaClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: schemaID, - Constraints: []validation.Constraint{{Target: "schemaID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "schemaID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "schemaID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APISchemaClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, schemaID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APISchemaClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "schemaId": autorest.Encode("path", schemaID), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APISchemaClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APISchemaClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get the schema configuration at the API level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// schemaID - schema identifier within an API. Must be unique in the current API Management service instance. -func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string) (result SchemaContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APISchemaClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: schemaID, - Constraints: []validation.Constraint{{Target: "schemaID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "schemaID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "schemaID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APISchemaClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, schemaID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APISchemaClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "schemaId": autorest.Encode("path", schemaID), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APISchemaClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APISchemaClient) GetResponder(resp *http.Response) (result SchemaContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the schema specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// schemaID - schema identifier within an API. Must be unique in the current API Management service instance. -func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APISchemaClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: schemaID, - Constraints: []validation.Constraint{{Target: "schemaID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "schemaID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "schemaID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APISchemaClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, apiid, schemaID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APISchemaClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "schemaId": autorest.Encode("path", schemaID), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APISchemaClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APISchemaClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPI get the schema configuration at the API level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result SchemaCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APISchemaClient.ListByAPI") - defer func() { - sc := -1 - if result.sc.Response.Response != nil { - sc = result.sc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APISchemaClient", "ListByAPI", err.Error()) - } - - result.fn = client.listByAPINextResults - req, err := client.ListByAPIPreparer(ctx, resourceGroupName, serviceName, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.ListByAPISender(req) - if err != nil { - result.sc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure sending request") - return - } - - result.sc, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "ListByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIPreparer prepares the ListByAPI request. -func (client APISchemaClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPISender sends the ListByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client APISchemaClient) ListByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIResponder handles the response to the ListByAPI request. The method always -// closes the http.Response Body. -func (client APISchemaClient) ListByAPIResponder(resp *http.Response) (result SchemaCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByAPINextResults retrieves the next set of results, if any. -func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResults SchemaCollection) (result SchemaCollection, err error) { - req, err := lastResults.schemaCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure sending next results request") - } - result, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APISchemaClient", "listByAPINextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. -func (client APISchemaClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result SchemaCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APISchemaClient.ListByAPI") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByAPI(ctx, resourceGroupName, serviceName, apiid) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go deleted file mode 100644 index 98d1b438c13e..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go +++ /dev/null @@ -1,695 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetClient is the apiManagement Client -type APIVersionSetClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIVersionSetClient creates an instance of the APIVersionSetClient client. -func NewAPIVersionSetClient(subscriptionID string) APIVersionSetClient { - return NewAPIVersionSetClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAPIVersionSetClientWithBaseURI creates an instance of the APIVersionSetClient client. -func NewAPIVersionSetClientWithBaseURI(baseURI string, subscriptionID string) APIVersionSetClient { - return APIVersionSetClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or Updates a Api Version Set. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// versionSetID - api Version Set identifier. Must be unique in the current API Management service instance. -// parameters - create or update parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, parameters APIVersionSetContract, ifMatch string) (result APIVersionSetContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: versionSetID, - Constraints: []validation.Constraint{{Target: "versionSetID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "versionSetID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "versionSetID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.APIVersionSetContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.APIVersionSetContractProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.APIVersionSetContractProperties.DisplayName", Name: validation.MaxLength, Rule: 100, Chain: nil}, - {Target: "parameters.APIVersionSetContractProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.APIVersionSetClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, versionSetID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client APIVersionSetClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, parameters APIVersionSetContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "versionSetId": autorest.Encode("path", versionSetID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client APIVersionSetClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client APIVersionSetClient) CreateOrUpdateResponder(resp *http.Response) (result APIVersionSetContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific Api Version Set. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// versionSetID - api Version Set identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIVersionSetClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: versionSetID, - Constraints: []validation.Constraint{{Target: "versionSetID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "versionSetID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "versionSetID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIVersionSetClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, versionSetID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client APIVersionSetClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "versionSetId": autorest.Encode("path", versionSetID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client APIVersionSetClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client APIVersionSetClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the Api Version Set specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// versionSetID - api Version Set identifier. Must be unique in the current API Management service instance. -func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string) (result APIVersionSetContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: versionSetID, - Constraints: []validation.Constraint{{Target: "versionSetID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "versionSetID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "versionSetID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIVersionSetClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, versionSetID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client APIVersionSetClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "versionSetId": autorest.Encode("path", versionSetID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client APIVersionSetClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client APIVersionSetClient) GetResponder(resp *http.Response) (result APIVersionSetContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the Api Version Set specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// versionSetID - api Version Set identifier. Must be unique in the current API Management service instance. -func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: versionSetID, - Constraints: []validation.Constraint{{Target: "versionSetID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "versionSetID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "versionSetID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIVersionSetClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, versionSetID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client APIVersionSetClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "versionSetId": autorest.Encode("path", versionSetID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client APIVersionSetClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client APIVersionSetClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of API Version Sets in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |------------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | firstName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | lastName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | email | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | eq | N/A | -// | registrationDate | ge, le, eq, ne, gt, lt | N/A | -// | note | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result APIVersionSetCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetClient.ListByService") - defer func() { - sc := -1 - if result.avsc.Response.Response != nil { - sc = result.avsc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.APIVersionSetClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.avsc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure sending request") - return - } - - result.avsc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client APIVersionSetClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client APIVersionSetClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client APIVersionSetClient) ListByServiceResponder(resp *http.Response) (result APIVersionSetCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, lastResults APIVersionSetCollection) (result APIVersionSetCollection, err error) { - req, err := lastResults.aPIVersionSetCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client APIVersionSetClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result APIVersionSetCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the Api VersionSet specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// versionSetID - api Version Set identifier. Must be unique in the current API Management service instance. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client APIVersionSetClient) Update(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, parameters APIVersionSetUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: versionSetID, - Constraints: []validation.Constraint{{Target: "versionSetID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "versionSetID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "versionSetID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.APIVersionSetClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, versionSetID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.APIVersionSetClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client APIVersionSetClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, parameters APIVersionSetUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "versionSetId": autorest.Encode("path", versionSetID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client APIVersionSetClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client APIVersionSetClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go deleted file mode 100644 index 917b9a75fb7c..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go +++ /dev/null @@ -1,694 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerClient is the apiManagement Client -type AuthorizationServerClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAuthorizationServerClient creates an instance of the AuthorizationServerClient client. -func NewAuthorizationServerClient(subscriptionID string) AuthorizationServerClient { - return NewAuthorizationServerClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewAuthorizationServerClientWithBaseURI creates an instance of the AuthorizationServerClient client. -func NewAuthorizationServerClientWithBaseURI(baseURI string, subscriptionID string) AuthorizationServerClient { - return AuthorizationServerClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates new authorization server or updates an existing authorization server. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// authsid - identifier of the authorization server. -// parameters - create or update parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters AuthorizationServerContract, ifMatch string) (result AuthorizationServerContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: authsid, - Constraints: []validation.Constraint{{Target: "authsid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "authsid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "authsid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.AuthorizationServerContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.AuthorizationServerContractProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.AuthorizationServerContractProperties.DisplayName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "parameters.AuthorizationServerContractProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - {Target: "parameters.AuthorizationServerContractProperties.ClientRegistrationEndpoint", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.AuthorizationServerContractProperties.AuthorizationEndpoint", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.AuthorizationServerContractProperties.GrantTypes", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.AuthorizationServerContractProperties.ClientID", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.AuthorizationServerClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, authsid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client AuthorizationServerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters AuthorizationServerContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "authsid": autorest.Encode("path", authsid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client AuthorizationServerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client AuthorizationServerClient) CreateOrUpdateResponder(resp *http.Response) (result AuthorizationServerContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific authorization server instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// authsid - identifier of the authorization server. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, authsid string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: authsid, - Constraints: []validation.Constraint{{Target: "authsid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "authsid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "authsid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.AuthorizationServerClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, authsid, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client AuthorizationServerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "authsid": autorest.Encode("path", authsid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client AuthorizationServerClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client AuthorizationServerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the authorization server specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// authsid - identifier of the authorization server. -func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (result AuthorizationServerContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: authsid, - Constraints: []validation.Constraint{{Target: "authsid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "authsid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "authsid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.AuthorizationServerClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, authsid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client AuthorizationServerClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "authsid": autorest.Encode("path", authsid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client AuthorizationServerClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client AuthorizationServerClient) GetResponder(resp *http.Response) (result AuthorizationServerContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the authorizationServer specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// authsid - identifier of the authorization server. -func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: authsid, - Constraints: []validation.Constraint{{Target: "authsid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "authsid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "authsid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.AuthorizationServerClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, authsid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client AuthorizationServerClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "authsid": autorest.Encode("path", authsid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client AuthorizationServerClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client AuthorizationServerClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of authorization servers defined within a service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client AuthorizationServerClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result AuthorizationServerCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerClient.ListByService") - defer func() { - sc := -1 - if result.asc.Response.Response != nil { - sc = result.asc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.AuthorizationServerClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.asc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure sending request") - return - } - - result.asc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client AuthorizationServerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client AuthorizationServerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client AuthorizationServerClient) ListByServiceResponder(resp *http.Response) (result AuthorizationServerCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Context, lastResults AuthorizationServerCollection) (result AuthorizationServerCollection, err error) { - req, err := lastResults.authorizationServerCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client AuthorizationServerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result AuthorizationServerCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the authorization server specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// authsid - identifier of the authorization server. -// parameters - oAuth2 Server settings Update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client AuthorizationServerClient) Update(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters AuthorizationServerUpdateContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: authsid, - Constraints: []validation.Constraint{{Target: "authsid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "authsid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "authsid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.AuthorizationServerClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, authsid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.AuthorizationServerClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client AuthorizationServerClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters AuthorizationServerUpdateContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "authsid": autorest.Encode("path", authsid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client AuthorizationServerClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client AuthorizationServerClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/backend.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/backend.go deleted file mode 100644 index f3e3cba3a8f8..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/backend.go +++ /dev/null @@ -1,791 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendClient is the apiManagement Client -type BackendClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewBackendClient creates an instance of the BackendClient client. -func NewBackendClient(subscriptionID string) BackendClient { - return NewBackendClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewBackendClientWithBaseURI creates an instance of the BackendClient client. -func NewBackendClientWithBaseURI(baseURI string, subscriptionID string) BackendClient { - return BackendClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or Updates a backend. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendContract, ifMatch string) (result BackendContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: backendid, - Constraints: []validation.Constraint{{Target: "backendid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "backendid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "backendid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.BackendContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.BackendContractProperties.URL", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.BackendContractProperties.URL", Name: validation.MaxLength, Rule: 2000, Chain: nil}, - {Target: "parameters.BackendContractProperties.URL", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.BackendClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, backendid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client BackendClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "backendid": autorest.Encode("path", backendid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client BackendClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client BackendClient) CreateOrUpdateResponder(resp *http.Response) (result BackendContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified backend. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client BackendClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, backendid string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: backendid, - Constraints: []validation.Constraint{{Target: "backendid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "backendid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "backendid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.BackendClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, backendid, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client BackendClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "backendid": autorest.Encode("path", backendid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client BackendClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client BackendClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the backend specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. -func (client BackendClient) Get(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (result BackendContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: backendid, - Constraints: []validation.Constraint{{Target: "backendid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "backendid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "backendid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.BackendClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, backendid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client BackendClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "backendid": autorest.Encode("path", backendid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/backends/{backendid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client BackendClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client BackendClient) GetResponder(resp *http.Response) (result BackendContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the backend specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. -func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: backendid, - Constraints: []validation.Constraint{{Target: "backendid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "backendid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "backendid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.BackendClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, backendid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client BackendClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "backendid": autorest.Encode("path", backendid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client BackendClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client BackendClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of backends in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client BackendClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result BackendCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.ListByService") - defer func() { - sc := -1 - if result.bc.Response.Response != nil { - sc = result.bc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.BackendClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.bc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure sending request") - return - } - - result.bc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client BackendClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client BackendClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client BackendClient) ListByServiceResponder(resp *http.Response) (result BackendCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client BackendClient) listByServiceNextResults(ctx context.Context, lastResults BackendCollection) (result BackendCollection, err error) { - req, err := lastResults.backendCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client BackendClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result BackendCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Reconnect notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no -// timeout was specified, timeout of 2 minutes is used. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. -// parameters - reconnect request parameters. -func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters *BackendReconnectContract) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.Reconnect") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: backendid, - Constraints: []validation.Constraint{{Target: "backendid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "backendid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "backendid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.BackendClient", "Reconnect", err.Error()) - } - - req, err := client.ReconnectPreparer(ctx, resourceGroupName, serviceName, backendid, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", nil, "Failure preparing request") - return - } - - resp, err := client.ReconnectSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure sending request") - return - } - - result, err = client.ReconnectResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Reconnect", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReconnectPreparer prepares the Reconnect request. -func (client BackendClient) ReconnectPreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters *BackendReconnectContract) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "backendid": autorest.Encode("path", backendid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}/reconnect", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if parameters != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(parameters)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReconnectSender sends the Reconnect request. The method will close the -// http.Response Body if it receives an error. -func (client BackendClient) ReconnectSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReconnectResponder handles the response to the Reconnect request. The method always -// closes the http.Response Body. -func (client BackendClient) ReconnectResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates an existing backend. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// backendid - identifier of the Backend entity. Must be unique in the current API Management service instance. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client BackendClient) Update(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: backendid, - Constraints: []validation.Constraint{{Target: "backendid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "backendid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "backendid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.BackendClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, backendid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.BackendClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client BackendClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "backendid": autorest.Encode("path", backendid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client BackendClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client BackendClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go deleted file mode 100644 index 8dfa7f50621e..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go +++ /dev/null @@ -1,594 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateClient is the apiManagement Client -type CertificateClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewCertificateClient creates an instance of the CertificateClient client. -func NewCertificateClient(subscriptionID string) CertificateClient { - return NewCertificateClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewCertificateClientWithBaseURI creates an instance of the CertificateClient client. -func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) CertificateClient { - return CertificateClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates the certificate being used for authentication with the backend. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// certificateID - identifier of the certificate entity. Must be unique in the current API Management service -// instance. -// parameters - create or Update parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, parameters CertificateCreateOrUpdateParameters, ifMatch string) (result CertificateContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: certificateID, - Constraints: []validation.Constraint{{Target: "certificateID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "certificateID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "certificateID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.CertificateCreateOrUpdateProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.CertificateCreateOrUpdateProperties.Data", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.CertificateCreateOrUpdateProperties.Password", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.CertificateClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, certificateID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client CertificateClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, parameters CertificateCreateOrUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateId": autorest.Encode("path", certificateID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client CertificateClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client CertificateClient) CreateOrUpdateResponder(resp *http.Response) (result CertificateContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific certificate. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// certificateID - identifier of the certificate entity. Must be unique in the current API Management service -// instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client CertificateClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: certificateID, - Constraints: []validation.Constraint{{Target: "certificateID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "certificateID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "certificateID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.CertificateClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, certificateID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client CertificateClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateId": autorest.Encode("path", certificateID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client CertificateClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client CertificateClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the certificate specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// certificateID - identifier of the certificate entity. Must be unique in the current API Management service -// instance. -func (client CertificateClient) Get(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (result CertificateContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: certificateID, - Constraints: []validation.Constraint{{Target: "certificateID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "certificateID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "certificateID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.CertificateClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, certificateID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client CertificateClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateId": autorest.Encode("path", certificateID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/certificates/{certificateId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client CertificateClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client CertificateClient) GetResponder(resp *http.Response) (result CertificateContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the certificate specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// certificateID - identifier of the certificate entity. Must be unique in the current API Management service -// instance. -func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: certificateID, - Constraints: []validation.Constraint{{Target: "certificateID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "certificateID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "certificateID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.CertificateClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, certificateID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client CertificateClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateId": autorest.Encode("path", certificateID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client CertificateClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client CertificateClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of all certificates in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |----------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | subject | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | thumbprint | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | expirationDate | ge, le, eq, ne, gt, lt | N/A | -// top - number of records to return. -// skip - number of records to skip. -func (client CertificateClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result CertificateCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateClient.ListByService") - defer func() { - sc := -1 - if result.cc.Response.Response != nil { - sc = result.cc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.CertificateClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.cc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure sending request") - return - } - - result.cc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client CertificateClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client CertificateClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client CertificateClient) ListByServiceResponder(resp *http.Response) (result CertificateCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client CertificateClient) listByServiceNextResults(ctx context.Context, lastResults CertificateCollection) (result CertificateCollection, err error) { - req, err := lastResults.certificateCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.CertificateClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client CertificateClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result CertificateCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/client.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/client.go deleted file mode 100644 index 5c48a461b767..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/client.go +++ /dev/null @@ -1,54 +0,0 @@ -// Package apimanagement implements the Azure ARM Apimanagement service API version 2018-01-01. -// -// ApiManagement Client -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Apimanagement - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BaseClient is the base client for Apimanagement. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go deleted file mode 100644 index 995e0dab8351..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go +++ /dev/null @@ -1,408 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DelegationSettingsClient is the apiManagement Client -type DelegationSettingsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewDelegationSettingsClient creates an instance of the DelegationSettingsClient client. -func NewDelegationSettingsClient(subscriptionID string) DelegationSettingsClient { - return NewDelegationSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewDelegationSettingsClientWithBaseURI creates an instance of the DelegationSettingsClient client. -func NewDelegationSettingsClientWithBaseURI(baseURI string, subscriptionID string) DelegationSettingsClient { - return DelegationSettingsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate create or Update Delegation settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - create or update parameters. -func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalDelegationSettings) (result PortalDelegationSettings, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DelegationSettingsClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DelegationSettingsClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DelegationSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalDelegationSettings) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client DelegationSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client DelegationSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result PortalDelegationSettings, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get Delegation settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string) (result PortalDelegationSettings, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DelegationSettingsClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DelegationSettingsClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client DelegationSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/portalsettings/delegation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DelegationSettingsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DelegationSettingsClient) GetResponder(resp *http.Response) (result PortalDelegationSettings, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the DelegationSettings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client DelegationSettingsClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DelegationSettingsClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DelegationSettingsClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client DelegationSettingsClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client DelegationSettingsClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client DelegationSettingsClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update update Delegation settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - update Delegation settings. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalDelegationSettings, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DelegationSettingsClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DelegationSettingsClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DelegationSettingsClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client DelegationSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalDelegationSettings, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client DelegationSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client DelegationSettingsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go deleted file mode 100644 index e423b3c91a99..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go +++ /dev/null @@ -1,685 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DiagnosticClient is the apiManagement Client -type DiagnosticClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewDiagnosticClient creates an instance of the DiagnosticClient client. -func NewDiagnosticClient(subscriptionID string) DiagnosticClient { - return NewDiagnosticClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewDiagnosticClientWithBaseURI creates an instance of the DiagnosticClient client. -func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient { - return DiagnosticClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates a new Diagnostic or updates an existing one. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (result DiagnosticContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.DiagnosticContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.DiagnosticContractProperties.Enabled", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, diagnosticID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DiagnosticClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client DiagnosticClient) CreateOrUpdateResponder(resp *http.Response) (result DiagnosticContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified Diagnostic. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, diagnosticID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client DiagnosticClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client DiagnosticClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the Diagnostic specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string) (result DiagnosticContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, diagnosticID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client DiagnosticClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DiagnosticClient) GetResponder(resp *http.Response) (result DiagnosticContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the Diagnostic specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -func (client DiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, diagnosticID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client DiagnosticClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client DiagnosticClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all diagnostics of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result DiagnosticCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticClient.ListByService") - defer func() { - sc := -1 - if result.dc.Response.Response != nil { - sc = result.dc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.dc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure sending request") - return - } - - result.dc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client DiagnosticClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client DiagnosticClient) ListByServiceResponder(resp *http.Response) (result DiagnosticCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, lastResults DiagnosticCollection) (result DiagnosticCollection, err error) { - req, err := lastResults.diagnosticCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client DiagnosticClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result DiagnosticCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the Diagnostic specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// parameters - diagnostic Update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, diagnosticID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client DiagnosticClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client DiagnosticClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go deleted file mode 100644 index e8b01ae25bc4..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go +++ /dev/null @@ -1,498 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DiagnosticLoggerClient is the apiManagement Client -type DiagnosticLoggerClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewDiagnosticLoggerClient creates an instance of the DiagnosticLoggerClient client. -func NewDiagnosticLoggerClient(subscriptionID string) DiagnosticLoggerClient { - return NewDiagnosticLoggerClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewDiagnosticLoggerClientWithBaseURI creates an instance of the DiagnosticLoggerClient client. -func NewDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticLoggerClient { - return DiagnosticLoggerClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExists checks that logger entity specified by identifier is associated with the diagnostics entity. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client DiagnosticLoggerClient) CheckEntityExists(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticLoggerClient.CheckEntityExists") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticLoggerClient", "CheckEntityExists", err.Error()) - } - - req, err := client.CheckEntityExistsPreparer(ctx, resourceGroupName, serviceName, diagnosticID, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CheckEntityExists", nil, "Failure preparing request") - return - } - - resp, err := client.CheckEntityExistsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CheckEntityExists", resp, "Failure sending request") - return - } - - result, err = client.CheckEntityExistsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CheckEntityExists", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsPreparer prepares the CheckEntityExists request. -func (client DiagnosticLoggerClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsSender sends the CheckEntityExists request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticLoggerClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always -// closes the http.Response Body. -func (client DiagnosticLoggerClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate attaches a logger to a dignostic. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client DiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (result LoggerContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticLoggerClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticLoggerClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, diagnosticID, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DiagnosticLoggerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticLoggerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client DiagnosticLoggerClient) CreateOrUpdateResponder(resp *http.Response) (result LoggerContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified Logger from Diagnostic. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client DiagnosticLoggerClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticLoggerClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticLoggerClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, diagnosticID, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client DiagnosticLoggerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticLoggerClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client DiagnosticLoggerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all loggers assosiated with the specified Diagnostic of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// diagnosticID - diagnostic identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | -// | type | eq | | -// top - number of records to return. -// skip - number of records to skip. -func (client DiagnosticLoggerClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, filter string, top *int32, skip *int32) (result LoggerCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticLoggerClient.ListByService") - defer func() { - sc := -1 - if result.lc.Response.Response != nil { - sc = result.lc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: diagnosticID, - Constraints: []validation.Constraint{{Target: "diagnosticID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "diagnosticID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "diagnosticID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.DiagnosticLoggerClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, diagnosticID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.lc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "ListByService", resp, "Failure sending request") - return - } - - result.lc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client DiagnosticLoggerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "diagnosticId": autorest.Encode("path", diagnosticID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client DiagnosticLoggerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client DiagnosticLoggerClient) ListByServiceResponder(resp *http.Response) (result LoggerCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client DiagnosticLoggerClient) listByServiceNextResults(ctx context.Context, lastResults LoggerCollection) (result LoggerCollection, err error) { - req, err := lastResults.loggerCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.DiagnosticLoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client DiagnosticLoggerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, filter string, top *int32, skip *int32) (result LoggerCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticLoggerClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, diagnosticID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go deleted file mode 100644 index a7f4740edfa8..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go +++ /dev/null @@ -1,662 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateClient is the apiManagement Client -type EmailTemplateClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewEmailTemplateClient creates an instance of the EmailTemplateClient client. -func NewEmailTemplateClient(subscriptionID string) EmailTemplateClient { - return NewEmailTemplateClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewEmailTemplateClientWithBaseURI creates an instance of the EmailTemplateClient client. -func NewEmailTemplateClientWithBaseURI(baseURI string, subscriptionID string) EmailTemplateClient { - return EmailTemplateClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate updates an Email Template. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// templateName - email Template Name Identifier. -// parameters - email Template update parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, parameters EmailTemplateUpdateParameters, ifMatch string) (result EmailTemplateContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.EmailTemplateUpdateParameterProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.EmailTemplateUpdateParameterProperties.Subject", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.EmailTemplateUpdateParameterProperties.Subject", Name: validation.MaxLength, Rule: 1000, Chain: nil}, - {Target: "parameters.EmailTemplateUpdateParameterProperties.Subject", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - {Target: "parameters.EmailTemplateUpdateParameterProperties.Body", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.EmailTemplateUpdateParameterProperties.Body", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.EmailTemplateClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, templateName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client EmailTemplateClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, parameters EmailTemplateUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "templateName": autorest.Encode("path", templateName), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client EmailTemplateClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client EmailTemplateClient) CreateOrUpdateResponder(resp *http.Response) (result EmailTemplateContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete reset the Email Template to default template provided by the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// templateName - email Template Name Identifier. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.EmailTemplateClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, templateName, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client EmailTemplateClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "templateName": autorest.Encode("path", templateName), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client EmailTemplateClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client EmailTemplateClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the email template specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// templateName - email Template Name Identifier. -func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName) (result EmailTemplateContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.EmailTemplateClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, templateName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client EmailTemplateClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "templateName": autorest.Encode("path", templateName), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/templates/{templateName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client EmailTemplateClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client EmailTemplateClient) GetResponder(resp *http.Response) (result EmailTemplateContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the email template specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// templateName - email Template Name Identifier. -func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.EmailTemplateClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, templateName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client EmailTemplateClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "templateName": autorest.Encode("path", templateName), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client EmailTemplateClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client EmailTemplateClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of properties defined within a service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// top - number of records to return. -// skip - number of records to skip. -func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (result EmailTemplateCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateClient.ListByService") - defer func() { - sc := -1 - if result.etc.Response.Response != nil { - sc = result.etc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.EmailTemplateClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.etc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure sending request") - return - } - - result.etc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client EmailTemplateClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client EmailTemplateClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client EmailTemplateClient) ListByServiceResponder(resp *http.Response) (result EmailTemplateCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, lastResults EmailTemplateCollection) (result EmailTemplateCollection, err error) { - req, err := lastResults.emailTemplateCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client EmailTemplateClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (result EmailTemplateCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the specific Email Template. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// templateName - email Template Name Identifier. -// parameters - update parameters. -func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, parameters EmailTemplateUpdateParameters) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.EmailTemplateClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, templateName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.EmailTemplateClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client EmailTemplateClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, parameters EmailTemplateUpdateParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "templateName": autorest.Encode("path", templateName), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client EmailTemplateClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client EmailTemplateClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/group.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/group.go deleted file mode 100644 index 4726e2a4e8c1..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/group.go +++ /dev/null @@ -1,692 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupClient is the apiManagement Client -type GroupClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewGroupClient creates an instance of the GroupClient client. -func NewGroupClient(subscriptionID string) GroupClient { - return NewGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewGroupClientWithBaseURI creates an instance of the GroupClient client. -func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClient { - return GroupClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or Updates a group. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupCreateParameters, ifMatch string) (result GroupContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.GroupCreateParametersProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.GroupCreateParametersProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.GroupCreateParametersProperties.DisplayName", Name: validation.MaxLength, Rule: 300, Chain: nil}, - {Target: "parameters.GroupCreateParametersProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, groupID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client GroupClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupCreateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client GroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result GroupContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific group of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, groupID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, groupID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client GroupClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client GroupClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the group specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -func (client GroupClient) Get(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (result GroupContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, groupID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client GroupClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/groups/{groupId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client GroupClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client GroupClient) GetResponder(resp *http.Response) (result GroupContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the group specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, groupID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client GroupClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client GroupClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client GroupClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of groups defined within a service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | type | eq, ne | N/A | -// top - number of records to return. -// skip - number of records to skip. -func (client GroupClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result GroupCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.ListByService") - defer func() { - sc := -1 - if result.gc.Response.Response != nil { - sc = result.gc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.gc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure sending request") - return - } - - result.gc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client GroupClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client GroupClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client GroupClient) ListByServiceResponder(resp *http.Response) (result GroupCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResults GroupCollection) (result GroupCollection, err error) { - req, err := lastResults.groupCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client GroupClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the group specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client GroupClient) Update(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, groupID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client GroupClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client GroupClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client GroupClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go deleted file mode 100644 index 22ef549a4bca..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go +++ /dev/null @@ -1,506 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupUserClient is the apiManagement Client -type GroupUserClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewGroupUserClient creates an instance of the GroupUserClient client. -func NewGroupUserClient(subscriptionID string) GroupUserClient { - return NewGroupUserClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewGroupUserClientWithBaseURI creates an instance of the GroupUserClient client. -func NewGroupUserClientWithBaseURI(baseURI string, subscriptionID string) GroupUserClient { - return GroupUserClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExists checks that user entity specified by identifier is associated with the group entity. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupUserClient.CheckEntityExists") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupUserClient", "CheckEntityExists", err.Error()) - } - - req, err := client.CheckEntityExistsPreparer(ctx, resourceGroupName, serviceName, groupID, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", nil, "Failure preparing request") - return - } - - resp, err := client.CheckEntityExistsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure sending request") - return - } - - result, err = client.CheckEntityExistsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "CheckEntityExists", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsPreparer prepares the CheckEntityExists request. -func (client GroupUserClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsSender sends the CheckEntityExists request. The method will close the -// http.Response Body if it receives an error. -func (client GroupUserClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always -// closes the http.Response Body. -func (client GroupUserClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Create adds a user to the specified group. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client GroupUserClient) Create(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (result UserContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupUserClient.Create") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupUserClient", "Create", err.Error()) - } - - req, err := client.CreatePreparer(ctx, resourceGroupName, serviceName, groupID, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreatePreparer prepares the Create request. -func (client GroupUserClient) CreatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client GroupUserClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client GroupUserClient) CreateResponder(resp *http.Response) (result UserContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete remove existing user from existing group. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupUserClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupUserClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, groupID, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client GroupUserClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client GroupUserClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client GroupUserClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists a collection of the members of the group, specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// groupID - group identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |------------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | firstName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | lastName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | email | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | eq | N/A | -// | registrationDate | ge, le, eq, ne, gt, lt | N/A | -// | note | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client GroupUserClient) List(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (result UserCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupUserClient.List") - defer func() { - sc := -1 - if result.uc.Response.Response != nil { - sc = result.uc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.GroupUserClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, groupID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.uc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure sending request") - return - } - - result.uc, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client GroupUserClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client GroupUserClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client GroupUserClient) ListResponder(resp *http.Response) (result UserCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client GroupUserClient) listNextResults(ctx context.Context, lastResults UserCollection) (result UserCollection, err error) { - req, err := lastResults.userCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.GroupUserClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client GroupUserClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (result UserCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupUserClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, groupID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go deleted file mode 100644 index a3e631be45ab..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go +++ /dev/null @@ -1,649 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderClient is the apiManagement Client -type IdentityProviderClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewIdentityProviderClient creates an instance of the IdentityProviderClient client. -func NewIdentityProviderClient(subscriptionID string) IdentityProviderClient { - return NewIdentityProviderClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewIdentityProviderClientWithBaseURI creates an instance of the IdentityProviderClient client. -func NewIdentityProviderClientWithBaseURI(baseURI string, subscriptionID string) IdentityProviderClient { - return IdentityProviderClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or Updates the IdentityProvider configuration. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// identityProviderName - identity Provider Type identifier. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, parameters IdentityProviderContract, ifMatch string) (result IdentityProviderContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.IdentityProviderContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.IdentityProviderContractProperties.ClientID", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.IdentityProviderContractProperties.ClientID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {Target: "parameters.IdentityProviderContractProperties.ClientSecret", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.IdentityProviderContractProperties.ClientSecret", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.IdentityProviderClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, identityProviderName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client IdentityProviderClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, parameters IdentityProviderContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "identityProviderName": autorest.Encode("path", identityProviderName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client IdentityProviderClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client IdentityProviderClient) CreateOrUpdateResponder(resp *http.Response) (result IdentityProviderContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified identity provider configuration. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// identityProviderName - identity Provider Type identifier. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.IdentityProviderClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, identityProviderName, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client IdentityProviderClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "identityProviderName": autorest.Encode("path", identityProviderName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client IdentityProviderClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client IdentityProviderClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the configuration details of the identity Provider configured in specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// identityProviderName - identity Provider Type identifier. -func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType) (result IdentityProviderContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.IdentityProviderClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, identityProviderName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client IdentityProviderClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "identityProviderName": autorest.Encode("path", identityProviderName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client IdentityProviderClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client IdentityProviderClient) GetResponder(resp *http.Response) (result IdentityProviderContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the identityProvider specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// identityProviderName - identity Provider Type identifier. -func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.IdentityProviderClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, identityProviderName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client IdentityProviderClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "identityProviderName": autorest.Encode("path", identityProviderName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client IdentityProviderClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client IdentityProviderClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of Identity Provider configured in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client IdentityProviderClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string) (result IdentityProviderListPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderClient.ListByService") - defer func() { - sc := -1 - if result.ipl.Response.Response != nil { - sc = result.ipl.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.IdentityProviderClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.ipl.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure sending request") - return - } - - result.ipl, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client IdentityProviderClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/identityProviders", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client IdentityProviderClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client IdentityProviderClient) ListByServiceResponder(resp *http.Response) (result IdentityProviderList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client IdentityProviderClient) listByServiceNextResults(ctx context.Context, lastResults IdentityProviderList) (result IdentityProviderList, err error) { - req, err := lastResults.identityProviderListPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client IdentityProviderClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string) (result IdentityProviderListIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates an existing IdentityProvider configuration. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// identityProviderName - identity Provider Type identifier. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, parameters IdentityProviderUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.IdentityProviderClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, identityProviderName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.IdentityProviderClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client IdentityProviderClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, parameters IdentityProviderUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "identityProviderName": autorest.Encode("path", identityProviderName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client IdentityProviderClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client IdentityProviderClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/logger.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/logger.go deleted file mode 100644 index ece8e96a2d47..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/logger.go +++ /dev/null @@ -1,684 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerClient is the apiManagement Client -type LoggerClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewLoggerClient creates an instance of the LoggerClient client. -func NewLoggerClient(subscriptionID string) LoggerClient { - return NewLoggerClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewLoggerClientWithBaseURI creates an instance of the LoggerClient client. -func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient { - return LoggerClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or Updates a logger. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// loggerid - logger identifier. Must be unique in the API Management service instance. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerContract, ifMatch string) (result LoggerContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.LoggerContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.LoggerContractProperties.Description", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.LoggerContractProperties.Description", Name: validation.MaxLength, Rule: 256, Chain: nil}}}, - {Target: "parameters.LoggerContractProperties.Credentials", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.LoggerClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, loggerid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client LoggerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client LoggerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client LoggerClient) CreateOrUpdateResponder(resp *http.Response) (result LoggerContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified logger. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// loggerid - logger identifier. Must be unique in the API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.LoggerClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, loggerid, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client LoggerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client LoggerClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client LoggerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the logger specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (result LoggerContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.LoggerClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client LoggerClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client LoggerClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client LoggerClient) GetResponder(resp *http.Response) (result LoggerContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the logger specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// loggerid - logger identifier. Must be unique in the API Management service instance. -func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.LoggerClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, loggerid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client LoggerClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client LoggerClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client LoggerClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of loggers in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | type | eq | | -// top - number of records to return. -// skip - number of records to skip. -func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result LoggerCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerClient.ListByService") - defer func() { - sc := -1 - if result.lc.Response.Response != nil { - sc = result.lc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.LoggerClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.lc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure sending request") - return - } - - result.lc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client LoggerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client LoggerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client LoggerClient) ListByServiceResponder(resp *http.Response) (result LoggerCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastResults LoggerCollection) (result LoggerCollection, err error) { - req, err := lastResults.loggerCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client LoggerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result LoggerCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates an existing logger. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// loggerid - logger identifier. Must be unique in the API Management service instance. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerUpdateContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: loggerid, - Constraints: []validation.Constraint{{Target: "loggerid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "loggerid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.LoggerClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, loggerid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.LoggerClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client LoggerClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerUpdateContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "loggerid": autorest.Encode("path", loggerid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client LoggerClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client LoggerClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go deleted file mode 100644 index 401e26270839..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go +++ /dev/null @@ -1,12086 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/to" - "github.com/Azure/go-autorest/tracing" - "github.com/satori/go.uuid" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2018-01-01/apimanagement" - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIType enumerates the values for api type. -type APIType string - -const ( - // HTTP ... - HTTP APIType = "http" - // Soap ... - Soap APIType = "soap" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleAPITypeValues returns an array of possible values for the APIType const type. -func PossibleAPITypeValues() []APIType { - return []APIType{HTTP, Soap} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AsyncOperationStatus enumerates the values for async operation status. -type AsyncOperationStatus string - -const ( - // Failed ... - Failed AsyncOperationStatus = "Failed" - // InProgress ... - InProgress AsyncOperationStatus = "InProgress" - // Started ... - Started AsyncOperationStatus = "Started" - // Succeeded ... - Succeeded AsyncOperationStatus = "Succeeded" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleAsyncOperationStatusValues returns an array of possible values for the AsyncOperationStatus const type. -func PossibleAsyncOperationStatusValues() []AsyncOperationStatus { - return []AsyncOperationStatus{Failed, InProgress, Started, Succeeded} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationMethod enumerates the values for authorization method. -type AuthorizationMethod string - -const ( - // DELETE ... - DELETE AuthorizationMethod = "DELETE" - // GET ... - GET AuthorizationMethod = "GET" - // HEAD ... - HEAD AuthorizationMethod = "HEAD" - // OPTIONS ... - OPTIONS AuthorizationMethod = "OPTIONS" - // PATCH ... - PATCH AuthorizationMethod = "PATCH" - // POST ... - POST AuthorizationMethod = "POST" - // PUT ... - PUT AuthorizationMethod = "PUT" - // TRACE ... - TRACE AuthorizationMethod = "TRACE" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleAuthorizationMethodValues returns an array of possible values for the AuthorizationMethod const type. -func PossibleAuthorizationMethodValues() []AuthorizationMethod { - return []AuthorizationMethod{DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendProtocol enumerates the values for backend protocol. -type BackendProtocol string - -const ( - // BackendProtocolHTTP The Backend is a RESTful service. - BackendProtocolHTTP BackendProtocol = "http" - // BackendProtocolSoap The Backend is a SOAP service. - BackendProtocolSoap BackendProtocol = "soap" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleBackendProtocolValues returns an array of possible values for the BackendProtocol const type. -func PossibleBackendProtocolValues() []BackendProtocol { - return []BackendProtocol{BackendProtocolHTTP, BackendProtocolSoap} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BearerTokenSendingMethod enumerates the values for bearer token sending method. -type BearerTokenSendingMethod string - -const ( - // AuthorizationHeader ... - AuthorizationHeader BearerTokenSendingMethod = "authorizationHeader" - // Query ... - Query BearerTokenSendingMethod = "query" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleBearerTokenSendingMethodValues returns an array of possible values for the BearerTokenSendingMethod const type. -func PossibleBearerTokenSendingMethodValues() []BearerTokenSendingMethod { - return []BearerTokenSendingMethod{AuthorizationHeader, Query} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BearerTokenSendingMethods enumerates the values for bearer token sending methods. -type BearerTokenSendingMethods string - -const ( - // BearerTokenSendingMethodsAuthorizationHeader Access token will be transmitted in the Authorization - // header using Bearer schema - BearerTokenSendingMethodsAuthorizationHeader BearerTokenSendingMethods = "authorizationHeader" - // BearerTokenSendingMethodsQuery Access token will be transmitted as query parameters. - BearerTokenSendingMethodsQuery BearerTokenSendingMethods = "query" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleBearerTokenSendingMethodsValues returns an array of possible values for the BearerTokenSendingMethods const type. -func PossibleBearerTokenSendingMethodsValues() []BearerTokenSendingMethods { - return []BearerTokenSendingMethods{BearerTokenSendingMethodsAuthorizationHeader, BearerTokenSendingMethodsQuery} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ClientAuthenticationMethod enumerates the values for client authentication method. -type ClientAuthenticationMethod string - -const ( - // Basic Basic Client Authentication method. - Basic ClientAuthenticationMethod = "Basic" - // Body Body based Authentication method. - Body ClientAuthenticationMethod = "Body" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleClientAuthenticationMethodValues returns an array of possible values for the ClientAuthenticationMethod const type. -func PossibleClientAuthenticationMethodValues() []ClientAuthenticationMethod { - return []ClientAuthenticationMethod{Basic, Body} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Confirmation enumerates the values for confirmation. -type Confirmation string - -const ( - // Invite Send an e-mail inviting the user to sign-up and complete registration. - Invite Confirmation = "invite" - // Signup Send an e-mail to the user confirming they have successfully signed up. - Signup Confirmation = "signup" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleConfirmationValues returns an array of possible values for the Confirmation const type. -func PossibleConfirmationValues() []Confirmation { - return []Confirmation{Invite, Signup} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ConnectivityStatusType enumerates the values for connectivity status type. -type ConnectivityStatusType string - -const ( - // Failure ... - Failure ConnectivityStatusType = "failure" - // Initializing ... - Initializing ConnectivityStatusType = "initializing" - // Success ... - Success ConnectivityStatusType = "success" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleConnectivityStatusTypeValues returns an array of possible values for the ConnectivityStatusType const type. -func PossibleConnectivityStatusTypeValues() []ConnectivityStatusType { - return []ConnectivityStatusType{Failure, Initializing, Success} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ContentFormat enumerates the values for content format. -type ContentFormat string - -const ( - // SwaggerJSON The contents are inline and Content Type is a OpenApi 2.0 Document. - SwaggerJSON ContentFormat = "swagger-json" - // SwaggerLinkJSON The Open Api 2.0 document is hosted on a publicly accessible internet address. - SwaggerLinkJSON ContentFormat = "swagger-link-json" - // WadlLinkJSON The WADL document is hosted on a publicly accessible internet address. - WadlLinkJSON ContentFormat = "wadl-link-json" - // WadlXML The contents are inline and Content type is a WADL document. - WadlXML ContentFormat = "wadl-xml" - // Wsdl The contents are inline and the document is a WSDL/Soap document. - Wsdl ContentFormat = "wsdl" - // WsdlLink The WSDL document is hosted on a publicly accessible internet address. - WsdlLink ContentFormat = "wsdl-link" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleContentFormatValues returns an array of possible values for the ContentFormat const type. -func PossibleContentFormatValues() []ContentFormat { - return []ContentFormat{SwaggerJSON, SwaggerLinkJSON, WadlLinkJSON, WadlXML, Wsdl, WsdlLink} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ExportFormat enumerates the values for export format. -type ExportFormat string - -const ( - // ExportFormatSwagger Export the Api Definition in OpenApi Specification 2.0 format to the Storage Blob. - ExportFormatSwagger ExportFormat = "swagger-link" - // ExportFormatWadl Export the Api Definition in WADL Schema to Storage Blob. - ExportFormatWadl ExportFormat = "wadl-link" - // ExportFormatWsdl Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for - // APIs of Type `soap` - ExportFormatWsdl ExportFormat = "wsdl-link" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleExportFormatValues returns an array of possible values for the ExportFormat const type. -func PossibleExportFormatValues() []ExportFormat { - return []ExportFormat{ExportFormatSwagger, ExportFormatWadl, ExportFormatWsdl} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GrantType enumerates the values for grant type. -type GrantType string - -const ( - // AuthorizationCode Authorization Code Grant flow as described - // https://tools.ietf.org/html/rfc6749#section-4.1. - AuthorizationCode GrantType = "authorizationCode" - // ClientCredentials Client Credentials Grant flow as described - // https://tools.ietf.org/html/rfc6749#section-4.4. - ClientCredentials GrantType = "clientCredentials" - // Implicit Implicit Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.2. - Implicit GrantType = "implicit" - // ResourceOwnerPassword Resource Owner Password Grant flow as described - // https://tools.ietf.org/html/rfc6749#section-4.3. - ResourceOwnerPassword GrantType = "resourceOwnerPassword" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleGrantTypeValues returns an array of possible values for the GrantType const type. -func PossibleGrantTypeValues() []GrantType { - return []GrantType{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupType enumerates the values for group type. -type GroupType string - -const ( - // Custom ... - Custom GroupType = "custom" - // External ... - External GroupType = "external" - // System ... - System GroupType = "system" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleGroupTypeValues returns an array of possible values for the GroupType const type. -func PossibleGroupTypeValues() []GroupType { - return []GroupType{Custom, External, System} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// HostnameType enumerates the values for hostname type. -type HostnameType string - -const ( - // Management ... - Management HostnameType = "Management" - // Portal ... - Portal HostnameType = "Portal" - // Proxy ... - Proxy HostnameType = "Proxy" - // Scm ... - Scm HostnameType = "Scm" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type. -func PossibleHostnameTypeValues() []HostnameType { - return []HostnameType{Management, Portal, Proxy, Scm} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderType enumerates the values for identity provider type. -type IdentityProviderType string - -const ( - // Aad Azure Active Directory as Identity provider. - Aad IdentityProviderType = "aad" - // AadB2C Azure Active Directory B2C as Identity provider. - AadB2C IdentityProviderType = "aadB2C" - // Facebook Facebook as Identity provider. - Facebook IdentityProviderType = "facebook" - // Google Google as Identity provider. - Google IdentityProviderType = "google" - // Microsoft Microsoft Live as Identity provider. - Microsoft IdentityProviderType = "microsoft" - // Twitter Twitter as Identity provider. - Twitter IdentityProviderType = "twitter" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleIdentityProviderTypeValues returns an array of possible values for the IdentityProviderType const type. -func PossibleIdentityProviderTypeValues() []IdentityProviderType { - return []IdentityProviderType{Aad, AadB2C, Facebook, Google, Microsoft, Twitter} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// KeyType enumerates the values for key type. -type KeyType string - -const ( - // Primary ... - Primary KeyType = "primary" - // Secondary ... - Secondary KeyType = "secondary" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleKeyTypeValues returns an array of possible values for the KeyType const type. -func PossibleKeyTypeValues() []KeyType { - return []KeyType{Primary, Secondary} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerType enumerates the values for logger type. -type LoggerType string - -const ( - // ApplicationInsights Azure Application Insights as log destination. - ApplicationInsights LoggerType = "applicationInsights" - // AzureEventHub Azure Event Hub as log destination. - AzureEventHub LoggerType = "azureEventHub" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleLoggerTypeValues returns an array of possible values for the LoggerType const type. -func PossibleLoggerTypeValues() []LoggerType { - return []LoggerType{ApplicationInsights, AzureEventHub} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NameAvailabilityReason enumerates the values for name availability reason. -type NameAvailabilityReason string - -const ( - // AlreadyExists ... - AlreadyExists NameAvailabilityReason = "AlreadyExists" - // Invalid ... - Invalid NameAvailabilityReason = "Invalid" - // Valid ... - Valid NameAvailabilityReason = "Valid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type. -func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason { - return []NameAvailabilityReason{AlreadyExists, Invalid, Valid} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationName enumerates the values for notification name. -type NotificationName string - -const ( - // AccountClosedPublisher The following email recipients and users will receive email notifications when - // developer closes his account. - AccountClosedPublisher NotificationName = "AccountClosedPublisher" - // BCC The following recipients will receive blind carbon copies of all emails sent to developers. - BCC NotificationName = "BCC" - // NewApplicationNotificationMessage The following email recipients and users will receive email - // notifications when new applications are submitted to the application gallery. - NewApplicationNotificationMessage NotificationName = "NewApplicationNotificationMessage" - // NewIssuePublisherNotificationMessage The following email recipients and users will receive email - // notifications when a new issue or comment is submitted on the developer portal. - NewIssuePublisherNotificationMessage NotificationName = "NewIssuePublisherNotificationMessage" - // PurchasePublisherNotificationMessage The following email recipients and users will receive email - // notifications about new API product subscriptions. - PurchasePublisherNotificationMessage NotificationName = "PurchasePublisherNotificationMessage" - // QuotaLimitApproachingPublisherNotificationMessage The following email recipients and users will receive - // email notifications when subscription usage gets close to usage quota. - QuotaLimitApproachingPublisherNotificationMessage NotificationName = "QuotaLimitApproachingPublisherNotificationMessage" - // RequestPublisherNotificationMessage The following email recipients and users will receive email - // notifications about subscription requests for API products requiring approval. - RequestPublisherNotificationMessage NotificationName = "RequestPublisherNotificationMessage" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleNotificationNameValues returns an array of possible values for the NotificationName const type. -func PossibleNotificationNameValues() []NotificationName { - return []NotificationName{AccountClosedPublisher, BCC, NewApplicationNotificationMessage, NewIssuePublisherNotificationMessage, PurchasePublisherNotificationMessage, QuotaLimitApproachingPublisherNotificationMessage, RequestPublisherNotificationMessage} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicyContentFormat enumerates the values for policy content format. -type PolicyContentFormat string - -const ( - // Rawxml The contents are inline and Content type is a non XML encoded policy document. - Rawxml PolicyContentFormat = "rawxml" - // RawxmlLink The policy document is not Xml encoded and is hosted on a http endpoint accessible from the - // API Management service. - RawxmlLink PolicyContentFormat = "rawxml-link" - // XML The contents are inline and Content type is an XML document. - XML PolicyContentFormat = "xml" - // XMLLink The policy XML document is hosted on a http endpoint accessible from the API Management service. - XMLLink PolicyContentFormat = "xml-link" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossiblePolicyContentFormatValues returns an array of possible values for the PolicyContentFormat const type. -func PossiblePolicyContentFormatValues() []PolicyContentFormat { - return []PolicyContentFormat{Rawxml, RawxmlLink, XML, XMLLink} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicyScopeContract enumerates the values for policy scope contract. -type PolicyScopeContract string - -const ( - // PolicyScopeContractAll ... - PolicyScopeContractAll PolicyScopeContract = "All" - // PolicyScopeContractAPI ... - PolicyScopeContractAPI PolicyScopeContract = "Api" - // PolicyScopeContractOperation ... - PolicyScopeContractOperation PolicyScopeContract = "Operation" - // PolicyScopeContractProduct ... - PolicyScopeContractProduct PolicyScopeContract = "Product" - // PolicyScopeContractTenant ... - PolicyScopeContractTenant PolicyScopeContract = "Tenant" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type. -func PossiblePolicyScopeContractValues() []PolicyScopeContract { - return []PolicyScopeContract{PolicyScopeContractAll, PolicyScopeContractAPI, PolicyScopeContractOperation, PolicyScopeContractProduct, PolicyScopeContractTenant} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductState enumerates the values for product state. -type ProductState string - -const ( - // NotPublished ... - NotPublished ProductState = "notPublished" - // Published ... - Published ProductState = "published" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleProductStateValues returns an array of possible values for the ProductState const type. -func PossibleProductStateValues() []ProductState { - return []ProductState{NotPublished, Published} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Protocol enumerates the values for protocol. -type Protocol string - -const ( - // ProtocolHTTP ... - ProtocolHTTP Protocol = "http" - // ProtocolHTTPS ... - ProtocolHTTPS Protocol = "https" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleProtocolValues returns an array of possible values for the Protocol const type. -func PossibleProtocolValues() []Protocol { - return []Protocol{ProtocolHTTP, ProtocolHTTPS} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SkuType enumerates the values for sku type. -type SkuType string - -const ( - // SkuTypeBasic Basic SKU of Api Management. - SkuTypeBasic SkuType = "Basic" - // SkuTypeDeveloper Developer SKU of Api Management. - SkuTypeDeveloper SkuType = "Developer" - // SkuTypePremium Premium SKU of Api Management. - SkuTypePremium SkuType = "Premium" - // SkuTypeStandard Standard SKU of Api Management. - SkuTypeStandard SkuType = "Standard" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleSkuTypeValues returns an array of possible values for the SkuType const type. -func PossibleSkuTypeValues() []SkuType { - return []SkuType{SkuTypeBasic, SkuTypeDeveloper, SkuTypePremium, SkuTypeStandard} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SoapAPIType enumerates the values for soap api type. -type SoapAPIType string - -const ( - // SoapPassThrough Imports the Soap API having a SOAP front end. - SoapPassThrough SoapAPIType = "soap" - // SoapToRest Imports a SOAP API having a RESTful front end. - SoapToRest SoapAPIType = "http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleSoapAPITypeValues returns an array of possible values for the SoapAPIType const type. -func PossibleSoapAPITypeValues() []SoapAPIType { - return []SoapAPIType{SoapPassThrough, SoapToRest} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// State enumerates the values for state. -type State string - -const ( - // Closed The issue was closed. - Closed State = "closed" - // Open The issue is opened. - Open State = "open" - // Proposed The issue is proposed. - Proposed State = "proposed" - // Removed The issue was removed. - Removed State = "removed" - // Resolved The issue is now resolved. - Resolved State = "resolved" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleStateValues returns an array of possible values for the State const type. -func PossibleStateValues() []State { - return []State{Closed, Open, Proposed, Removed, Resolved} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// StoreName enumerates the values for store name. -type StoreName string - -const ( - // CertificateAuthority ... - CertificateAuthority StoreName = "CertificateAuthority" - // Root ... - Root StoreName = "Root" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleStoreNameValues returns an array of possible values for the StoreName const type. -func PossibleStoreNameValues() []StoreName { - return []StoreName{CertificateAuthority, Root} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionState enumerates the values for subscription state. -type SubscriptionState string - -const ( - // Active ... - Active SubscriptionState = "active" - // Cancelled ... - Cancelled SubscriptionState = "cancelled" - // Expired ... - Expired SubscriptionState = "expired" - // Rejected ... - Rejected SubscriptionState = "rejected" - // Submitted ... - Submitted SubscriptionState = "submitted" - // Suspended ... - Suspended SubscriptionState = "suspended" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleSubscriptionStateValues returns an array of possible values for the SubscriptionState const type. -func PossibleSubscriptionStateValues() []SubscriptionState { - return []SubscriptionState{Active, Cancelled, Expired, Rejected, Submitted, Suspended} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TemplateName enumerates the values for template name. -type TemplateName string - -const ( - // AccountClosedDeveloper ... - AccountClosedDeveloper TemplateName = "accountClosedDeveloper" - // ApplicationApprovedNotificationMessage ... - ApplicationApprovedNotificationMessage TemplateName = "applicationApprovedNotificationMessage" - // ConfirmSignUpIdentityDefault ... - ConfirmSignUpIdentityDefault TemplateName = "confirmSignUpIdentityDefault" - // EmailChangeIdentityDefault ... - EmailChangeIdentityDefault TemplateName = "emailChangeIdentityDefault" - // InviteUserNotificationMessage ... - InviteUserNotificationMessage TemplateName = "inviteUserNotificationMessage" - // NewCommentNotificationMessage ... - NewCommentNotificationMessage TemplateName = "newCommentNotificationMessage" - // NewDeveloperNotificationMessage ... - NewDeveloperNotificationMessage TemplateName = "newDeveloperNotificationMessage" - // NewIssueNotificationMessage ... - NewIssueNotificationMessage TemplateName = "newIssueNotificationMessage" - // PasswordResetByAdminNotificationMessage ... - PasswordResetByAdminNotificationMessage TemplateName = "passwordResetByAdminNotificationMessage" - // PasswordResetIdentityDefault ... - PasswordResetIdentityDefault TemplateName = "passwordResetIdentityDefault" - // PurchaseDeveloperNotificationMessage ... - PurchaseDeveloperNotificationMessage TemplateName = "purchaseDeveloperNotificationMessage" - // QuotaLimitApproachingDeveloperNotificationMessage ... - QuotaLimitApproachingDeveloperNotificationMessage TemplateName = "quotaLimitApproachingDeveloperNotificationMessage" - // RejectDeveloperNotificationMessage ... - RejectDeveloperNotificationMessage TemplateName = "rejectDeveloperNotificationMessage" - // RequestDeveloperNotificationMessage ... - RequestDeveloperNotificationMessage TemplateName = "requestDeveloperNotificationMessage" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleTemplateNameValues returns an array of possible values for the TemplateName const type. -func PossibleTemplateNameValues() []TemplateName { - return []TemplateName{AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserState enumerates the values for user state. -type UserState string - -const ( - // UserStateActive User state is active. - UserStateActive UserState = "active" - // UserStateBlocked User is blocked. Blocked users cannot authenticate at developer portal or call API. - UserStateBlocked UserState = "blocked" - // UserStateDeleted User account is closed. All identities and related entities are removed. - UserStateDeleted UserState = "deleted" - // UserStatePending User account is pending. Requires identity confirmation before it can be made active. - UserStatePending UserState = "pending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleUserStateValues returns an array of possible values for the UserState const type. -func PossibleUserStateValues() []UserState { - return []UserState{UserStateActive, UserStateBlocked, UserStateDeleted, UserStatePending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// VersioningScheme enumerates the values for versioning scheme. -type VersioningScheme string - -const ( - // VersioningSchemeHeader The API Version is passed in a HTTP header. - VersioningSchemeHeader VersioningScheme = "Header" - // VersioningSchemeQuery The API Version is passed in a query parameter. - VersioningSchemeQuery VersioningScheme = "Query" - // VersioningSchemeSegment The API Version is passed in a path segment. - VersioningSchemeSegment VersioningScheme = "Segment" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleVersioningSchemeValues returns an array of possible values for the VersioningScheme const type. -func PossibleVersioningSchemeValues() []VersioningScheme { - return []VersioningScheme{VersioningSchemeHeader, VersioningSchemeQuery, VersioningSchemeSegment} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// VersioningScheme1 enumerates the values for versioning scheme 1. -type VersioningScheme1 string - -const ( - // VersioningScheme1Header ... - VersioningScheme1Header VersioningScheme1 = "Header" - // VersioningScheme1Query ... - VersioningScheme1Query VersioningScheme1 = "Query" - // VersioningScheme1Segment ... - VersioningScheme1Segment VersioningScheme1 = "Segment" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleVersioningScheme1Values returns an array of possible values for the VersioningScheme1 const type. -func PossibleVersioningScheme1Values() []VersioningScheme1 { - return []VersioningScheme1{VersioningScheme1Header, VersioningScheme1Query, VersioningScheme1Segment} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// VirtualNetworkType enumerates the values for virtual network type. -type VirtualNetworkType string - -const ( - // VirtualNetworkTypeExternal The service is part of Virtual Network and it is accessible from Internet. - VirtualNetworkTypeExternal VirtualNetworkType = "External" - // VirtualNetworkTypeInternal The service is part of Virtual Network and it is only accessible from within - // the virtual network. - VirtualNetworkTypeInternal VirtualNetworkType = "Internal" - // VirtualNetworkTypeNone The service is not part of any Virtual Network. - VirtualNetworkTypeNone VirtualNetworkType = "None" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PossibleVirtualNetworkTypeValues returns an array of possible values for the VirtualNetworkType const type. -func PossibleVirtualNetworkTypeValues() []VirtualNetworkType { - return []VirtualNetworkType{VirtualNetworkTypeExternal, VirtualNetworkTypeInternal, VirtualNetworkTypeNone} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AccessInformationContract tenant access information contract of the API Management service. -type AccessInformationContract struct { - autorest.Response `json:"-"` - // ID - Identifier. - ID *string `json:"id,omitempty"` - // PrimaryKey - Primary access key. - PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - Secondary access key. - SecondaryKey *string `json:"secondaryKey,omitempty"` - // Enabled - Tenant access information of the API Management service. - Enabled *bool `json:"enabled,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AccessInformationUpdateParameters tenant access information update parameters of the API Management -// service. -type AccessInformationUpdateParameters struct { - // Enabled - Tenant access information of the API Management service. - Enabled *bool `json:"enabled,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AdditionalLocation description of an additional API Management resource location. -type AdditionalLocation struct { - // Location - The location name of the additional region among Azure Data center regions. - Location *string `json:"location,omitempty"` - // Sku - SKU properties of the API Management service. - Sku *ServiceSkuProperties `json:"sku,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU. - PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service which is deployed in an Internal Virtual Network in a particular additional location. Available only for Basic, Standard and Premium SKU. - PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` - // VirtualNetworkConfiguration - Virtual network configuration for the location. - VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Region. - GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APICollection paged Api list representation. -type APICollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]APIContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APICollectionIterator provides access to a complete listing of APIContract values. -type APICollectionIterator struct { - i int - page APICollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *APICollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APICollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *APICollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter APICollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter APICollectionIterator) Response() APICollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter APICollectionIterator) Value() APIContract { - if !iter.page.NotDone() { - return APIContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (ac APICollection) IsEmpty() bool { - return ac.Value == nil || len(*ac.Value) == 0 -} - -// aPICollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (ac APICollection) aPICollectionPreparer(ctx context.Context) (*http.Request, error) { - if ac.NextLink == nil || len(to.String(ac.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(ac.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APICollectionPage contains a page of APIContract values. -type APICollectionPage struct { - fn func(context.Context, APICollection) (APICollection, error) - ac APICollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *APICollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APICollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.ac) - if err != nil { - return err - } - page.ac = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *APICollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page APICollectionPage) NotDone() bool { - return !page.ac.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page APICollectionPage) Response() APICollection { - return page.ac -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page APICollectionPage) Values() []APIContract { - if page.ac.IsEmpty() { - return nil - } - return *page.ac.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIContract API details. -type APIContract struct { - autorest.Response `json:"-"` - // APIContractProperties - Api entity contract properties. - *APIContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for APIContract. -func (ac APIContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ac.APIContractProperties != nil { - objectMap["properties"] = ac.APIContractProperties - } - if ac.ID != nil { - objectMap["id"] = ac.ID - } - if ac.Name != nil { - objectMap["name"] = ac.Name - } - if ac.Type != nil { - objectMap["type"] = ac.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for APIContract struct. -func (ac *APIContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var APIContractProperties APIContractProperties - err = json.Unmarshal(*v, &APIContractProperties) - if err != nil { - return err - } - ac.APIContractProperties = &APIContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ac.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ac.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ac.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIContractProperties api Entity Properties -type APIContractProperties struct { - // DisplayName - API name. - DisplayName *string `json:"displayName,omitempty"` - // ServiceURL - Absolute URL of the backend service implementing this API. - ServiceURL *string `json:"serviceUrl,omitempty"` - // Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. - Path *string `json:"path,omitempty"` - // Protocols - Describes on which protocols the operations in this API can be invoked. - Protocols *[]Protocol `json:"protocols,omitempty"` - APIVersionSet *APIVersionSetContractDetails `json:"apiVersionSet,omitempty"` - // Description - Description of the API. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthenticationSettings - Collection of authentication settings included into this API. - AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"` - // SubscriptionKeyParameterNames - Protocols over which API is made available. - SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` - // APIType - Type of API. Possible values include: 'HTTP', 'Soap' - APIType APIType `json:"type,omitempty"` - // APIRevision - Describes the Revision of the Api. If no value is provided, default revision 1 is created - APIRevision *string `json:"apiRevision,omitempty"` - // APIVersion - Indicates the Version identifier of the API if the API is versioned - APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. - IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. - IsOnline *bool `json:"isOnline,omitempty"` - // APIRevisionDescription - Description of the Api Revision. - APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` - // APIVersionDescription - Description of the Api Version. - APIVersionDescription *string `json:"apiVersionDescription,omitempty"` - // APIVersionSetID - A resource identifier for the related ApiVersionSet. - APIVersionSetID *string `json:"apiVersionSetId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIContractUpdateProperties API update contract properties. -type APIContractUpdateProperties struct { - // DisplayName - API name. - DisplayName *string `json:"displayName,omitempty"` - // ServiceURL - Absolute URL of the backend service implementing this API. - ServiceURL *string `json:"serviceUrl,omitempty"` - // Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. - Path *string `json:"path,omitempty"` - // Protocols - Describes on which protocols the operations in this API can be invoked. - Protocols *[]Protocol `json:"protocols,omitempty"` - // Description - Description of the API. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthenticationSettings - Collection of authentication settings included into this API. - AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"` - // SubscriptionKeyParameterNames - Protocols over which API is made available. - SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` - // APIType - Type of API. Possible values include: 'HTTP', 'Soap' - APIType APIType `json:"type,omitempty"` - // APIRevision - Describes the Revision of the Api. If no value is provided, default revision 1 is created - APIRevision *string `json:"apiRevision,omitempty"` - // APIVersion - Indicates the Version identifier of the API if the API is versioned - APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. - IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. - IsOnline *bool `json:"isOnline,omitempty"` - // APIRevisionDescription - Description of the Api Revision. - APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` - // APIVersionDescription - Description of the Api Version. - APIVersionDescription *string `json:"apiVersionDescription,omitempty"` - // APIVersionSetID - A resource identifier for the related ApiVersionSet. - APIVersionSetID *string `json:"apiVersionSetId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APICreateOrUpdateParameter API Create or Update Parameters. -type APICreateOrUpdateParameter struct { - // APICreateOrUpdateProperties - Api entity create of update properties. - *APICreateOrUpdateProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for APICreateOrUpdateParameter. -func (acoup APICreateOrUpdateParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if acoup.APICreateOrUpdateProperties != nil { - objectMap["properties"] = acoup.APICreateOrUpdateProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for APICreateOrUpdateParameter struct. -func (acoup *APICreateOrUpdateParameter) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var APICreateOrUpdateProperties APICreateOrUpdateProperties - err = json.Unmarshal(*v, &APICreateOrUpdateProperties) - if err != nil { - return err - } - acoup.APICreateOrUpdateProperties = &APICreateOrUpdateProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APICreateOrUpdateProperties api Create or Update Properties. -type APICreateOrUpdateProperties struct { - // ContentValue - Content value when Importing an API. - ContentValue *string `json:"contentValue,omitempty"` - // ContentFormat - Format of the Content in which the API is getting imported. Possible values include: 'WadlXML', 'WadlLinkJSON', 'SwaggerJSON', 'SwaggerLinkJSON', 'Wsdl', 'WsdlLink' - ContentFormat ContentFormat `json:"contentFormat,omitempty"` - // WsdlSelector - Criteria to limit import of WSDL to a subset of the document. - WsdlSelector *APICreateOrUpdatePropertiesWsdlSelector `json:"wsdlSelector,omitempty"` - // SoapAPIType - Type of Api to create. - // * `http` creates a SOAP to REST API - // * `soap` creates a SOAP pass-through API. Possible values include: 'SoapToRest', 'SoapPassThrough' - SoapAPIType SoapAPIType `json:"apiType,omitempty"` - // DisplayName - API name. - DisplayName *string `json:"displayName,omitempty"` - // ServiceURL - Absolute URL of the backend service implementing this API. - ServiceURL *string `json:"serviceUrl,omitempty"` - // Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. - Path *string `json:"path,omitempty"` - // Protocols - Describes on which protocols the operations in this API can be invoked. - Protocols *[]Protocol `json:"protocols,omitempty"` - APIVersionSet *APIVersionSetContractDetails `json:"apiVersionSet,omitempty"` - // Description - Description of the API. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthenticationSettings - Collection of authentication settings included into this API. - AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"` - // SubscriptionKeyParameterNames - Protocols over which API is made available. - SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` - // APIType - Type of API. Possible values include: 'HTTP', 'Soap' - APIType APIType `json:"type,omitempty"` - // APIRevision - Describes the Revision of the Api. If no value is provided, default revision 1 is created - APIRevision *string `json:"apiRevision,omitempty"` - // APIVersion - Indicates the Version identifier of the API if the API is versioned - APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. - IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. - IsOnline *bool `json:"isOnline,omitempty"` - // APIRevisionDescription - Description of the Api Revision. - APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` - // APIVersionDescription - Description of the Api Version. - APIVersionDescription *string `json:"apiVersionDescription,omitempty"` - // APIVersionSetID - A resource identifier for the related ApiVersionSet. - APIVersionSetID *string `json:"apiVersionSetId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APICreateOrUpdatePropertiesWsdlSelector criteria to limit import of WSDL to a subset of the document. -type APICreateOrUpdatePropertiesWsdlSelector struct { - // WsdlServiceName - Name of service to import from WSDL - WsdlServiceName *string `json:"wsdlServiceName,omitempty"` - // WsdlEndpointName - Name of endpoint(port) to import from WSDL - WsdlEndpointName *string `json:"wsdlEndpointName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIEntityBaseContract API base contract details. -type APIEntityBaseContract struct { - // Description - Description of the API. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthenticationSettings - Collection of authentication settings included into this API. - AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"` - // SubscriptionKeyParameterNames - Protocols over which API is made available. - SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` - // APIType - Type of API. Possible values include: 'HTTP', 'Soap' - APIType APIType `json:"type,omitempty"` - // APIRevision - Describes the Revision of the Api. If no value is provided, default revision 1 is created - APIRevision *string `json:"apiRevision,omitempty"` - // APIVersion - Indicates the Version identifier of the API if the API is versioned - APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. - IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. - IsOnline *bool `json:"isOnline,omitempty"` - // APIRevisionDescription - Description of the Api Revision. - APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` - // APIVersionDescription - Description of the Api Version. - APIVersionDescription *string `json:"apiVersionDescription,omitempty"` - // APIVersionSetID - A resource identifier for the related ApiVersionSet. - APIVersionSetID *string `json:"apiVersionSetId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIExportResult API Export result Blob Uri. -type APIExportResult struct { - autorest.Response `json:"-"` - // Link - Link to the Storage Blob containing the result of the export operation. The Blob Uri is only valid for 5 minutes. - Link *string `json:"link,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ApimResource the Resource definition. -type ApimResource struct { - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource is set to Microsoft.ApiManagement. - Type *string `json:"type,omitempty"` - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ApimResource. -func (ar ApimResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ar.ID != nil { - objectMap["id"] = ar.ID - } - if ar.Name != nil { - objectMap["name"] = ar.Name - } - if ar.Type != nil { - objectMap["type"] = ar.Type - } - if ar.Tags != nil { - objectMap["tags"] = ar.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIReleaseCollection paged Api Revision list representation. -type APIReleaseCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]APIReleaseContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. -type APIReleaseCollectionIterator struct { - i int - page APIReleaseCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *APIReleaseCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *APIReleaseCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter APIReleaseCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter APIReleaseCollectionIterator) Response() APIReleaseCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter APIReleaseCollectionIterator) Value() APIReleaseContract { - if !iter.page.NotDone() { - return APIReleaseContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (arc APIReleaseCollection) IsEmpty() bool { - return arc.Value == nil || len(*arc.Value) == 0 -} - -// aPIReleaseCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (arc APIReleaseCollection) aPIReleaseCollectionPreparer(ctx context.Context) (*http.Request, error) { - if arc.NextLink == nil || len(to.String(arc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(arc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIReleaseCollectionPage contains a page of APIReleaseContract values. -type APIReleaseCollectionPage struct { - fn func(context.Context, APIReleaseCollection) (APIReleaseCollection, error) - arc APIReleaseCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *APIReleaseCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIReleaseCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.arc) - if err != nil { - return err - } - page.arc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *APIReleaseCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page APIReleaseCollectionPage) NotDone() bool { - return !page.arc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page APIReleaseCollectionPage) Response() APIReleaseCollection { - return page.arc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page APIReleaseCollectionPage) Values() []APIReleaseContract { - if page.arc.IsEmpty() { - return nil - } - return *page.arc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIReleaseContract api Release details. -type APIReleaseContract struct { - autorest.Response `json:"-"` - // APIReleaseContractProperties - Properties of the Api Release Contract. - *APIReleaseContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for APIReleaseContract. -func (arc APIReleaseContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if arc.APIReleaseContractProperties != nil { - objectMap["properties"] = arc.APIReleaseContractProperties - } - if arc.ID != nil { - objectMap["id"] = arc.ID - } - if arc.Name != nil { - objectMap["name"] = arc.Name - } - if arc.Type != nil { - objectMap["type"] = arc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for APIReleaseContract struct. -func (arc *APIReleaseContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var APIReleaseContractProperties APIReleaseContractProperties - err = json.Unmarshal(*v, &APIReleaseContractProperties) - if err != nil { - return err - } - arc.APIReleaseContractProperties = &APIReleaseContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - arc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - arc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIReleaseContractProperties API Release details -type APIReleaseContractProperties struct { - // APIID - Identifier of the API the release belongs to. - APIID *string `json:"apiId,omitempty"` - // CreatedDateTime - The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. - CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` - // UpdatedDateTime - The time the API release was updated. - UpdatedDateTime *date.Time `json:"updatedDateTime,omitempty"` - // Notes - Release Notes - Notes *string `json:"notes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIRevisionCollection paged Api Revision list representation. -type APIRevisionCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]APIRevisionContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIRevisionCollectionIterator provides access to a complete listing of APIRevisionContract values. -type APIRevisionCollectionIterator struct { - i int - page APIRevisionCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *APIRevisionCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIRevisionCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *APIRevisionCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter APIRevisionCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter APIRevisionCollectionIterator) Response() APIRevisionCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter APIRevisionCollectionIterator) Value() APIRevisionContract { - if !iter.page.NotDone() { - return APIRevisionContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (arc APIRevisionCollection) IsEmpty() bool { - return arc.Value == nil || len(*arc.Value) == 0 -} - -// aPIRevisionCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (arc APIRevisionCollection) aPIRevisionCollectionPreparer(ctx context.Context) (*http.Request, error) { - if arc.NextLink == nil || len(to.String(arc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(arc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIRevisionCollectionPage contains a page of APIRevisionContract values. -type APIRevisionCollectionPage struct { - fn func(context.Context, APIRevisionCollection) (APIRevisionCollection, error) - arc APIRevisionCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *APIRevisionCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIRevisionCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.arc) - if err != nil { - return err - } - page.arc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *APIRevisionCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page APIRevisionCollectionPage) NotDone() bool { - return !page.arc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page APIRevisionCollectionPage) Response() APIRevisionCollection { - return page.arc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page APIRevisionCollectionPage) Values() []APIRevisionContract { - if page.arc.IsEmpty() { - return nil - } - return *page.arc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIRevisionContract summary of revision metadata. -type APIRevisionContract struct { - // APIID - Identifier of the API Revision. - APIID *string `json:"apiId,omitempty"` - // APIRevision - Revision number of API. - APIRevision *string `json:"apiRevision,omitempty"` - // CreatedDateTime - The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. - CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` - // UpdatedDateTime - The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. - UpdatedDateTime *date.Time `json:"updatedDateTime,omitempty"` - // Description - Description of the API Revision. - Description *string `json:"description,omitempty"` - // PrivateURL - Gateway URL for accessing the non-current API Revision. - PrivateURL *string `json:"privateUrl,omitempty"` - // IsOnline - Indicates if API revision is the current api revision. - IsOnline *bool `json:"isOnline,omitempty"` - // IsCurrent - Indicates if API revision is accessible via the gateway. - IsCurrent *bool `json:"isCurrent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIRevisionInfoContract object used to create an API Revision or Version based on an existing API -// Revision -type APIRevisionInfoContract struct { - // SourceAPIID - Resource identifier of API to be used to create the revision from. - SourceAPIID *string `json:"sourceApiId,omitempty"` - // APIVersionName - Version identifier for the new API Version. - APIVersionName *string `json:"apiVersionName,omitempty"` - // APIRevisionDescription - Description of new API Revision. - APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` - // APIVersionSet - Version set details - APIVersionSet *APIVersionSetContractDetails `json:"apiVersionSet,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APITagResourceContractProperties API contract properties for the Tag Resources. -type APITagResourceContractProperties struct { - // ID - API identifier in the form /apis/{apiId}. - ID *string `json:"id,omitempty"` - // Name - API name. - Name *string `json:"name,omitempty"` - // ServiceURL - Absolute URL of the backend service implementing this API. - ServiceURL *string `json:"serviceUrl,omitempty"` - // Path - Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. - Path *string `json:"path,omitempty"` - // Protocols - Describes on which protocols the operations in this API can be invoked. - Protocols *[]Protocol `json:"protocols,omitempty"` - // Description - Description of the API. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthenticationSettings - Collection of authentication settings included into this API. - AuthenticationSettings *AuthenticationSettingsContract `json:"authenticationSettings,omitempty"` - // SubscriptionKeyParameterNames - Protocols over which API is made available. - SubscriptionKeyParameterNames *SubscriptionKeyParameterNamesContract `json:"subscriptionKeyParameterNames,omitempty"` - // APIType - Type of API. Possible values include: 'HTTP', 'Soap' - APIType APIType `json:"type,omitempty"` - // APIRevision - Describes the Revision of the Api. If no value is provided, default revision 1 is created - APIRevision *string `json:"apiRevision,omitempty"` - // APIVersion - Indicates the Version identifier of the API if the API is versioned - APIVersion *string `json:"apiVersion,omitempty"` - // IsCurrent - Indicates if API revision is current api revision. - IsCurrent *bool `json:"isCurrent,omitempty"` - // IsOnline - Indicates if API revision is accessible via the gateway. - IsOnline *bool `json:"isOnline,omitempty"` - // APIRevisionDescription - Description of the Api Revision. - APIRevisionDescription *string `json:"apiRevisionDescription,omitempty"` - // APIVersionDescription - Description of the Api Version. - APIVersionDescription *string `json:"apiVersionDescription,omitempty"` - // APIVersionSetID - A resource identifier for the related ApiVersionSet. - APIVersionSetID *string `json:"apiVersionSetId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIUpdateContract API update contract details. -type APIUpdateContract struct { - // APIContractUpdateProperties - Properties of the API entity that can be updated. - *APIContractUpdateProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for APIUpdateContract. -func (auc APIUpdateContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if auc.APIContractUpdateProperties != nil { - objectMap["properties"] = auc.APIContractUpdateProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for APIUpdateContract struct. -func (auc *APIUpdateContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var APIContractUpdateProperties APIContractUpdateProperties - err = json.Unmarshal(*v, &APIContractUpdateProperties) - if err != nil { - return err - } - auc.APIContractUpdateProperties = &APIContractUpdateProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetCollection paged Api Version Set list representation. -type APIVersionSetCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]APIVersionSetContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetCollectionIterator provides access to a complete listing of APIVersionSetContract values. -type APIVersionSetCollectionIterator struct { - i int - page APIVersionSetCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *APIVersionSetCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *APIVersionSetCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter APIVersionSetCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter APIVersionSetCollectionIterator) Response() APIVersionSetCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter APIVersionSetCollectionIterator) Value() APIVersionSetContract { - if !iter.page.NotDone() { - return APIVersionSetContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (avsc APIVersionSetCollection) IsEmpty() bool { - return avsc.Value == nil || len(*avsc.Value) == 0 -} - -// aPIVersionSetCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (avsc APIVersionSetCollection) aPIVersionSetCollectionPreparer(ctx context.Context) (*http.Request, error) { - if avsc.NextLink == nil || len(to.String(avsc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(avsc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetCollectionPage contains a page of APIVersionSetContract values. -type APIVersionSetCollectionPage struct { - fn func(context.Context, APIVersionSetCollection) (APIVersionSetCollection, error) - avsc APIVersionSetCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *APIVersionSetCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/APIVersionSetCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.avsc) - if err != nil { - return err - } - page.avsc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *APIVersionSetCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page APIVersionSetCollectionPage) NotDone() bool { - return !page.avsc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page APIVersionSetCollectionPage) Response() APIVersionSetCollection { - return page.avsc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page APIVersionSetCollectionPage) Values() []APIVersionSetContract { - if page.avsc.IsEmpty() { - return nil - } - return *page.avsc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetContract api Version Set Contract details. -type APIVersionSetContract struct { - autorest.Response `json:"-"` - // APIVersionSetContractProperties - Api VersionSet contract properties. - *APIVersionSetContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for APIVersionSetContract. -func (avsc APIVersionSetContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if avsc.APIVersionSetContractProperties != nil { - objectMap["properties"] = avsc.APIVersionSetContractProperties - } - if avsc.ID != nil { - objectMap["id"] = avsc.ID - } - if avsc.Name != nil { - objectMap["name"] = avsc.Name - } - if avsc.Type != nil { - objectMap["type"] = avsc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for APIVersionSetContract struct. -func (avsc *APIVersionSetContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var APIVersionSetContractProperties APIVersionSetContractProperties - err = json.Unmarshal(*v, &APIVersionSetContractProperties) - if err != nil { - return err - } - avsc.APIVersionSetContractProperties = &APIVersionSetContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - avsc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - avsc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - avsc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetContractDetails an API Version Set contains the common configuration for a set of API -// Versions relating -type APIVersionSetContractDetails struct { - // ID - Identifier for existing API Version Set. Omit this value to create a new Version Set. - ID *string `json:"id,omitempty"` - // Description - Description of API Version Set. - Description *string `json:"description,omitempty"` - // VersioningScheme - An value that determines where the API Version identifer will be located in a HTTP request. Possible values include: 'VersioningScheme1Segment', 'VersioningScheme1Query', 'VersioningScheme1Header' - VersioningScheme VersioningScheme1 `json:"versioningScheme,omitempty"` - // VersionQueryName - Name of query parameter that indicates the API Version if versioningScheme is set to `query`. - VersionQueryName *string `json:"versionQueryName,omitempty"` - // VersionHeaderName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. - VersionHeaderName *string `json:"versionHeaderName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetContractProperties properties of an API Version Set. -type APIVersionSetContractProperties struct { - // DisplayName - Name of API Version Set - DisplayName *string `json:"displayName,omitempty"` - // VersioningScheme - An value that determines where the API Version identifer will be located in a HTTP request. Possible values include: 'VersioningSchemeSegment', 'VersioningSchemeQuery', 'VersioningSchemeHeader' - VersioningScheme VersioningScheme `json:"versioningScheme,omitempty"` - // Description - Description of API Version Set. - Description *string `json:"description,omitempty"` - // VersionQueryName - Name of query parameter that indicates the API Version if versioningScheme is set to `query`. - VersionQueryName *string `json:"versionQueryName,omitempty"` - // VersionHeaderName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. - VersionHeaderName *string `json:"versionHeaderName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetEntityBase api Version set base parameters -type APIVersionSetEntityBase struct { - // Description - Description of API Version Set. - Description *string `json:"description,omitempty"` - // VersionQueryName - Name of query parameter that indicates the API Version if versioningScheme is set to `query`. - VersionQueryName *string `json:"versionQueryName,omitempty"` - // VersionHeaderName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. - VersionHeaderName *string `json:"versionHeaderName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetUpdateParameters parameters to update or create an Api Version Set Contract. -type APIVersionSetUpdateParameters struct { - // APIVersionSetUpdateParametersProperties - Parameters to update or create an Api Version Set Contract. - *APIVersionSetUpdateParametersProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for APIVersionSetUpdateParameters. -func (avsup APIVersionSetUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if avsup.APIVersionSetUpdateParametersProperties != nil { - objectMap["properties"] = avsup.APIVersionSetUpdateParametersProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for APIVersionSetUpdateParameters struct. -func (avsup *APIVersionSetUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var APIVersionSetUpdateParametersProperties APIVersionSetUpdateParametersProperties - err = json.Unmarshal(*v, &APIVersionSetUpdateParametersProperties) - if err != nil { - return err - } - avsup.APIVersionSetUpdateParametersProperties = &APIVersionSetUpdateParametersProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// APIVersionSetUpdateParametersProperties properties used to create or update an API Version Set. -type APIVersionSetUpdateParametersProperties struct { - // DisplayName - Name of API Version Set - DisplayName *string `json:"displayName,omitempty"` - // VersioningScheme - An value that determines where the API Version identifer will be located in a HTTP request. Possible values include: 'VersioningSchemeSegment', 'VersioningSchemeQuery', 'VersioningSchemeHeader' - VersioningScheme VersioningScheme `json:"versioningScheme,omitempty"` - // Description - Description of API Version Set. - Description *string `json:"description,omitempty"` - // VersionQueryName - Name of query parameter that indicates the API Version if versioningScheme is set to `query`. - VersionQueryName *string `json:"versionQueryName,omitempty"` - // VersionHeaderName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. - VersionHeaderName *string `json:"versionHeaderName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthenticationSettingsContract API Authentication Settings. -type AuthenticationSettingsContract struct { - // OAuth2 - OAuth2 Authentication settings - OAuth2 *OAuth2AuthenticationSettingsContract `json:"oAuth2,omitempty"` - // Openid - OpenID Connect Authentication Settings - Openid *OpenIDAuthenticationSettingsContract `json:"openid,omitempty"` - // SubscriptionKeyRequired - Specifies whether subscription key is required during call to this API, true - API is included into closed products only, false - API is included into open products alone, null - there is a mix of products. - SubscriptionKeyRequired *bool `json:"subscriptionKeyRequired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerCollection paged OAuth2 Authorization Servers list representation. -type AuthorizationServerCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]AuthorizationServerContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerCollectionIterator provides access to a complete listing of -// AuthorizationServerContract values. -type AuthorizationServerCollectionIterator struct { - i int - page AuthorizationServerCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *AuthorizationServerCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *AuthorizationServerCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter AuthorizationServerCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter AuthorizationServerCollectionIterator) Response() AuthorizationServerCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter AuthorizationServerCollectionIterator) Value() AuthorizationServerContract { - if !iter.page.NotDone() { - return AuthorizationServerContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (asc AuthorizationServerCollection) IsEmpty() bool { - return asc.Value == nil || len(*asc.Value) == 0 -} - -// authorizationServerCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (asc AuthorizationServerCollection) authorizationServerCollectionPreparer(ctx context.Context) (*http.Request, error) { - if asc.NextLink == nil || len(to.String(asc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(asc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerCollectionPage contains a page of AuthorizationServerContract values. -type AuthorizationServerCollectionPage struct { - fn func(context.Context, AuthorizationServerCollection) (AuthorizationServerCollection, error) - asc AuthorizationServerCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *AuthorizationServerCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/AuthorizationServerCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.asc) - if err != nil { - return err - } - page.asc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *AuthorizationServerCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page AuthorizationServerCollectionPage) NotDone() bool { - return !page.asc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page AuthorizationServerCollectionPage) Response() AuthorizationServerCollection { - return page.asc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page AuthorizationServerCollectionPage) Values() []AuthorizationServerContract { - if page.asc.IsEmpty() { - return nil - } - return *page.asc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerContract external OAuth authorization server settings. -type AuthorizationServerContract struct { - autorest.Response `json:"-"` - // AuthorizationServerContractProperties - Properties of the External OAuth authorization server Contract. - *AuthorizationServerContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for AuthorizationServerContract. -func (asc AuthorizationServerContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if asc.AuthorizationServerContractProperties != nil { - objectMap["properties"] = asc.AuthorizationServerContractProperties - } - if asc.ID != nil { - objectMap["id"] = asc.ID - } - if asc.Name != nil { - objectMap["name"] = asc.Name - } - if asc.Type != nil { - objectMap["type"] = asc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for AuthorizationServerContract struct. -func (asc *AuthorizationServerContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var authorizationServerContractProperties AuthorizationServerContractProperties - err = json.Unmarshal(*v, &authorizationServerContractProperties) - if err != nil { - return err - } - asc.AuthorizationServerContractProperties = &authorizationServerContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - asc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - asc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerContractBaseProperties external OAuth authorization server Update settings contract. -type AuthorizationServerContractBaseProperties struct { - // Description - Description of the authorization server. Can contain HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthorizationMethods - HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. - AuthorizationMethods *[]AuthorizationMethod `json:"authorizationMethods,omitempty"` - // ClientAuthenticationMethod - Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. - ClientAuthenticationMethod *[]ClientAuthenticationMethod `json:"clientAuthenticationMethod,omitempty"` - // TokenBodyParameters - Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. - TokenBodyParameters *[]TokenBodyParameterContract `json:"tokenBodyParameters,omitempty"` - // TokenEndpoint - OAuth token endpoint. Contains absolute URI to entity being referenced. - TokenEndpoint *string `json:"tokenEndpoint,omitempty"` - // SupportState - If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. - SupportState *bool `json:"supportState,omitempty"` - // DefaultScope - Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. - DefaultScope *string `json:"defaultScope,omitempty"` - // BearerTokenSendingMethods - Specifies the mechanism by which access token is passed to the API. - BearerTokenSendingMethods *[]BearerTokenSendingMethod `json:"bearerTokenSendingMethods,omitempty"` - // ClientSecret - Client or app secret registered with this authorization server. - ClientSecret *string `json:"clientSecret,omitempty"` - // ResourceOwnerUsername - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. - ResourceOwnerUsername *string `json:"resourceOwnerUsername,omitempty"` - // ResourceOwnerPassword - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. - ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerContractProperties external OAuth authorization server settings Properties. -type AuthorizationServerContractProperties struct { - // DisplayName - User-friendly authorization server name. - DisplayName *string `json:"displayName,omitempty"` - // ClientRegistrationEndpoint - Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. - ClientRegistrationEndpoint *string `json:"clientRegistrationEndpoint,omitempty"` - // AuthorizationEndpoint - OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. - AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"` - // GrantTypes - Form of an authorization grant, which the client uses to request the access token. - GrantTypes *[]GrantType `json:"grantTypes,omitempty"` - // ClientID - Client or app id registered with this authorization server. - ClientID *string `json:"clientId,omitempty"` - // Description - Description of the authorization server. Can contain HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthorizationMethods - HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. - AuthorizationMethods *[]AuthorizationMethod `json:"authorizationMethods,omitempty"` - // ClientAuthenticationMethod - Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. - ClientAuthenticationMethod *[]ClientAuthenticationMethod `json:"clientAuthenticationMethod,omitempty"` - // TokenBodyParameters - Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. - TokenBodyParameters *[]TokenBodyParameterContract `json:"tokenBodyParameters,omitempty"` - // TokenEndpoint - OAuth token endpoint. Contains absolute URI to entity being referenced. - TokenEndpoint *string `json:"tokenEndpoint,omitempty"` - // SupportState - If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. - SupportState *bool `json:"supportState,omitempty"` - // DefaultScope - Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. - DefaultScope *string `json:"defaultScope,omitempty"` - // BearerTokenSendingMethods - Specifies the mechanism by which access token is passed to the API. - BearerTokenSendingMethods *[]BearerTokenSendingMethod `json:"bearerTokenSendingMethods,omitempty"` - // ClientSecret - Client or app secret registered with this authorization server. - ClientSecret *string `json:"clientSecret,omitempty"` - // ResourceOwnerUsername - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. - ResourceOwnerUsername *string `json:"resourceOwnerUsername,omitempty"` - // ResourceOwnerPassword - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. - ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerUpdateContract external OAuth authorization server settings. -type AuthorizationServerUpdateContract struct { - // AuthorizationServerUpdateContractProperties - Properties of the External OAuth authorization server update Contract. - *AuthorizationServerUpdateContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for AuthorizationServerUpdateContract. -func (asuc AuthorizationServerUpdateContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if asuc.AuthorizationServerUpdateContractProperties != nil { - objectMap["properties"] = asuc.AuthorizationServerUpdateContractProperties - } - if asuc.ID != nil { - objectMap["id"] = asuc.ID - } - if asuc.Name != nil { - objectMap["name"] = asuc.Name - } - if asuc.Type != nil { - objectMap["type"] = asuc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for AuthorizationServerUpdateContract struct. -func (asuc *AuthorizationServerUpdateContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var authorizationServerUpdateContractProperties AuthorizationServerUpdateContractProperties - err = json.Unmarshal(*v, &authorizationServerUpdateContractProperties) - if err != nil { - return err - } - asuc.AuthorizationServerUpdateContractProperties = &authorizationServerUpdateContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - asuc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - asuc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asuc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AuthorizationServerUpdateContractProperties external OAuth authorization server Update settings -// contract. -type AuthorizationServerUpdateContractProperties struct { - // DisplayName - User-friendly authorization server name. - DisplayName *string `json:"displayName,omitempty"` - // ClientRegistrationEndpoint - Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. - ClientRegistrationEndpoint *string `json:"clientRegistrationEndpoint,omitempty"` - // AuthorizationEndpoint - OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. - AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty"` - // GrantTypes - Form of an authorization grant, which the client uses to request the access token. - GrantTypes *[]GrantType `json:"grantTypes,omitempty"` - // ClientID - Client or app id registered with this authorization server. - ClientID *string `json:"clientId,omitempty"` - // Description - Description of the authorization server. Can contain HTML formatting tags. - Description *string `json:"description,omitempty"` - // AuthorizationMethods - HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. - AuthorizationMethods *[]AuthorizationMethod `json:"authorizationMethods,omitempty"` - // ClientAuthenticationMethod - Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. - ClientAuthenticationMethod *[]ClientAuthenticationMethod `json:"clientAuthenticationMethod,omitempty"` - // TokenBodyParameters - Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. - TokenBodyParameters *[]TokenBodyParameterContract `json:"tokenBodyParameters,omitempty"` - // TokenEndpoint - OAuth token endpoint. Contains absolute URI to entity being referenced. - TokenEndpoint *string `json:"tokenEndpoint,omitempty"` - // SupportState - If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. - SupportState *bool `json:"supportState,omitempty"` - // DefaultScope - Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. - DefaultScope *string `json:"defaultScope,omitempty"` - // BearerTokenSendingMethods - Specifies the mechanism by which access token is passed to the API. - BearerTokenSendingMethods *[]BearerTokenSendingMethod `json:"bearerTokenSendingMethods,omitempty"` - // ClientSecret - Client or app secret registered with this authorization server. - ClientSecret *string `json:"clientSecret,omitempty"` - // ResourceOwnerUsername - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. - ResourceOwnerUsername *string `json:"resourceOwnerUsername,omitempty"` - // ResourceOwnerPassword - Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. - ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendAuthorizationHeaderCredentials authorization header information. -type BackendAuthorizationHeaderCredentials struct { - // Scheme - Authentication Scheme name. - Scheme *string `json:"scheme,omitempty"` - // Parameter - Authentication Parameter value. - Parameter *string `json:"parameter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendBaseParameters backend entity base Parameter set. -type BackendBaseParameters struct { - // Title - Backend Title. - Title *string `json:"title,omitempty"` - // Description - Backend Description. - Description *string `json:"description,omitempty"` - // ResourceID - Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps. - ResourceID *string `json:"resourceId,omitempty"` - // Properties - Backend Properties contract - Properties *BackendProperties `json:"properties,omitempty"` - // Credentials - Backend Credentials Contract Properties - Credentials *BackendCredentialsContract `json:"credentials,omitempty"` - // Proxy - Backend Proxy Contract Properties - Proxy *BackendProxyContract `json:"proxy,omitempty"` - // TLS - Backend TLS Properties - TLS *BackendTLSProperties `json:"tls,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendCollection paged Backend list representation. -type BackendCollection struct { - autorest.Response `json:"-"` - // Value - Backend values. - Value *[]BackendContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendCollectionIterator provides access to a complete listing of BackendContract values. -type BackendCollectionIterator struct { - i int - page BackendCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *BackendCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *BackendCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter BackendCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter BackendCollectionIterator) Response() BackendCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter BackendCollectionIterator) Value() BackendContract { - if !iter.page.NotDone() { - return BackendContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (bc BackendCollection) IsEmpty() bool { - return bc.Value == nil || len(*bc.Value) == 0 -} - -// backendCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (bc BackendCollection) backendCollectionPreparer(ctx context.Context) (*http.Request, error) { - if bc.NextLink == nil || len(to.String(bc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(bc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendCollectionPage contains a page of BackendContract values. -type BackendCollectionPage struct { - fn func(context.Context, BackendCollection) (BackendCollection, error) - bc BackendCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *BackendCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/BackendCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.bc) - if err != nil { - return err - } - page.bc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *BackendCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page BackendCollectionPage) NotDone() bool { - return !page.bc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page BackendCollectionPage) Response() BackendCollection { - return page.bc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page BackendCollectionPage) Values() []BackendContract { - if page.bc.IsEmpty() { - return nil - } - return *page.bc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendContract backend details. -type BackendContract struct { - autorest.Response `json:"-"` - // BackendContractProperties - Backend entity contract properties. - *BackendContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for BackendContract. -func (bc BackendContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if bc.BackendContractProperties != nil { - objectMap["properties"] = bc.BackendContractProperties - } - if bc.ID != nil { - objectMap["id"] = bc.ID - } - if bc.Name != nil { - objectMap["name"] = bc.Name - } - if bc.Type != nil { - objectMap["type"] = bc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for BackendContract struct. -func (bc *BackendContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var backendContractProperties BackendContractProperties - err = json.Unmarshal(*v, &backendContractProperties) - if err != nil { - return err - } - bc.BackendContractProperties = &backendContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - bc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - bc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendContractProperties parameters supplied to the Create Backend operation. -type BackendContractProperties struct { - // URL - Runtime Url of the Backend. - URL *string `json:"url,omitempty"` - // Protocol - Backend communication protocol. Possible values include: 'BackendProtocolHTTP', 'BackendProtocolSoap' - Protocol BackendProtocol `json:"protocol,omitempty"` - // Title - Backend Title. - Title *string `json:"title,omitempty"` - // Description - Backend Description. - Description *string `json:"description,omitempty"` - // ResourceID - Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps. - ResourceID *string `json:"resourceId,omitempty"` - // Properties - Backend Properties contract - Properties *BackendProperties `json:"properties,omitempty"` - // Credentials - Backend Credentials Contract Properties - Credentials *BackendCredentialsContract `json:"credentials,omitempty"` - // Proxy - Backend Proxy Contract Properties - Proxy *BackendProxyContract `json:"proxy,omitempty"` - // TLS - Backend TLS Properties - TLS *BackendTLSProperties `json:"tls,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendCredentialsContract details of the Credentials used to connect to Backend. -type BackendCredentialsContract struct { - // Certificate - List of Client Certificate Thumbprint. - Certificate *[]string `json:"certificate,omitempty"` - // Query - Query Parameter description. - Query map[string][]string `json:"query"` - // Header - Header Parameter description. - Header map[string][]string `json:"header"` - // Authorization - Authorization header authentication - Authorization *BackendAuthorizationHeaderCredentials `json:"authorization,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for BackendCredentialsContract. -func (bcc BackendCredentialsContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if bcc.Certificate != nil { - objectMap["certificate"] = bcc.Certificate - } - if bcc.Query != nil { - objectMap["query"] = bcc.Query - } - if bcc.Header != nil { - objectMap["header"] = bcc.Header - } - if bcc.Authorization != nil { - objectMap["authorization"] = bcc.Authorization - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendProperties properties specific to the Backend Type. -type BackendProperties struct { - // ServiceFabricCluster - Backend Service Fabric Cluster Properties - ServiceFabricCluster *BackendServiceFabricClusterProperties `json:"serviceFabricCluster,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendProxyContract details of the Backend WebProxy Server to use in the Request to Backend. -type BackendProxyContract struct { - // URL - WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings. - URL *string `json:"url,omitempty"` - // Username - Username to connect to the WebProxy server - Username *string `json:"username,omitempty"` - // Password - Password to connect to the WebProxy Server - Password *string `json:"password,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendReconnectContract reconnect request parameters. -type BackendReconnectContract struct { - // BackendReconnectProperties - Reconnect request properties. - *BackendReconnectProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for BackendReconnectContract. -func (brc BackendReconnectContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if brc.BackendReconnectProperties != nil { - objectMap["properties"] = brc.BackendReconnectProperties - } - if brc.ID != nil { - objectMap["id"] = brc.ID - } - if brc.Name != nil { - objectMap["name"] = brc.Name - } - if brc.Type != nil { - objectMap["type"] = brc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for BackendReconnectContract struct. -func (brc *BackendReconnectContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var backendReconnectProperties BackendReconnectProperties - err = json.Unmarshal(*v, &backendReconnectProperties) - if err != nil { - return err - } - brc.BackendReconnectProperties = &backendReconnectProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - brc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - brc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - brc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendReconnectProperties properties to control reconnect requests. -type BackendReconnectProperties struct { - // After - Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconect is PT2M. - After *string `json:"after,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendServiceFabricClusterProperties properties of the Service Fabric Type Backend. -type BackendServiceFabricClusterProperties struct { - // ClientCertificatethumbprint - The client certificate thumbprint for the management endpoint. - ClientCertificatethumbprint *string `json:"clientCertificatethumbprint,omitempty"` - // MaxPartitionResolutionRetries - Maximum number of retries while attempting resolve the parition. - MaxPartitionResolutionRetries *int32 `json:"maxPartitionResolutionRetries,omitempty"` - // ManagementEndpoints - The cluster management endpoint. - ManagementEndpoints *[]string `json:"managementEndpoints,omitempty"` - // ServerCertificateThumbprints - Thumbprints of certificates cluster management service uses for tls communication - ServerCertificateThumbprints *[]string `json:"serverCertificateThumbprints,omitempty"` - // ServerX509Names - Server X509 Certificate Names Collection - ServerX509Names *[]X509CertificateName `json:"serverX509Names,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendTLSProperties properties controlling TLS Certificate Validation. -type BackendTLSProperties struct { - // ValidateCertificateChain - Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host. - ValidateCertificateChain *bool `json:"validateCertificateChain,omitempty"` - // ValidateCertificateName - Flag indicating whether SSL certificate name validation should be done when using self-signed certificates for this backend host. - ValidateCertificateName *bool `json:"validateCertificateName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendUpdateParameterProperties parameters supplied to the Update Backend operation. -type BackendUpdateParameterProperties struct { - // URL - Runtime Url of the Backend. - URL *string `json:"url,omitempty"` - // Protocol - Backend communication protocol. Possible values include: 'BackendProtocolHTTP', 'BackendProtocolSoap' - Protocol BackendProtocol `json:"protocol,omitempty"` - // Title - Backend Title. - Title *string `json:"title,omitempty"` - // Description - Backend Description. - Description *string `json:"description,omitempty"` - // ResourceID - Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps. - ResourceID *string `json:"resourceId,omitempty"` - // Properties - Backend Properties contract - Properties *BackendProperties `json:"properties,omitempty"` - // Credentials - Backend Credentials Contract Properties - Credentials *BackendCredentialsContract `json:"credentials,omitempty"` - // Proxy - Backend Proxy Contract Properties - Proxy *BackendProxyContract `json:"proxy,omitempty"` - // TLS - Backend TLS Properties - TLS *BackendTLSProperties `json:"tls,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackendUpdateParameters backend update parameters. -type BackendUpdateParameters struct { - // BackendUpdateParameterProperties - Backend entity update contract properties. - *BackendUpdateParameterProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for BackendUpdateParameters. -func (bup BackendUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if bup.BackendUpdateParameterProperties != nil { - objectMap["properties"] = bup.BackendUpdateParameterProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for BackendUpdateParameters struct. -func (bup *BackendUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var backendUpdateParameterProperties BackendUpdateParameterProperties - err = json.Unmarshal(*v, &backendUpdateParameterProperties) - if err != nil { - return err - } - bup.BackendUpdateParameterProperties = &backendUpdateParameterProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateCollection paged Certificates list representation. -type CertificateCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]CertificateContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateCollectionIterator provides access to a complete listing of CertificateContract values. -type CertificateCollectionIterator struct { - i int - page CertificateCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *CertificateCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *CertificateCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter CertificateCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter CertificateCollectionIterator) Response() CertificateCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter CertificateCollectionIterator) Value() CertificateContract { - if !iter.page.NotDone() { - return CertificateContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (cc CertificateCollection) IsEmpty() bool { - return cc.Value == nil || len(*cc.Value) == 0 -} - -// certificateCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (cc CertificateCollection) certificateCollectionPreparer(ctx context.Context) (*http.Request, error) { - if cc.NextLink == nil || len(to.String(cc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(cc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateCollectionPage contains a page of CertificateContract values. -type CertificateCollectionPage struct { - fn func(context.Context, CertificateCollection) (CertificateCollection, error) - cc CertificateCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *CertificateCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CertificateCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.cc) - if err != nil { - return err - } - page.cc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *CertificateCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page CertificateCollectionPage) NotDone() bool { - return !page.cc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page CertificateCollectionPage) Response() CertificateCollection { - return page.cc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page CertificateCollectionPage) Values() []CertificateContract { - if page.cc.IsEmpty() { - return nil - } - return *page.cc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateConfiguration certificate configuration which consist of non-trusted intermediates and root -// certificates. -type CertificateConfiguration struct { - // EncodedCertificate - Base64 Encoded certificate. - EncodedCertificate *string `json:"encodedCertificate,omitempty"` - // CertificatePassword - Certificate Password. - CertificatePassword *string `json:"certificatePassword,omitempty"` - // StoreName - The System.Security.Cryptography.x509certificates.Storename certificate store location. Only Root and CertificateAuthority are valid locations. Possible values include: 'CertificateAuthority', 'Root' - StoreName StoreName `json:"storeName,omitempty"` - // Certificate - Certificate information. - Certificate *CertificateInformation `json:"certificate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateContract certificate details. -type CertificateContract struct { - autorest.Response `json:"-"` - // CertificateContractProperties - Certificate properties details. - *CertificateContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for CertificateContract. -func (cc CertificateContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if cc.CertificateContractProperties != nil { - objectMap["properties"] = cc.CertificateContractProperties - } - if cc.ID != nil { - objectMap["id"] = cc.ID - } - if cc.Name != nil { - objectMap["name"] = cc.Name - } - if cc.Type != nil { - objectMap["type"] = cc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for CertificateContract struct. -func (cc *CertificateContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var certificateContractProperties CertificateContractProperties - err = json.Unmarshal(*v, &certificateContractProperties) - if err != nil { - return err - } - cc.CertificateContractProperties = &certificateContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - cc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - cc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateContractProperties properties of the Certificate contract. -type CertificateContractProperties struct { - // Subject - Subject attribute of the certificate. - Subject *string `json:"subject,omitempty"` - // Thumbprint - Thumbprint of the certificate. - Thumbprint *string `json:"thumbprint,omitempty"` - // ExpirationDate - Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - ExpirationDate *date.Time `json:"expirationDate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateCreateOrUpdateParameters certificate create or update details. -type CertificateCreateOrUpdateParameters struct { - // CertificateCreateOrUpdateProperties - Certificate create or update properties details. - *CertificateCreateOrUpdateProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for CertificateCreateOrUpdateParameters. -func (ccoup CertificateCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ccoup.CertificateCreateOrUpdateProperties != nil { - objectMap["properties"] = ccoup.CertificateCreateOrUpdateProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for CertificateCreateOrUpdateParameters struct. -func (ccoup *CertificateCreateOrUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var certificateCreateOrUpdateProperties CertificateCreateOrUpdateProperties - err = json.Unmarshal(*v, &certificateCreateOrUpdateProperties) - if err != nil { - return err - } - ccoup.CertificateCreateOrUpdateProperties = &certificateCreateOrUpdateProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateCreateOrUpdateProperties parameters supplied to the CreateOrUpdate certificate operation. -type CertificateCreateOrUpdateProperties struct { - // Data - Base 64 encoded certificate using the application/x-pkcs12 representation. - Data *string `json:"data,omitempty"` - // Password - Password for the Certificate - Password *string `json:"password,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CertificateInformation SSL certificate information. -type CertificateInformation struct { - autorest.Response `json:"-"` - // Expiry - Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - Expiry *date.Time `json:"expiry,omitempty"` - // Thumbprint - Thumbprint of the certificate. - Thumbprint *string `json:"thumbprint,omitempty"` - // Subject - Subject of the certificate. - Subject *string `json:"subject,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ConnectivityStatusContract details about connectivity to a resource. -type ConnectivityStatusContract struct { - // Name - The hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon. - Name *string `json:"name,omitempty"` - // Status - Resource Connectivity Status Type identifier. Possible values include: 'Initializing', 'Success', 'Failure' - Status ConnectivityStatusType `json:"status,omitempty"` - // Error - Error details of the connectivity to the resource. - Error *string `json:"error,omitempty"` - // LastUpdated - The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - LastUpdated *date.Time `json:"lastUpdated,omitempty"` - // LastStatusChange - The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - LastStatusChange *date.Time `json:"lastStatusChange,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeployConfigurationParameters parameters supplied to the Deploy Configuration operation. -type DeployConfigurationParameters struct { - // Branch - The name of the Git branch from which the configuration is to be deployed to the configuration database. - Branch *string `json:"branch,omitempty"` - // Force - The value enforcing deleting subscriptions to products that are deleted in this update. - Force *bool `json:"force,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DiagnosticCollection paged Diagnostic list representation. -type DiagnosticCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]DiagnosticContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DiagnosticCollectionIterator provides access to a complete listing of DiagnosticContract values. -type DiagnosticCollectionIterator struct { - i int - page DiagnosticCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *DiagnosticCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *DiagnosticCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter DiagnosticCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter DiagnosticCollectionIterator) Response() DiagnosticCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter DiagnosticCollectionIterator) Value() DiagnosticContract { - if !iter.page.NotDone() { - return DiagnosticContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (dc DiagnosticCollection) IsEmpty() bool { - return dc.Value == nil || len(*dc.Value) == 0 -} - -// diagnosticCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (dc DiagnosticCollection) diagnosticCollectionPreparer(ctx context.Context) (*http.Request, error) { - if dc.NextLink == nil || len(to.String(dc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(dc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DiagnosticCollectionPage contains a page of DiagnosticContract values. -type DiagnosticCollectionPage struct { - fn func(context.Context, DiagnosticCollection) (DiagnosticCollection, error) - dc DiagnosticCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *DiagnosticCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DiagnosticCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.dc) - if err != nil { - return err - } - page.dc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *DiagnosticCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page DiagnosticCollectionPage) NotDone() bool { - return !page.dc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page DiagnosticCollectionPage) Response() DiagnosticCollection { - return page.dc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page DiagnosticCollectionPage) Values() []DiagnosticContract { - if page.dc.IsEmpty() { - return nil - } - return *page.dc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DiagnosticContract diagnostic details. -type DiagnosticContract struct { - autorest.Response `json:"-"` - // DiagnosticContractProperties - Diagnostic entity contract properties. - *DiagnosticContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for DiagnosticContract. -func (dc DiagnosticContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dc.DiagnosticContractProperties != nil { - objectMap["properties"] = dc.DiagnosticContractProperties - } - if dc.ID != nil { - objectMap["id"] = dc.ID - } - if dc.Name != nil { - objectMap["name"] = dc.Name - } - if dc.Type != nil { - objectMap["type"] = dc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for DiagnosticContract struct. -func (dc *DiagnosticContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var diagnosticContractProperties DiagnosticContractProperties - err = json.Unmarshal(*v, &diagnosticContractProperties) - if err != nil { - return err - } - dc.DiagnosticContractProperties = &diagnosticContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - dc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DiagnosticContractProperties diagnostic Entity Properties -type DiagnosticContractProperties struct { - // Enabled - Indicates whether a diagnostic should receive data or not. - Enabled *bool `json:"enabled,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateCollection paged email template list representation. -type EmailTemplateCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]EmailTemplateContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateCollectionIterator provides access to a complete listing of EmailTemplateContract values. -type EmailTemplateCollectionIterator struct { - i int - page EmailTemplateCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *EmailTemplateCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *EmailTemplateCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter EmailTemplateCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter EmailTemplateCollectionIterator) Response() EmailTemplateCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter EmailTemplateCollectionIterator) Value() EmailTemplateContract { - if !iter.page.NotDone() { - return EmailTemplateContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (etc EmailTemplateCollection) IsEmpty() bool { - return etc.Value == nil || len(*etc.Value) == 0 -} - -// emailTemplateCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (etc EmailTemplateCollection) emailTemplateCollectionPreparer(ctx context.Context) (*http.Request, error) { - if etc.NextLink == nil || len(to.String(etc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(etc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateCollectionPage contains a page of EmailTemplateContract values. -type EmailTemplateCollectionPage struct { - fn func(context.Context, EmailTemplateCollection) (EmailTemplateCollection, error) - etc EmailTemplateCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *EmailTemplateCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/EmailTemplateCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.etc) - if err != nil { - return err - } - page.etc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *EmailTemplateCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page EmailTemplateCollectionPage) NotDone() bool { - return !page.etc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page EmailTemplateCollectionPage) Response() EmailTemplateCollection { - return page.etc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page EmailTemplateCollectionPage) Values() []EmailTemplateContract { - if page.etc.IsEmpty() { - return nil - } - return *page.etc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateContract email Template details. -type EmailTemplateContract struct { - autorest.Response `json:"-"` - // EmailTemplateContractProperties - Email Template entity contract properties. - *EmailTemplateContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for EmailTemplateContract. -func (etc EmailTemplateContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if etc.EmailTemplateContractProperties != nil { - objectMap["properties"] = etc.EmailTemplateContractProperties - } - if etc.ID != nil { - objectMap["id"] = etc.ID - } - if etc.Name != nil { - objectMap["name"] = etc.Name - } - if etc.Type != nil { - objectMap["type"] = etc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for EmailTemplateContract struct. -func (etc *EmailTemplateContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var emailTemplateContractProperties EmailTemplateContractProperties - err = json.Unmarshal(*v, &emailTemplateContractProperties) - if err != nil { - return err - } - etc.EmailTemplateContractProperties = &emailTemplateContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - etc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - etc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - etc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateContractProperties email Template Contract properties. -type EmailTemplateContractProperties struct { - // Subject - Subject of the Template. - Subject *string `json:"subject,omitempty"` - // Body - Email Template Body. This should be a valid XDocument - Body *string `json:"body,omitempty"` - // Title - Title of the Template. - Title *string `json:"title,omitempty"` - // Description - Description of the Email Template. - Description *string `json:"description,omitempty"` - // IsDefault - Whether the template is the default template provided by Api Management or has been edited. - IsDefault *bool `json:"isDefault,omitempty"` - // Parameters - Email Template Parameter values. - Parameters *[]EmailTemplateParametersContractProperties `json:"parameters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateParametersContractProperties email Template Parameter contract. -type EmailTemplateParametersContractProperties struct { - // Name - Template parameter name. - Name *string `json:"name,omitempty"` - // Title - Template parameter title. - Title *string `json:"title,omitempty"` - // Description - Template parameter description. - Description *string `json:"description,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateUpdateParameterProperties email Template Update Contract properties. -type EmailTemplateUpdateParameterProperties struct { - // Subject - Subject of the Template. - Subject *string `json:"subject,omitempty"` - // Title - Title of the Template. - Title *string `json:"title,omitempty"` - // Description - Description of the Email Template. - Description *string `json:"description,omitempty"` - // Body - Email Template Body. This should be a valid XDocument - Body *string `json:"body,omitempty"` - // Parameters - Email Template Parameter values. - Parameters *[]EmailTemplateParametersContractProperties `json:"parameters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// EmailTemplateUpdateParameters email Template update Parameters. -type EmailTemplateUpdateParameters struct { - // EmailTemplateUpdateParameterProperties - Email Template Update contract properties. - *EmailTemplateUpdateParameterProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for EmailTemplateUpdateParameters. -func (etup EmailTemplateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if etup.EmailTemplateUpdateParameterProperties != nil { - objectMap["properties"] = etup.EmailTemplateUpdateParameterProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for EmailTemplateUpdateParameters struct. -func (etup *EmailTemplateUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var emailTemplateUpdateParameterProperties EmailTemplateUpdateParameterProperties - err = json.Unmarshal(*v, &emailTemplateUpdateParameterProperties) - if err != nil { - return err - } - etup.EmailTemplateUpdateParameterProperties = &emailTemplateUpdateParameterProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ErrorFieldContract error Field contract. -type ErrorFieldContract struct { - // Code - Property level error code. - Code *string `json:"code,omitempty"` - // Message - Human-readable representation of property-level error. - Message *string `json:"message,omitempty"` - // Target - Property name. - Target *string `json:"target,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ErrorResponse error Response. -type ErrorResponse struct { - // ErrorResponseBody - Properties of the Error Response. - *ErrorResponseBody `json:"error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ErrorResponse. -func (er ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if er.ErrorResponseBody != nil { - objectMap["error"] = er.ErrorResponseBody - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for ErrorResponse struct. -func (er *ErrorResponse) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "error": - if v != nil { - var errorResponseBody ErrorResponseBody - err = json.Unmarshal(*v, &errorResponseBody) - if err != nil { - return err - } - er.ErrorResponseBody = &errorResponseBody - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ErrorResponseBody error Body contract. -type ErrorResponseBody struct { - // Code - Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. - Code *string `json:"code,omitempty"` - // Message - Human-readable representation of the error. - Message *string `json:"message,omitempty"` - // Details - The list of invalid fields send in request, in case of validation error. - Details *[]ErrorFieldContract `json:"details,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GenerateSsoURLResult generate SSO Url operations response details. -type GenerateSsoURLResult struct { - autorest.Response `json:"-"` - // Value - Redirect Url containing the SSO URL value. - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupCollection paged Group list representation. -type GroupCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]GroupContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupCollectionIterator provides access to a complete listing of GroupContract values. -type GroupCollectionIterator struct { - i int - page GroupCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *GroupCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *GroupCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter GroupCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter GroupCollectionIterator) Response() GroupCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter GroupCollectionIterator) Value() GroupContract { - if !iter.page.NotDone() { - return GroupContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (gc GroupCollection) IsEmpty() bool { - return gc.Value == nil || len(*gc.Value) == 0 -} - -// groupCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (gc GroupCollection) groupCollectionPreparer(ctx context.Context) (*http.Request, error) { - if gc.NextLink == nil || len(to.String(gc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(gc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupCollectionPage contains a page of GroupContract values. -type GroupCollectionPage struct { - fn func(context.Context, GroupCollection) (GroupCollection, error) - gc GroupCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *GroupCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GroupCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.gc) - if err != nil { - return err - } - page.gc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *GroupCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page GroupCollectionPage) NotDone() bool { - return !page.gc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page GroupCollectionPage) Response() GroupCollection { - return page.gc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page GroupCollectionPage) Values() []GroupContract { - if page.gc.IsEmpty() { - return nil - } - return *page.gc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupContract contract details. -type GroupContract struct { - autorest.Response `json:"-"` - // GroupContractProperties - Group entity contract properties. - *GroupContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for GroupContract. -func (gc GroupContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if gc.GroupContractProperties != nil { - objectMap["properties"] = gc.GroupContractProperties - } - if gc.ID != nil { - objectMap["id"] = gc.ID - } - if gc.Name != nil { - objectMap["name"] = gc.Name - } - if gc.Type != nil { - objectMap["type"] = gc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for GroupContract struct. -func (gc *GroupContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var groupContractProperties GroupContractProperties - err = json.Unmarshal(*v, &groupContractProperties) - if err != nil { - return err - } - gc.GroupContractProperties = &groupContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - gc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - gc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupContractProperties group contract Properties. -type GroupContractProperties struct { - // DisplayName - Group name. - DisplayName *string `json:"displayName,omitempty"` - // Description - Group description. Can contain HTML formatting tags. - Description *string `json:"description,omitempty"` - // BuiltIn - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. - BuiltIn *bool `json:"builtIn,omitempty"` - // Type - Group type. Possible values include: 'Custom', 'System', 'External' - Type GroupType `json:"type,omitempty"` - // ExternalID - For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory aad://.onmicrosoft.com/groups/; otherwise the value is null. - ExternalID *string `json:"externalId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupCreateParameters parameters supplied to the Create Group operation. -type GroupCreateParameters struct { - // GroupCreateParametersProperties - Properties supplied to Create Group operation. - *GroupCreateParametersProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for GroupCreateParameters. -func (gcp GroupCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if gcp.GroupCreateParametersProperties != nil { - objectMap["properties"] = gcp.GroupCreateParametersProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for GroupCreateParameters struct. -func (gcp *GroupCreateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var groupCreateParametersProperties GroupCreateParametersProperties - err = json.Unmarshal(*v, &groupCreateParametersProperties) - if err != nil { - return err - } - gcp.GroupCreateParametersProperties = &groupCreateParametersProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupCreateParametersProperties parameters supplied to the Create Group operation. -type GroupCreateParametersProperties struct { - // DisplayName - Group name. - DisplayName *string `json:"displayName,omitempty"` - // Description - Group description. - Description *string `json:"description,omitempty"` - // Type - Group type. Possible values include: 'Custom', 'System', 'External' - Type GroupType `json:"type,omitempty"` - // ExternalID - Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory aad://.onmicrosoft.com/groups/; otherwise the value is null. - ExternalID *string `json:"externalId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupUpdateParameters parameters supplied to the Update Group operation. -type GroupUpdateParameters struct { - // GroupUpdateParametersProperties - Group entity update contract properties. - *GroupUpdateParametersProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for GroupUpdateParameters. -func (gup GroupUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if gup.GroupUpdateParametersProperties != nil { - objectMap["properties"] = gup.GroupUpdateParametersProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for GroupUpdateParameters struct. -func (gup *GroupUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var groupUpdateParametersProperties GroupUpdateParametersProperties - err = json.Unmarshal(*v, &groupUpdateParametersProperties) - if err != nil { - return err - } - gup.GroupUpdateParametersProperties = &groupUpdateParametersProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GroupUpdateParametersProperties parameters supplied to the Update Group operation. -type GroupUpdateParametersProperties struct { - // DisplayName - Group name. - DisplayName *string `json:"displayName,omitempty"` - // Description - Group description. - Description *string `json:"description,omitempty"` - // Type - Group type. Possible values include: 'Custom', 'System', 'External' - Type GroupType `json:"type,omitempty"` - // ExternalID - Identifier of the external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory aad://.onmicrosoft.com/groups/; otherwise the value is null. - ExternalID *string `json:"externalId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// HostnameConfiguration custom hostname configuration. -type HostnameConfiguration struct { - // Type - Hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm' - Type HostnameType `json:"type,omitempty"` - // HostName - Hostname to configure on the Api Management service. - HostName *string `json:"hostName,omitempty"` - // KeyVaultID - Url to the KeyVault Secret containing the Ssl Certificate. If absolute Url containing version is provided, auto-update of ssl certificate will not work. This requires Api Management service to be configured with MSI. The secret should be of type *application/x-pkcs12* - KeyVaultID *string `json:"keyVaultId,omitempty"` - // EncodedCertificate - Base64 Encoded certificate. - EncodedCertificate *string `json:"encodedCertificate,omitempty"` - // CertificatePassword - Certificate Password. - CertificatePassword *string `json:"certificatePassword,omitempty"` - // DefaultSslBinding - Specify true to setup the certificate associated with this Hostname as the Default SSL Certificate. If a client does not send the SNI header, then this will be the certificate that will be challenged. The property is useful if a service has multiple custom hostname enabled and it needs to decide on the default ssl certificate. The setting only applied to Proxy Hostname Type. - DefaultSslBinding *bool `json:"defaultSslBinding,omitempty"` - // NegotiateClientCertificate - Specify true to always negotiate client certificate on the hostname. Default Value is false. - NegotiateClientCertificate *bool `json:"negotiateClientCertificate,omitempty"` - // Certificate - Certificate information. - Certificate *CertificateInformation `json:"certificate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// HostnameConfigurationOld custom hostname configuration. -type HostnameConfigurationOld struct { - // Type - Hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm' - Type HostnameType `json:"type,omitempty"` - // Hostname - Hostname to configure. - Hostname *string `json:"hostname,omitempty"` - // Certificate - Certificate information. - Certificate *CertificateInformation `json:"certificate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderBaseParameters identity Provider Base Parameter Properties. -type IdentityProviderBaseParameters struct { - // Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C' - Type IdentityProviderType `json:"type,omitempty"` - // AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login. - AllowedTenants *[]string `json:"allowedTenants,omitempty"` - // SignupPolicyName - Signup Policy Name. Only applies to AAD B2C Identity Provider. - SignupPolicyName *string `json:"signupPolicyName,omitempty"` - // SigninPolicyName - Signin Policy Name. Only applies to AAD B2C Identity Provider. - SigninPolicyName *string `json:"signinPolicyName,omitempty"` - // ProfileEditingPolicyName - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. - ProfileEditingPolicyName *string `json:"profileEditingPolicyName,omitempty"` - // PasswordResetPolicyName - Password Reset Policy Name. Only applies to AAD B2C Identity Provider. - PasswordResetPolicyName *string `json:"passwordResetPolicyName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderContract identity Provider details. -type IdentityProviderContract struct { - autorest.Response `json:"-"` - // IdentityProviderContractProperties - Identity Provider contract properties. - *IdentityProviderContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for IdentityProviderContract. -func (ipc IdentityProviderContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ipc.IdentityProviderContractProperties != nil { - objectMap["properties"] = ipc.IdentityProviderContractProperties - } - if ipc.ID != nil { - objectMap["id"] = ipc.ID - } - if ipc.Name != nil { - objectMap["name"] = ipc.Name - } - if ipc.Type != nil { - objectMap["type"] = ipc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for IdentityProviderContract struct. -func (ipc *IdentityProviderContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var identityProviderContractProperties IdentityProviderContractProperties - err = json.Unmarshal(*v, &identityProviderContractProperties) - if err != nil { - return err - } - ipc.IdentityProviderContractProperties = &identityProviderContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ipc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ipc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ipc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderContractProperties the external Identity Providers like Facebook, Google, Microsoft, -// Twitter or Azure Active Directory which can be used to enable access to the API Management service -// developer portal for all users. -type IdentityProviderContractProperties struct { - // ClientID - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. - ClientID *string `json:"clientId,omitempty"` - // ClientSecret - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. - ClientSecret *string `json:"clientSecret,omitempty"` - // Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C' - Type IdentityProviderType `json:"type,omitempty"` - // AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login. - AllowedTenants *[]string `json:"allowedTenants,omitempty"` - // SignupPolicyName - Signup Policy Name. Only applies to AAD B2C Identity Provider. - SignupPolicyName *string `json:"signupPolicyName,omitempty"` - // SigninPolicyName - Signin Policy Name. Only applies to AAD B2C Identity Provider. - SigninPolicyName *string `json:"signinPolicyName,omitempty"` - // ProfileEditingPolicyName - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. - ProfileEditingPolicyName *string `json:"profileEditingPolicyName,omitempty"` - // PasswordResetPolicyName - Password Reset Policy Name. Only applies to AAD B2C Identity Provider. - PasswordResetPolicyName *string `json:"passwordResetPolicyName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderList list of all the Identity Providers configured on the service instance. -type IdentityProviderList struct { - autorest.Response `json:"-"` - // Value - Identity Provider configuration values. - Value *[]IdentityProviderContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderListIterator provides access to a complete listing of IdentityProviderContract values. -type IdentityProviderListIterator struct { - i int - page IdentityProviderListPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *IdentityProviderListIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderListIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *IdentityProviderListIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter IdentityProviderListIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter IdentityProviderListIterator) Response() IdentityProviderList { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter IdentityProviderListIterator) Value() IdentityProviderContract { - if !iter.page.NotDone() { - return IdentityProviderContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (ipl IdentityProviderList) IsEmpty() bool { - return ipl.Value == nil || len(*ipl.Value) == 0 -} - -// identityProviderListPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (ipl IdentityProviderList) identityProviderListPreparer(ctx context.Context) (*http.Request, error) { - if ipl.NextLink == nil || len(to.String(ipl.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(ipl.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderListPage contains a page of IdentityProviderContract values. -type IdentityProviderListPage struct { - fn func(context.Context, IdentityProviderList) (IdentityProviderList, error) - ipl IdentityProviderList -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *IdentityProviderListPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IdentityProviderListPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.ipl) - if err != nil { - return err - } - page.ipl = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *IdentityProviderListPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page IdentityProviderListPage) NotDone() bool { - return !page.ipl.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page IdentityProviderListPage) Response() IdentityProviderList { - return page.ipl -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page IdentityProviderListPage) Values() []IdentityProviderContract { - if page.ipl.IsEmpty() { - return nil - } - return *page.ipl.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderUpdateParameters parameters supplied to update Identity Provider -type IdentityProviderUpdateParameters struct { - // IdentityProviderUpdateProperties - Identity Provider update properties. - *IdentityProviderUpdateProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for IdentityProviderUpdateParameters. -func (ipup IdentityProviderUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ipup.IdentityProviderUpdateProperties != nil { - objectMap["properties"] = ipup.IdentityProviderUpdateProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for IdentityProviderUpdateParameters struct. -func (ipup *IdentityProviderUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var identityProviderUpdateProperties IdentityProviderUpdateProperties - err = json.Unmarshal(*v, &identityProviderUpdateProperties) - if err != nil { - return err - } - ipup.IdentityProviderUpdateProperties = &identityProviderUpdateProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IdentityProviderUpdateProperties parameters supplied to the Update Identity Provider operation. -type IdentityProviderUpdateProperties struct { - // ClientID - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. - ClientID *string `json:"clientId,omitempty"` - // ClientSecret - Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. - ClientSecret *string `json:"clientSecret,omitempty"` - // Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C' - Type IdentityProviderType `json:"type,omitempty"` - // AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login. - AllowedTenants *[]string `json:"allowedTenants,omitempty"` - // SignupPolicyName - Signup Policy Name. Only applies to AAD B2C Identity Provider. - SignupPolicyName *string `json:"signupPolicyName,omitempty"` - // SigninPolicyName - Signin Policy Name. Only applies to AAD B2C Identity Provider. - SigninPolicyName *string `json:"signinPolicyName,omitempty"` - // ProfileEditingPolicyName - Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. - ProfileEditingPolicyName *string `json:"profileEditingPolicyName,omitempty"` - // PasswordResetPolicyName - Password Reset Policy Name. Only applies to AAD B2C Identity Provider. - PasswordResetPolicyName *string `json:"passwordResetPolicyName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueAttachmentCollection paged Issue Attachment list representation. -type IssueAttachmentCollection struct { - autorest.Response `json:"-"` - // Value - Issue Attachment values. - Value *[]IssueAttachmentContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract -// values. -type IssueAttachmentCollectionIterator struct { - i int - page IssueAttachmentCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *IssueAttachmentCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IssueAttachmentCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *IssueAttachmentCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter IssueAttachmentCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter IssueAttachmentCollectionIterator) Response() IssueAttachmentCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter IssueAttachmentCollectionIterator) Value() IssueAttachmentContract { - if !iter.page.NotDone() { - return IssueAttachmentContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (iac IssueAttachmentCollection) IsEmpty() bool { - return iac.Value == nil || len(*iac.Value) == 0 -} - -// issueAttachmentCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (iac IssueAttachmentCollection) issueAttachmentCollectionPreparer(ctx context.Context) (*http.Request, error) { - if iac.NextLink == nil || len(to.String(iac.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(iac.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueAttachmentCollectionPage contains a page of IssueAttachmentContract values. -type IssueAttachmentCollectionPage struct { - fn func(context.Context, IssueAttachmentCollection) (IssueAttachmentCollection, error) - iac IssueAttachmentCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *IssueAttachmentCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IssueAttachmentCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.iac) - if err != nil { - return err - } - page.iac = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *IssueAttachmentCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page IssueAttachmentCollectionPage) NotDone() bool { - return !page.iac.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page IssueAttachmentCollectionPage) Response() IssueAttachmentCollection { - return page.iac -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page IssueAttachmentCollectionPage) Values() []IssueAttachmentContract { - if page.iac.IsEmpty() { - return nil - } - return *page.iac.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueAttachmentContract issue Attachment Contract details. -type IssueAttachmentContract struct { - autorest.Response `json:"-"` - // IssueAttachmentContractProperties - Properties of the Issue Attachment. - *IssueAttachmentContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for IssueAttachmentContract. -func (iac IssueAttachmentContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if iac.IssueAttachmentContractProperties != nil { - objectMap["properties"] = iac.IssueAttachmentContractProperties - } - if iac.ID != nil { - objectMap["id"] = iac.ID - } - if iac.Name != nil { - objectMap["name"] = iac.Name - } - if iac.Type != nil { - objectMap["type"] = iac.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for IssueAttachmentContract struct. -func (iac *IssueAttachmentContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var issueAttachmentContractProperties IssueAttachmentContractProperties - err = json.Unmarshal(*v, &issueAttachmentContractProperties) - if err != nil { - return err - } - iac.IssueAttachmentContractProperties = &issueAttachmentContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - iac.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - iac.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - iac.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueAttachmentContractProperties issue Attachment contract Properties. -type IssueAttachmentContractProperties struct { - // Title - Filename by which the binary data will be saved. - Title *string `json:"title,omitempty"` - // ContentFormat - Either 'link' if content is provided via an HTTP link or the MIME type of the Base64-encoded binary data provided in the 'content' property. - ContentFormat *string `json:"contentFormat,omitempty"` - // Content - An HTTP link or Base64-encoded binary data. - Content *string `json:"content,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCollection paged Issue list representation. -type IssueCollection struct { - autorest.Response `json:"-"` - // Value - Issue values. - Value *[]IssueContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCollectionIterator provides access to a complete listing of IssueContract values. -type IssueCollectionIterator struct { - i int - page IssueCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *IssueCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IssueCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *IssueCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter IssueCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter IssueCollectionIterator) Response() IssueCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter IssueCollectionIterator) Value() IssueContract { - if !iter.page.NotDone() { - return IssueContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (ic IssueCollection) IsEmpty() bool { - return ic.Value == nil || len(*ic.Value) == 0 -} - -// issueCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (ic IssueCollection) issueCollectionPreparer(ctx context.Context) (*http.Request, error) { - if ic.NextLink == nil || len(to.String(ic.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(ic.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCollectionPage contains a page of IssueContract values. -type IssueCollectionPage struct { - fn func(context.Context, IssueCollection) (IssueCollection, error) - ic IssueCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *IssueCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IssueCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.ic) - if err != nil { - return err - } - page.ic = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *IssueCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page IssueCollectionPage) NotDone() bool { - return !page.ic.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page IssueCollectionPage) Response() IssueCollection { - return page.ic -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page IssueCollectionPage) Values() []IssueContract { - if page.ic.IsEmpty() { - return nil - } - return *page.ic.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCommentCollection paged Issue Comment list representation. -type IssueCommentCollection struct { - autorest.Response `json:"-"` - // Value - Issue Comment values. - Value *[]IssueCommentContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. -type IssueCommentCollectionIterator struct { - i int - page IssueCommentCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *IssueCommentCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IssueCommentCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *IssueCommentCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter IssueCommentCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter IssueCommentCollectionIterator) Response() IssueCommentCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter IssueCommentCollectionIterator) Value() IssueCommentContract { - if !iter.page.NotDone() { - return IssueCommentContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (icc IssueCommentCollection) IsEmpty() bool { - return icc.Value == nil || len(*icc.Value) == 0 -} - -// issueCommentCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (icc IssueCommentCollection) issueCommentCollectionPreparer(ctx context.Context) (*http.Request, error) { - if icc.NextLink == nil || len(to.String(icc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(icc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCommentCollectionPage contains a page of IssueCommentContract values. -type IssueCommentCollectionPage struct { - fn func(context.Context, IssueCommentCollection) (IssueCommentCollection, error) - icc IssueCommentCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *IssueCommentCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IssueCommentCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.icc) - if err != nil { - return err - } - page.icc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *IssueCommentCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page IssueCommentCollectionPage) NotDone() bool { - return !page.icc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page IssueCommentCollectionPage) Response() IssueCommentCollection { - return page.icc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page IssueCommentCollectionPage) Values() []IssueCommentContract { - if page.icc.IsEmpty() { - return nil - } - return *page.icc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCommentContract issue Comment Contract details. -type IssueCommentContract struct { - autorest.Response `json:"-"` - // IssueCommentContractProperties - Properties of the Issue Comment. - *IssueCommentContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for IssueCommentContract. -func (icc IssueCommentContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if icc.IssueCommentContractProperties != nil { - objectMap["properties"] = icc.IssueCommentContractProperties - } - if icc.ID != nil { - objectMap["id"] = icc.ID - } - if icc.Name != nil { - objectMap["name"] = icc.Name - } - if icc.Type != nil { - objectMap["type"] = icc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for IssueCommentContract struct. -func (icc *IssueCommentContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var issueCommentContractProperties IssueCommentContractProperties - err = json.Unmarshal(*v, &issueCommentContractProperties) - if err != nil { - return err - } - icc.IssueCommentContractProperties = &issueCommentContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - icc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - icc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - icc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueCommentContractProperties issue Comment contract Properties. -type IssueCommentContractProperties struct { - // Text - Comment text. - Text *string `json:"text,omitempty"` - // CreatedDate - Date and time when the comment was created. - CreatedDate *date.Time `json:"createdDate,omitempty"` - // UserID - A resource identifier for the user who left the comment. - UserID *string `json:"userId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueContract issue Contract details. -type IssueContract struct { - autorest.Response `json:"-"` - // IssueContractProperties - Properties of the Issue. - *IssueContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for IssueContract. -func (ic IssueContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ic.IssueContractProperties != nil { - objectMap["properties"] = ic.IssueContractProperties - } - if ic.ID != nil { - objectMap["id"] = ic.ID - } - if ic.Name != nil { - objectMap["name"] = ic.Name - } - if ic.Type != nil { - objectMap["type"] = ic.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for IssueContract struct. -func (ic *IssueContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var issueContractProperties IssueContractProperties - err = json.Unmarshal(*v, &issueContractProperties) - if err != nil { - return err - } - ic.IssueContractProperties = &issueContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ic.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ic.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ic.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IssueContractProperties issue contract Properties. -type IssueContractProperties struct { - // Title - The issue title. - Title *string `json:"title,omitempty"` - // Description - Text describing the issue. - Description *string `json:"description,omitempty"` - // CreatedDate - Date and time when the issue was created. - CreatedDate *date.Time `json:"createdDate,omitempty"` - // State - Status of the issue. Possible values include: 'Proposed', 'Open', 'Removed', 'Resolved', 'Closed' - State State `json:"state,omitempty"` - // UserID - A resource identifier for the user created the issue. - UserID *string `json:"userId,omitempty"` - // APIID - A resource identifier for the API the issue was created for. - APIID *string `json:"apiId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListNetworkStatusContractByLocation ... -type ListNetworkStatusContractByLocation struct { - autorest.Response `json:"-"` - Value *[]NetworkStatusContractByLocation `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerCollection paged Logger list representation. -type LoggerCollection struct { - autorest.Response `json:"-"` - // Value - Logger values. - Value *[]LoggerContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerCollectionIterator provides access to a complete listing of LoggerContract values. -type LoggerCollectionIterator struct { - i int - page LoggerCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *LoggerCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *LoggerCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter LoggerCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter LoggerCollectionIterator) Response() LoggerCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter LoggerCollectionIterator) Value() LoggerContract { - if !iter.page.NotDone() { - return LoggerContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (lc LoggerCollection) IsEmpty() bool { - return lc.Value == nil || len(*lc.Value) == 0 -} - -// loggerCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (lc LoggerCollection) loggerCollectionPreparer(ctx context.Context) (*http.Request, error) { - if lc.NextLink == nil || len(to.String(lc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(lc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerCollectionPage contains a page of LoggerContract values. -type LoggerCollectionPage struct { - fn func(context.Context, LoggerCollection) (LoggerCollection, error) - lc LoggerCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *LoggerCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LoggerCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.lc) - if err != nil { - return err - } - page.lc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *LoggerCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page LoggerCollectionPage) NotDone() bool { - return !page.lc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page LoggerCollectionPage) Response() LoggerCollection { - return page.lc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page LoggerCollectionPage) Values() []LoggerContract { - if page.lc.IsEmpty() { - return nil - } - return *page.lc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerContract logger details. -type LoggerContract struct { - autorest.Response `json:"-"` - // LoggerContractProperties - Logger entity contract properties. - *LoggerContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for LoggerContract. -func (lc LoggerContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if lc.LoggerContractProperties != nil { - objectMap["properties"] = lc.LoggerContractProperties - } - if lc.ID != nil { - objectMap["id"] = lc.ID - } - if lc.Name != nil { - objectMap["name"] = lc.Name - } - if lc.Type != nil { - objectMap["type"] = lc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for LoggerContract struct. -func (lc *LoggerContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var loggerContractProperties LoggerContractProperties - err = json.Unmarshal(*v, &loggerContractProperties) - if err != nil { - return err - } - lc.LoggerContractProperties = &loggerContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - lc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - lc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerContractProperties the Logger entity in API Management represents an event sink that you can use -// to log API Management events. Currently the Logger entity supports logging API Management events to -// Azure Event Hubs. -type LoggerContractProperties struct { - // LoggerType - Logger type. Possible values include: 'AzureEventHub', 'ApplicationInsights' - LoggerType LoggerType `json:"loggerType,omitempty"` - // Description - Logger description. - Description *string `json:"description,omitempty"` - // Credentials - The name and SendRule connection string of the event hub for azureEventHub logger. - // Instrumentation key for applicationInsights logger. - Credentials map[string]*string `json:"credentials"` - // IsBuffered - Whether records are buffered in the logger before publishing. Default is assumed to be true. - IsBuffered *bool `json:"isBuffered,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for LoggerContractProperties. -func (lcp LoggerContractProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if lcp.LoggerType != "" { - objectMap["loggerType"] = lcp.LoggerType - } - if lcp.Description != nil { - objectMap["description"] = lcp.Description - } - if lcp.Credentials != nil { - objectMap["credentials"] = lcp.Credentials - } - if lcp.IsBuffered != nil { - objectMap["isBuffered"] = lcp.IsBuffered - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerUpdateContract logger update contract. -type LoggerUpdateContract struct { - // LoggerUpdateParameters - Logger entity update contract properties. - *LoggerUpdateParameters `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for LoggerUpdateContract. -func (luc LoggerUpdateContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if luc.LoggerUpdateParameters != nil { - objectMap["properties"] = luc.LoggerUpdateParameters - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for LoggerUpdateContract struct. -func (luc *LoggerUpdateContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var loggerUpdateParameters LoggerUpdateParameters - err = json.Unmarshal(*v, &loggerUpdateParameters) - if err != nil { - return err - } - luc.LoggerUpdateParameters = &loggerUpdateParameters - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// LoggerUpdateParameters parameters supplied to the Update Logger operation. -type LoggerUpdateParameters struct { - // LoggerType - Logger type. Possible values include: 'AzureEventHub', 'ApplicationInsights' - LoggerType LoggerType `json:"loggerType,omitempty"` - // Description - Logger description. - Description *string `json:"description,omitempty"` - // Credentials - Logger credentials. - Credentials map[string]*string `json:"credentials"` - // IsBuffered - Whether records are buffered in the logger before publishing. Default is assumed to be true. - IsBuffered *bool `json:"isBuffered,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for LoggerUpdateParameters. -func (lup LoggerUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if lup.LoggerType != "" { - objectMap["loggerType"] = lup.LoggerType - } - if lup.Description != nil { - objectMap["description"] = lup.Description - } - if lup.Credentials != nil { - objectMap["credentials"] = lup.Credentials - } - if lup.IsBuffered != nil { - objectMap["isBuffered"] = lup.IsBuffered - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NetworkStatusContract network Status details. -type NetworkStatusContract struct { - autorest.Response `json:"-"` - // DNSServers - Gets the list of DNS servers IPV4 addresses. - DNSServers *[]string `json:"dnsServers,omitempty"` - // ConnectivityStatus - Gets the list of Connectivity Status to the Resources on which the service depends upon. - ConnectivityStatus *[]ConnectivityStatusContract `json:"connectivityStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NetworkStatusContractByLocation network Status in the Location -type NetworkStatusContractByLocation struct { - // Location - Location of service - Location *string `json:"location,omitempty"` - // NetworkStatus - Network status in Location - NetworkStatus *NetworkStatusContract `json:"networkStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationCollection paged Notification list representation. -type NotificationCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]NotificationContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationCollectionIterator provides access to a complete listing of NotificationContract values. -type NotificationCollectionIterator struct { - i int - page NotificationCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *NotificationCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *NotificationCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter NotificationCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter NotificationCollectionIterator) Response() NotificationCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter NotificationCollectionIterator) Value() NotificationContract { - if !iter.page.NotDone() { - return NotificationContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (nc NotificationCollection) IsEmpty() bool { - return nc.Value == nil || len(*nc.Value) == 0 -} - -// notificationCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (nc NotificationCollection) notificationCollectionPreparer(ctx context.Context) (*http.Request, error) { - if nc.NextLink == nil || len(to.String(nc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(nc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationCollectionPage contains a page of NotificationContract values. -type NotificationCollectionPage struct { - fn func(context.Context, NotificationCollection) (NotificationCollection, error) - nc NotificationCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *NotificationCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.nc) - if err != nil { - return err - } - page.nc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *NotificationCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page NotificationCollectionPage) NotDone() bool { - return !page.nc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page NotificationCollectionPage) Response() NotificationCollection { - return page.nc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page NotificationCollectionPage) Values() []NotificationContract { - if page.nc.IsEmpty() { - return nil - } - return *page.nc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationContract notification details. -type NotificationContract struct { - autorest.Response `json:"-"` - // NotificationContractProperties - Notification entity contract properties. - *NotificationContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for NotificationContract. -func (nc NotificationContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if nc.NotificationContractProperties != nil { - objectMap["properties"] = nc.NotificationContractProperties - } - if nc.ID != nil { - objectMap["id"] = nc.ID - } - if nc.Name != nil { - objectMap["name"] = nc.Name - } - if nc.Type != nil { - objectMap["type"] = nc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for NotificationContract struct. -func (nc *NotificationContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var notificationContractProperties NotificationContractProperties - err = json.Unmarshal(*v, ¬ificationContractProperties) - if err != nil { - return err - } - nc.NotificationContractProperties = ¬ificationContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - nc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - nc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - nc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationContractProperties notification Contract properties. -type NotificationContractProperties struct { - // Title - Title of the Notification. - Title *string `json:"title,omitempty"` - // Description - Description of the Notification. - Description *string `json:"description,omitempty"` - // Recipients - Recipient Parameter values. - Recipients *RecipientsContractProperties `json:"recipients,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OAuth2AuthenticationSettingsContract API OAuth2 Authentication settings details. -type OAuth2AuthenticationSettingsContract struct { - // AuthorizationServerID - OAuth authorization server identifier. - AuthorizationServerID *string `json:"authorizationServerId,omitempty"` - // Scope - operations scope. - Scope *string `json:"scope,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenIDAuthenticationSettingsContract API OAuth2 Authentication settings details. -type OpenIDAuthenticationSettingsContract struct { - // OpenidProviderID - OAuth authorization server identifier. - OpenidProviderID *string `json:"openidProviderId,omitempty"` - // BearerTokenSendingMethods - How to send token to the server. - BearerTokenSendingMethods *[]BearerTokenSendingMethods `json:"bearerTokenSendingMethods,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenIDConnectProviderCollection paged OpenIdProviders list representation. -type OpenIDConnectProviderCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]OpenidConnectProviderContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenIDConnectProviderCollectionIterator provides access to a complete listing of -// OpenidConnectProviderContract values. -type OpenIDConnectProviderCollectionIterator struct { - i int - page OpenIDConnectProviderCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *OpenIDConnectProviderCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *OpenIDConnectProviderCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter OpenIDConnectProviderCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter OpenIDConnectProviderCollectionIterator) Response() OpenIDConnectProviderCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter OpenIDConnectProviderCollectionIterator) Value() OpenidConnectProviderContract { - if !iter.page.NotDone() { - return OpenidConnectProviderContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (oicpc OpenIDConnectProviderCollection) IsEmpty() bool { - return oicpc.Value == nil || len(*oicpc.Value) == 0 -} - -// openIDConnectProviderCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (oicpc OpenIDConnectProviderCollection) openIDConnectProviderCollectionPreparer(ctx context.Context) (*http.Request, error) { - if oicpc.NextLink == nil || len(to.String(oicpc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(oicpc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenIDConnectProviderCollectionPage contains a page of OpenidConnectProviderContract values. -type OpenIDConnectProviderCollectionPage struct { - fn func(context.Context, OpenIDConnectProviderCollection) (OpenIDConnectProviderCollection, error) - oicpc OpenIDConnectProviderCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *OpenIDConnectProviderCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.oicpc) - if err != nil { - return err - } - page.oicpc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *OpenIDConnectProviderCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page OpenIDConnectProviderCollectionPage) NotDone() bool { - return !page.oicpc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page OpenIDConnectProviderCollectionPage) Response() OpenIDConnectProviderCollection { - return page.oicpc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page OpenIDConnectProviderCollectionPage) Values() []OpenidConnectProviderContract { - if page.oicpc.IsEmpty() { - return nil - } - return *page.oicpc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenidConnectProviderContract openId Connect Provider details. -type OpenidConnectProviderContract struct { - autorest.Response `json:"-"` - // OpenidConnectProviderContractProperties - OpenId Connect Provider contract properties. - *OpenidConnectProviderContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for OpenidConnectProviderContract. -func (ocpc OpenidConnectProviderContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ocpc.OpenidConnectProviderContractProperties != nil { - objectMap["properties"] = ocpc.OpenidConnectProviderContractProperties - } - if ocpc.ID != nil { - objectMap["id"] = ocpc.ID - } - if ocpc.Name != nil { - objectMap["name"] = ocpc.Name - } - if ocpc.Type != nil { - objectMap["type"] = ocpc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for OpenidConnectProviderContract struct. -func (ocpc *OpenidConnectProviderContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var openidConnectProviderContractProperties OpenidConnectProviderContractProperties - err = json.Unmarshal(*v, &openidConnectProviderContractProperties) - if err != nil { - return err - } - ocpc.OpenidConnectProviderContractProperties = &openidConnectProviderContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ocpc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ocpc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ocpc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenidConnectProviderContractProperties openID Connect Providers Contract. -type OpenidConnectProviderContractProperties struct { - // DisplayName - User-friendly OpenID Connect Provider name. - DisplayName *string `json:"displayName,omitempty"` - // Description - User-friendly description of OpenID Connect Provider. - Description *string `json:"description,omitempty"` - // MetadataEndpoint - Metadata endpoint URI. - MetadataEndpoint *string `json:"metadataEndpoint,omitempty"` - // ClientID - Client ID of developer console which is the client application. - ClientID *string `json:"clientId,omitempty"` - // ClientSecret - Client Secret of developer console which is the client application. - ClientSecret *string `json:"clientSecret,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenidConnectProviderUpdateContract parameters supplied to the Update OpenID Connect Provider operation. -type OpenidConnectProviderUpdateContract struct { - // OpenidConnectProviderUpdateContractProperties - OpenId Connect Provider Update contract properties. - *OpenidConnectProviderUpdateContractProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for OpenidConnectProviderUpdateContract. -func (ocpuc OpenidConnectProviderUpdateContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ocpuc.OpenidConnectProviderUpdateContractProperties != nil { - objectMap["properties"] = ocpuc.OpenidConnectProviderUpdateContractProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for OpenidConnectProviderUpdateContract struct. -func (ocpuc *OpenidConnectProviderUpdateContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var openidConnectProviderUpdateContractProperties OpenidConnectProviderUpdateContractProperties - err = json.Unmarshal(*v, &openidConnectProviderUpdateContractProperties) - if err != nil { - return err - } - ocpuc.OpenidConnectProviderUpdateContractProperties = &openidConnectProviderUpdateContractProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenidConnectProviderUpdateContractProperties parameters supplied to the Update OpenID Connect Provider -// operation. -type OpenidConnectProviderUpdateContractProperties struct { - // DisplayName - User-friendly OpenID Connect Provider name. - DisplayName *string `json:"displayName,omitempty"` - // Description - User-friendly description of OpenID Connect Provider. - Description *string `json:"description,omitempty"` - // MetadataEndpoint - Metadata endpoint URI. - MetadataEndpoint *string `json:"metadataEndpoint,omitempty"` - // ClientID - Client ID of developer console which is the client application. - ClientID *string `json:"clientId,omitempty"` - // ClientSecret - Client Secret of developer console which is the client application. - ClientSecret *string `json:"clientSecret,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Operation REST API operation -type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` - // Display - The object that describes the operation. - Display *OperationDisplay `json:"display,omitempty"` - // Origin - The operation origin. - Origin *string `json:"origin,omitempty"` - // Properties - The operation properties. - Properties interface{} `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationCollection paged Operation list representation. -type OperationCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]OperationContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationCollectionIterator provides access to a complete listing of OperationContract values. -type OperationCollectionIterator struct { - i int - page OperationCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *OperationCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *OperationCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter OperationCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter OperationCollectionIterator) Response() OperationCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter OperationCollectionIterator) Value() OperationContract { - if !iter.page.NotDone() { - return OperationContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (oc OperationCollection) IsEmpty() bool { - return oc.Value == nil || len(*oc.Value) == 0 -} - -// operationCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (oc OperationCollection) operationCollectionPreparer(ctx context.Context) (*http.Request, error) { - if oc.NextLink == nil || len(to.String(oc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(oc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationCollectionPage contains a page of OperationContract values. -type OperationCollectionPage struct { - fn func(context.Context, OperationCollection) (OperationCollection, error) - oc OperationCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *OperationCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.oc) - if err != nil { - return err - } - page.oc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *OperationCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page OperationCollectionPage) NotDone() bool { - return !page.oc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page OperationCollectionPage) Response() OperationCollection { - return page.oc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page OperationCollectionPage) Values() []OperationContract { - if page.oc.IsEmpty() { - return nil - } - return *page.oc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationContract api Operation details. -type OperationContract struct { - autorest.Response `json:"-"` - // OperationContractProperties - Properties of the Operation Contract. - *OperationContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for OperationContract. -func (oc OperationContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if oc.OperationContractProperties != nil { - objectMap["properties"] = oc.OperationContractProperties - } - if oc.ID != nil { - objectMap["id"] = oc.ID - } - if oc.Name != nil { - objectMap["name"] = oc.Name - } - if oc.Type != nil { - objectMap["type"] = oc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for OperationContract struct. -func (oc *OperationContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var operationContractProperties OperationContractProperties - err = json.Unmarshal(*v, &operationContractProperties) - if err != nil { - return err - } - oc.OperationContractProperties = &operationContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - oc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - oc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - oc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationContractProperties operation Contract Properties -type OperationContractProperties struct { - // DisplayName - Operation Name. - DisplayName *string `json:"displayName,omitempty"` - // Method - A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. - Method *string `json:"method,omitempty"` - // URLTemplate - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} - URLTemplate *string `json:"urlTemplate,omitempty"` - // TemplateParameters - Collection of URL template parameters. - TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"` - // Description - Description of the operation. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // Request - An entity containing request details. - Request *RequestContract `json:"request,omitempty"` - // Responses - Array of Operation responses. - Responses *[]ResponseContract `json:"responses,omitempty"` - // Policies - Operation Policies - Policies *string `json:"policies,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationDisplay the object that describes the operation. -type OperationDisplay struct { - // Provider - Friendly name of the resource provider - Provider *string `json:"provider,omitempty"` - // Operation - Operation type: read, write, delete, listKeys/action, etc. - Operation *string `json:"operation,omitempty"` - // Resource - Resource type on which the operation is performed. - Resource *string `json:"resource,omitempty"` - // Description - Friendly name of the operation - Description *string `json:"description,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationEntityBaseContract api Operation Entity Base Contract details. -type OperationEntityBaseContract struct { - // TemplateParameters - Collection of URL template parameters. - TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"` - // Description - Description of the operation. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // Request - An entity containing request details. - Request *RequestContract `json:"request,omitempty"` - // Responses - Array of Operation responses. - Responses *[]ResponseContract `json:"responses,omitempty"` - // Policies - Operation Policies - Policies *string `json:"policies,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationListResult result of the request to list REST API operations. It contains a list of operations -// and a URL nextLink to get the next set of results. -type OperationListResult struct { - autorest.Response `json:"-"` - // Value - List of operations supported by the resource provider. - Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationListResultIterator provides access to a complete listing of Operation values. -type OperationListResultIterator struct { - i int - page OperationListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *OperationListResultIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter OperationListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter OperationListResultIterator) Response() OperationListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter OperationListResultIterator) Value() Operation { - if !iter.page.NotDone() { - return Operation{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (olr OperationListResult) IsEmpty() bool { - return olr.Value == nil || len(*olr.Value) == 0 -} - -// operationListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { - if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(olr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationListResultPage contains a page of Operation values. -type OperationListResultPage struct { - fn func(context.Context, OperationListResult) (OperationListResult, error) - olr OperationListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.olr) - if err != nil { - return err - } - page.olr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *OperationListResultPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page OperationListResultPage) NotDone() bool { - return !page.olr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page OperationListResultPage) Response() OperationListResult { - return page.olr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page OperationListResultPage) Values() []Operation { - if page.olr.IsEmpty() { - return nil - } - return *page.olr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationResultContract operation Result. -type OperationResultContract struct { - autorest.Response `json:"-"` - // ID - Operation result identifier. - ID *string `json:"id,omitempty"` - // Status - Status of an async operation. Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed' - Status AsyncOperationStatus `json:"status,omitempty"` - // Started - Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - Started *date.Time `json:"started,omitempty"` - // Updated - Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - Updated *date.Time `json:"updated,omitempty"` - // ResultInfo - Optional result info. - ResultInfo *string `json:"resultInfo,omitempty"` - // Error - Error Body Contract - Error *ErrorResponseBody `json:"error,omitempty"` - // ActionLog - This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. - ActionLog *[]OperationResultLogItemContract `json:"actionLog,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationResultLogItemContract log of the entity being created, updated or deleted. -type OperationResultLogItemContract struct { - // ObjectType - The type of entity contract. - ObjectType *string `json:"objectType,omitempty"` - // Action - Action like create/update/delete. - Action *string `json:"action,omitempty"` - // ObjectKey - Identifier of the entity being created/updated/deleted. - ObjectKey *string `json:"objectKey,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationTagResourceContractProperties operation Entity contract Properties. -type OperationTagResourceContractProperties struct { - // ID - Identifier of the operation in form /operations/{operationId}. - ID *string `json:"id,omitempty"` - // Name - Operation name. - Name *string `json:"name,omitempty"` - // APIName - Api Name. - APIName *string `json:"apiName,omitempty"` - // APIRevision - Api Revision. - APIRevision *string `json:"apiRevision,omitempty"` - // APIVersion - Api Version. - APIVersion *string `json:"apiVersion,omitempty"` - // Description - Operation Description. - Description *string `json:"description,omitempty"` - // Method - A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. - Method *string `json:"method,omitempty"` - // URLTemplate - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} - URLTemplate *string `json:"urlTemplate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationUpdateContract api Operation Update Contract details. -type OperationUpdateContract struct { - // OperationUpdateContractProperties - Properties of the API Operation entity that can be updated. - *OperationUpdateContractProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for OperationUpdateContract. -func (ouc OperationUpdateContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ouc.OperationUpdateContractProperties != nil { - objectMap["properties"] = ouc.OperationUpdateContractProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for OperationUpdateContract struct. -func (ouc *OperationUpdateContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var operationUpdateContractProperties OperationUpdateContractProperties - err = json.Unmarshal(*v, &operationUpdateContractProperties) - if err != nil { - return err - } - ouc.OperationUpdateContractProperties = &operationUpdateContractProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationUpdateContractProperties operation Update Contract Properties. -type OperationUpdateContractProperties struct { - // DisplayName - Operation Name. - DisplayName *string `json:"displayName,omitempty"` - // Method - A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. - Method *string `json:"method,omitempty"` - // URLTemplate - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} - URLTemplate *string `json:"urlTemplate,omitempty"` - // TemplateParameters - Collection of URL template parameters. - TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"` - // Description - Description of the operation. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // Request - An entity containing request details. - Request *RequestContract `json:"request,omitempty"` - // Responses - Array of Operation responses. - Responses *[]ResponseContract `json:"responses,omitempty"` - // Policies - Operation Policies - Policies *string `json:"policies,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ParameterContract operation parameters details. -type ParameterContract struct { - // Name - Parameter name. - Name *string `json:"name,omitempty"` - // Description - Parameter description. - Description *string `json:"description,omitempty"` - // Type - Parameter type. - Type *string `json:"type,omitempty"` - // DefaultValue - Default parameter value. - DefaultValue *string `json:"defaultValue,omitempty"` - // Required - whether parameter is required or not. - Required *bool `json:"required,omitempty"` - // Values - Parameter values. - Values *[]string `json:"values,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicyCollection the response of the list policy operation. -type PolicyCollection struct { - autorest.Response `json:"-"` - // Value - Policy Contract value. - Value *[]PolicyContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicyContract policy Contract details. -type PolicyContract struct { - autorest.Response `json:"-"` - // PolicyContractProperties - Properties of the Policy. - *PolicyContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for PolicyContract. -func (pc PolicyContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pc.PolicyContractProperties != nil { - objectMap["properties"] = pc.PolicyContractProperties - } - if pc.ID != nil { - objectMap["id"] = pc.ID - } - if pc.Name != nil { - objectMap["name"] = pc.Name - } - if pc.Type != nil { - objectMap["type"] = pc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for PolicyContract struct. -func (pc *PolicyContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var policyContractProperties PolicyContractProperties - err = json.Unmarshal(*v, &policyContractProperties) - if err != nil { - return err - } - pc.PolicyContractProperties = &policyContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicyContractProperties policy contract Properties. -type PolicyContractProperties struct { - // PolicyContent - Json escaped Xml Encoded contents of the Policy. - PolicyContent *string `json:"policyContent,omitempty"` - // ContentFormat - Format of the policyContent. Possible values include: 'XML', 'XMLLink', 'Rawxml', 'RawxmlLink' - ContentFormat PolicyContentFormat `json:"contentFormat,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicySnippetContract policy snippet. -type PolicySnippetContract struct { - // Name - Snippet name. - Name *string `json:"name,omitempty"` - // Content - Snippet content. - Content *string `json:"content,omitempty"` - // ToolTip - Snippet toolTip. - ToolTip *string `json:"toolTip,omitempty"` - // Scope - Binary OR value of the Snippet scope. - Scope *int32 `json:"scope,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicySnippetsCollection the response of the list policy snippets operation. -type PolicySnippetsCollection struct { - autorest.Response `json:"-"` - // Value - Policy snippet value. - Value *[]PolicySnippetContract `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PortalDelegationSettings delegation settings for a developer portal. -type PortalDelegationSettings struct { - autorest.Response `json:"-"` - // PortalDelegationSettingsProperties - Delegation settings contract properties. - *PortalDelegationSettingsProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for PortalDelegationSettings. -func (pds PortalDelegationSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pds.PortalDelegationSettingsProperties != nil { - objectMap["properties"] = pds.PortalDelegationSettingsProperties - } - if pds.ID != nil { - objectMap["id"] = pds.ID - } - if pds.Name != nil { - objectMap["name"] = pds.Name - } - if pds.Type != nil { - objectMap["type"] = pds.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for PortalDelegationSettings struct. -func (pds *PortalDelegationSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var portalDelegationSettingsProperties PortalDelegationSettingsProperties - err = json.Unmarshal(*v, &portalDelegationSettingsProperties) - if err != nil { - return err - } - pds.PortalDelegationSettingsProperties = &portalDelegationSettingsProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pds.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pds.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pds.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PortalDelegationSettingsProperties delegation settings contract properties. -type PortalDelegationSettingsProperties struct { - // URL - A delegation Url. - URL *string `json:"url,omitempty"` - // ValidationKey - A base64-encoded validation key to validate, that a request is coming from Azure API Management. - ValidationKey *string `json:"validationKey,omitempty"` - // Subscriptions - Subscriptions delegation settings. - Subscriptions *SubscriptionsDelegationSettingsProperties `json:"subscriptions,omitempty"` - // UserRegistration - User registration delegation settings. - UserRegistration *RegistrationDelegationSettingsProperties `json:"userRegistration,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PortalSigninSettingProperties sign-in settings contract properties. -type PortalSigninSettingProperties struct { - // Enabled - Redirect Anonymous users to the Sign-In page. - Enabled *bool `json:"enabled,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PortalSigninSettings sign-In settings for the Developer Portal. -type PortalSigninSettings struct { - autorest.Response `json:"-"` - // PortalSigninSettingProperties - Sign-in settings contract properties. - *PortalSigninSettingProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for PortalSigninSettings. -func (pss PortalSigninSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pss.PortalSigninSettingProperties != nil { - objectMap["properties"] = pss.PortalSigninSettingProperties - } - if pss.ID != nil { - objectMap["id"] = pss.ID - } - if pss.Name != nil { - objectMap["name"] = pss.Name - } - if pss.Type != nil { - objectMap["type"] = pss.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for PortalSigninSettings struct. -func (pss *PortalSigninSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var portalSigninSettingProperties PortalSigninSettingProperties - err = json.Unmarshal(*v, &portalSigninSettingProperties) - if err != nil { - return err - } - pss.PortalSigninSettingProperties = &portalSigninSettingProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pss.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pss.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pss.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PortalSignupSettings sign-Up settings for a developer portal. -type PortalSignupSettings struct { - autorest.Response `json:"-"` - // PortalSignupSettingsProperties - Sign-up settings contract properties. - *PortalSignupSettingsProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for PortalSignupSettings. -func (pss PortalSignupSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pss.PortalSignupSettingsProperties != nil { - objectMap["properties"] = pss.PortalSignupSettingsProperties - } - if pss.ID != nil { - objectMap["id"] = pss.ID - } - if pss.Name != nil { - objectMap["name"] = pss.Name - } - if pss.Type != nil { - objectMap["type"] = pss.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for PortalSignupSettings struct. -func (pss *PortalSignupSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var portalSignupSettingsProperties PortalSignupSettingsProperties - err = json.Unmarshal(*v, &portalSignupSettingsProperties) - if err != nil { - return err - } - pss.PortalSignupSettingsProperties = &portalSignupSettingsProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pss.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pss.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pss.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PortalSignupSettingsProperties sign-up settings contract properties. -type PortalSignupSettingsProperties struct { - // Enabled - Allow users to sign up on a developer portal. - Enabled *bool `json:"enabled,omitempty"` - // TermsOfService - Terms of service contract properties. - TermsOfService *TermsOfServiceProperties `json:"termsOfService,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductCollection paged Products list representation. -type ProductCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]ProductContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductCollectionIterator provides access to a complete listing of ProductContract values. -type ProductCollectionIterator struct { - i int - page ProductCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ProductCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ProductCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ProductCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter ProductCollectionIterator) Response() ProductCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ProductCollectionIterator) Value() ProductContract { - if !iter.page.NotDone() { - return ProductContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (pc ProductCollection) IsEmpty() bool { - return pc.Value == nil || len(*pc.Value) == 0 -} - -// productCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (pc ProductCollection) productCollectionPreparer(ctx context.Context) (*http.Request, error) { - if pc.NextLink == nil || len(to.String(pc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(pc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductCollectionPage contains a page of ProductContract values. -type ProductCollectionPage struct { - fn func(context.Context, ProductCollection) (ProductCollection, error) - pc ProductCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ProductCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.pc) - if err != nil { - return err - } - page.pc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ProductCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ProductCollectionPage) NotDone() bool { - return !page.pc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page ProductCollectionPage) Response() ProductCollection { - return page.pc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page ProductCollectionPage) Values() []ProductContract { - if page.pc.IsEmpty() { - return nil - } - return *page.pc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductContract product details. -type ProductContract struct { - autorest.Response `json:"-"` - // ProductContractProperties - Product entity contract properties. - *ProductContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ProductContract. -func (pc ProductContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pc.ProductContractProperties != nil { - objectMap["properties"] = pc.ProductContractProperties - } - if pc.ID != nil { - objectMap["id"] = pc.ID - } - if pc.Name != nil { - objectMap["name"] = pc.Name - } - if pc.Type != nil { - objectMap["type"] = pc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for ProductContract struct. -func (pc *ProductContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var productContractProperties ProductContractProperties - err = json.Unmarshal(*v, &productContractProperties) - if err != nil { - return err - } - pc.ProductContractProperties = &productContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductContractProperties product profile. -type ProductContractProperties struct { - // DisplayName - Product name. - DisplayName *string `json:"displayName,omitempty"` - // Description - Product description. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // Terms - Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. - Terms *string `json:"terms,omitempty"` - // SubscriptionRequired - Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. - SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` - // ApprovalRequired - whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. - ApprovalRequired *bool `json:"approvalRequired,omitempty"` - // SubscriptionsLimit - Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. - SubscriptionsLimit *int32 `json:"subscriptionsLimit,omitempty"` - // State - whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. Possible values include: 'NotPublished', 'Published' - State ProductState `json:"state,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductEntityBaseParameters product Entity Base Parameters -type ProductEntityBaseParameters struct { - // Description - Product description. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // Terms - Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. - Terms *string `json:"terms,omitempty"` - // SubscriptionRequired - Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. - SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` - // ApprovalRequired - whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. - ApprovalRequired *bool `json:"approvalRequired,omitempty"` - // SubscriptionsLimit - Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. - SubscriptionsLimit *int32 `json:"subscriptionsLimit,omitempty"` - // State - whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. Possible values include: 'NotPublished', 'Published' - State ProductState `json:"state,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductTagResourceContractProperties product profile. -type ProductTagResourceContractProperties struct { - // ID - Identifier of the product in the form of /products/{productId} - ID *string `json:"id,omitempty"` - // Name - Product name. - Name *string `json:"name,omitempty"` - // Description - Product description. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // Terms - Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. - Terms *string `json:"terms,omitempty"` - // SubscriptionRequired - Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. - SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` - // ApprovalRequired - whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. - ApprovalRequired *bool `json:"approvalRequired,omitempty"` - // SubscriptionsLimit - Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. - SubscriptionsLimit *int32 `json:"subscriptionsLimit,omitempty"` - // State - whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. Possible values include: 'NotPublished', 'Published' - State ProductState `json:"state,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductUpdateParameters product Update parameters. -type ProductUpdateParameters struct { - // ProductUpdateProperties - Product entity Update contract properties. - *ProductUpdateProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ProductUpdateParameters. -func (pup ProductUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pup.ProductUpdateProperties != nil { - objectMap["properties"] = pup.ProductUpdateProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for ProductUpdateParameters struct. -func (pup *ProductUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var productUpdateProperties ProductUpdateProperties - err = json.Unmarshal(*v, &productUpdateProperties) - if err != nil { - return err - } - pup.ProductUpdateProperties = &productUpdateProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductUpdateProperties parameters supplied to the Update Product operation. -type ProductUpdateProperties struct { - // DisplayName - Product name. - DisplayName *string `json:"displayName,omitempty"` - // Description - Product description. May include HTML formatting tags. - Description *string `json:"description,omitempty"` - // Terms - Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. - Terms *string `json:"terms,omitempty"` - // SubscriptionRequired - Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. - SubscriptionRequired *bool `json:"subscriptionRequired,omitempty"` - // ApprovalRequired - whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. - ApprovalRequired *bool `json:"approvalRequired,omitempty"` - // SubscriptionsLimit - Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. - SubscriptionsLimit *int32 `json:"subscriptionsLimit,omitempty"` - // State - whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. Possible values include: 'NotPublished', 'Published' - State ProductState `json:"state,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyCollection paged Property list representation. -type PropertyCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]PropertyContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyCollectionIterator provides access to a complete listing of PropertyContract values. -type PropertyCollectionIterator struct { - i int - page PropertyCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *PropertyCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *PropertyCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter PropertyCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter PropertyCollectionIterator) Response() PropertyCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter PropertyCollectionIterator) Value() PropertyContract { - if !iter.page.NotDone() { - return PropertyContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (pc PropertyCollection) IsEmpty() bool { - return pc.Value == nil || len(*pc.Value) == 0 -} - -// propertyCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (pc PropertyCollection) propertyCollectionPreparer(ctx context.Context) (*http.Request, error) { - if pc.NextLink == nil || len(to.String(pc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(pc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyCollectionPage contains a page of PropertyContract values. -type PropertyCollectionPage struct { - fn func(context.Context, PropertyCollection) (PropertyCollection, error) - pc PropertyCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *PropertyCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.pc) - if err != nil { - return err - } - page.pc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *PropertyCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page PropertyCollectionPage) NotDone() bool { - return !page.pc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page PropertyCollectionPage) Response() PropertyCollection { - return page.pc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page PropertyCollectionPage) Values() []PropertyContract { - if page.pc.IsEmpty() { - return nil - } - return *page.pc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyContract property details. -type PropertyContract struct { - autorest.Response `json:"-"` - // PropertyContractProperties - Property entity contract properties. - *PropertyContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for PropertyContract. -func (pc PropertyContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pc.PropertyContractProperties != nil { - objectMap["properties"] = pc.PropertyContractProperties - } - if pc.ID != nil { - objectMap["id"] = pc.ID - } - if pc.Name != nil { - objectMap["name"] = pc.Name - } - if pc.Type != nil { - objectMap["type"] = pc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for PropertyContract struct. -func (pc *PropertyContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var propertyContractProperties PropertyContractProperties - err = json.Unmarshal(*v, &propertyContractProperties) - if err != nil { - return err - } - pc.PropertyContractProperties = &propertyContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyContractProperties property Contract properties. -type PropertyContractProperties struct { - // DisplayName - Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters. - DisplayName *string `json:"displayName,omitempty"` - // Value - Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace. - Value *string `json:"value,omitempty"` - // Tags - Optional tags that when provided can be used to filter the property list. - Tags *[]string `json:"tags,omitempty"` - // Secret - Determines whether the value is a secret and should be encrypted or not. Default value is false. - Secret *bool `json:"secret,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyEntityBaseParameters property Entity Base Parameters set. -type PropertyEntityBaseParameters struct { - // Tags - Optional tags that when provided can be used to filter the property list. - Tags *[]string `json:"tags,omitempty"` - // Secret - Determines whether the value is a secret and should be encrypted or not. Default value is false. - Secret *bool `json:"secret,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyUpdateParameterProperties property Contract properties. -type PropertyUpdateParameterProperties struct { - // DisplayName - Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters. - DisplayName *string `json:"displayName,omitempty"` - // Value - Value of the property. Can contain policy expressions. It may not be empty or consist only of whitespace. - Value *string `json:"value,omitempty"` - // Tags - Optional tags that when provided can be used to filter the property list. - Tags *[]string `json:"tags,omitempty"` - // Secret - Determines whether the value is a secret and should be encrypted or not. Default value is false. - Secret *bool `json:"secret,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyUpdateParameters property update Parameters. -type PropertyUpdateParameters struct { - // PropertyUpdateParameterProperties - Property entity Update contract properties. - *PropertyUpdateParameterProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for PropertyUpdateParameters. -func (pup PropertyUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pup.PropertyUpdateParameterProperties != nil { - objectMap["properties"] = pup.PropertyUpdateParameterProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for PropertyUpdateParameters struct. -func (pup *PropertyUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var propertyUpdateParameterProperties PropertyUpdateParameterProperties - err = json.Unmarshal(*v, &propertyUpdateParameterProperties) - if err != nil { - return err - } - pup.PropertyUpdateParameterProperties = &propertyUpdateParameterProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// QuotaCounterCollection paged Quota Counter list representation. -type QuotaCounterCollection struct { - autorest.Response `json:"-"` - // Value - Quota counter values. - Value *[]QuotaCounterContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// QuotaCounterContract quota counter details. -type QuotaCounterContract struct { - autorest.Response `json:"-"` - // CounterKey - The Key value of the Counter. Must not be empty. - CounterKey *string `json:"counterKey,omitempty"` - // PeriodKey - Identifier of the Period for which the counter was collected. Must not be empty. - PeriodKey *string `json:"periodKey,omitempty"` - // PeriodStartTime - The date of the start of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - PeriodStartTime *date.Time `json:"periodStartTime,omitempty"` - // PeriodEndTime - The date of the end of Counter Period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - PeriodEndTime *date.Time `json:"periodEndTime,omitempty"` - // Value - Quota Value Properties - Value *QuotaCounterValueContractProperties `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// QuotaCounterValueContract quota counter value details. -type QuotaCounterValueContract struct { - // QuotaCounterValueContractProperties - Quota counter Value Properties. - *QuotaCounterValueContractProperties `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for QuotaCounterValueContract. -func (qcvc QuotaCounterValueContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if qcvc.QuotaCounterValueContractProperties != nil { - objectMap["value"] = qcvc.QuotaCounterValueContractProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for QuotaCounterValueContract struct. -func (qcvc *QuotaCounterValueContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "value": - if v != nil { - var quotaCounterValueContractProperties QuotaCounterValueContractProperties - err = json.Unmarshal(*v, "aCounterValueContractProperties) - if err != nil { - return err - } - qcvc.QuotaCounterValueContractProperties = "aCounterValueContractProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// QuotaCounterValueContractProperties quota counter value details. -type QuotaCounterValueContractProperties struct { - // CallsCount - Number of times Counter was called. - CallsCount *int32 `json:"callsCount,omitempty"` - // KbTransferred - Data Transferred in KiloBytes. - KbTransferred *float64 `json:"kbTransferred,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RecipientEmailCollection paged Recipient User list representation. -type RecipientEmailCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]RecipientEmailContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RecipientEmailContract recipient Email details. -type RecipientEmailContract struct { - autorest.Response `json:"-"` - // RecipientEmailContractProperties - Recipient Email contract properties. - *RecipientEmailContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for RecipientEmailContract. -func (rec RecipientEmailContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rec.RecipientEmailContractProperties != nil { - objectMap["properties"] = rec.RecipientEmailContractProperties - } - if rec.ID != nil { - objectMap["id"] = rec.ID - } - if rec.Name != nil { - objectMap["name"] = rec.Name - } - if rec.Type != nil { - objectMap["type"] = rec.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for RecipientEmailContract struct. -func (rec *RecipientEmailContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var recipientEmailContractProperties RecipientEmailContractProperties - err = json.Unmarshal(*v, &recipientEmailContractProperties) - if err != nil { - return err - } - rec.RecipientEmailContractProperties = &recipientEmailContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - rec.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - rec.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rec.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RecipientEmailContractProperties recipient Email Contract Properties. -type RecipientEmailContractProperties struct { - // Email - User Email subscribed to notification. - Email *string `json:"email,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RecipientsContractProperties notification Parameter contract. -type RecipientsContractProperties struct { - // Emails - List of Emails subscribed for the notification. - Emails *[]string `json:"emails,omitempty"` - // Users - List of Users subscribed for the notification. - Users *[]string `json:"users,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RecipientUserCollection paged Recipient User list representation. -type RecipientUserCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]RecipientUserContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RecipientUserContract recipient User details. -type RecipientUserContract struct { - autorest.Response `json:"-"` - // RecipientUsersContractProperties - Recipient User entity contract properties. - *RecipientUsersContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for RecipientUserContract. -func (ruc RecipientUserContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ruc.RecipientUsersContractProperties != nil { - objectMap["properties"] = ruc.RecipientUsersContractProperties - } - if ruc.ID != nil { - objectMap["id"] = ruc.ID - } - if ruc.Name != nil { - objectMap["name"] = ruc.Name - } - if ruc.Type != nil { - objectMap["type"] = ruc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for RecipientUserContract struct. -func (ruc *RecipientUserContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var recipientUsersContractProperties RecipientUsersContractProperties - err = json.Unmarshal(*v, &recipientUsersContractProperties) - if err != nil { - return err - } - ruc.RecipientUsersContractProperties = &recipientUsersContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ruc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ruc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ruc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RecipientUsersContractProperties recipient User Contract Properties. -type RecipientUsersContractProperties struct { - // UserID - API Management UserId subscribed to notification. - UserID *string `json:"userId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegionContract region profile. -type RegionContract struct { - // Name - Region name. - Name *string `json:"name,omitempty"` - // IsMasterRegion - whether Region is the master region. - IsMasterRegion *bool `json:"isMasterRegion,omitempty"` - // IsDeleted - whether Region is deleted. - IsDeleted *bool `json:"isDeleted,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegionListResult lists Regions operation response details. -type RegionListResult struct { - autorest.Response `json:"-"` - // Value - Lists of Regions. - Value *[]RegionContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegionListResultIterator provides access to a complete listing of RegionContract values. -type RegionListResultIterator struct { - i int - page RegionListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *RegionListResultIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RegionListResultIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *RegionListResultIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter RegionListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter RegionListResultIterator) Response() RegionListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter RegionListResultIterator) Value() RegionContract { - if !iter.page.NotDone() { - return RegionContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (rlr RegionListResult) IsEmpty() bool { - return rlr.Value == nil || len(*rlr.Value) == 0 -} - -// regionListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (rlr RegionListResult) regionListResultPreparer(ctx context.Context) (*http.Request, error) { - if rlr.NextLink == nil || len(to.String(rlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(rlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegionListResultPage contains a page of RegionContract values. -type RegionListResultPage struct { - fn func(context.Context, RegionListResult) (RegionListResult, error) - rlr RegionListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *RegionListResultPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RegionListResultPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.rlr) - if err != nil { - return err - } - page.rlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *RegionListResultPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page RegionListResultPage) NotDone() bool { - return !page.rlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page RegionListResultPage) Response() RegionListResult { - return page.rlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page RegionListResultPage) Values() []RegionContract { - if page.rlr.IsEmpty() { - return nil - } - return *page.rlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegistrationDelegationSettingsProperties user registration delegation settings properties. -type RegistrationDelegationSettingsProperties struct { - // Enabled - Enable or disable delegation for user registration. - Enabled *bool `json:"enabled,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReportCollection paged Report records list representation. -type ReportCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]ReportRecordContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReportCollectionIterator provides access to a complete listing of ReportRecordContract values. -type ReportCollectionIterator struct { - i int - page ReportCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ReportCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ReportCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ReportCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter ReportCollectionIterator) Response() ReportCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ReportCollectionIterator) Value() ReportRecordContract { - if !iter.page.NotDone() { - return ReportRecordContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (rc ReportCollection) IsEmpty() bool { - return rc.Value == nil || len(*rc.Value) == 0 -} - -// reportCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (rc ReportCollection) reportCollectionPreparer(ctx context.Context) (*http.Request, error) { - if rc.NextLink == nil || len(to.String(rc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(rc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReportCollectionPage contains a page of ReportRecordContract values. -type ReportCollectionPage struct { - fn func(context.Context, ReportCollection) (ReportCollection, error) - rc ReportCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ReportCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.rc) - if err != nil { - return err - } - page.rc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ReportCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ReportCollectionPage) NotDone() bool { - return !page.rc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page ReportCollectionPage) Response() ReportCollection { - return page.rc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page ReportCollectionPage) Values() []ReportRecordContract { - if page.rc.IsEmpty() { - return nil - } - return *page.rc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReportRecordContract report data. -type ReportRecordContract struct { - // Name - Name depending on report endpoint specifies product, API, operation or developer name. - Name *string `json:"name,omitempty"` - // Timestamp - Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - Timestamp *date.Time `json:"timestamp,omitempty"` - // Interval - Length of agregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - Interval *string `json:"interval,omitempty"` - // Country - Country to which this record data is related. - Country *string `json:"country,omitempty"` - // Region - Country region to which this record data is related. - Region *string `json:"region,omitempty"` - // Zip - Zip code to which this record data is related. - Zip *string `json:"zip,omitempty"` - // UserID - User identifier path. /users/{userId} - UserID *string `json:"userId,omitempty"` - // ProductID - Product identifier path. /products/{productId} - ProductID *string `json:"productId,omitempty"` - // APIID - API identifier path. /apis/{apiId} - APIID *string `json:"apiId,omitempty"` - // OperationID - Operation identifier path. /apis/{apiId}/operations/{operationId} - OperationID *string `json:"operationId,omitempty"` - // APIRegion - API region identifier. - APIRegion *string `json:"apiRegion,omitempty"` - // SubscriptionID - Subscription identifier path. /subscriptions/{subscriptionId} - SubscriptionID *string `json:"subscriptionId,omitempty"` - // CallCountSuccess - Number of succesful calls. This includes calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect - CallCountSuccess *int32 `json:"callCountSuccess,omitempty"` - // CallCountBlocked - Number of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorize and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests - CallCountBlocked *int32 `json:"callCountBlocked,omitempty"` - // CallCountFailed - Number of calls failed due to proxy or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600 - CallCountFailed *int32 `json:"callCountFailed,omitempty"` - // CallCountOther - Number of other calls. - CallCountOther *int32 `json:"callCountOther,omitempty"` - // CallCountTotal - Total number of calls. - CallCountTotal *int32 `json:"callCountTotal,omitempty"` - // Bandwidth - Bandwidth consumed. - Bandwidth *int64 `json:"bandwidth,omitempty"` - // CacheHitCount - Number of times when content was served from cache policy. - CacheHitCount *int32 `json:"cacheHitCount,omitempty"` - // CacheMissCount - Number of times content was fetched from backend. - CacheMissCount *int32 `json:"cacheMissCount,omitempty"` - // APITimeAvg - Average time it took to process request. - APITimeAvg *float64 `json:"apiTimeAvg,omitempty"` - // APITimeMin - Minimum time it took to process request. - APITimeMin *float64 `json:"apiTimeMin,omitempty"` - // APITimeMax - Maximum time it took to process request. - APITimeMax *float64 `json:"apiTimeMax,omitempty"` - // ServiceTimeAvg - Average time it took to process request on backend. - ServiceTimeAvg *float64 `json:"serviceTimeAvg,omitempty"` - // ServiceTimeMin - Minimum time it took to process request on backend. - ServiceTimeMin *float64 `json:"serviceTimeMin,omitempty"` - // ServiceTimeMax - Maximum time it took to process request on backend. - ServiceTimeMax *float64 `json:"serviceTimeMax,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RepresentationContract operation request/response representation details. -type RepresentationContract struct { - // ContentType - Specifies a registered or custom content type for this representation, e.g. application/xml. - ContentType *string `json:"contentType,omitempty"` - // Sample - An example of the representation. - Sample *string `json:"sample,omitempty"` - // SchemaID - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. - SchemaID *string `json:"schemaId,omitempty"` - // TypeName - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. - TypeName *string `json:"typeName,omitempty"` - // FormParameters - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'.. - FormParameters *[]ParameterContract `json:"formParameters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RequestContract operation request details. -type RequestContract struct { - // Description - Operation request description. - Description *string `json:"description,omitempty"` - // QueryParameters - Collection of operation request query parameters. - QueryParameters *[]ParameterContract `json:"queryParameters,omitempty"` - // Headers - Collection of operation request headers. - Headers *[]ParameterContract `json:"headers,omitempty"` - // Representations - Collection of operation request representations. - Representations *[]RepresentationContract `json:"representations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RequestReportCollection paged Report records list representation. -type RequestReportCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]RequestReportRecordContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RequestReportRecordContract request Report data. -type RequestReportRecordContract struct { - // APIID - API identifier path. /apis/{apiId} - APIID *string `json:"apiId,omitempty"` - // OperationID - Operation identifier path. /apis/{apiId}/operations/{operationId} - OperationID *string `json:"operationId,omitempty"` - // ProductID - Product identifier path. /products/{productId} - ProductID *string `json:"productId,omitempty"` - // UserID - User identifier path. /users/{userId} - UserID *string `json:"userId,omitempty"` - // Method - The HTTP method associated with this request.. - Method *string `json:"method,omitempty"` - // URL - The full URL associated with this request. - URL *string `json:"url,omitempty"` - // IPAddress - The client IP address associated with this request. - IPAddress *string `json:"ipAddress,omitempty"` - // BackendResponseCode - The HTTP status code received by the gateway as a result of forwarding this request to the backend. - BackendResponseCode *string `json:"backendResponseCode,omitempty"` - // ResponseCode - The HTTP status code returned by the gateway. - ResponseCode *int32 `json:"responseCode,omitempty"` - // ResponseSize - The size of the response returned by the gateway. - ResponseSize *int32 `json:"responseSize,omitempty"` - // Timestamp - The date and time when this request was received by the gateway in ISO 8601 format. - Timestamp *date.Time `json:"timestamp,omitempty"` - // Cache - Specifies if response cache was involved in generating the response. If the value is none, the cache was not used. If the value is hit, cached response was returned. If the value is miss, the cache was used but lookup resulted in a miss and request was fullfilled by the backend. - Cache *string `json:"cache,omitempty"` - // APITime - The total time it took to process this request. - APITime *float64 `json:"apiTime,omitempty"` - // ServiceTime - he time it took to forward this request to the backend and get the response back. - ServiceTime *float64 `json:"serviceTime,omitempty"` - // APIRegion - Azure region where the gateway that processed this request is located. - APIRegion *string `json:"apiRegion,omitempty"` - // SubscriptionID - Subscription identifier path. /subscriptions/{subscriptionId} - SubscriptionID *string `json:"subscriptionId,omitempty"` - // RequestID - Request Identifier. - RequestID *string `json:"requestId,omitempty"` - // RequestSize - The size of this request.. - RequestSize *int32 `json:"requestSize,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Resource the Resource definition. -type Resource struct { - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ResponseContract operation response details. -type ResponseContract struct { - // StatusCode - Operation response HTTP status code. - StatusCode *int32 `json:"statusCode,omitempty"` - // Description - Operation response description. - Description *string `json:"description,omitempty"` - // Representations - Collection of operation response representations. - Representations *[]RepresentationContract `json:"representations,omitempty"` - // Headers - Collection of operation response headers. - Headers *[]ParameterContract `json:"headers,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SaveConfigurationParameter parameters supplied to the Save Tenant Configuration operation. -type SaveConfigurationParameter struct { - // Branch - The name of the Git branch in which to commit the current configuration snapshot. - Branch *string `json:"branch,omitempty"` - // Force - The value if true, the current configuration database is committed to the Git repository, even if the Git repository has newer changes that would be overwritten. - Force *bool `json:"force,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SchemaCollection the response of the list schema operation. -type SchemaCollection struct { - autorest.Response `json:"-"` - // Value - Api Schema Contract value. - Value *[]SchemaContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SchemaCollectionIterator provides access to a complete listing of SchemaContract values. -type SchemaCollectionIterator struct { - i int - page SchemaCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *SchemaCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SchemaCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *SchemaCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter SchemaCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter SchemaCollectionIterator) Response() SchemaCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter SchemaCollectionIterator) Value() SchemaContract { - if !iter.page.NotDone() { - return SchemaContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (sc SchemaCollection) IsEmpty() bool { - return sc.Value == nil || len(*sc.Value) == 0 -} - -// schemaCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (sc SchemaCollection) schemaCollectionPreparer(ctx context.Context) (*http.Request, error) { - if sc.NextLink == nil || len(to.String(sc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(sc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SchemaCollectionPage contains a page of SchemaContract values. -type SchemaCollectionPage struct { - fn func(context.Context, SchemaCollection) (SchemaCollection, error) - sc SchemaCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *SchemaCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SchemaCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.sc) - if err != nil { - return err - } - page.sc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *SchemaCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page SchemaCollectionPage) NotDone() bool { - return !page.sc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page SchemaCollectionPage) Response() SchemaCollection { - return page.sc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page SchemaCollectionPage) Values() []SchemaContract { - if page.sc.IsEmpty() { - return nil - } - return *page.sc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SchemaContract schema Contract details. -type SchemaContract struct { - autorest.Response `json:"-"` - // SchemaContractProperties - Properties of the Schema. - *SchemaContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for SchemaContract. -func (sc SchemaContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sc.SchemaContractProperties != nil { - objectMap["properties"] = sc.SchemaContractProperties - } - if sc.ID != nil { - objectMap["id"] = sc.ID - } - if sc.Name != nil { - objectMap["name"] = sc.Name - } - if sc.Type != nil { - objectMap["type"] = sc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for SchemaContract struct. -func (sc *SchemaContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var schemaContractProperties SchemaContractProperties - err = json.Unmarshal(*v, &schemaContractProperties) - if err != nil { - return err - } - sc.SchemaContractProperties = &schemaContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - sc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SchemaContractProperties schema contract Properties. -type SchemaContractProperties struct { - // ContentType - Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). - ContentType *string `json:"contentType,omitempty"` - // SchemaDocumentProperties - Properties of the Schema Document. - *SchemaDocumentProperties `json:"document,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for SchemaContractProperties. -func (scp SchemaContractProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if scp.ContentType != nil { - objectMap["contentType"] = scp.ContentType - } - if scp.SchemaDocumentProperties != nil { - objectMap["document"] = scp.SchemaDocumentProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for SchemaContractProperties struct. -func (scp *SchemaContractProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "contentType": - if v != nil { - var contentType string - err = json.Unmarshal(*v, &contentType) - if err != nil { - return err - } - scp.ContentType = &contentType - } - case "document": - if v != nil { - var schemaDocumentProperties SchemaDocumentProperties - err = json.Unmarshal(*v, &schemaDocumentProperties) - if err != nil { - return err - } - scp.SchemaDocumentProperties = &schemaDocumentProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SchemaDocumentProperties schema Document Properties. -type SchemaDocumentProperties struct { - // Value - Json escaped string defining the document representing the Schema. - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceApplyNetworkConfigurationParameters parameter supplied to the Apply Network configuration -// operation. -type ServiceApplyNetworkConfigurationParameters struct { - // Location - Location of the Api Management service to update for a multi-region service. For a service deployed in a single region, this parameter is not required. - Location *string `json:"location,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceApplyNetworkConfigurationUpdatesFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. -type ServiceApplyNetworkConfigurationUpdatesFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServiceApplyNetworkConfigurationUpdatesFuture) Result(client ServiceClient) (sr ServiceResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceApplyNetworkConfigurationUpdatesFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.ServiceApplyNetworkConfigurationUpdatesFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if sr.Response.Response, err = future.GetResult(sender); err == nil && sr.Response.Response.StatusCode != http.StatusNoContent { - sr, err = client.ApplyNetworkConfigurationUpdatesResponder(sr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceApplyNetworkConfigurationUpdatesFuture", "Result", sr.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceBackupFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ServiceBackupFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServiceBackupFuture) Result(client ServiceClient) (sr ServiceResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceBackupFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.ServiceBackupFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if sr.Response.Response, err = future.GetResult(sender); err == nil && sr.Response.Response.StatusCode != http.StatusNoContent { - sr, err = client.BackupResponder(sr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceBackupFuture", "Result", sr.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceBackupRestoreParameters parameters supplied to the Backup/Restore of an API Management service -// operation. -type ServiceBackupRestoreParameters struct { - // StorageAccount - Azure Cloud Storage account (used to place/retrieve the backup) name. - StorageAccount *string `json:"storageAccount,omitempty"` - // AccessKey - Azure Cloud Storage account (used to place/retrieve the backup) access key. - AccessKey *string `json:"accessKey,omitempty"` - // ContainerName - Azure Cloud Storage blob container name used to place/retrieve the backup. - ContainerName *string `json:"containerName,omitempty"` - // BackupName - The name of the backup file to create. - BackupName *string `json:"backupName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceBaseProperties base Properties of an API Management service resource description. -type ServiceBaseProperties struct { - // NotificationSenderEmail - Email address from which the notification will be sent. - NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` - // ProvisioningState - The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. - ProvisioningState *string `json:"provisioningState,omitempty"` - // TargetProvisioningState - The provisioning state of the API Management service, which is targeted by the long running operation started on the service. - TargetProvisioningState *string `json:"targetProvisioningState,omitempty"` - // CreatedAtUtc - Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - CreatedAtUtc *date.Time `json:"createdAtUtc,omitempty"` - // GatewayURL - Gateway URL of the API Management service. - GatewayURL *string `json:"gatewayUrl,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Default Region. - GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` - // PortalURL - Publisher portal endpoint Url of the API Management service. - PortalURL *string `json:"portalUrl,omitempty"` - // ManagementAPIURL - Management API endpoint URL of the API Management service. - ManagementAPIURL *string `json:"managementApiUrl,omitempty"` - // ScmURL - SCM endpoint URL of the API Management service. - ScmURL *string `json:"scmUrl,omitempty"` - // HostnameConfigurations - Custom hostname configuration of the API Management service. - HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. - PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. - PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` - // VirtualNetworkConfiguration - Virtual network configuration of the API Management service. - VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` - // AdditionalLocations - Additional datacenter locations of the API Management service. - AdditionalLocations *[]AdditionalLocation `json:"additionalLocations,omitempty"` - // CustomProperties - Custom properties of the API Management service. Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2). Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1 and setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service. - CustomProperties map[string]*string `json:"customProperties"` - // Certificates - List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. - Certificates *[]CertificateConfiguration `json:"certificates,omitempty"` - // VirtualNetworkType - The type of VPN in which API Managemet service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. Possible values include: 'VirtualNetworkTypeNone', 'VirtualNetworkTypeExternal', 'VirtualNetworkTypeInternal' - VirtualNetworkType VirtualNetworkType `json:"virtualNetworkType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ServiceBaseProperties. -func (sbp ServiceBaseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sbp.NotificationSenderEmail != nil { - objectMap["notificationSenderEmail"] = sbp.NotificationSenderEmail - } - if sbp.ProvisioningState != nil { - objectMap["provisioningState"] = sbp.ProvisioningState - } - if sbp.TargetProvisioningState != nil { - objectMap["targetProvisioningState"] = sbp.TargetProvisioningState - } - if sbp.CreatedAtUtc != nil { - objectMap["createdAtUtc"] = sbp.CreatedAtUtc - } - if sbp.GatewayURL != nil { - objectMap["gatewayUrl"] = sbp.GatewayURL - } - if sbp.GatewayRegionalURL != nil { - objectMap["gatewayRegionalUrl"] = sbp.GatewayRegionalURL - } - if sbp.PortalURL != nil { - objectMap["portalUrl"] = sbp.PortalURL - } - if sbp.ManagementAPIURL != nil { - objectMap["managementApiUrl"] = sbp.ManagementAPIURL - } - if sbp.ScmURL != nil { - objectMap["scmUrl"] = sbp.ScmURL - } - if sbp.HostnameConfigurations != nil { - objectMap["hostnameConfigurations"] = sbp.HostnameConfigurations - } - if sbp.PublicIPAddresses != nil { - objectMap["publicIPAddresses"] = sbp.PublicIPAddresses - } - if sbp.PrivateIPAddresses != nil { - objectMap["privateIPAddresses"] = sbp.PrivateIPAddresses - } - if sbp.VirtualNetworkConfiguration != nil { - objectMap["virtualNetworkConfiguration"] = sbp.VirtualNetworkConfiguration - } - if sbp.AdditionalLocations != nil { - objectMap["additionalLocations"] = sbp.AdditionalLocations - } - if sbp.CustomProperties != nil { - objectMap["customProperties"] = sbp.CustomProperties - } - if sbp.Certificates != nil { - objectMap["certificates"] = sbp.Certificates - } - if sbp.VirtualNetworkType != "" { - objectMap["virtualNetworkType"] = sbp.VirtualNetworkType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceCheckNameAvailabilityParameters parameters supplied to the CheckNameAvailability operation. -type ServiceCheckNameAvailabilityParameters struct { - // Name - The name to check for availability. - Name *string `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ServiceCreateOrUpdateFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServiceCreateOrUpdateFuture) Result(client ServiceClient) (sr ServiceResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.ServiceCreateOrUpdateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if sr.Response.Response, err = future.GetResult(sender); err == nil && sr.Response.Response.StatusCode != http.StatusNoContent { - sr, err = client.CreateOrUpdateResponder(sr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceCreateOrUpdateFuture", "Result", sr.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceGetSsoTokenResult the response of the GetSsoToken operation. -type ServiceGetSsoTokenResult struct { - autorest.Response `json:"-"` - // RedirectURI - Redirect URL to the Publisher Portal containing the SSO token. - RedirectURI *string `json:"redirectUri,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceIdentity identity properties of the Api Management service resource. -type ServiceIdentity struct { - // Type - The identity type. Currently the only supported type is 'SystemAssigned'. - Type *string `json:"type,omitempty"` - // PrincipalID - The principal id of the identity. - PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // TenantID - The client tenant id of the identity. - TenantID *uuid.UUID `json:"tenantId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceListResult the response of the List API Management services operation. -type ServiceListResult struct { - autorest.Response `json:"-"` - // Value - Result of the List API Management services operation. - Value *[]ServiceResource `json:"value,omitempty"` - // NextLink - Link to the next set of results. Not empty if Value contains incomplete list of API Management services. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceListResultIterator provides access to a complete listing of ServiceResource values. -type ServiceListResultIterator struct { - i int - page ServiceListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ServiceListResultIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceListResultIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ServiceListResultIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ServiceListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter ServiceListResultIterator) Response() ServiceListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ServiceListResultIterator) Value() ServiceResource { - if !iter.page.NotDone() { - return ServiceResource{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (slr ServiceListResult) IsEmpty() bool { - return slr.Value == nil || len(*slr.Value) == 0 -} - -// serviceListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (slr ServiceListResult) serviceListResultPreparer(ctx context.Context) (*http.Request, error) { - if slr.NextLink == nil || len(to.String(slr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(slr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceListResultPage contains a page of ServiceResource values. -type ServiceListResultPage struct { - fn func(context.Context, ServiceListResult) (ServiceListResult, error) - slr ServiceListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ServiceListResultPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceListResultPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.slr) - if err != nil { - return err - } - page.slr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ServiceListResultPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ServiceListResultPage) NotDone() bool { - return !page.slr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page ServiceListResultPage) Response() ServiceListResult { - return page.slr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page ServiceListResultPage) Values() []ServiceResource { - if page.slr.IsEmpty() { - return nil - } - return *page.slr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceNameAvailabilityResult response of the CheckNameAvailability operation. -type ServiceNameAvailabilityResult struct { - autorest.Response `json:"-"` - // NameAvailable - True if the name is available and can be used to create a new API Management service; otherwise false. - NameAvailable *bool `json:"nameAvailable,omitempty"` - // Message - If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that is already in use, and direct them to select a different name. - Message *string `json:"message,omitempty"` - // Reason - Invalid indicates the name provided does not match the resource provider’s naming requirements (incorrect length, unsupported characters, etc.) AlreadyExists indicates that the name is already in use and is therefore unavailable. Possible values include: 'Valid', 'Invalid', 'AlreadyExists' - Reason NameAvailabilityReason `json:"reason,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceProperties properties of an API Management service resource description. -type ServiceProperties struct { - // PublisherEmail - Publisher email. - PublisherEmail *string `json:"publisherEmail,omitempty"` - // PublisherName - Publisher name. - PublisherName *string `json:"publisherName,omitempty"` - // NotificationSenderEmail - Email address from which the notification will be sent. - NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` - // ProvisioningState - The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. - ProvisioningState *string `json:"provisioningState,omitempty"` - // TargetProvisioningState - The provisioning state of the API Management service, which is targeted by the long running operation started on the service. - TargetProvisioningState *string `json:"targetProvisioningState,omitempty"` - // CreatedAtUtc - Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - CreatedAtUtc *date.Time `json:"createdAtUtc,omitempty"` - // GatewayURL - Gateway URL of the API Management service. - GatewayURL *string `json:"gatewayUrl,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Default Region. - GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` - // PortalURL - Publisher portal endpoint Url of the API Management service. - PortalURL *string `json:"portalUrl,omitempty"` - // ManagementAPIURL - Management API endpoint URL of the API Management service. - ManagementAPIURL *string `json:"managementApiUrl,omitempty"` - // ScmURL - SCM endpoint URL of the API Management service. - ScmURL *string `json:"scmUrl,omitempty"` - // HostnameConfigurations - Custom hostname configuration of the API Management service. - HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. - PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. - PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` - // VirtualNetworkConfiguration - Virtual network configuration of the API Management service. - VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` - // AdditionalLocations - Additional datacenter locations of the API Management service. - AdditionalLocations *[]AdditionalLocation `json:"additionalLocations,omitempty"` - // CustomProperties - Custom properties of the API Management service. Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2). Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1 and setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service. - CustomProperties map[string]*string `json:"customProperties"` - // Certificates - List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. - Certificates *[]CertificateConfiguration `json:"certificates,omitempty"` - // VirtualNetworkType - The type of VPN in which API Managemet service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. Possible values include: 'VirtualNetworkTypeNone', 'VirtualNetworkTypeExternal', 'VirtualNetworkTypeInternal' - VirtualNetworkType VirtualNetworkType `json:"virtualNetworkType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ServiceProperties. -func (sp ServiceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sp.PublisherEmail != nil { - objectMap["publisherEmail"] = sp.PublisherEmail - } - if sp.PublisherName != nil { - objectMap["publisherName"] = sp.PublisherName - } - if sp.NotificationSenderEmail != nil { - objectMap["notificationSenderEmail"] = sp.NotificationSenderEmail - } - if sp.ProvisioningState != nil { - objectMap["provisioningState"] = sp.ProvisioningState - } - if sp.TargetProvisioningState != nil { - objectMap["targetProvisioningState"] = sp.TargetProvisioningState - } - if sp.CreatedAtUtc != nil { - objectMap["createdAtUtc"] = sp.CreatedAtUtc - } - if sp.GatewayURL != nil { - objectMap["gatewayUrl"] = sp.GatewayURL - } - if sp.GatewayRegionalURL != nil { - objectMap["gatewayRegionalUrl"] = sp.GatewayRegionalURL - } - if sp.PortalURL != nil { - objectMap["portalUrl"] = sp.PortalURL - } - if sp.ManagementAPIURL != nil { - objectMap["managementApiUrl"] = sp.ManagementAPIURL - } - if sp.ScmURL != nil { - objectMap["scmUrl"] = sp.ScmURL - } - if sp.HostnameConfigurations != nil { - objectMap["hostnameConfigurations"] = sp.HostnameConfigurations - } - if sp.PublicIPAddresses != nil { - objectMap["publicIPAddresses"] = sp.PublicIPAddresses - } - if sp.PrivateIPAddresses != nil { - objectMap["privateIPAddresses"] = sp.PrivateIPAddresses - } - if sp.VirtualNetworkConfiguration != nil { - objectMap["virtualNetworkConfiguration"] = sp.VirtualNetworkConfiguration - } - if sp.AdditionalLocations != nil { - objectMap["additionalLocations"] = sp.AdditionalLocations - } - if sp.CustomProperties != nil { - objectMap["customProperties"] = sp.CustomProperties - } - if sp.Certificates != nil { - objectMap["certificates"] = sp.Certificates - } - if sp.VirtualNetworkType != "" { - objectMap["virtualNetworkType"] = sp.VirtualNetworkType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceResource a single API Management service resource in List or Get response. -type ServiceResource struct { - autorest.Response `json:"-"` - // ServiceProperties - Properties of the API Management service. - *ServiceProperties `json:"properties,omitempty"` - // Sku - SKU properties of the API Management service. - Sku *ServiceSkuProperties `json:"sku,omitempty"` - // Identity - Managed service identity of the Api Management service. - Identity *ServiceIdentity `json:"identity,omitempty"` - // Location - Resource location. - Location *string `json:"location,omitempty"` - // Etag - ETag of the resource. - Etag *string `json:"etag,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource is set to Microsoft.ApiManagement. - Type *string `json:"type,omitempty"` - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ServiceResource. -func (sr ServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sr.ServiceProperties != nil { - objectMap["properties"] = sr.ServiceProperties - } - if sr.Sku != nil { - objectMap["sku"] = sr.Sku - } - if sr.Identity != nil { - objectMap["identity"] = sr.Identity - } - if sr.Location != nil { - objectMap["location"] = sr.Location - } - if sr.Etag != nil { - objectMap["etag"] = sr.Etag - } - if sr.ID != nil { - objectMap["id"] = sr.ID - } - if sr.Name != nil { - objectMap["name"] = sr.Name - } - if sr.Type != nil { - objectMap["type"] = sr.Type - } - if sr.Tags != nil { - objectMap["tags"] = sr.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for ServiceResource struct. -func (sr *ServiceResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var serviceProperties ServiceProperties - err = json.Unmarshal(*v, &serviceProperties) - if err != nil { - return err - } - sr.ServiceProperties = &serviceProperties - } - case "sku": - if v != nil { - var sku ServiceSkuProperties - err = json.Unmarshal(*v, &sku) - if err != nil { - return err - } - sr.Sku = &sku - } - case "identity": - if v != nil { - var identity ServiceIdentity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - sr.Identity = &identity - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - sr.Location = &location - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - sr.Etag = &etag - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - sr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sr.Type = &typeVar - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - sr.Tags = tags - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceRestoreFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ServiceRestoreFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServiceRestoreFuture) Result(client ServiceClient) (sr ServiceResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceRestoreFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.ServiceRestoreFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if sr.Response.Response, err = future.GetResult(sender); err == nil && sr.Response.Response.StatusCode != http.StatusNoContent { - sr, err = client.RestoreResponder(sr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceRestoreFuture", "Result", sr.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceSkuProperties API Management service resource SKU properties. -type ServiceSkuProperties struct { - // Name - Name of the Sku. Possible values include: 'SkuTypeDeveloper', 'SkuTypeStandard', 'SkuTypePremium', 'SkuTypeBasic' - Name SkuType `json:"name,omitempty"` - // Capacity - Capacity of the SKU (number of deployed units of the SKU). The default value is 1. - Capacity *int32 `json:"capacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ServiceUpdateFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServiceUpdateFuture) Result(client ServiceClient) (sr ServiceResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.ServiceUpdateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if sr.Response.Response, err = future.GetResult(sender); err == nil && sr.Response.Response.StatusCode != http.StatusNoContent { - sr, err = client.UpdateResponder(sr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceUpdateFuture", "Result", sr.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceUpdateHostnameFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ServiceUpdateHostnameFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *ServiceUpdateHostnameFuture) Result(client ServiceClient) (sr ServiceResource, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceUpdateHostnameFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.ServiceUpdateHostnameFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if sr.Response.Response, err = future.GetResult(sender); err == nil && sr.Response.Response.StatusCode != http.StatusNoContent { - sr, err = client.UpdateHostnameResponder(sr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceUpdateHostnameFuture", "Result", sr.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceUpdateHostnameParameters parameters supplied to the UpdateHostname operation. -type ServiceUpdateHostnameParameters struct { - // Update - Hostnames to create or update. - Update *[]HostnameConfigurationOld `json:"update,omitempty"` - // Delete - Hostnames types to delete. - Delete *[]HostnameType `json:"delete,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceUpdateParameters parameter supplied to Update Api Management Service. -type ServiceUpdateParameters struct { - // ServiceUpdateProperties - Properties of the API Management service. - *ServiceUpdateProperties `json:"properties,omitempty"` - // Sku - SKU properties of the API Management service. - Sku *ServiceSkuProperties `json:"sku,omitempty"` - // Identity - Managed service identity of the Api Management service. - Identity *ServiceIdentity `json:"identity,omitempty"` - // Etag - ETag of the resource. - Etag *string `json:"etag,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource is set to Microsoft.ApiManagement. - Type *string `json:"type,omitempty"` - // Tags - Resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ServiceUpdateParameters. -func (sup ServiceUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sup.ServiceUpdateProperties != nil { - objectMap["properties"] = sup.ServiceUpdateProperties - } - if sup.Sku != nil { - objectMap["sku"] = sup.Sku - } - if sup.Identity != nil { - objectMap["identity"] = sup.Identity - } - if sup.Etag != nil { - objectMap["etag"] = sup.Etag - } - if sup.ID != nil { - objectMap["id"] = sup.ID - } - if sup.Name != nil { - objectMap["name"] = sup.Name - } - if sup.Type != nil { - objectMap["type"] = sup.Type - } - if sup.Tags != nil { - objectMap["tags"] = sup.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for ServiceUpdateParameters struct. -func (sup *ServiceUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var serviceUpdateProperties ServiceUpdateProperties - err = json.Unmarshal(*v, &serviceUpdateProperties) - if err != nil { - return err - } - sup.ServiceUpdateProperties = &serviceUpdateProperties - } - case "sku": - if v != nil { - var sku ServiceSkuProperties - err = json.Unmarshal(*v, &sku) - if err != nil { - return err - } - sup.Sku = &sku - } - case "identity": - if v != nil { - var identity ServiceIdentity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - sup.Identity = &identity - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - sup.Etag = &etag - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - sup.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sup.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sup.Type = &typeVar - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - sup.Tags = tags - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceUpdateProperties properties of an API Management service resource description. -type ServiceUpdateProperties struct { - // PublisherEmail - Publisher email. - PublisherEmail *string `json:"publisherEmail,omitempty"` - // PublisherName - Publisher name. - PublisherName *string `json:"publisherName,omitempty"` - // NotificationSenderEmail - Email address from which the notification will be sent. - NotificationSenderEmail *string `json:"notificationSenderEmail,omitempty"` - // ProvisioningState - The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. - ProvisioningState *string `json:"provisioningState,omitempty"` - // TargetProvisioningState - The provisioning state of the API Management service, which is targeted by the long running operation started on the service. - TargetProvisioningState *string `json:"targetProvisioningState,omitempty"` - // CreatedAtUtc - Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - CreatedAtUtc *date.Time `json:"createdAtUtc,omitempty"` - // GatewayURL - Gateway URL of the API Management service. - GatewayURL *string `json:"gatewayUrl,omitempty"` - // GatewayRegionalURL - Gateway URL of the API Management service in the Default Region. - GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` - // PortalURL - Publisher portal endpoint Url of the API Management service. - PortalURL *string `json:"portalUrl,omitempty"` - // ManagementAPIURL - Management API endpoint URL of the API Management service. - ManagementAPIURL *string `json:"managementApiUrl,omitempty"` - // ScmURL - SCM endpoint URL of the API Management service. - ScmURL *string `json:"scmUrl,omitempty"` - // HostnameConfigurations - Custom hostname configuration of the API Management service. - HostnameConfigurations *[]HostnameConfiguration `json:"hostnameConfigurations,omitempty"` - // PublicIPAddresses - Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard and Premium SKU. - PublicIPAddresses *[]string `json:"publicIPAddresses,omitempty"` - // PrivateIPAddresses - Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard and Premium SKU. - PrivateIPAddresses *[]string `json:"privateIPAddresses,omitempty"` - // VirtualNetworkConfiguration - Virtual network configuration of the API Management service. - VirtualNetworkConfiguration *VirtualNetworkConfiguration `json:"virtualNetworkConfiguration,omitempty"` - // AdditionalLocations - Additional datacenter locations of the API Management service. - AdditionalLocations *[]AdditionalLocation `json:"additionalLocations,omitempty"` - // CustomProperties - Custom properties of the API Management service. Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2). Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1 and setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service. - CustomProperties map[string]*string `json:"customProperties"` - // Certificates - List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. - Certificates *[]CertificateConfiguration `json:"certificates,omitempty"` - // VirtualNetworkType - The type of VPN in which API Managemet service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. Possible values include: 'VirtualNetworkTypeNone', 'VirtualNetworkTypeExternal', 'VirtualNetworkTypeInternal' - VirtualNetworkType VirtualNetworkType `json:"virtualNetworkType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for ServiceUpdateProperties. -func (sup ServiceUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sup.PublisherEmail != nil { - objectMap["publisherEmail"] = sup.PublisherEmail - } - if sup.PublisherName != nil { - objectMap["publisherName"] = sup.PublisherName - } - if sup.NotificationSenderEmail != nil { - objectMap["notificationSenderEmail"] = sup.NotificationSenderEmail - } - if sup.ProvisioningState != nil { - objectMap["provisioningState"] = sup.ProvisioningState - } - if sup.TargetProvisioningState != nil { - objectMap["targetProvisioningState"] = sup.TargetProvisioningState - } - if sup.CreatedAtUtc != nil { - objectMap["createdAtUtc"] = sup.CreatedAtUtc - } - if sup.GatewayURL != nil { - objectMap["gatewayUrl"] = sup.GatewayURL - } - if sup.GatewayRegionalURL != nil { - objectMap["gatewayRegionalUrl"] = sup.GatewayRegionalURL - } - if sup.PortalURL != nil { - objectMap["portalUrl"] = sup.PortalURL - } - if sup.ManagementAPIURL != nil { - objectMap["managementApiUrl"] = sup.ManagementAPIURL - } - if sup.ScmURL != nil { - objectMap["scmUrl"] = sup.ScmURL - } - if sup.HostnameConfigurations != nil { - objectMap["hostnameConfigurations"] = sup.HostnameConfigurations - } - if sup.PublicIPAddresses != nil { - objectMap["publicIPAddresses"] = sup.PublicIPAddresses - } - if sup.PrivateIPAddresses != nil { - objectMap["privateIPAddresses"] = sup.PrivateIPAddresses - } - if sup.VirtualNetworkConfiguration != nil { - objectMap["virtualNetworkConfiguration"] = sup.VirtualNetworkConfiguration - } - if sup.AdditionalLocations != nil { - objectMap["additionalLocations"] = sup.AdditionalLocations - } - if sup.CustomProperties != nil { - objectMap["customProperties"] = sup.CustomProperties - } - if sup.Certificates != nil { - objectMap["certificates"] = sup.Certificates - } - if sup.VirtualNetworkType != "" { - objectMap["virtualNetworkType"] = sup.VirtualNetworkType - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceUploadCertificateParameters parameters supplied to the Upload SSL certificate for an API -// Management service operation. -type ServiceUploadCertificateParameters struct { - // Type - Hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm' - Type HostnameType `json:"type,omitempty"` - // Certificate - Base64 Encoded certificate. - Certificate *string `json:"certificate,omitempty"` - // CertificatePassword - Certificate password. - CertificatePassword *string `json:"certificate_password,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionCollection paged Subscriptions list representation. -type SubscriptionCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]SubscriptionContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionCollectionIterator provides access to a complete listing of SubscriptionContract values. -type SubscriptionCollectionIterator struct { - i int - page SubscriptionCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *SubscriptionCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *SubscriptionCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter SubscriptionCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter SubscriptionCollectionIterator) Response() SubscriptionCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter SubscriptionCollectionIterator) Value() SubscriptionContract { - if !iter.page.NotDone() { - return SubscriptionContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (sc SubscriptionCollection) IsEmpty() bool { - return sc.Value == nil || len(*sc.Value) == 0 -} - -// subscriptionCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (sc SubscriptionCollection) subscriptionCollectionPreparer(ctx context.Context) (*http.Request, error) { - if sc.NextLink == nil || len(to.String(sc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(sc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionCollectionPage contains a page of SubscriptionContract values. -type SubscriptionCollectionPage struct { - fn func(context.Context, SubscriptionCollection) (SubscriptionCollection, error) - sc SubscriptionCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *SubscriptionCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.sc) - if err != nil { - return err - } - page.sc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *SubscriptionCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page SubscriptionCollectionPage) NotDone() bool { - return !page.sc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page SubscriptionCollectionPage) Response() SubscriptionCollection { - return page.sc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page SubscriptionCollectionPage) Values() []SubscriptionContract { - if page.sc.IsEmpty() { - return nil - } - return *page.sc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionContract subscription details. -type SubscriptionContract struct { - autorest.Response `json:"-"` - // SubscriptionContractProperties - Subscription contract properties. - *SubscriptionContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for SubscriptionContract. -func (sc SubscriptionContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sc.SubscriptionContractProperties != nil { - objectMap["properties"] = sc.SubscriptionContractProperties - } - if sc.ID != nil { - objectMap["id"] = sc.ID - } - if sc.Name != nil { - objectMap["name"] = sc.Name - } - if sc.Type != nil { - objectMap["type"] = sc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for SubscriptionContract struct. -func (sc *SubscriptionContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var subscriptionContractProperties SubscriptionContractProperties - err = json.Unmarshal(*v, &subscriptionContractProperties) - if err != nil { - return err - } - sc.SubscriptionContractProperties = &subscriptionContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - sc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionContractProperties subscription details. -type SubscriptionContractProperties struct { - // UserID - The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{uid} where {uid} is a user identifier. - UserID *string `json:"userId,omitempty"` - // ProductID - The product resource identifier of the subscribed product. The value is a valid relative URL in the format of /products/{productId} where {productId} is a product identifier. - ProductID *string `json:"productId,omitempty"` - // DisplayName - The name of the subscription, or null if the subscription has no name. - DisplayName *string `json:"displayName,omitempty"` - // State - Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. Possible values include: 'Suspended', 'Active', 'Expired', 'Submitted', 'Rejected', 'Cancelled' - State SubscriptionState `json:"state,omitempty"` - // CreatedDate - Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - CreatedDate *date.Time `json:"createdDate,omitempty"` - // StartDate - Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - StartDate *date.Time `json:"startDate,omitempty"` - // ExpirationDate - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - ExpirationDate *date.Time `json:"expirationDate,omitempty"` - // EndDate - Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - EndDate *date.Time `json:"endDate,omitempty"` - // NotificationDate - Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - NotificationDate *date.Time `json:"notificationDate,omitempty"` - // PrimaryKey - Subscription primary key. - PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - Subscription secondary key. - SecondaryKey *string `json:"secondaryKey,omitempty"` - // StateComment - Optional subscription comment added by an administrator. - StateComment *string `json:"stateComment,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionCreateParameterProperties parameters supplied to the Create subscription operation. -type SubscriptionCreateParameterProperties struct { - // UserID - User (user id path) for whom subscription is being created in form /users/{uid} - UserID *string `json:"userId,omitempty"` - // ProductID - Product (product id path) for which subscription is being created in form /products/{productid} - ProductID *string `json:"productId,omitempty"` - // DisplayName - Subscription name. - DisplayName *string `json:"displayName,omitempty"` - // PrimaryKey - Primary subscription key. If not specified during request key will be generated automatically. - PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - Secondary subscription key. If not specified during request key will be generated automatically. - SecondaryKey *string `json:"secondaryKey,omitempty"` - // State - Initial subscription state. If no value is specified, subscription is created with Submitted state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. Possible values include: 'Suspended', 'Active', 'Expired', 'Submitted', 'Rejected', 'Cancelled' - State SubscriptionState `json:"state,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionCreateParameters subscription create details. -type SubscriptionCreateParameters struct { - // SubscriptionCreateParameterProperties - Subscription contract properties. - *SubscriptionCreateParameterProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for SubscriptionCreateParameters. -func (scp SubscriptionCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if scp.SubscriptionCreateParameterProperties != nil { - objectMap["properties"] = scp.SubscriptionCreateParameterProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for SubscriptionCreateParameters struct. -func (scp *SubscriptionCreateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var subscriptionCreateParameterProperties SubscriptionCreateParameterProperties - err = json.Unmarshal(*v, &subscriptionCreateParameterProperties) - if err != nil { - return err - } - scp.SubscriptionCreateParameterProperties = &subscriptionCreateParameterProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionKeyParameterNamesContract subscription key parameter names details. -type SubscriptionKeyParameterNamesContract struct { - // Header - Subscription key header name. - Header *string `json:"header,omitempty"` - // Query - Subscription key query string parameter name. - Query *string `json:"query,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionsDelegationSettingsProperties subscriptions delegation settings properties. -type SubscriptionsDelegationSettingsProperties struct { - // Enabled - Enable or disable delegation for subscriptions. - Enabled *bool `json:"enabled,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionUpdateParameterProperties parameters supplied to the Update subscription operation. -type SubscriptionUpdateParameterProperties struct { - // UserID - User identifier path: /users/{uid} - UserID *string `json:"userId,omitempty"` - // ProductID - Product identifier path: /products/{productId} - ProductID *string `json:"productId,omitempty"` - // ExpirationDate - Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - ExpirationDate *date.Time `json:"expirationDate,omitempty"` - // DisplayName - Subscription name. - DisplayName *string `json:"displayName,omitempty"` - // PrimaryKey - Primary subscription key. - PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - Secondary subscription key. - SecondaryKey *string `json:"secondaryKey,omitempty"` - // State - Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. Possible values include: 'Suspended', 'Active', 'Expired', 'Submitted', 'Rejected', 'Cancelled' - State SubscriptionState `json:"state,omitempty"` - // StateComment - Comments describing subscription state change by the administrator. - StateComment *string `json:"stateComment,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionUpdateParameters subscription update details. -type SubscriptionUpdateParameters struct { - // SubscriptionUpdateParameterProperties - Subscription Update contract properties. - *SubscriptionUpdateParameterProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for SubscriptionUpdateParameters. -func (sup SubscriptionUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sup.SubscriptionUpdateParameterProperties != nil { - objectMap["properties"] = sup.SubscriptionUpdateParameterProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for SubscriptionUpdateParameters struct. -func (sup *SubscriptionUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var subscriptionUpdateParameterProperties SubscriptionUpdateParameterProperties - err = json.Unmarshal(*v, &subscriptionUpdateParameterProperties) - if err != nil { - return err - } - sup.SubscriptionUpdateParameterProperties = &subscriptionUpdateParameterProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagCollection paged Tag list representation. -type TagCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]TagContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagCollectionIterator provides access to a complete listing of TagContract values. -type TagCollectionIterator struct { - i int - page TagCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *TagCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *TagCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter TagCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter TagCollectionIterator) Response() TagCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter TagCollectionIterator) Value() TagContract { - if !iter.page.NotDone() { - return TagContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (tc TagCollection) IsEmpty() bool { - return tc.Value == nil || len(*tc.Value) == 0 -} - -// tagCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (tc TagCollection) tagCollectionPreparer(ctx context.Context) (*http.Request, error) { - if tc.NextLink == nil || len(to.String(tc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(tc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagCollectionPage contains a page of TagContract values. -type TagCollectionPage struct { - fn func(context.Context, TagCollection) (TagCollection, error) - tc TagCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *TagCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.tc) - if err != nil { - return err - } - page.tc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *TagCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page TagCollectionPage) NotDone() bool { - return !page.tc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page TagCollectionPage) Response() TagCollection { - return page.tc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page TagCollectionPage) Values() []TagContract { - if page.tc.IsEmpty() { - return nil - } - return *page.tc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagContract tag Contract details. -type TagContract struct { - autorest.Response `json:"-"` - // TagContractProperties - Tag entity contract properties. - *TagContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for TagContract. -func (tc TagContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if tc.TagContractProperties != nil { - objectMap["properties"] = tc.TagContractProperties - } - if tc.ID != nil { - objectMap["id"] = tc.ID - } - if tc.Name != nil { - objectMap["name"] = tc.Name - } - if tc.Type != nil { - objectMap["type"] = tc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for TagContract struct. -func (tc *TagContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var tagContractProperties TagContractProperties - err = json.Unmarshal(*v, &tagContractProperties) - if err != nil { - return err - } - tc.TagContractProperties = &tagContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - tc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - tc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagContractProperties tag contract Properties. -type TagContractProperties struct { - // DisplayName - Tag name. - DisplayName *string `json:"displayName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagCreateUpdateParameters parameters supplied to Create/Update Tag operations. -type TagCreateUpdateParameters struct { - // TagContractProperties - Properties supplied to Create Tag operation. - *TagContractProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for TagCreateUpdateParameters. -func (tcup TagCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if tcup.TagContractProperties != nil { - objectMap["properties"] = tcup.TagContractProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for TagCreateUpdateParameters struct. -func (tcup *TagCreateUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var tagContractProperties TagContractProperties - err = json.Unmarshal(*v, &tagContractProperties) - if err != nil { - return err - } - tcup.TagContractProperties = &tagContractProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionBaseProperties parameters supplied to the Create TagDescription operation. -type TagDescriptionBaseProperties struct { - // Description - Description of the Tag. - Description *string `json:"description,omitempty"` - // ExternalDocsURL - Absolute URL of external resources describing the tag. - ExternalDocsURL *string `json:"externalDocsUrl,omitempty"` - // ExternalDocsDescription - Description of the external resources describing the tag. - ExternalDocsDescription *string `json:"externalDocsDescription,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionCollection paged TagDescription list representation. -type TagDescriptionCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]TagDescriptionContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionCollectionIterator provides access to a complete listing of TagDescriptionContract values. -type TagDescriptionCollectionIterator struct { - i int - page TagDescriptionCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *TagDescriptionCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *TagDescriptionCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter TagDescriptionCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter TagDescriptionCollectionIterator) Response() TagDescriptionCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter TagDescriptionCollectionIterator) Value() TagDescriptionContract { - if !iter.page.NotDone() { - return TagDescriptionContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (tdc TagDescriptionCollection) IsEmpty() bool { - return tdc.Value == nil || len(*tdc.Value) == 0 -} - -// tagDescriptionCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (tdc TagDescriptionCollection) tagDescriptionCollectionPreparer(ctx context.Context) (*http.Request, error) { - if tdc.NextLink == nil || len(to.String(tdc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(tdc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionCollectionPage contains a page of TagDescriptionContract values. -type TagDescriptionCollectionPage struct { - fn func(context.Context, TagDescriptionCollection) (TagDescriptionCollection, error) - tdc TagDescriptionCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *TagDescriptionCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.tdc) - if err != nil { - return err - } - page.tdc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *TagDescriptionCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page TagDescriptionCollectionPage) NotDone() bool { - return !page.tdc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page TagDescriptionCollectionPage) Response() TagDescriptionCollection { - return page.tdc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page TagDescriptionCollectionPage) Values() []TagDescriptionContract { - if page.tdc.IsEmpty() { - return nil - } - return *page.tdc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionContract contract details. -type TagDescriptionContract struct { - autorest.Response `json:"-"` - // TagDescriptionContractProperties - TagDescription entity contract properties. - *TagDescriptionContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for TagDescriptionContract. -func (tdc TagDescriptionContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if tdc.TagDescriptionContractProperties != nil { - objectMap["properties"] = tdc.TagDescriptionContractProperties - } - if tdc.ID != nil { - objectMap["id"] = tdc.ID - } - if tdc.Name != nil { - objectMap["name"] = tdc.Name - } - if tdc.Type != nil { - objectMap["type"] = tdc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for TagDescriptionContract struct. -func (tdc *TagDescriptionContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var tagDescriptionContractProperties TagDescriptionContractProperties - err = json.Unmarshal(*v, &tagDescriptionContractProperties) - if err != nil { - return err - } - tdc.TagDescriptionContractProperties = &tagDescriptionContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - tdc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - tdc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tdc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionContractProperties tagDescription contract Properties. -type TagDescriptionContractProperties struct { - // DisplayName - Tag name. - DisplayName *string `json:"displayName,omitempty"` - // Description - Description of the Tag. - Description *string `json:"description,omitempty"` - // ExternalDocsURL - Absolute URL of external resources describing the tag. - ExternalDocsURL *string `json:"externalDocsUrl,omitempty"` - // ExternalDocsDescription - Description of the external resources describing the tag. - ExternalDocsDescription *string `json:"externalDocsDescription,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionCreateParameters parameters supplied to the Create TagDescription operation. -type TagDescriptionCreateParameters struct { - // TagDescriptionBaseProperties - Properties supplied to Create TagDescription operation. - *TagDescriptionBaseProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for TagDescriptionCreateParameters. -func (tdcp TagDescriptionCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if tdcp.TagDescriptionBaseProperties != nil { - objectMap["properties"] = tdcp.TagDescriptionBaseProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for TagDescriptionCreateParameters struct. -func (tdcp *TagDescriptionCreateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var tagDescriptionBaseProperties TagDescriptionBaseProperties - err = json.Unmarshal(*v, &tagDescriptionBaseProperties) - if err != nil { - return err - } - tdcp.TagDescriptionBaseProperties = &tagDescriptionBaseProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagResourceCollection paged Tag list representation. -type TagResourceCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]TagResourceContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagResourceCollectionIterator provides access to a complete listing of TagResourceContract values. -type TagResourceCollectionIterator struct { - i int - page TagResourceCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *TagResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagResourceCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *TagResourceCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter TagResourceCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter TagResourceCollectionIterator) Response() TagResourceCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter TagResourceCollectionIterator) Value() TagResourceContract { - if !iter.page.NotDone() { - return TagResourceContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (trc TagResourceCollection) IsEmpty() bool { - return trc.Value == nil || len(*trc.Value) == 0 -} - -// tagResourceCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (trc TagResourceCollection) tagResourceCollectionPreparer(ctx context.Context) (*http.Request, error) { - if trc.NextLink == nil || len(to.String(trc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(trc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagResourceCollectionPage contains a page of TagResourceContract values. -type TagResourceCollectionPage struct { - fn func(context.Context, TagResourceCollection) (TagResourceCollection, error) - trc TagResourceCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *TagResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagResourceCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.trc) - if err != nil { - return err - } - page.trc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *TagResourceCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page TagResourceCollectionPage) NotDone() bool { - return !page.trc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page TagResourceCollectionPage) Response() TagResourceCollection { - return page.trc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page TagResourceCollectionPage) Values() []TagResourceContract { - if page.trc.IsEmpty() { - return nil - } - return *page.trc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagResourceContract tagResource contract properties. -type TagResourceContract struct { - // Tag - Tag associated with the resource. - Tag *TagTagResourceContractProperties `json:"tag,omitempty"` - // API - Api associated with the tag. - API *APITagResourceContractProperties `json:"api,omitempty"` - // Operation - Operation associated with the tag. - Operation *OperationTagResourceContractProperties `json:"operation,omitempty"` - // Product - Product associated with the tag. - Product *ProductTagResourceContractProperties `json:"product,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagTagResourceContractProperties contract defining the Tag property in the Tag Resource Contract -type TagTagResourceContractProperties struct { - // ID - Tag identifier - ID *string `json:"id,omitempty"` - // Name - Tag Name - Name *string `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TenantConfigurationDeployFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type TenantConfigurationDeployFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *TenantConfigurationDeployFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationDeployFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.TenantConfigurationDeployFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if orc.Response.Response, err = future.GetResult(sender); err == nil && orc.Response.Response.StatusCode != http.StatusNoContent { - orc, err = client.DeployResponder(orc.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationDeployFuture", "Result", orc.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TenantConfigurationSaveFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type TenantConfigurationSaveFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *TenantConfigurationSaveFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationSaveFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.TenantConfigurationSaveFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if orc.Response.Response, err = future.GetResult(sender); err == nil && orc.Response.Response.StatusCode != http.StatusNoContent { - orc, err = client.SaveResponder(orc.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationSaveFuture", "Result", orc.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TenantConfigurationSyncStateContract tenant Configuration Synchronization State. -type TenantConfigurationSyncStateContract struct { - autorest.Response `json:"-"` - // Branch - The name of Git branch. - Branch *string `json:"branch,omitempty"` - // CommitID - The latest commit Id. - CommitID *string `json:"commitId,omitempty"` - // IsExport - value indicating if last sync was save (true) or deploy (false) operation. - IsExport *bool `json:"isExport,omitempty"` - // IsSynced - value indicating if last synchronization was later than the configuration change. - IsSynced *bool `json:"isSynced,omitempty"` - // IsGitEnabled - value indicating whether Git configuration access is enabled. - IsGitEnabled *bool `json:"isGitEnabled,omitempty"` - // SyncDate - The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - SyncDate *date.Time `json:"syncDate,omitempty"` - // ConfigurationChangeDate - The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - ConfigurationChangeDate *date.Time `json:"configurationChangeDate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TenantConfigurationValidateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type TenantConfigurationValidateFuture struct { - azure.Future -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future *TenantConfigurationValidateFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationValidateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - err = azure.NewAsyncOpIncompleteError("apimanagement.TenantConfigurationValidateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if orc.Response.Response, err = future.GetResult(sender); err == nil && orc.Response.Response.StatusCode != http.StatusNoContent { - orc, err = client.ValidateResponder(orc.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationValidateFuture", "Result", orc.Response.Response, "Failure responding to request") - } - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TermsOfServiceProperties terms of service contract properties. -type TermsOfServiceProperties struct { - // Text - A terms of service text. - Text *string `json:"text,omitempty"` - // Enabled - Display terms of service during a sign-up process. - Enabled *bool `json:"enabled,omitempty"` - // ConsentRequired - Ask user for consent to the terms of service. - ConsentRequired *bool `json:"consentRequired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TokenBodyParameterContract oAuth acquire token request body parameter (www-url-form-encoded). -type TokenBodyParameterContract struct { - // Name - body parameter name. - Name *string `json:"name,omitempty"` - // Value - body parameter value. - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserCollection paged Users list representation. -type UserCollection struct { - autorest.Response `json:"-"` - // Value - Page values. - Value *[]UserContract `json:"value,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserCollectionIterator provides access to a complete listing of UserContract values. -type UserCollectionIterator struct { - i int - page UserCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *UserCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *UserCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter UserCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter UserCollectionIterator) Response() UserCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter UserCollectionIterator) Value() UserContract { - if !iter.page.NotDone() { - return UserContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (uc UserCollection) IsEmpty() bool { - return uc.Value == nil || len(*uc.Value) == 0 -} - -// userCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (uc UserCollection) userCollectionPreparer(ctx context.Context) (*http.Request, error) { - if uc.NextLink == nil || len(to.String(uc.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(uc.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserCollectionPage contains a page of UserContract values. -type UserCollectionPage struct { - fn func(context.Context, UserCollection) (UserCollection, error) - uc UserCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *UserCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.uc) - if err != nil { - return err - } - page.uc = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *UserCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page UserCollectionPage) NotDone() bool { - return !page.uc.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page UserCollectionPage) Response() UserCollection { - return page.uc -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page UserCollectionPage) Values() []UserContract { - if page.uc.IsEmpty() { - return nil - } - return *page.uc.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserContract user details. -type UserContract struct { - autorest.Response `json:"-"` - // UserContractProperties - User entity contract properties. - *UserContractProperties `json:"properties,omitempty"` - // ID - Resource ID. - ID *string `json:"id,omitempty"` - // Name - Resource name. - Name *string `json:"name,omitempty"` - // Type - Resource type for API Management resource. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for UserContract. -func (uc UserContract) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if uc.UserContractProperties != nil { - objectMap["properties"] = uc.UserContractProperties - } - if uc.ID != nil { - objectMap["id"] = uc.ID - } - if uc.Name != nil { - objectMap["name"] = uc.Name - } - if uc.Type != nil { - objectMap["type"] = uc.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for UserContract struct. -func (uc *UserContract) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var userContractProperties UserContractProperties - err = json.Unmarshal(*v, &userContractProperties) - if err != nil { - return err - } - uc.UserContractProperties = &userContractProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - uc.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - uc.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - uc.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserContractProperties user profile. -type UserContractProperties struct { - // FirstName - First name. - FirstName *string `json:"firstName,omitempty"` - // LastName - Last name. - LastName *string `json:"lastName,omitempty"` - // Email - Email address. - Email *string `json:"email,omitempty"` - // RegistrationDate - Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - RegistrationDate *date.Time `json:"registrationDate,omitempty"` - // Groups - Collection of groups user is part of. - Groups *[]GroupContractProperties `json:"groups,omitempty"` - // State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values include: 'UserStateActive', 'UserStateBlocked', 'UserStatePending', 'UserStateDeleted' - State UserState `json:"state,omitempty"` - // Note - Optional note about a user set by the administrator. - Note *string `json:"note,omitempty"` - // Identities - Collection of user identities. - Identities *[]UserIdentityContract `json:"identities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserCreateParameterProperties parameters supplied to the Create User operation. -type UserCreateParameterProperties struct { - // Email - Email address. Must not be empty and must be unique within the service instance. - Email *string `json:"email,omitempty"` - // FirstName - First name. - FirstName *string `json:"firstName,omitempty"` - // LastName - Last name. - LastName *string `json:"lastName,omitempty"` - // Password - User Password. If no value is provided, a default password is generated. - Password *string `json:"password,omitempty"` - // Confirmation - Determines the type of confirmation e-mail that will be sent to the newly created user. Possible values include: 'Signup', 'Invite' - Confirmation Confirmation `json:"confirmation,omitempty"` - // State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values include: 'UserStateActive', 'UserStateBlocked', 'UserStatePending', 'UserStateDeleted' - State UserState `json:"state,omitempty"` - // Note - Optional note about a user set by the administrator. - Note *string `json:"note,omitempty"` - // Identities - Collection of user identities. - Identities *[]UserIdentityContract `json:"identities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserCreateParameters user create details. -type UserCreateParameters struct { - // UserCreateParameterProperties - User entity create contract properties. - *UserCreateParameterProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for UserCreateParameters. -func (ucp UserCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ucp.UserCreateParameterProperties != nil { - objectMap["properties"] = ucp.UserCreateParameterProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for UserCreateParameters struct. -func (ucp *UserCreateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var userCreateParameterProperties UserCreateParameterProperties - err = json.Unmarshal(*v, &userCreateParameterProperties) - if err != nil { - return err - } - ucp.UserCreateParameterProperties = &userCreateParameterProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserEntityBaseParameters user Entity Base Parameters set. -type UserEntityBaseParameters struct { - // State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values include: 'UserStateActive', 'UserStateBlocked', 'UserStatePending', 'UserStateDeleted' - State UserState `json:"state,omitempty"` - // Note - Optional note about a user set by the administrator. - Note *string `json:"note,omitempty"` - // Identities - Collection of user identities. - Identities *[]UserIdentityContract `json:"identities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserIdentityCollection list of Users Identity list representation. -type UserIdentityCollection struct { - autorest.Response `json:"-"` - // Value - User Identity values. - Value *[]UserIdentityContract `json:"value,omitempty"` - // Count - Total record count number across all pages. - Count *int64 `json:"count,omitempty"` - // NextLink - Next page link if any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserIdentityCollectionIterator provides access to a complete listing of UserIdentityContract values. -type UserIdentityCollectionIterator struct { - i int - page UserIdentityCollectionPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *UserIdentityCollectionIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserIdentityCollectionIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *UserIdentityCollectionIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter UserIdentityCollectionIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (iter UserIdentityCollectionIterator) Response() UserIdentityCollection { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter UserIdentityCollectionIterator) Value() UserIdentityContract { - if !iter.page.NotDone() { - return UserIdentityContract{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// IsEmpty returns true if the ListResult contains no values. -func (uic UserIdentityCollection) IsEmpty() bool { - return uic.Value == nil || len(*uic.Value) == 0 -} - -// userIdentityCollectionPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (uic UserIdentityCollection) userIdentityCollectionPreparer(ctx context.Context) (*http.Request, error) { - if uic.NextLink == nil || len(to.String(uic.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(uic.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserIdentityCollectionPage contains a page of UserIdentityContract values. -type UserIdentityCollectionPage struct { - fn func(context.Context, UserIdentityCollection) (UserIdentityCollection, error) - uic UserIdentityCollection -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *UserIdentityCollectionPage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserIdentityCollectionPage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - next, err := page.fn(ctx, page.uic) - if err != nil { - return err - } - page.uic = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *UserIdentityCollectionPage) Next() error { - return page.NextWithContext(context.Background()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page UserIdentityCollectionPage) NotDone() bool { - return !page.uic.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Response returns the raw server response from the last page request. -func (page UserIdentityCollectionPage) Response() UserIdentityCollection { - return page.uic -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page UserIdentityCollectionPage) Values() []UserIdentityContract { - if page.uic.IsEmpty() { - return nil - } - return *page.uic.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserIdentityContract user identity details. -type UserIdentityContract struct { - // Provider - Identity provider name. - Provider *string `json:"provider,omitempty"` - // ID - Identifier value within provider. - ID *string `json:"id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserTokenParameters parameters supplied to the Get User Token operation. -type UserTokenParameters struct { - // KeyType - The Key to be used to generate token for user. Possible values include: 'Primary', 'Secondary' - KeyType KeyType `json:"keyType,omitempty"` - // Expiry - The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - Expiry *date.Time `json:"expiry,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserTokenResult get User Token response details. -type UserTokenResult struct { - autorest.Response `json:"-"` - // Value - Shared Access Authorization token for the User. - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserUpdateParameters user update parameters. -type UserUpdateParameters struct { - // UserUpdateParametersProperties - User entity update contract properties. - *UserUpdateParametersProperties `json:"properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// MarshalJSON is the custom marshaler for UserUpdateParameters. -func (uup UserUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if uup.UserUpdateParametersProperties != nil { - objectMap["properties"] = uup.UserUpdateParametersProperties - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UnmarshalJSON is the custom unmarshaler for UserUpdateParameters struct. -func (uup *UserUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var userUpdateParametersProperties UserUpdateParametersProperties - err = json.Unmarshal(*v, &userUpdateParametersProperties) - if err != nil { - return err - } - uup.UserUpdateParametersProperties = &userUpdateParametersProperties - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserUpdateParametersProperties parameters supplied to the Update User operation. -type UserUpdateParametersProperties struct { - // Email - Email address. Must not be empty and must be unique within the service instance. - Email *string `json:"email,omitempty"` - // Password - User Password. - Password *string `json:"password,omitempty"` - // FirstName - First name. - FirstName *string `json:"firstName,omitempty"` - // LastName - Last name. - LastName *string `json:"lastName,omitempty"` - // State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values include: 'UserStateActive', 'UserStateBlocked', 'UserStatePending', 'UserStateDeleted' - State UserState `json:"state,omitempty"` - // Note - Optional note about a user set by the administrator. - Note *string `json:"note,omitempty"` - // Identities - Collection of user identities. - Identities *[]UserIdentityContract `json:"identities,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// VirtualNetworkConfiguration configuration of a virtual network to which API Management service is -// deployed. -type VirtualNetworkConfiguration struct { - // Vnetid - The virtual network ID. This is typically a GUID. Expect a null GUID by default. - Vnetid *string `json:"vnetid,omitempty"` - // Subnetname - The name of the subnet. - Subnetname *string `json:"subnetname,omitempty"` - // SubnetResourceID - The full resource ID of a subnet in a virtual network to deploy the API Management service in. - SubnetResourceID *string `json:"subnetResourceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// X509CertificateName properties of server X509Names. -type X509CertificateName struct { - // Name - Common Name of the Certificate. - Name *string `json:"name,omitempty"` - // IssuerCertificateThumbprint - Thumbprint for the Issuer of the Certificate. - IssuerCertificateThumbprint *string `json:"issuerCertificateThumbprint,omitempty"` -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go deleted file mode 100644 index d20a8558c46d..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go +++ /dev/null @@ -1,230 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NetworkStatusClient is the apiManagement Client -type NetworkStatusClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNetworkStatusClient creates an instance of the NetworkStatusClient client. -func NewNetworkStatusClient(subscriptionID string) NetworkStatusClient { - return NewNetworkStatusClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNetworkStatusClientWithBaseURI creates an instance of the NetworkStatusClient client. -func NewNetworkStatusClientWithBaseURI(baseURI string, subscriptionID string) NetworkStatusClient { - return NetworkStatusClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByLocation gets the Connectivity Status to the external resources on which the Api Management service depends -// from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// locationName - location in which the API Management service is deployed. This is one of the Azure Regions -// like West US, East US, South Central US. -func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGroupName string, serviceName string, locationName string) (result NetworkStatusContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NetworkStatusClient.ListByLocation") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: locationName, - Constraints: []validation.Constraint{{Target: "locationName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NetworkStatusClient", "ListByLocation", err.Error()) - } - - req, err := client.ListByLocationPreparer(ctx, resourceGroupName, serviceName, locationName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", nil, "Failure preparing request") - return - } - - resp, err := client.ListByLocationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure sending request") - return - } - - result, err = client.ListByLocationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByLocation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByLocationPreparer prepares the ListByLocation request. -func (client NetworkStatusClient) ListByLocationPreparer(ctx context.Context, resourceGroupName string, serviceName string, locationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "locationName": autorest.Encode("path", locationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByLocationSender sends the ListByLocation request. The method will close the -// http.Response Body if it receives an error. -func (client NetworkStatusClient) ListByLocationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByLocationResponder handles the response to the ListByLocation request. The method always -// closes the http.Response Body. -func (client NetworkStatusClient) ListByLocationResponder(resp *http.Response) (result NetworkStatusContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService gets the Connectivity Status to the external resources on which the Api Management service depends -// from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string) (result ListNetworkStatusContractByLocation, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NetworkStatusClient.ListByService") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NetworkStatusClient", "ListByService", err.Error()) - } - - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure sending request") - return - } - - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NetworkStatusClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client NetworkStatusClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/networkstatus", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client NetworkStatusClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client NetworkStatusClient) ListByServiceResponder(resp *http.Response) (result ListNetworkStatusContractByLocation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notification.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notification.go deleted file mode 100644 index d25c58194d8c..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notification.go +++ /dev/null @@ -1,374 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationClient is the apiManagement Client -type NotificationClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNotificationClient creates an instance of the NotificationClient client. -func NewNotificationClient(subscriptionID string) NotificationClient { - return NewNotificationClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNotificationClientWithBaseURI creates an instance of the NotificationClient client. -func NewNotificationClientWithBaseURI(baseURI string, subscriptionID string) NotificationClient { - return NotificationClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate updates an Notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, ifMatch string) (result NotificationContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, notificationName, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client NotificationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client NotificationClient) CreateOrUpdateResponder(resp *http.Response) (result NotificationContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the Notification specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -func (client NotificationClient) Get(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (result NotificationContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, notificationName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client NotificationClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/notifications/{notificationName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client NotificationClient) GetResponder(resp *http.Response) (result NotificationContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of properties defined within a service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// top - number of records to return. -// skip - number of records to skip. -func (client NotificationClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (result NotificationCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationClient.ListByService") - defer func() { - sc := -1 - if result.nc.Response.Response != nil { - sc = result.nc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.nc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure sending request") - return - } - - result.nc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client NotificationClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client NotificationClient) ListByServiceResponder(resp *http.Response) (result NotificationCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client NotificationClient) listByServiceNextResults(ctx context.Context, lastResults NotificationCollection) (result NotificationCollection, err error) { - req, err := lastResults.notificationCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client NotificationClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (result NotificationCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go deleted file mode 100644 index 87f531bf4df6..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go +++ /dev/null @@ -1,413 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationRecipientEmailClient is the apiManagement Client -type NotificationRecipientEmailClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNotificationRecipientEmailClient creates an instance of the NotificationRecipientEmailClient client. -func NewNotificationRecipientEmailClient(subscriptionID string) NotificationRecipientEmailClient { - return NewNotificationRecipientEmailClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNotificationRecipientEmailClientWithBaseURI creates an instance of the NotificationRecipientEmailClient client. -func NewNotificationRecipientEmailClientWithBaseURI(baseURI string, subscriptionID string) NotificationRecipientEmailClient { - return NotificationRecipientEmailClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExists determine if Notification Recipient Email subscribed to the notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -// email - email identifier. -func (client NotificationRecipientEmailClient) CheckEntityExists(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientEmailClient.CheckEntityExists") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", err.Error()) - } - - req, err := client.CheckEntityExistsPreparer(ctx, resourceGroupName, serviceName, notificationName, email) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", nil, "Failure preparing request") - return - } - - resp, err := client.CheckEntityExistsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", resp, "Failure sending request") - return - } - - result, err = client.CheckEntityExistsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CheckEntityExists", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsPreparer prepares the CheckEntityExists request. -func (client NotificationRecipientEmailClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "email": autorest.Encode("path", email), - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsSender sends the CheckEntityExists request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientEmailClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always -// closes the http.Response Body. -func (client NotificationRecipientEmailClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate adds the Email address to the list of Recipients for the Notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -// email - email identifier. -func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (result RecipientEmailContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientEmailClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, notificationName, email) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client NotificationRecipientEmailClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "email": autorest.Encode("path", email), - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientEmailClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client NotificationRecipientEmailClient) CreateOrUpdateResponder(resp *http.Response) (result RecipientEmailContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete removes the email from the list of Notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -// email - email identifier. -func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientEmailClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientEmailClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, notificationName, email) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client NotificationRecipientEmailClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "email": autorest.Encode("path", email), - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientEmailClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client NotificationRecipientEmailClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotification gets the list of the Notification Recipient Emails subscribed to a notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (result RecipientEmailCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientEmailClient.ListByNotification") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientEmailClient", "ListByNotification", err.Error()) - } - - req, err := client.ListByNotificationPreparer(ctx, resourceGroupName, serviceName, notificationName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", nil, "Failure preparing request") - return - } - - resp, err := client.ListByNotificationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure sending request") - return - } - - result, err = client.ListByNotificationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientEmailClient", "ListByNotification", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotificationPreparer prepares the ListByNotification request. -func (client NotificationRecipientEmailClient) ListByNotificationPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotificationSender sends the ListByNotification request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientEmailClient) ListByNotificationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotificationResponder handles the response to the ListByNotification request. The method always -// closes the http.Response Body. -func (client NotificationRecipientEmailClient) ListByNotificationResponder(resp *http.Response) (result RecipientEmailCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go deleted file mode 100644 index d8f5dc931546..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go +++ /dev/null @@ -1,425 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NotificationRecipientUserClient is the apiManagement Client -type NotificationRecipientUserClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNotificationRecipientUserClient creates an instance of the NotificationRecipientUserClient client. -func NewNotificationRecipientUserClient(subscriptionID string) NotificationRecipientUserClient { - return NewNotificationRecipientUserClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewNotificationRecipientUserClientWithBaseURI creates an instance of the NotificationRecipientUserClient client. -func NewNotificationRecipientUserClientWithBaseURI(baseURI string, subscriptionID string) NotificationRecipientUserClient { - return NotificationRecipientUserClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExists determine if the Notification Recipient User is subscribed to the notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client NotificationRecipientUserClient) CheckEntityExists(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientUserClient.CheckEntityExists") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientUserClient", "CheckEntityExists", err.Error()) - } - - req, err := client.CheckEntityExistsPreparer(ctx, resourceGroupName, serviceName, notificationName, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", nil, "Failure preparing request") - return - } - - resp, err := client.CheckEntityExistsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", resp, "Failure sending request") - return - } - - result, err = client.CheckEntityExistsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CheckEntityExists", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsPreparer prepares the CheckEntityExists request. -func (client NotificationRecipientUserClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsSender sends the CheckEntityExists request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientUserClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always -// closes the http.Response Body. -func (client NotificationRecipientUserClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate adds the API Management User to the list of Recipients for the Notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (result RecipientUserContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientUserClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, notificationName, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client NotificationRecipientUserClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientUserClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client NotificationRecipientUserClient) CreateOrUpdateResponder(resp *http.Response) (result RecipientUserContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete removes the API Management user from the list of Notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client NotificationRecipientUserClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientUserClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientUserClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, notificationName, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client NotificationRecipientUserClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientUserClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client NotificationRecipientUserClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotification gets the list of the Notification Recipient User subscribed to the notification. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// notificationName - notification Name Identifier. -func (client NotificationRecipientUserClient) ListByNotification(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (result RecipientUserCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/NotificationRecipientUserClient.ListByNotification") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.NotificationRecipientUserClient", "ListByNotification", err.Error()) - } - - req, err := client.ListByNotificationPreparer(ctx, resourceGroupName, serviceName, notificationName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", nil, "Failure preparing request") - return - } - - resp, err := client.ListByNotificationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure sending request") - return - } - - result, err = client.ListByNotificationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.NotificationRecipientUserClient", "ListByNotification", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotificationPreparer prepares the ListByNotification request. -func (client NotificationRecipientUserClient) ListByNotificationPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "notificationName": autorest.Encode("path", notificationName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotificationSender sends the ListByNotification request. The method will close the -// http.Response Body if it receives an error. -func (client NotificationRecipientUserClient) ListByNotificationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByNotificationResponder handles the response to the ListByNotification request. The method always -// closes the http.Response Body. -func (client NotificationRecipientUserClient) ListByNotificationResponder(resp *http.Response) (result RecipientUserCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go deleted file mode 100644 index a5b57a5dca83..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go +++ /dev/null @@ -1,685 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OpenIDConnectProviderClient is the apiManagement Client -type OpenIDConnectProviderClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewOpenIDConnectProviderClient creates an instance of the OpenIDConnectProviderClient client. -func NewOpenIDConnectProviderClient(subscriptionID string) OpenIDConnectProviderClient { - return NewOpenIDConnectProviderClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewOpenIDConnectProviderClientWithBaseURI creates an instance of the OpenIDConnectProviderClient client. -func NewOpenIDConnectProviderClientWithBaseURI(baseURI string, subscriptionID string) OpenIDConnectProviderClient { - return OpenIDConnectProviderClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates the OpenID Connect Provider. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// opid - identifier of the OpenID Connect Provider. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderContract, ifMatch string) (result OpenidConnectProviderContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: opid, - Constraints: []validation.Constraint{{Target: "opid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "opid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.OpenidConnectProviderContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.OpenidConnectProviderContractProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.OpenidConnectProviderContractProperties.DisplayName", Name: validation.MaxLength, Rule: 50, Chain: nil}}}, - {Target: "parameters.OpenidConnectProviderContractProperties.MetadataEndpoint", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.OpenidConnectProviderContractProperties.ClientID", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, opid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client OpenIDConnectProviderClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "opid": autorest.Encode("path", opid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client OpenIDConnectProviderClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client OpenIDConnectProviderClient) CreateOrUpdateResponder(resp *http.Response) (result OpenidConnectProviderContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific OpenID Connect Provider of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// opid - identifier of the OpenID Connect Provider. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, opid string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: opid, - Constraints: []validation.Constraint{{Target: "opid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "opid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.OpenIDConnectProviderClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, opid, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client OpenIDConnectProviderClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "opid": autorest.Encode("path", opid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client OpenIDConnectProviderClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client OpenIDConnectProviderClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets specific OpenID Connect Provider. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// opid - identifier of the OpenID Connect Provider. -func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroupName string, serviceName string, opid string) (result OpenidConnectProviderContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: opid, - Constraints: []validation.Constraint{{Target: "opid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "opid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.OpenIDConnectProviderClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, opid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client OpenIDConnectProviderClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "opid": autorest.Encode("path", opid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client OpenIDConnectProviderClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client OpenIDConnectProviderClient) GetResponder(resp *http.Response) (result OpenidConnectProviderContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// opid - identifier of the OpenID Connect Provider. -func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, opid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: opid, - Constraints: []validation.Constraint{{Target: "opid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "opid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.OpenIDConnectProviderClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, opid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client OpenIDConnectProviderClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "opid": autorest.Encode("path", opid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client OpenIDConnectProviderClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client OpenIDConnectProviderClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all OpenID Connect Providers. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result OpenIDConnectProviderCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderClient.ListByService") - defer func() { - sc := -1 - if result.oicpc.Response.Response != nil { - sc = result.oicpc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.OpenIDConnectProviderClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.oicpc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure sending request") - return - } - - result.oicpc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client OpenIDConnectProviderClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client OpenIDConnectProviderClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client OpenIDConnectProviderClient) ListByServiceResponder(resp *http.Response) (result OpenIDConnectProviderCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.Context, lastResults OpenIDConnectProviderCollection) (result OpenIDConnectProviderCollection, err error) { - req, err := lastResults.openIDConnectProviderCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client OpenIDConnectProviderClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result OpenIDConnectProviderCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the specific OpenID Connect Provider. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// opid - identifier of the OpenID Connect Provider. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderUpdateContract, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OpenIDConnectProviderClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: opid, - Constraints: []validation.Constraint{{Target: "opid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "opid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.OpenIDConnectProviderClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, opid, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OpenIDConnectProviderClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client OpenIDConnectProviderClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderUpdateContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "opid": autorest.Encode("path", opid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client OpenIDConnectProviderClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client OpenIDConnectProviderClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operation.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operation.go deleted file mode 100644 index 895a61a6a0c5..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operation.go +++ /dev/null @@ -1,205 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationClient is the apiManagement Client -type OperationClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewOperationClient creates an instance of the OperationClient client. -func NewOperationClient(subscriptionID string) OperationClient { - return NewOperationClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewOperationClientWithBaseURI creates an instance of the OperationClient client. -func NewOperationClientWithBaseURI(baseURI string, subscriptionID string) OperationClient { - return OperationClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTags lists a collection of operations associated with tags. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagResourceCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationClient.ListByTags") - defer func() { - sc := -1 - if result.trc.Response.Response != nil { - sc = result.trc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.OperationClient", "ListByTags", err.Error()) - } - - result.fn = client.listByTagsNextResults - req, err := client.ListByTagsPreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", nil, "Failure preparing request") - return - } - - resp, err := client.ListByTagsSender(req) - if err != nil { - result.trc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure sending request") - return - } - - result.trc, err = client.ListByTagsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "ListByTags", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsPreparer prepares the ListByTags request. -func (client OperationClient) ListByTagsPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsSender sends the ListByTags request. The method will close the -// http.Response Body if it receives an error. -func (client OperationClient) ListByTagsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsResponder handles the response to the ListByTags request. The method always -// closes the http.Response Body. -func (client OperationClient) ListByTagsResponder(resp *http.Response) (result TagResourceCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByTagsNextResults retrieves the next set of results, if any. -func (client OperationClient) listByTagsNextResults(ctx context.Context, lastResults TagResourceCollection) (result TagResourceCollection, err error) { - req, err := lastResults.tagResourceCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByTagsSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByTagsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OperationClient", "listByTagsNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTagsComplete enumerates all values, automatically crossing page boundaries as required. -func (client OperationClient) ListByTagsComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagResourceCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationClient.ListByTags") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByTags(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operations.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operations.go deleted file mode 100644 index 707d8625af04..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operations.go +++ /dev/null @@ -1,155 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// OperationsClient is the apiManagement Client -type OperationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewOperationsClient creates an instance of the OperationsClient client. -func NewOperationsClient(subscriptionID string) OperationsClient { - return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. -func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { - return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists all of the available REST API operations of the Microsoft.ApiManagement provider. -func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") - defer func() { - sc := -1 - if result.olr.Response.Response != nil { - sc = result.olr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.olr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure sending request") - return - } - - result.olr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.ApiManagement/operations"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) { - req, err := lastResults.operationListResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policy.go deleted file mode 100644 index 8938f649e207..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policy.go +++ /dev/null @@ -1,505 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicyClient is the apiManagement Client -type PolicyClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewPolicyClient creates an instance of the PolicyClient client. -func NewPolicyClient(subscriptionID string) PolicyClient { - return NewPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewPolicyClientWithBaseURI creates an instance of the PolicyClient client. -func NewPolicyClientWithBaseURI(baseURI string, subscriptionID string) PolicyClient { - return PolicyClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates the global policy configuration of the Api Management service. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - the policy contents to apply. -func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters PolicyContract) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PolicyClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.PolicyContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.PolicyContractProperties.PolicyContent", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.PolicyClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client PolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PolicyContract) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client PolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client PolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the global policy configuration of the Api Management Service. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PolicyClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PolicyClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client PolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client PolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client PolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get the Global policy definition of the Api Management service. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, serviceName string) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PolicyClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PolicyClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client PolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PolicyClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the Global policy definition in the Api Management service. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client PolicyClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PolicyClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PolicyClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client PolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client PolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client PolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all the Global Policy definitions of the Api Management service. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// scope - policy scope. -func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (result PolicyCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PolicyClient.ListByService") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PolicyClient", "ListByService", err.Error()) - } - - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, scope) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure sending request") - return - } - - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicyClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client PolicyClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(string(scope)) > 0 { - queryParameters["scope"] = autorest.Encode("query", scope) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client PolicyClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client PolicyClient) ListByServiceResponder(resp *http.Response) (result PolicyCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go deleted file mode 100644 index 1c6679ca2938..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go +++ /dev/null @@ -1,138 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PolicySnippetsClient is the apiManagement Client -type PolicySnippetsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewPolicySnippetsClient creates an instance of the PolicySnippetsClient client. -func NewPolicySnippetsClient(subscriptionID string) PolicySnippetsClient { - return NewPolicySnippetsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewPolicySnippetsClientWithBaseURI creates an instance of the PolicySnippetsClient client. -func NewPolicySnippetsClientWithBaseURI(baseURI string, subscriptionID string) PolicySnippetsClient { - return PolicySnippetsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all policy snippets. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// scope - policy scope. -func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (result PolicySnippetsCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PolicySnippetsClient.ListByService") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PolicySnippetsClient", "ListByService", err.Error()) - } - - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, scope) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", resp, "Failure sending request") - return - } - - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PolicySnippetsClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client PolicySnippetsClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(string(scope)) > 0 { - queryParameters["scope"] = autorest.Encode("query", scope) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policySnippets", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client PolicySnippetsClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client PolicySnippetsClient) ListByServiceResponder(resp *http.Response) (result PolicySnippetsCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/product.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/product.go deleted file mode 100644 index 4c01bd10e353..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/product.go +++ /dev/null @@ -1,702 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductClient is the apiManagement Client -type ProductClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductClient creates an instance of the ProductClient client. -func NewProductClient(subscriptionID string) ProductClient { - return NewProductClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductClientWithBaseURI creates an instance of the ProductClient client. -func NewProductClientWithBaseURI(baseURI string, subscriptionID string) ProductClient { - return ProductClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or Updates a product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// parameters - create or update parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters ProductContract, ifMatch string) (result ProductContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ProductContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ProductContractProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ProductContractProperties.DisplayName", Name: validation.MaxLength, Rule: 300, Chain: nil}, - {Target: "parameters.ProductContractProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, productID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ProductClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters ProductContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ProductClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ProductClient) CreateOrUpdateResponder(resp *http.Response) (result ProductContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete delete product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -// deleteSubscriptions - delete existing subscriptions associated with the product or not. -func (client ProductClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string, deleteSubscriptions *bool) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, productID, ifMatch, deleteSubscriptions) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client ProductClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string, deleteSubscriptions *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if deleteSubscriptions != nil { - queryParameters["deleteSubscriptions"] = autorest.Encode("query", *deleteSubscriptions) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ProductClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ProductClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the product specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -func (client ProductClient) Get(ctx context.Context, resourceGroupName string, serviceName string, productID string) (result ProductContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, productID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client ProductClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/products/{productId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ProductClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ProductClient) GetResponder(resp *http.Response) (result ProductContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the product specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, productID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, productID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client ProductClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client ProductClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client ProductClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of products in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | eq | | -// top - number of records to return. -// skip - number of records to skip. -// expandGroups - when set to true, the response contains an array of groups that have visibility to the -// product. The default is false. -func (client ProductClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandGroups *bool) (result ProductCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductClient.ListByService") - defer func() { - sc := -1 - if result.pc.Response.Response != nil { - sc = result.pc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip, expandGroups) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.pc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure sending request") - return - } - - result.pc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client ProductClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandGroups *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - if expandGroups != nil { - queryParameters["expandGroups"] = autorest.Encode("query", *expandGroups) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client ProductClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client ProductClient) ListByServiceResponder(resp *http.Response) (result ProductCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client ProductClient) listByServiceNextResults(ctx context.Context, lastResults ProductCollection) (result ProductCollection, err error) { - req, err := lastResults.productCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client ProductClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandGroups *bool) (result ProductCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip, expandGroups) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update update product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client ProductClient) Update(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters ProductUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, productID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client ProductClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters ProductUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client ProductClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client ProductClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go deleted file mode 100644 index 0aff91649c06..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go +++ /dev/null @@ -1,507 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductAPIClient is the apiManagement Client -type ProductAPIClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductAPIClient creates an instance of the ProductAPIClient client. -func NewProductAPIClient(subscriptionID string) ProductAPIClient { - return NewProductAPIClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductAPIClientWithBaseURI creates an instance of the ProductAPIClient client. -func NewProductAPIClientWithBaseURI(baseURI string, subscriptionID string) ProductAPIClient { - return ProductAPIClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExists checks that API entity specified by identifier is associated with the Product entity. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductAPIClient.CheckEntityExists") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductAPIClient", "CheckEntityExists", err.Error()) - } - - req, err := client.CheckEntityExistsPreparer(ctx, resourceGroupName, serviceName, productID, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", nil, "Failure preparing request") - return - } - - resp, err := client.CheckEntityExistsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure sending request") - return - } - - result, err = client.CheckEntityExistsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CheckEntityExists", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsPreparer prepares the CheckEntityExists request. -func (client ProductAPIClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsSender sends the CheckEntityExists request. The method will close the -// http.Response Body if it receives an error. -func (client ProductAPIClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always -// closes the http.Response Body. -func (client ProductAPIClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate adds an API to the specified product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (result APIContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductAPIClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductAPIClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, productID, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ProductAPIClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ProductAPIClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ProductAPIClient) CreateOrUpdateResponder(resp *http.Response) (result APIContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified API from the specified product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductAPIClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductAPIClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, productID, apiid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client ProductAPIClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ProductAPIClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ProductAPIClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProduct lists a collection of the APIs associated with a product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result APICollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductAPIClient.ListByProduct") - defer func() { - sc := -1 - if result.ac.Response.Response != nil { - sc = result.ac.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductAPIClient", "ListByProduct", err.Error()) - } - - result.fn = client.listByProductNextResults - req, err := client.ListByProductPreparer(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", nil, "Failure preparing request") - return - } - - resp, err := client.ListByProductSender(req) - if err != nil { - result.ac.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure sending request") - return - } - - result.ac, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "ListByProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductPreparer prepares the ListByProduct request. -func (client ProductAPIClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductSender sends the ListByProduct request. The method will close the -// http.Response Body if it receives an error. -func (client ProductAPIClient) ListByProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductResponder handles the response to the ListByProduct request. The method always -// closes the http.Response Body. -func (client ProductAPIClient) ListByProductResponder(resp *http.Response) (result APICollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByProductNextResults retrieves the next set of results, if any. -func (client ProductAPIClient) listByProductNextResults(ctx context.Context, lastResults APICollection) (result APICollection, err error) { - req, err := lastResults.aPICollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByProductSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductAPIClient", "listByProductNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductComplete enumerates all values, automatically crossing page boundaries as required. -func (client ProductAPIClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result APICollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductAPIClient.ListByProduct") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByProduct(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go deleted file mode 100644 index 1ee8f458e629..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go +++ /dev/null @@ -1,503 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductGroupClient is the apiManagement Client -type ProductGroupClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductGroupClient creates an instance of the ProductGroupClient client. -func NewProductGroupClient(subscriptionID string) ProductGroupClient { - return NewProductGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductGroupClientWithBaseURI creates an instance of the ProductGroupClient client. -func NewProductGroupClientWithBaseURI(baseURI string, subscriptionID string) ProductGroupClient { - return ProductGroupClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExists checks that Group entity specified by identifier is associated with the Product entity. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// groupID - group identifier. Must be unique in the current API Management service instance. -func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductGroupClient.CheckEntityExists") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductGroupClient", "CheckEntityExists", err.Error()) - } - - req, err := client.CheckEntityExistsPreparer(ctx, resourceGroupName, serviceName, productID, groupID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", nil, "Failure preparing request") - return - } - - resp, err := client.CheckEntityExistsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure sending request") - return - } - - result, err = client.CheckEntityExistsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CheckEntityExists", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsPreparer prepares the CheckEntityExists request. -func (client ProductGroupClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsSender sends the CheckEntityExists request. The method will close the -// http.Response Body if it receives an error. -func (client ProductGroupClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always -// closes the http.Response Body. -func (client ProductGroupClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate adds the association between the specified developer group with the specified product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// groupID - group identifier. Must be unique in the current API Management service instance. -func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (result GroupContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductGroupClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductGroupClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, productID, groupID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ProductGroupClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ProductGroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ProductGroupClient) CreateOrUpdateResponder(resp *http.Response) (result GroupContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the association between the specified group and product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// groupID - group identifier. Must be unique in the current API Management service instance. -func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductGroupClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: groupID, - Constraints: []validation.Constraint{{Target: "groupID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "groupID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "groupID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductGroupClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, productID, groupID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client ProductGroupClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "groupId": autorest.Encode("path", groupID), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ProductGroupClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ProductGroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProduct lists the collection of developer groups associated with the specified product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | type | eq, ne | N/A | -// top - number of records to return. -// skip - number of records to skip. -func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result GroupCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductGroupClient.ListByProduct") - defer func() { - sc := -1 - if result.gc.Response.Response != nil { - sc = result.gc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductGroupClient", "ListByProduct", err.Error()) - } - - result.fn = client.listByProductNextResults - req, err := client.ListByProductPreparer(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", nil, "Failure preparing request") - return - } - - resp, err := client.ListByProductSender(req) - if err != nil { - result.gc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure sending request") - return - } - - result.gc, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "ListByProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductPreparer prepares the ListByProduct request. -func (client ProductGroupClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductSender sends the ListByProduct request. The method will close the -// http.Response Body if it receives an error. -func (client ProductGroupClient) ListByProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductResponder handles the response to the ListByProduct request. The method always -// closes the http.Response Body. -func (client ProductGroupClient) ListByProductResponder(resp *http.Response) (result GroupCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByProductNextResults retrieves the next set of results, if any. -func (client ProductGroupClient) listByProductNextResults(ctx context.Context, lastResults GroupCollection) (result GroupCollection, err error) { - req, err := lastResults.groupCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByProductSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductGroupClient", "listByProductNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductComplete enumerates all values, automatically crossing page boundaries as required. -func (client ProductGroupClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductGroupClient.ListByProduct") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByProduct(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go deleted file mode 100644 index 4114d38c3bc1..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go +++ /dev/null @@ -1,536 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductPolicyClient is the apiManagement Client -type ProductPolicyClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductPolicyClient creates an instance of the ProductPolicyClient client. -func NewProductPolicyClient(subscriptionID string) ProductPolicyClient { - return NewProductPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductPolicyClientWithBaseURI creates an instance of the ProductPolicyClient client. -func NewProductPolicyClientWithBaseURI(baseURI string, subscriptionID string) ProductPolicyClient { - return ProductPolicyClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates policy configuration for the Product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// parameters - the policy contents to apply. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters PolicyContract, ifMatch string) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductPolicyClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.PolicyContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.PolicyContractProperties.PolicyContent", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductPolicyClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, productID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ProductPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters PolicyContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ProductPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ProductPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the policy configuration at the Product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductPolicyClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductPolicyClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, productID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client ProductPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ProductPolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ProductPolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get the policy configuration at the Product level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName string, serviceName string, productID string) (result PolicyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductPolicyClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductPolicyClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, productID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client ProductPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ProductPolicyClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ProductPolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag get the ETag of the policy configuration at the Product level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -func (client ProductPolicyClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, productID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductPolicyClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductPolicyClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, productID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client ProductPolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyId": autorest.Encode("path", "policy"), - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client ProductPolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client ProductPolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProduct get the policy configuration at the Product level. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string) (result PolicyCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductPolicyClient.ListByProduct") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductPolicyClient", "ListByProduct", err.Error()) - } - - req, err := client.ListByProductPreparer(ctx, resourceGroupName, serviceName, productID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", nil, "Failure preparing request") - return - } - - resp, err := client.ListByProductSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure sending request") - return - } - - result, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductPolicyClient", "ListByProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductPreparer prepares the ListByProduct request. -func (client ProductPolicyClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/products/{productId}/policies", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductSender sends the ListByProduct request. The method will close the -// http.Response Body if it receives an error. -func (client ProductPolicyClient) ListByProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductResponder handles the response to the ListByProduct request. The method always -// closes the http.Response Body. -func (client ProductPolicyClient) ListByProductResponder(resp *http.Response) (result PolicyCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go deleted file mode 100644 index a10069db7eeb..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go +++ /dev/null @@ -1,204 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ProductSubscriptionsClient is the apiManagement Client -type ProductSubscriptionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductSubscriptionsClient creates an instance of the ProductSubscriptionsClient client. -func NewProductSubscriptionsClient(subscriptionID string) ProductSubscriptionsClient { - return NewProductSubscriptionsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewProductSubscriptionsClientWithBaseURI creates an instance of the ProductSubscriptionsClient client. -func NewProductSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ProductSubscriptionsClient { - return ProductSubscriptionsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists the collection of subscriptions to the specified product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |--------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | eq | | -// top - number of records to return. -// skip - number of records to skip. -func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result SubscriptionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductSubscriptionsClient.List") - defer func() { - sc := -1 - if result.sc.Response.Response != nil { - sc = result.sc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ProductSubscriptionsClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.sc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure sending request") - return - } - - result.sc, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client ProductSubscriptionsClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ProductSubscriptionsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ProductSubscriptionsClient) ListResponder(resp *http.Response) (result SubscriptionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, lastResults SubscriptionCollection) (result SubscriptionCollection, err error) { - req, err := lastResults.subscriptionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ProductSubscriptionsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client ProductSubscriptionsClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result SubscriptionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ProductSubscriptionsClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/property.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/property.go deleted file mode 100644 index f4c91c8664e0..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/property.go +++ /dev/null @@ -1,690 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// PropertyClient is the apiManagement Client -type PropertyClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewPropertyClient creates an instance of the PropertyClient client. -func NewPropertyClient(subscriptionID string) PropertyClient { - return NewPropertyClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewPropertyClientWithBaseURI creates an instance of the PropertyClient client. -func NewPropertyClientWithBaseURI(baseURI string, subscriptionID string) PropertyClient { - return PropertyClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates a property. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// propID - identifier of the property. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, propID string, parameters PropertyContract, ifMatch string) (result PropertyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: propID, - Constraints: []validation.Constraint{{Target: "propID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "propID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.PropertyContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.PropertyContractProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.PropertyContractProperties.DisplayName", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "parameters.PropertyContractProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "parameters.PropertyContractProperties.DisplayName", Name: validation.Pattern, Rule: `^[A-Za-z0-9-._]+$`, Chain: nil}, - }}, - {Target: "parameters.PropertyContractProperties.Value", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.PropertyContractProperties.Value", Name: validation.MaxLength, Rule: 4096, Chain: nil}, - {Target: "parameters.PropertyContractProperties.Value", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.PropertyClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, propID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client PropertyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string, parameters PropertyContract, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "propId": autorest.Encode("path", propID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client PropertyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client PropertyClient) CreateOrUpdateResponder(resp *http.Response) (result PropertyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific property from the the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// propID - identifier of the property. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client PropertyClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, propID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: propID, - Constraints: []validation.Constraint{{Target: "propID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "propID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PropertyClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, propID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client PropertyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "propId": autorest.Encode("path", propID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client PropertyClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client PropertyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the property specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// propID - identifier of the property. -func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, serviceName string, propID string) (result PropertyContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: propID, - Constraints: []validation.Constraint{{Target: "propID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "propID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PropertyClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, propID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client PropertyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "propId": autorest.Encode("path", propID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/properties/{propId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PropertyClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PropertyClient) GetResponder(resp *http.Response) (result PropertyContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the property specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// propID - identifier of the property. -func (client PropertyClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, propID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: propID, - Constraints: []validation.Constraint{{Target: "propID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "propID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PropertyClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, propID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client PropertyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "propId": autorest.Encode("path", propID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client PropertyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client PropertyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of properties defined within a service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------|------------------------|-------------------------------------------------------| -// | tags | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client PropertyClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result PropertyCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyClient.ListByService") - defer func() { - sc := -1 - if result.pc.Response.Response != nil { - sc = result.pc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.PropertyClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.pc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", resp, "Failure sending request") - return - } - - result.pc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client PropertyClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client PropertyClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client PropertyClient) ListByServiceResponder(resp *http.Response) (result PropertyCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client PropertyClient) listByServiceNextResults(ctx context.Context, lastResults PropertyCollection) (result PropertyCollection, err error) { - req, err := lastResults.propertyCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client PropertyClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result PropertyCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the specific property. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// propID - identifier of the property. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client PropertyClient) Update(ctx context.Context, resourceGroupName string, serviceName string, propID string, parameters PropertyUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PropertyClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: propID, - Constraints: []validation.Constraint{{Target: "propID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "propID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.PropertyClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, propID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.PropertyClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client PropertyClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string, parameters PropertyUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "propId": autorest.Encode("path", propID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client PropertyClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client PropertyClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go deleted file mode 100644 index 3ac9d8aa1f04..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go +++ /dev/null @@ -1,237 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// QuotaByCounterKeysClient is the apiManagement Client -type QuotaByCounterKeysClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewQuotaByCounterKeysClient creates an instance of the QuotaByCounterKeysClient client. -func NewQuotaByCounterKeysClient(subscriptionID string) QuotaByCounterKeysClient { - return NewQuotaByCounterKeysClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewQuotaByCounterKeysClientWithBaseURI creates an instance of the QuotaByCounterKeysClient client. -func NewQuotaByCounterKeysClientWithBaseURI(baseURI string, subscriptionID string) QuotaByCounterKeysClient { - return QuotaByCounterKeysClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of current quota counter periods associated with the counter-key configured in the -// policy on the specified service instance. The api does not support paging yet. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// quotaCounterKey - quota counter key identifier.This is the result of expression defined in counter-key -// attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in the policy, then it’s -// accessible by "boo" counter key. But if it’s defined as counter-key="@("b"+"a")" then it will be accessible -// by "ba" key -func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string) (result QuotaCounterCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/QuotaByCounterKeysClient.ListByService") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.QuotaByCounterKeysClient", "ListByService", err.Error()) - } - - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, quotaCounterKey) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure sending request") - return - } - - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client QuotaByCounterKeysClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "quotaCounterKey": autorest.Encode("path", quotaCounterKey), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client QuotaByCounterKeysClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client QuotaByCounterKeysClient) ListByServiceResponder(resp *http.Response) (result QuotaCounterCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates all the quota counter values specified with the existing quota counter key to a value in the -// specified service instance. This should be used for reset of the quota counter values. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// quotaCounterKey - quota counter key identifier.This is the result of expression defined in counter-key -// attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in the policy, then it’s -// accessible by "boo" counter key. But if it’s defined as counter-key="@("b"+"a")" then it will be accessible -// by "ba" key -// parameters - the value of the quota counter to be applied to all quota counter periods. -func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, parameters QuotaCounterValueContractProperties) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/QuotaByCounterKeysClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.QuotaByCounterKeysClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, quotaCounterKey, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByCounterKeysClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client QuotaByCounterKeysClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, parameters QuotaCounterValueContractProperties) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "quotaCounterKey": autorest.Encode("path", quotaCounterKey), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client QuotaByCounterKeysClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client QuotaByCounterKeysClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go deleted file mode 100644 index 6b1d50fbe182..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go +++ /dev/null @@ -1,240 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// QuotaByPeriodKeysClient is the apiManagement Client -type QuotaByPeriodKeysClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewQuotaByPeriodKeysClient creates an instance of the QuotaByPeriodKeysClient client. -func NewQuotaByPeriodKeysClient(subscriptionID string) QuotaByPeriodKeysClient { - return NewQuotaByPeriodKeysClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewQuotaByPeriodKeysClientWithBaseURI creates an instance of the QuotaByPeriodKeysClient client. -func NewQuotaByPeriodKeysClientWithBaseURI(baseURI string, subscriptionID string) QuotaByPeriodKeysClient { - return QuotaByPeriodKeysClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the value of the quota counter associated with the counter-key in the policy for the specific period in -// service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// quotaCounterKey - quota counter key identifier.This is the result of expression defined in counter-key -// attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in the policy, then it’s -// accessible by "boo" counter key. But if it’s defined as counter-key="@("b"+"a")" then it will be accessible -// by "ba" key -// quotaPeriodKey - quota period key identifier. -func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, quotaPeriodKey string) (result QuotaCounterContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/QuotaByPeriodKeysClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.QuotaByPeriodKeysClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, quotaCounterKey, quotaPeriodKey) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client QuotaByPeriodKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, quotaPeriodKey string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "quotaCounterKey": autorest.Encode("path", quotaCounterKey), - "quotaPeriodKey": autorest.Encode("path", quotaPeriodKey), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client QuotaByPeriodKeysClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client QuotaByPeriodKeysClient) GetResponder(resp *http.Response) (result QuotaCounterContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates an existing quota counter value in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// quotaCounterKey - quota counter key identifier.This is the result of expression defined in counter-key -// attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in the policy, then it’s -// accessible by "boo" counter key. But if it’s defined as counter-key="@("b"+"a")" then it will be accessible -// by "ba" key -// quotaPeriodKey - quota period key identifier. -// parameters - the value of the Quota counter to be applied on the specified period. -func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, quotaPeriodKey string, parameters QuotaCounterValueContractProperties) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/QuotaByPeriodKeysClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.QuotaByPeriodKeysClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, quotaCounterKey, quotaPeriodKey, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.QuotaByPeriodKeysClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client QuotaByPeriodKeysClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, quotaPeriodKey string, parameters QuotaCounterValueContractProperties) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "quotaCounterKey": autorest.Encode("path", quotaCounterKey), - "quotaPeriodKey": autorest.Encode("path", quotaPeriodKey), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client QuotaByPeriodKeysClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client QuotaByPeriodKeysClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/regions.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/regions.go deleted file mode 100644 index 0111878b10d0..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/regions.go +++ /dev/null @@ -1,173 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegionsClient is the apiManagement Client -type RegionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewRegionsClient creates an instance of the RegionsClient client. -func NewRegionsClient(subscriptionID string) RegionsClient { - return NewRegionsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewRegionsClientWithBaseURI creates an instance of the RegionsClient client. -func NewRegionsClientWithBaseURI(baseURI string, subscriptionID string) RegionsClient { - return RegionsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists all azure regions in which the service exists. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client RegionsClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string) (result RegionListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RegionsClient.ListByService") - defer func() { - sc := -1 - if result.rlr.Response.Response != nil { - sc = result.rlr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.RegionsClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.rlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "ListByService", resp, "Failure sending request") - return - } - - result.rlr, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client RegionsClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/regions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client RegionsClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client RegionsClient) ListByServiceResponder(resp *http.Response) (result RegionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client RegionsClient) listByServiceNextResults(ctx context.Context, lastResults RegionListResult) (result RegionListResult, err error) { - req, err := lastResults.regionListResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.RegionsClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client RegionsClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string) (result RegionListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/RegionsClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/reports.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/reports.go deleted file mode 100644 index c53fc3a411de..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/reports.go +++ /dev/null @@ -1,1168 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ReportsClient is the apiManagement Client -type ReportsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewReportsClient creates an instance of the ReportsClient client. -func NewReportsClient(subscriptionID string) ReportsClient { - return NewReportsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewReportsClientWithBaseURI creates an instance of the ReportsClient client. -func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient { - return ReportsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPI lists report records by API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByAPI") - defer func() { - sc := -1 - if result.rc.Response.Response != nil { - sc = result.rc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListByAPI", err.Error()) - } - - result.fn = client.listByAPINextResults - req, err := client.ListByAPIPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.ListByAPISender(req) - if err != nil { - result.rc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure sending request") - return - } - - result.rc, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIPreparer prepares the ListByAPI request. -func (client ReportsClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "$filter": autorest.Encode("query", filter), - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPISender sends the ListByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIResponder handles the response to the ListByAPI request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListByAPIResponder(resp *http.Response) (result ReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByAPINextResults retrieves the next set of results, if any. -func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResults ReportCollection) (result ReportCollection, err error) { - req, err := lastResults.reportCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure sending next results request") - } - result, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByAPINextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. -func (client ReportsClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByAPI") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByAPI(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByGeo lists report records by GeoGraphy. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByGeo") - defer func() { - sc := -1 - if result.rc.Response.Response != nil { - sc = result.rc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListByGeo", err.Error()) - } - - result.fn = client.listByGeoNextResults - req, err := client.ListByGeoPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", nil, "Failure preparing request") - return - } - - resp, err := client.ListByGeoSender(req) - if err != nil { - result.rc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure sending request") - return - } - - result.rc, err = client.ListByGeoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByGeo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByGeoPreparer prepares the ListByGeo request. -func (client ReportsClient) ListByGeoPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByGeoSender sends the ListByGeo request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListByGeoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByGeoResponder handles the response to the ListByGeo request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListByGeoResponder(resp *http.Response) (result ReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByGeoNextResults retrieves the next set of results, if any. -func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResults ReportCollection) (result ReportCollection, err error) { - req, err := lastResults.reportCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByGeoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByGeoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByGeoNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByGeoComplete enumerates all values, automatically crossing page boundaries as required. -func (client ReportsClient) ListByGeoComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByGeo") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByGeo(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperation lists report records by API Operations. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByOperation") - defer func() { - sc := -1 - if result.rc.Response.Response != nil { - sc = result.rc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListByOperation", err.Error()) - } - - result.fn = client.listByOperationNextResults - req, err := client.ListByOperationPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", nil, "Failure preparing request") - return - } - - resp, err := client.ListByOperationSender(req) - if err != nil { - result.rc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure sending request") - return - } - - result.rc, err = client.ListByOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationPreparer prepares the ListByOperation request. -func (client ReportsClient) ListByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "$filter": autorest.Encode("query", filter), - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationSender sends the ListByOperation request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListByOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationResponder handles the response to the ListByOperation request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListByOperationResponder(resp *http.Response) (result ReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByOperationNextResults retrieves the next set of results, if any. -func (client ReportsClient) listByOperationNextResults(ctx context.Context, lastResults ReportCollection) (result ReportCollection, err error) { - req, err := lastResults.reportCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByOperationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByOperationNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationComplete enumerates all values, automatically crossing page boundaries as required. -func (client ReportsClient) ListByOperationComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByOperation") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByOperation(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProduct lists report records by Product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByProduct") - defer func() { - sc := -1 - if result.rc.Response.Response != nil { - sc = result.rc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListByProduct", err.Error()) - } - - result.fn = client.listByProductNextResults - req, err := client.ListByProductPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", nil, "Failure preparing request") - return - } - - resp, err := client.ListByProductSender(req) - if err != nil { - result.rc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure sending request") - return - } - - result.rc, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductPreparer prepares the ListByProduct request. -func (client ReportsClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "$filter": autorest.Encode("query", filter), - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductSender sends the ListByProduct request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListByProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductResponder handles the response to the ListByProduct request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListByProductResponder(resp *http.Response) (result ReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByProductNextResults retrieves the next set of results, if any. -func (client ReportsClient) listByProductNextResults(ctx context.Context, lastResults ReportCollection) (result ReportCollection, err error) { - req, err := lastResults.reportCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByProductSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByProductNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductComplete enumerates all values, automatically crossing page boundaries as required. -func (client ReportsClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByProduct") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByProduct(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByRequest lists report records by Request. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result RequestReportCollection, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByRequest") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListByRequest", err.Error()) - } - - req, err := client.ListByRequestPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", nil, "Failure preparing request") - return - } - - resp, err := client.ListByRequestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure sending request") - return - } - - result, err = client.ListByRequestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByRequest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByRequestPreparer prepares the ListByRequest request. -func (client ReportsClient) ListByRequestPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "$filter": autorest.Encode("query", filter), - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByRequestSender sends the ListByRequest request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListByRequestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByRequestResponder handles the response to the ListByRequest request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListByRequestResponder(resp *http.Response) (result RequestReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListBySubscription lists report records by subscription. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListBySubscription") - defer func() { - sc := -1 - if result.rc.Response.Response != nil { - sc = result.rc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListBySubscription", err.Error()) - } - - result.fn = client.listBySubscriptionNextResults - req, err := client.ListBySubscriptionPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", nil, "Failure preparing request") - return - } - - resp, err := client.ListBySubscriptionSender(req) - if err != nil { - result.rc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure sending request") - return - } - - result.rc, err = client.ListBySubscriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListBySubscription", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListBySubscriptionPreparer prepares the ListBySubscription request. -func (client ReportsClient) ListBySubscriptionPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListBySubscriptionSender sends the ListBySubscription request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListBySubscriptionResponder(resp *http.Response) (result ReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listBySubscriptionNextResults retrieves the next set of results, if any. -func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, lastResults ReportCollection) (result ReportCollection, err error) { - req, err := lastResults.reportCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListBySubscriptionSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") - } - result, err = client.ListBySubscriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. -func (client ReportsClient) ListBySubscriptionComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListBySubscription") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListBySubscription(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTime lists report records by Time. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// interval - by time interval. Interval must be multiple of 15 minutes and may not be zero. The value should -// be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to convert -// TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, secconds)) -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName string, serviceName string, interval string, filter string, top *int32, skip *int32) (result ReportCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByTime") - defer func() { - sc := -1 - if result.rc.Response.Response != nil { - sc = result.rc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListByTime", err.Error()) - } - - result.fn = client.listByTimeNextResults - req, err := client.ListByTimePreparer(ctx, resourceGroupName, serviceName, interval, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", nil, "Failure preparing request") - return - } - - resp, err := client.ListByTimeSender(req) - if err != nil { - result.rc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure sending request") - return - } - - result.rc, err = client.ListByTimeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByTime", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTimePreparer prepares the ListByTime request. -func (client ReportsClient) ListByTimePreparer(ctx context.Context, resourceGroupName string, serviceName string, interval string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "interval": autorest.Encode("query", interval), - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTimeSender sends the ListByTime request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListByTimeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTimeResponder handles the response to the ListByTime request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListByTimeResponder(resp *http.Response) (result ReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByTimeNextResults retrieves the next set of results, if any. -func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResults ReportCollection) (result ReportCollection, err error) { - req, err := lastResults.reportCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByTimeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByTimeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByTimeNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByTimeComplete enumerates all values, automatically crossing page boundaries as required. -func (client ReportsClient) ListByTimeComplete(ctx context.Context, resourceGroupName string, serviceName string, interval string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByTime") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByTime(ctx, resourceGroupName, serviceName, interval, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByUser lists report records by User. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - the filter to apply on the operation. -// top - number of records to return. -// skip - number of records to skip. -func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByUser") - defer func() { - sc := -1 - if result.rc.Response.Response != nil { - sc = result.rc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.ReportsClient", "ListByUser", err.Error()) - } - - result.fn = client.listByUserNextResults - req, err := client.ListByUserPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", nil, "Failure preparing request") - return - } - - resp, err := client.ListByUserSender(req) - if err != nil { - result.rc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure sending request") - return - } - - result.rc, err = client.ListByUserResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "ListByUser", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByUserPreparer prepares the ListByUser request. -func (client ReportsClient) ListByUserPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "$filter": autorest.Encode("query", filter), - "api-version": APIVersion, - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByUserSender sends the ListByUser request. The method will close the -// http.Response Body if it receives an error. -func (client ReportsClient) ListByUserSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByUserResponder handles the response to the ListByUser request. The method always -// closes the http.Response Body. -func (client ReportsClient) ListByUserResponder(resp *http.Response) (result ReportCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByUserNextResults retrieves the next set of results, if any. -func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResults ReportCollection) (result ReportCollection, err error) { - req, err := lastResults.reportCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByUserSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByUserResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ReportsClient", "listByUserNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByUserComplete enumerates all values, automatically crossing page boundaries as required. -func (client ReportsClient) ListByUserComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ReportsClient.ListByUser") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByUser(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/service.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/service.go deleted file mode 100644 index 5154032331f0..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/service.go +++ /dev/null @@ -1,1310 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ServiceClient is the apiManagement Client -type ServiceClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewServiceClient creates an instance of the ServiceClient client. -func NewServiceClient(subscriptionID string) ServiceClient { - return NewServiceClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewServiceClientWithBaseURI creates an instance of the ServiceClient client. -func NewServiceClientWithBaseURI(baseURI string, subscriptionID string) ServiceClient { - return ServiceClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ApplyNetworkConfigurationUpdates updates the Microsoft.ApiManagement resource running in the Virtual network to pick -// the updated network settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to the Apply Network Configuration operation. If the parameters are empty, -// all the regions in which the Api Management service is deployed will be updated sequentially without -// incurring downtime in the region. -func (client ServiceClient) ApplyNetworkConfigurationUpdates(ctx context.Context, resourceGroupName string, serviceName string, parameters *ServiceApplyNetworkConfigurationParameters) (result ServiceApplyNetworkConfigurationUpdatesFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.ApplyNetworkConfigurationUpdates") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "ApplyNetworkConfigurationUpdates", err.Error()) - } - - req, err := client.ApplyNetworkConfigurationUpdatesPreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ApplyNetworkConfigurationUpdates", nil, "Failure preparing request") - return - } - - result, err = client.ApplyNetworkConfigurationUpdatesSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ApplyNetworkConfigurationUpdates", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ApplyNetworkConfigurationUpdatesPreparer prepares the ApplyNetworkConfigurationUpdates request. -func (client ServiceClient) ApplyNetworkConfigurationUpdatesPreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters *ServiceApplyNetworkConfigurationParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if parameters != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(parameters)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ApplyNetworkConfigurationUpdatesSender sends the ApplyNetworkConfigurationUpdates request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) ApplyNetworkConfigurationUpdatesSender(req *http.Request) (future ServiceApplyNetworkConfigurationUpdatesFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ApplyNetworkConfigurationUpdatesResponder handles the response to the ApplyNetworkConfigurationUpdates request. The method always -// closes the http.Response Body. -func (client ServiceClient) ApplyNetworkConfigurationUpdatesResponder(resp *http.Response) (result ServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Backup creates a backup of the API Management service to the given Azure Storage Account. This is long running -// operation and could take several minutes to complete. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to the ApiManagementService_Backup operation. -func (client ServiceClient) Backup(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceBackupRestoreParameters) (result ServiceBackupFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.Backup") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.StorageAccount", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.AccessKey", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.ContainerName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.BackupName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "Backup", err.Error()) - } - - req, err := client.BackupPreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Backup", nil, "Failure preparing request") - return - } - - result, err = client.BackupSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Backup", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackupPreparer prepares the Backup request. -func (client ServiceClient) BackupPreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceBackupRestoreParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackupSender sends the Backup request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) BackupSender(req *http.Request) (future ServiceBackupFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// BackupResponder handles the response to the Backup request. The method always -// closes the http.Response Body. -func (client ServiceClient) BackupResponder(resp *http.Response) (result ServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckNameAvailability checks availability and correctness of a name for an API Management service. -// Parameters: -// parameters - parameters supplied to the CheckNameAvailability operation. -func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameters ServiceCheckNameAvailabilityParameters) (result ServiceNameAvailabilityResult, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.CheckNameAvailability") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "CheckNameAvailability", err.Error()) - } - - req, err := client.CheckNameAvailabilityPreparer(ctx, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", nil, "Failure preparing request") - return - } - - resp, err := client.CheckNameAvailabilitySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure sending request") - return - } - - result, err = client.CheckNameAvailabilityResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CheckNameAvailability", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. -func (client ServiceClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters ServiceCheckNameAvailabilityParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always -// closes the http.Response Body. -func (client ServiceClient) CheckNameAvailabilityResponder(resp *http.Response) (result ServiceNameAvailabilityResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates an API Management service. This is long running operation and could take several -// minutes to complete. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to the CreateOrUpdate API Management service operation. -func (client ServiceClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceResource) (result ServiceCreateOrUpdateFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ServiceProperties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ServiceProperties.PublisherEmail", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ServiceProperties.PublisherEmail", Name: validation.MaxLength, Rule: 100, Chain: nil}}}, - {Target: "parameters.ServiceProperties.PublisherName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ServiceProperties.PublisherName", Name: validation.MaxLength, Rule: 100, Chain: nil}}}, - }}, - {Target: "parameters.Sku", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Identity", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Identity.Type", Name: validation.Null, Rule: true, Chain: nil}}}, - {Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "CreateOrUpdate", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ServiceClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceResource) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) CreateOrUpdateSender(req *http.Request) (future ServiceCreateOrUpdateFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ServiceClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes an existing API Management service. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client ServiceClient) Delete(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client ServiceClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ServiceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets an API Management service resource description. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, serviceName string) (result ServiceResource, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client ServiceClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServiceClient) GetResponder(resp *http.Response) (result ServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSsoToken gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName string, serviceName string) (result ServiceGetSsoTokenResult, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.GetSsoToken") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "GetSsoToken", err.Error()) - } - - req, err := client.GetSsoTokenPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", nil, "Failure preparing request") - return - } - - resp, err := client.GetSsoTokenSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure sending request") - return - } - - result, err = client.GetSsoTokenResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "GetSsoToken", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSsoTokenPreparer prepares the GetSsoToken request. -func (client ServiceClient) GetSsoTokenPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSsoTokenSender sends the GetSsoToken request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) GetSsoTokenSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSsoTokenResponder handles the response to the GetSsoToken request. The method always -// closes the http.Response Body. -func (client ServiceClient) GetSsoTokenResponder(resp *http.Response) (result ServiceGetSsoTokenResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists all API Management services within an Azure subscription. -func (client ServiceClient) List(ctx context.Context) (result ServiceListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.List") - defer func() { - sc := -1 - if result.slr.Response.Response != nil { - sc = result.slr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.slr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure sending request") - return - } - - result.slr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client ServiceClient) ListPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ServiceClient) ListResponder(resp *http.Response) (result ServiceListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client ServiceClient) listNextResults(ctx context.Context, lastResults ServiceListResult) (result ServiceListResult, err error) { - req, err := lastResults.serviceListResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client ServiceClient) ListComplete(ctx context.Context) (result ServiceListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByResourceGroup list all API Management services within a resource group. -// Parameters: -// resourceGroupName - the name of the resource group. -func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServiceListResultPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.ListByResourceGroup") - defer func() { - sc := -1 - if result.slr.Response.Response != nil { - sc = result.slr.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.slr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.slr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client ServiceClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client ServiceClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, lastResults ServiceListResult) (result ServiceListResult, err error) { - req, err := lastResults.serviceListResultPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client ServiceClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServiceListResultIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.ListByResourceGroup") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Restore restores a backup of an API Management service created using the ApiManagementService_Backup operation on -// the current service. This is a long running operation and could take several minutes to complete. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to the Restore API Management service from backup operation. -func (client ServiceClient) Restore(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceBackupRestoreParameters) (result ServiceRestoreFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.Restore") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.StorageAccount", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.AccessKey", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.ContainerName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.BackupName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "Restore", err.Error()) - } - - req, err := client.RestorePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Restore", nil, "Failure preparing request") - return - } - - result, err = client.RestoreSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Restore", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RestorePreparer prepares the Restore request. -func (client ServiceClient) RestorePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceBackupRestoreParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RestoreSender sends the Restore request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) RestoreSender(req *http.Request) (future ServiceRestoreFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RestoreResponder handles the response to the Restore request. The method always -// closes the http.Response Body. -func (client ServiceClient) RestoreResponder(resp *http.Response) (result ServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates an existing API Management service. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to the CreateOrUpdate API Management service operation. -func (client ServiceClient) Update(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUpdateParameters) (result ServiceUpdateFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.Update") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Update", nil, "Failure preparing request") - return - } - - result, err = client.UpdateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "Update", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client ServiceClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUpdateParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) UpdateSender(req *http.Request) (future ServiceUpdateFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client ServiceClient) UpdateResponder(resp *http.Response) (result ServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateHostname creates, updates, or deletes the custom hostnames for an API Management service. The custom hostname -// can be applied to the Proxy and Portal endpoint. This is a long running operation and could take several minutes to -// complete. This operation will be deprecated in the next version update. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to the UpdateHostname operation. -func (client ServiceClient) UpdateHostname(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUpdateHostnameParameters) (result ServiceUpdateHostnameFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.UpdateHostname") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "UpdateHostname", err.Error()) - } - - req, err := client.UpdateHostnamePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UpdateHostname", nil, "Failure preparing request") - return - } - - result, err = client.UpdateHostnameSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UpdateHostname", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateHostnamePreparer prepares the UpdateHostname request. -func (client ServiceClient) UpdateHostnamePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUpdateHostnameParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/updatehostname", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateHostnameSender sends the UpdateHostname request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) UpdateHostnameSender(req *http.Request) (future ServiceUpdateHostnameFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateHostnameResponder handles the response to the UpdateHostname request. The method always -// closes the http.Response Body. -func (client ServiceClient) UpdateHostnameResponder(resp *http.Response) (result ServiceResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UploadCertificate upload Custom Domain SSL certificate for an API Management service. This operation will be -// deprecated in future releases. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to the Upload SSL certificate for an API Management service operation. -func (client ServiceClient) UploadCertificate(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUploadCertificateParameters) (result CertificateInformation, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ServiceClient.UploadCertificate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Certificate", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.CertificatePassword", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.ServiceClient", "UploadCertificate", err.Error()) - } - - req, err := client.UploadCertificatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UploadCertificate", nil, "Failure preparing request") - return - } - - resp, err := client.UploadCertificateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UploadCertificate", resp, "Failure sending request") - return - } - - result, err = client.UploadCertificateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.ServiceClient", "UploadCertificate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UploadCertificatePreparer prepares the UploadCertificate request. -func (client ServiceClient) UploadCertificatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUploadCertificateParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/updatecertificate", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UploadCertificateSender sends the UploadCertificate request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceClient) UploadCertificateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UploadCertificateResponder handles the response to the UploadCertificate request. The method always -// closes the http.Response Body. -func (client ServiceClient) UploadCertificateResponder(resp *http.Response) (result CertificateInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go deleted file mode 100644 index e9f822d04365..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go +++ /dev/null @@ -1,408 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SignInSettingsClient is the apiManagement Client -type SignInSettingsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewSignInSettingsClient creates an instance of the SignInSettingsClient client. -func NewSignInSettingsClient(subscriptionID string) SignInSettingsClient { - return NewSignInSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewSignInSettingsClientWithBaseURI creates an instance of the SignInSettingsClient client. -func NewSignInSettingsClientWithBaseURI(baseURI string, subscriptionID string) SignInSettingsClient { - return SignInSettingsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate create or Update Sign-In settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - create or update parameters. -func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSigninSettings) (result PortalSigninSettings, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignInSettingsClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignInSettingsClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client SignInSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSigninSettings) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client SignInSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client SignInSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result PortalSigninSettings, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get Sign-In settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string) (result PortalSigninSettings, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignInSettingsClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignInSettingsClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client SignInSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/portalsettings/signin", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client SignInSettingsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client SignInSettingsClient) GetResponder(resp *http.Response) (result PortalSigninSettings, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the SignInSettings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client SignInSettingsClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignInSettingsClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignInSettingsClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client SignInSettingsClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client SignInSettingsClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client SignInSettingsClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update update Sign-In settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - update Sign-In settings. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSigninSettings, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignInSettingsClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignInSettingsClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignInSettingsClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client SignInSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSigninSettings, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client SignInSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client SignInSettingsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go deleted file mode 100644 index 298b587da278..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go +++ /dev/null @@ -1,408 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SignUpSettingsClient is the apiManagement Client -type SignUpSettingsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewSignUpSettingsClient creates an instance of the SignUpSettingsClient client. -func NewSignUpSettingsClient(subscriptionID string) SignUpSettingsClient { - return NewSignUpSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewSignUpSettingsClientWithBaseURI creates an instance of the SignUpSettingsClient client. -func NewSignUpSettingsClientWithBaseURI(baseURI string, subscriptionID string) SignUpSettingsClient { - return SignUpSettingsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate create or Update Sign-Up settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - create or update parameters. -func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSignupSettings) (result PortalSignupSettings, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignUpSettingsClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignUpSettingsClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client SignUpSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSignupSettings) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client SignUpSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client SignUpSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result PortalSignupSettings, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get Sign-Up settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName string, serviceName string) (result PortalSignupSettings, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignUpSettingsClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignUpSettingsClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client SignUpSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/portalsettings/signup", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client SignUpSettingsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client SignUpSettingsClient) GetResponder(resp *http.Response) (result PortalSignupSettings, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the SignUpSettings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client SignUpSettingsClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignUpSettingsClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignUpSettingsClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client SignUpSettingsClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client SignUpSettingsClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client SignUpSettingsClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update update Sign-Up settings. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - update Sign-Up settings. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSignupSettings, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SignUpSettingsClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SignUpSettingsClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client SignUpSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSignupSettings, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client SignUpSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client SignUpSettingsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go deleted file mode 100644 index ed4869340d50..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go +++ /dev/null @@ -1,904 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SubscriptionClient is the apiManagement Client -type SubscriptionClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewSubscriptionClient creates an instance of the SubscriptionClient client. -func NewSubscriptionClient(subscriptionID string) SubscriptionClient { - return NewSubscriptionClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewSubscriptionClientWithBaseURI creates an instance of the SubscriptionClient client. -func NewSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionClient { - return SubscriptionClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or updates the subscription of specified user to the specified product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// sid - subscription entity Identifier. The entity represents the association between a user and a product in -// API Management. -// parameters - create parameters. -// notify - notify change in Subscription State. -// - If false, do not send any email notification for change of state of subscription -// - If true, send email notification of change of state of subscription -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, sid string, parameters SubscriptionCreateParameters, notify *bool, ifMatch string) (result SubscriptionContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: sid, - Constraints: []validation.Constraint{{Target: "sid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "sid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.SubscriptionCreateParameterProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SubscriptionCreateParameterProperties.UserID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.SubscriptionCreateParameterProperties.ProductID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.SubscriptionCreateParameterProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.SubscriptionCreateParameterProperties.DisplayName", Name: validation.MaxLength, Rule: 100, Chain: nil}, - {Target: "parameters.SubscriptionCreateParameterProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - {Target: "parameters.SubscriptionCreateParameterProperties.PrimaryKey", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SubscriptionCreateParameterProperties.PrimaryKey", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "parameters.SubscriptionCreateParameterProperties.PrimaryKey", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - {Target: "parameters.SubscriptionCreateParameterProperties.SecondaryKey", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SubscriptionCreateParameterProperties.SecondaryKey", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "parameters.SubscriptionCreateParameterProperties.SecondaryKey", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, sid, parameters, notify, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client SubscriptionClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string, parameters SubscriptionCreateParameters, notify *bool, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "sid": autorest.Encode("path", sid), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if notify != nil { - queryParameters["notify"] = autorest.Encode("query", *notify) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) CreateOrUpdateResponder(resp *http.Response) (result SubscriptionContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes the specified subscription. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// sid - subscription entity Identifier. The entity represents the association between a user and a product in -// API Management. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, sid string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: sid, - Constraints: []validation.Constraint{{Target: "sid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "sid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, sid, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client SubscriptionClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "sid": autorest.Encode("path", sid), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the specified Subscription entity. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// sid - subscription entity Identifier. The entity represents the association between a user and a product in -// API Management. -func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName string, serviceName string, sid string) (result SubscriptionContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: sid, - Constraints: []validation.Constraint{{Target: "sid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "sid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, sid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client SubscriptionClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "sid": autorest.Encode("path", sid), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/subscriptions/{sid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) GetResponder(resp *http.Response) (result SubscriptionContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// sid - subscription entity Identifier. The entity represents the association between a user and a product in -// API Management. -func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, sid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: sid, - Constraints: []validation.Constraint{{Target: "sid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "sid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, sid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client SubscriptionClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "sid": autorest.Encode("path", sid), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists all subscriptions of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |--------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | eq | | -// top - number of records to return. -// skip - number of records to skip. -func (client SubscriptionClient) List(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result SubscriptionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.List") - defer func() { - sc := -1 - if result.sc.Response.Response != nil { - sc = result.sc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.sc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure sending request") - return - } - - result.sc, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client SubscriptionClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) ListResponder(resp *http.Response) (result SubscriptionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client SubscriptionClient) listNextResults(ctx context.Context, lastResults SubscriptionCollection) (result SubscriptionCollection, err error) { - req, err := lastResults.subscriptionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client SubscriptionClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result SubscriptionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKey regenerates primary key of existing subscription of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// sid - subscription entity Identifier. The entity represents the association between a user and a product in -// API Management. -func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resourceGroupName string, serviceName string, sid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.RegeneratePrimaryKey") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: sid, - Constraints: []validation.Constraint{{Target: "sid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "sid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "RegeneratePrimaryKey", err.Error()) - } - - req, err := client.RegeneratePrimaryKeyPreparer(ctx, resourceGroupName, serviceName, sid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", nil, "Failure preparing request") - return - } - - resp, err := client.RegeneratePrimaryKeySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure sending request") - return - } - - result, err = client.RegeneratePrimaryKeyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegeneratePrimaryKey", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeyPreparer prepares the RegeneratePrimaryKey request. -func (client SubscriptionClient) RegeneratePrimaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "sid": autorest.Encode("path", sid), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeySender sends the RegeneratePrimaryKey request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) RegeneratePrimaryKeySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeyResponder handles the response to the RegeneratePrimaryKey request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) RegeneratePrimaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKey regenerates secondary key of existing subscription of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// sid - subscription entity Identifier. The entity represents the association between a user and a product in -// API Management. -func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, resourceGroupName string, serviceName string, sid string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.RegenerateSecondaryKey") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: sid, - Constraints: []validation.Constraint{{Target: "sid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "sid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "RegenerateSecondaryKey", err.Error()) - } - - req, err := client.RegenerateSecondaryKeyPreparer(ctx, resourceGroupName, serviceName, sid) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", nil, "Failure preparing request") - return - } - - resp, err := client.RegenerateSecondaryKeySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure sending request") - return - } - - result, err = client.RegenerateSecondaryKeyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "RegenerateSecondaryKey", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeyPreparer prepares the RegenerateSecondaryKey request. -func (client SubscriptionClient) RegenerateSecondaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "sid": autorest.Encode("path", sid), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeySender sends the RegenerateSecondaryKey request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) RegenerateSecondaryKeySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeyResponder handles the response to the RegenerateSecondaryKey request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) RegenerateSecondaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of a subscription specificied by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// sid - subscription entity Identifier. The entity represents the association between a user and a product in -// API Management. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -// notify - notify change in Subscription State. -// - If false, do not send any email notification for change of state of subscription -// - If true, send email notification of change of state of subscription -func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName string, serviceName string, sid string, parameters SubscriptionUpdateParameters, ifMatch string, notify *bool) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/SubscriptionClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: sid, - Constraints: []validation.Constraint{{Target: "sid", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "sid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.SubscriptionClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, sid, parameters, ifMatch, notify) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.SubscriptionClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client SubscriptionClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string, parameters SubscriptionUpdateParameters, ifMatch string, notify *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "sid": autorest.Encode("path", sid), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if notify != nil { - queryParameters["notify"] = autorest.Encode("query", *notify) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client SubscriptionClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client SubscriptionClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tag.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tag.go deleted file mode 100644 index c12449b17083..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tag.go +++ /dev/null @@ -1,2428 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagClient is the apiManagement Client -type TagClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTagClient creates an instance of the TagClient client. -func NewTagClient(subscriptionID string) TagClient { - return NewTagClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTagClientWithBaseURI creates an instance of the TagClient client. -func NewTagClientWithBaseURI(baseURI string, subscriptionID string) TagClient { - return TagClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToAPI assign tag to the Api. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.AssignToAPI") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "AssignToAPI", err.Error()) - } - - req, err := client.AssignToAPIPreparer(ctx, resourceGroupName, serviceName, apiid, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", nil, "Failure preparing request") - return - } - - resp, err := client.AssignToAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure sending request") - return - } - - result, err = client.AssignToAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToAPIPreparer prepares the AssignToAPI request. -func (client TagClient) AssignToAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToAPISender sends the AssignToAPI request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) AssignToAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToAPIResponder handles the response to the AssignToAPI request. The method always -// closes the http.Response Body. -func (client TagClient) AssignToAPIResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToOperation assign tag to the Operation. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string, ifMatch string) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.AssignToOperation") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "AssignToOperation", err.Error()) - } - - req, err := client.AssignToOperationPreparer(ctx, resourceGroupName, serviceName, apiid, operationID, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", nil, "Failure preparing request") - return - } - - resp, err := client.AssignToOperationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure sending request") - return - } - - result, err = client.AssignToOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToOperationPreparer prepares the AssignToOperation request. -func (client TagClient) AssignToOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToOperationSender sends the AssignToOperation request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) AssignToOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToOperationResponder handles the response to the AssignToOperation request. The method always -// closes the http.Response Body. -func (client TagClient) AssignToOperationResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToProduct assign tag to the Product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string, ifMatch string) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.AssignToProduct") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "AssignToProduct", err.Error()) - } - - req, err := client.AssignToProductPreparer(ctx, resourceGroupName, serviceName, productID, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", nil, "Failure preparing request") - return - } - - resp, err := client.AssignToProductSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure sending request") - return - } - - result, err = client.AssignToProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "AssignToProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToProductPreparer prepares the AssignToProduct request. -func (client TagClient) AssignToProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToProductSender sends the AssignToProduct request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) AssignToProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// AssignToProductResponder handles the response to the AssignToProduct request. The method always -// closes the http.Response Body. -func (client TagClient) AssignToProductResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates a tag. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// parameters - create parameters. -func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, tagID string, parameters TagCreateUpdateParameters) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.TagContractProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.TagContractProperties.DisplayName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.TagContractProperties.DisplayName", Name: validation.MaxLength, Rule: 160, Chain: nil}, - {Target: "parameters.TagContractProperties.DisplayName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, tagID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client TagClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string, parameters TagCreateUpdateParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client TagClient) CreateOrUpdateResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific tag of the API Management service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client TagClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, tagID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client TagClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client TagClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromAPI detach the tag from the Api. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.DetachFromAPI") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "DetachFromAPI", err.Error()) - } - - req, err := client.DetachFromAPIPreparer(ctx, resourceGroupName, serviceName, apiid, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", nil, "Failure preparing request") - return - } - - resp, err := client.DetachFromAPISender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure sending request") - return - } - - result, err = client.DetachFromAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromAPIPreparer prepares the DetachFromAPI request. -func (client TagClient) DetachFromAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromAPISender sends the DetachFromAPI request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) DetachFromAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromAPIResponder handles the response to the DetachFromAPI request. The method always -// closes the http.Response Body. -func (client TagClient) DetachFromAPIResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromOperation detach the tag from the Operation. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.DetachFromOperation") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "DetachFromOperation", err.Error()) - } - - req, err := client.DetachFromOperationPreparer(ctx, resourceGroupName, serviceName, apiid, operationID, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", nil, "Failure preparing request") - return - } - - resp, err := client.DetachFromOperationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure sending request") - return - } - - result, err = client.DetachFromOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromOperationPreparer prepares the DetachFromOperation request. -func (client TagClient) DetachFromOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromOperationSender sends the DetachFromOperation request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) DetachFromOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromOperationResponder handles the response to the DetachFromOperation request. The method always -// closes the http.Response Body. -func (client TagClient) DetachFromOperationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromProduct detach the tag from the Product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.DetachFromProduct") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "DetachFromProduct", err.Error()) - } - - req, err := client.DetachFromProductPreparer(ctx, resourceGroupName, serviceName, productID, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", nil, "Failure preparing request") - return - } - - resp, err := client.DetachFromProductSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure sending request") - return - } - - result, err = client.DetachFromProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "DetachFromProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromProductPreparer prepares the DetachFromProduct request. -func (client TagClient) DetachFromProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromProductSender sends the DetachFromProduct request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) DetachFromProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DetachFromProductResponder handles the response to the DetachFromProduct request. The method always -// closes the http.Response Body. -func (client TagClient) DetachFromProductResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the tag specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) Get(ctx context.Context, resourceGroupName string, serviceName string, tagID string) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client TagClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client TagClient) GetResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByAPI get tag associated with the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.GetByAPI") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "GetByAPI", err.Error()) - } - - req, err := client.GetByAPIPreparer(ctx, resourceGroupName, serviceName, apiid, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.GetByAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure sending request") - return - } - - result, err = client.GetByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByAPIPreparer prepares the GetByAPI request. -func (client TagClient) GetByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByAPISender sends the GetByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByAPIResponder handles the response to the GetByAPI request. The method always -// closes the http.Response Body. -func (client TagClient) GetByAPIResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByOperation get tag associated with the Operation. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.GetByOperation") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "GetByOperation", err.Error()) - } - - req, err := client.GetByOperationPreparer(ctx, resourceGroupName, serviceName, apiid, operationID, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", nil, "Failure preparing request") - return - } - - resp, err := client.GetByOperationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure sending request") - return - } - - result, err = client.GetByOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByOperationPreparer prepares the GetByOperation request. -func (client TagClient) GetByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByOperationSender sends the GetByOperation request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetByOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByOperationResponder handles the response to the GetByOperation request. The method always -// closes the http.Response Body. -func (client TagClient) GetByOperationResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByProduct get tag associated with the Product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string) (result TagContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.GetByProduct") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "GetByProduct", err.Error()) - } - - req, err := client.GetByProductPreparer(ctx, resourceGroupName, serviceName, productID, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", nil, "Failure preparing request") - return - } - - resp, err := client.GetByProductSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure sending request") - return - } - - result, err = client.GetByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetByProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByProductPreparer prepares the GetByProduct request. -func (client TagClient) GetByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByProductSender sends the GetByProduct request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetByProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetByProductResponder handles the response to the GetByProduct request. The method always -// closes the http.Response Body. -func (client TagClient) GetByProductResponder(resp *http.Response) (result TagContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityState gets the entity state version of the tag specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName string, serviceName string, tagID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.GetEntityState") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "GetEntityState", err.Error()) - } - - req, err := client.GetEntityStatePreparer(ctx, resourceGroupName, serviceName, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityStateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure sending request") - return - } - - result, err = client.GetEntityStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStatePreparer prepares the GetEntityState request. -func (client TagClient) GetEntityStatePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateSender sends the GetEntityState request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetEntityStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateResponder handles the response to the GetEntityState request. The method always -// closes the http.Response Body. -func (client TagClient) GetEntityStateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByAPI gets the entity state version of the tag specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.GetEntityStateByAPI") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "GetEntityStateByAPI", err.Error()) - } - - req, err := client.GetEntityStateByAPIPreparer(ctx, resourceGroupName, serviceName, apiid, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityStateByAPISender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure sending request") - return - } - - result, err = client.GetEntityStateByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByAPIPreparer prepares the GetEntityStateByAPI request. -func (client TagClient) GetEntityStateByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByAPISender sends the GetEntityStateByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetEntityStateByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByAPIResponder handles the response to the GetEntityStateByAPI request. The method always -// closes the http.Response Body. -func (client TagClient) GetEntityStateByAPIResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByOperation gets the entity state version of the tag specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.GetEntityStateByOperation") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "GetEntityStateByOperation", err.Error()) - } - - req, err := client.GetEntityStateByOperationPreparer(ctx, resourceGroupName, serviceName, apiid, operationID, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityStateByOperationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure sending request") - return - } - - result, err = client.GetEntityStateByOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByOperationPreparer prepares the GetEntityStateByOperation request. -func (client TagClient) GetEntityStateByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByOperationSender sends the GetEntityStateByOperation request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetEntityStateByOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByOperationResponder handles the response to the GetEntityStateByOperation request. The method always -// closes the http.Response Body. -func (client TagClient) GetEntityStateByOperationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByProduct gets the entity state version of the tag specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.GetEntityStateByProduct") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "GetEntityStateByProduct", err.Error()) - } - - req, err := client.GetEntityStateByProductPreparer(ctx, resourceGroupName, serviceName, productID, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityStateByProductSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure sending request") - return - } - - result, err = client.GetEntityStateByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "GetEntityStateByProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByProductPreparer prepares the GetEntityStateByProduct request. -func (client TagClient) GetEntityStateByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByProductSender sends the GetEntityStateByProduct request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) GetEntityStateByProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateByProductResponder handles the response to the GetEntityStateByProduct request. The method always -// closes the http.Response Body. -func (client TagClient) GetEntityStateByProductResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPI lists all Tags associated with the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByAPI") - defer func() { - sc := -1 - if result.tc.Response.Response != nil { - sc = result.tc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "ListByAPI", err.Error()) - } - - result.fn = client.listByAPINextResults - req, err := client.ListByAPIPreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.ListByAPISender(req) - if err != nil { - result.tc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure sending request") - return - } - - result.tc, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIPreparer prepares the ListByAPI request. -func (client TagClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPISender sends the ListByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) ListByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIResponder handles the response to the ListByAPI request. The method always -// closes the http.Response Body. -func (client TagClient) ListByAPIResponder(resp *http.Response) (result TagCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByAPINextResults retrieves the next set of results, if any. -func (client TagClient) listByAPINextResults(ctx context.Context, lastResults TagCollection) (result TagCollection, err error) { - req, err := lastResults.tagCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure sending next results request") - } - result, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByAPINextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. -func (client TagClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByAPI") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByAPI(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperation lists all Tags associated with the Operation. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// operationID - operation identifier within an API. Must be unique in the current API Management service -// instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, filter string, top *int32, skip *int32) (result TagCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByOperation") - defer func() { - sc := -1 - if result.tc.Response.Response != nil { - sc = result.tc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: operationID, - Constraints: []validation.Constraint{{Target: "operationID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "operationID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "operationID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "ListByOperation", err.Error()) - } - - result.fn = client.listByOperationNextResults - req, err := client.ListByOperationPreparer(ctx, resourceGroupName, serviceName, apiid, operationID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", nil, "Failure preparing request") - return - } - - resp, err := client.ListByOperationSender(req) - if err != nil { - result.tc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure sending request") - return - } - - result.tc, err = client.ListByOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationPreparer prepares the ListByOperation request. -func (client TagClient) ListByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "operationId": autorest.Encode("path", operationID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationSender sends the ListByOperation request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) ListByOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationResponder handles the response to the ListByOperation request. The method always -// closes the http.Response Body. -func (client TagClient) ListByOperationResponder(resp *http.Response) (result TagCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByOperationNextResults retrieves the next set of results, if any. -func (client TagClient) listByOperationNextResults(ctx context.Context, lastResults TagCollection) (result TagCollection, err error) { - req, err := lastResults.tagCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByOperationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByOperationNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByOperationComplete enumerates all values, automatically crossing page boundaries as required. -func (client TagClient) ListByOperationComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByOperation") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByOperation(ctx, resourceGroupName, serviceName, apiid, operationID, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProduct lists all Tags associated with the Product. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// productID - product identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result TagCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByProduct") - defer func() { - sc := -1 - if result.tc.Response.Response != nil { - sc = result.tc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: productID, - Constraints: []validation.Constraint{{Target: "productID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "productID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "productID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "ListByProduct", err.Error()) - } - - result.fn = client.listByProductNextResults - req, err := client.ListByProductPreparer(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", nil, "Failure preparing request") - return - } - - resp, err := client.ListByProductSender(req) - if err != nil { - result.tc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure sending request") - return - } - - result.tc, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByProduct", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductPreparer prepares the ListByProduct request. -func (client TagClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "productId": autorest.Encode("path", productID), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductSender sends the ListByProduct request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) ListByProductSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductResponder handles the response to the ListByProduct request. The method always -// closes the http.Response Body. -func (client TagClient) ListByProductResponder(resp *http.Response) (result TagCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByProductNextResults retrieves the next set of results, if any. -func (client TagClient) listByProductNextResults(ctx context.Context, lastResults TagCollection) (result TagCollection, err error) { - req, err := lastResults.tagCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByProductSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByProductResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByProductNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByProductComplete enumerates all values, automatically crossing page boundaries as required. -func (client TagClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByProduct") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByProduct(ctx, resourceGroupName, serviceName, productID, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of tags defined within a service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client TagClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByService") - defer func() { - sc := -1 - if result.tc.Response.Response != nil { - sc = result.tc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.tc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure sending request") - return - } - - result.tc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client TagClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client TagClient) ListByServiceResponder(resp *http.Response) (result TagCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client TagClient) listByServiceNextResults(ctx context.Context, lastResults TagCollection) (result TagCollection, err error) { - req, err := lastResults.tagCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client TagClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the tag specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client TagClient) Update(ctx context.Context, resourceGroupName string, serviceName string, tagID string, parameters TagCreateUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, tagID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client TagClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string, parameters TagCreateUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client TagClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client TagClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go deleted file mode 100644 index 0c21745725ce..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go +++ /dev/null @@ -1,624 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagDescriptionClient is the apiManagement Client -type TagDescriptionClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTagDescriptionClient creates an instance of the TagDescriptionClient client. -func NewTagDescriptionClient(subscriptionID string) TagDescriptionClient { - return NewTagDescriptionClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTagDescriptionClientWithBaseURI creates an instance of the TagDescriptionClient client. -func NewTagDescriptionClientWithBaseURI(baseURI string, subscriptionID string) TagDescriptionClient { - return TagDescriptionClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate create/Update tag fescription in scope of the Api. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// parameters - create parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client TagDescriptionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, parameters TagDescriptionCreateParameters, ifMatch string) (result TagDescriptionContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.TagDescriptionBaseProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.TagDescriptionBaseProperties.ExternalDocsURL", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.TagDescriptionBaseProperties.ExternalDocsURL", Name: validation.MaxLength, Rule: 2000, Chain: nil}}}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.TagDescriptionClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, apiid, tagID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client TagDescriptionClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, parameters TagDescriptionCreateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client TagDescriptionClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client TagDescriptionClient) CreateOrUpdateResponder(resp *http.Response) (result TagDescriptionContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete delete tag description for the Api. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client TagDescriptionClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagDescriptionClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, apiid, tagID, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client TagDescriptionClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client TagDescriptionClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client TagDescriptionClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get tag associated with the API. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagDescriptionClient) Get(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (result TagDescriptionContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagDescriptionClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, apiid, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client TagDescriptionClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client TagDescriptionClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client TagDescriptionClient) GetResponder(resp *http.Response) (result TagDescriptionContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityState gets the entity state version of the tag specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// tagID - tag identifier. Must be unique in the current API Management service instance. -func (client TagDescriptionClient) GetEntityState(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionClient.GetEntityState") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: tagID, - Constraints: []validation.Constraint{{Target: "tagID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "tagID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "tagID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TagDescriptionClient", "GetEntityState", err.Error()) - } - - req, err := client.GetEntityStatePreparer(ctx, resourceGroupName, serviceName, apiid, tagID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "GetEntityState", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityStateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "GetEntityState", resp, "Failure sending request") - return - } - - result, err = client.GetEntityStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "GetEntityState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStatePreparer prepares the GetEntityState request. -func (client TagDescriptionClient) GetEntityStatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "tagId": autorest.Encode("path", tagID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateSender sends the GetEntityState request. The method will close the -// http.Response Body if it receives an error. -func (client TagDescriptionClient) GetEntityStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityStateResponder handles the response to the GetEntityState request. The method always -// closes the http.Response Body. -func (client TagDescriptionClient) GetEntityStateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPI lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API -// level but tag may be assigned to the Operations -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// apiid - API revision identifier. Must be unique in the current API Management service instance. Non-current -// revision has ;rev=n as a suffix where n is the revision number. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client TagDescriptionClient) ListByAPI(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagDescriptionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionClient.ListByAPI") - defer func() { - sc := -1 - if result.tdc.Response.Response != nil { - sc = result.tdc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: apiid, - Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 256, Chain: nil}, - {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "apiid", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.TagDescriptionClient", "ListByAPI", err.Error()) - } - - result.fn = client.listByAPINextResults - req, err := client.ListByAPIPreparer(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "ListByAPI", nil, "Failure preparing request") - return - } - - resp, err := client.ListByAPISender(req) - if err != nil { - result.tdc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "ListByAPI", resp, "Failure sending request") - return - } - - result.tdc, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "ListByAPI", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIPreparer prepares the ListByAPI request. -func (client TagDescriptionClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "apiId": autorest.Encode("path", apiid), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPISender sends the ListByAPI request. The method will close the -// http.Response Body if it receives an error. -func (client TagDescriptionClient) ListByAPISender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIResponder handles the response to the ListByAPI request. The method always -// closes the http.Response Body. -func (client TagDescriptionClient) ListByAPIResponder(resp *http.Response) (result TagDescriptionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByAPINextResults retrieves the next set of results, if any. -func (client TagDescriptionClient) listByAPINextResults(ctx context.Context, lastResults TagDescriptionCollection) (result TagDescriptionCollection, err error) { - req, err := lastResults.tagDescriptionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "listByAPINextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByAPISender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "listByAPINextResults", resp, "Failure sending next results request") - } - result, err = client.ListByAPIResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagDescriptionClient", "listByAPINextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. -func (client TagDescriptionClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagDescriptionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagDescriptionClient.ListByAPI") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByAPI(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go deleted file mode 100644 index 5f5b87fe8d88..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go +++ /dev/null @@ -1,205 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TagResourceClient is the apiManagement Client -type TagResourceClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTagResourceClient creates an instance of the TagResourceClient client. -func NewTagResourceClient(subscriptionID string) TagResourceClient { - return NewTagResourceClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTagResourceClientWithBaseURI creates an instance of the TagResourceClient client. -func NewTagResourceClientWithBaseURI(baseURI string, subscriptionID string) TagResourceClient { - return TagResourceClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of resources associated with tags. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | isCurrent | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client TagResourceClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagResourceCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagResourceClient.ListByService") - defer func() { - sc := -1 - if result.trc.Response.Response != nil { - sc = result.trc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.TagResourceClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.trc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure sending request") - return - } - - result.trc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client TagResourceClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client TagResourceClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client TagResourceClient) ListByServiceResponder(resp *http.Response) (result TagResourceCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client TagResourceClient) listByServiceNextResults(ctx context.Context, lastResults TagResourceCollection) (result TagResourceCollection, err error) { - req, err := lastResults.tagResourceCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TagResourceClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client TagResourceClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagResourceCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TagResourceClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go deleted file mode 100644 index 4ead1fe6c45e..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go +++ /dev/null @@ -1,408 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TenantAccessClient is the apiManagement Client -type TenantAccessClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTenantAccessClient creates an instance of the TenantAccessClient client. -func NewTenantAccessClient(subscriptionID string) TenantAccessClient { - return NewTenantAccessClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTenantAccessClientWithBaseURI creates an instance of the TenantAccessClient client. -func NewTenantAccessClientWithBaseURI(baseURI string, subscriptionID string) TenantAccessClient { - return TenantAccessClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get get tenant access information details. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName string, serviceName string) (result AccessInformationContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantAccessClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantAccessClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client TenantAccessClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accessName": autorest.Encode("path", "access"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/tenant/{accessName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client TenantAccessClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client TenantAccessClient) GetResponder(resp *http.Response) (result AccessInformationContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKey regenerate primary access key. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantAccessClient.RegeneratePrimaryKey") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantAccessClient", "RegeneratePrimaryKey", err.Error()) - } - - req, err := client.RegeneratePrimaryKeyPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", nil, "Failure preparing request") - return - } - - resp, err := client.RegeneratePrimaryKeySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure sending request") - return - } - - result, err = client.RegeneratePrimaryKeyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegeneratePrimaryKey", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeyPreparer prepares the RegeneratePrimaryKey request. -func (client TenantAccessClient) RegeneratePrimaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accessName": autorest.Encode("path", "access"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeySender sends the RegeneratePrimaryKey request. The method will close the -// http.Response Body if it receives an error. -func (client TenantAccessClient) RegeneratePrimaryKeySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeyResponder handles the response to the RegeneratePrimaryKey request. The method always -// closes the http.Response Body. -func (client TenantAccessClient) RegeneratePrimaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKey regenerate secondary access key. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantAccessClient.RegenerateSecondaryKey") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantAccessClient", "RegenerateSecondaryKey", err.Error()) - } - - req, err := client.RegenerateSecondaryKeyPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", nil, "Failure preparing request") - return - } - - resp, err := client.RegenerateSecondaryKeySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure sending request") - return - } - - result, err = client.RegenerateSecondaryKeyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "RegenerateSecondaryKey", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeyPreparer prepares the RegenerateSecondaryKey request. -func (client TenantAccessClient) RegenerateSecondaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accessName": autorest.Encode("path", "access"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeySender sends the RegenerateSecondaryKey request. The method will close the -// http.Response Body if it receives an error. -func (client TenantAccessClient) RegenerateSecondaryKeySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeyResponder handles the response to the RegenerateSecondaryKey request. The method always -// closes the http.Response Body. -func (client TenantAccessClient) RegenerateSecondaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update update tenant access information details. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - parameters supplied to retrieve the Tenant Access Information. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName string, serviceName string, parameters AccessInformationUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantAccessClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantAccessClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client TenantAccessClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters AccessInformationUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accessName": autorest.Encode("path", "access"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client TenantAccessClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client TenantAccessClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go deleted file mode 100644 index 39c60d4c0e91..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go +++ /dev/null @@ -1,313 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TenantAccessGitClient is the apiManagement Client -type TenantAccessGitClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTenantAccessGitClient creates an instance of the TenantAccessGitClient client. -func NewTenantAccessGitClient(subscriptionID string) TenantAccessGitClient { - return NewTenantAccessGitClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTenantAccessGitClientWithBaseURI creates an instance of the TenantAccessGitClient client. -func NewTenantAccessGitClientWithBaseURI(baseURI string, subscriptionID string) TenantAccessGitClient { - return TenantAccessGitClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the Git access configuration for the tenant. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName string, serviceName string) (result AccessInformationContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantAccessGitClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantAccessGitClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client TenantAccessGitClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accessName": autorest.Encode("path", "access"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/tenant/{accessName}/git", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client TenantAccessGitClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client TenantAccessGitClient) GetResponder(resp *http.Response) (result AccessInformationContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKey regenerate primary access key for GIT. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantAccessGitClient.RegeneratePrimaryKey") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", err.Error()) - } - - req, err := client.RegeneratePrimaryKeyPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", nil, "Failure preparing request") - return - } - - resp, err := client.RegeneratePrimaryKeySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure sending request") - return - } - - result, err = client.RegeneratePrimaryKeyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegeneratePrimaryKey", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeyPreparer prepares the RegeneratePrimaryKey request. -func (client TenantAccessGitClient) RegeneratePrimaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accessName": autorest.Encode("path", "access"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeySender sends the RegeneratePrimaryKey request. The method will close the -// http.Response Body if it receives an error. -func (client TenantAccessGitClient) RegeneratePrimaryKeySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegeneratePrimaryKeyResponder handles the response to the RegeneratePrimaryKey request. The method always -// closes the http.Response Body. -func (client TenantAccessGitClient) RegeneratePrimaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKey regenerate secondary access key for GIT. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, resourceGroupName string, serviceName string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantAccessGitClient.RegenerateSecondaryKey") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", err.Error()) - } - - req, err := client.RegenerateSecondaryKeyPreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", nil, "Failure preparing request") - return - } - - resp, err := client.RegenerateSecondaryKeySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure sending request") - return - } - - result, err = client.RegenerateSecondaryKeyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantAccessGitClient", "RegenerateSecondaryKey", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeyPreparer prepares the RegenerateSecondaryKey request. -func (client TenantAccessGitClient) RegenerateSecondaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accessName": autorest.Encode("path", "access"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeySender sends the RegenerateSecondaryKey request. The method will close the -// http.Response Body if it receives an error. -func (client TenantAccessGitClient) RegenerateSecondaryKeySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// RegenerateSecondaryKeyResponder handles the response to the RegenerateSecondaryKey request. The method always -// closes the http.Response Body. -func (client TenantAccessGitClient) RegenerateSecondaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go deleted file mode 100644 index 5b69d9fa95f1..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go +++ /dev/null @@ -1,424 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// TenantConfigurationClient is the apiManagement Client -type TenantConfigurationClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTenantConfigurationClient creates an instance of the TenantConfigurationClient client. -func NewTenantConfigurationClient(subscriptionID string) TenantConfigurationClient { - return NewTenantConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewTenantConfigurationClientWithBaseURI creates an instance of the TenantConfigurationClient client. -func NewTenantConfigurationClientWithBaseURI(baseURI string, subscriptionID string) TenantConfigurationClient { - return TenantConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Deploy this operation applies changes from the specified Git branch to the configuration database. This is a long -// running operation and could take several minutes to complete. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - deploy Configuration parameters. -func (client TenantConfigurationClient) Deploy(ctx context.Context, resourceGroupName string, serviceName string, parameters DeployConfigurationParameters) (result TenantConfigurationDeployFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantConfigurationClient.Deploy") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Branch", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantConfigurationClient", "Deploy", err.Error()) - } - - req, err := client.DeployPreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "Deploy", nil, "Failure preparing request") - return - } - - result, err = client.DeploySender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "Deploy", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeployPreparer prepares the Deploy request. -func (client TenantConfigurationClient) DeployPreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters DeployConfigurationParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "configurationName": autorest.Encode("path", "configuration"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeploySender sends the Deploy request. The method will close the -// http.Response Body if it receives an error. -func (client TenantConfigurationClient) DeploySender(req *http.Request) (future TenantConfigurationDeployFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeployResponder handles the response to the Deploy request. The method always -// closes the http.Response Body. -func (client TenantConfigurationClient) DeployResponder(resp *http.Response) (result OperationResultContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSyncState gets the status of the most recent synchronization between the configuration database and the Git -// repository. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resourceGroupName string, serviceName string) (result TenantConfigurationSyncStateContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantConfigurationClient.GetSyncState") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantConfigurationClient", "GetSyncState", err.Error()) - } - - req, err := client.GetSyncStatePreparer(ctx, resourceGroupName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", nil, "Failure preparing request") - return - } - - resp, err := client.GetSyncStateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure sending request") - return - } - - result, err = client.GetSyncStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "GetSyncState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSyncStatePreparer prepares the GetSyncState request. -func (client TenantConfigurationClient) GetSyncStatePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "configurationName": autorest.Encode("path", "configuration"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSyncStateSender sends the GetSyncState request. The method will close the -// http.Response Body if it receives an error. -func (client TenantConfigurationClient) GetSyncStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSyncStateResponder handles the response to the GetSyncState request. The method always -// closes the http.Response Body. -func (client TenantConfigurationClient) GetSyncStateResponder(resp *http.Response) (result TenantConfigurationSyncStateContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Save this operation creates a commit with the current configuration snapshot to the specified branch in the -// repository. This is a long running operation and could take several minutes to complete. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - save Configuration parameters. -func (client TenantConfigurationClient) Save(ctx context.Context, resourceGroupName string, serviceName string, parameters SaveConfigurationParameter) (result TenantConfigurationSaveFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantConfigurationClient.Save") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Branch", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantConfigurationClient", "Save", err.Error()) - } - - req, err := client.SavePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "Save", nil, "Failure preparing request") - return - } - - result, err = client.SaveSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "Save", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SavePreparer prepares the Save request. -func (client TenantConfigurationClient) SavePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters SaveConfigurationParameter) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "configurationName": autorest.Encode("path", "configuration"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SaveSender sends the Save request. The method will close the -// http.Response Body if it receives an error. -func (client TenantConfigurationClient) SaveSender(req *http.Request) (future TenantConfigurationSaveFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// SaveResponder handles the response to the Save request. The method always -// closes the http.Response Body. -func (client TenantConfigurationClient) SaveResponder(resp *http.Response) (result OperationResultContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Validate this operation validates the changes in the specified Git branch. This is a long running operation and -// could take several minutes to complete. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// parameters - validate Configuration parameters. -func (client TenantConfigurationClient) Validate(ctx context.Context, resourceGroupName string, serviceName string, parameters DeployConfigurationParameters) (result TenantConfigurationValidateFuture, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TenantConfigurationClient.Validate") - defer func() { - sc := -1 - if result.Response() != nil { - sc = result.Response().StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Branch", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.TenantConfigurationClient", "Validate", err.Error()) - } - - req, err := client.ValidatePreparer(ctx, resourceGroupName, serviceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "Validate", nil, "Failure preparing request") - return - } - - result, err = client.ValidateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.TenantConfigurationClient", "Validate", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ValidatePreparer prepares the Validate request. -func (client TenantConfigurationClient) ValidatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters DeployConfigurationParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "configurationName": autorest.Encode("path", "configuration"), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ValidateSender sends the Validate request. The method will close the -// http.Response Body if it receives an error. -func (client TenantConfigurationClient) ValidateSender(req *http.Request) (future TenantConfigurationValidateFuture, err error) { - var resp *http.Response - resp, err = autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) - if err != nil { - return - } - future.Future, err = azure.NewFutureFromResponse(resp) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ValidateResponder handles the response to the Validate request. The method always -// closes the http.Response Body. -func (client TenantConfigurationClient) ValidateResponder(resp *http.Response) (result OperationResultContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/user.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/user.go deleted file mode 100644 index 15e627611266..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/user.go +++ /dev/null @@ -1,907 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserClient is the apiManagement Client -type UserClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserClient creates an instance of the UserClient client. -func NewUserClient(subscriptionID string) UserClient { - return NewUserClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserClientWithBaseURI creates an instance of the UserClient client. -func NewUserClientWithBaseURI(baseURI string, subscriptionID string) UserClient { - return UserClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdate creates or Updates a user. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -// parameters - create or update parameters. -// ifMatch - eTag of the Entity. Not required when creating an entity, but required when updating an entity. -func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserCreateParameters, ifMatch string) (result UserContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.CreateOrUpdate") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.UserCreateParameterProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.UserCreateParameterProperties.Email", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.UserCreateParameterProperties.Email", Name: validation.MaxLength, Rule: 254, Chain: nil}, - {Target: "parameters.UserCreateParameterProperties.Email", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - {Target: "parameters.UserCreateParameterProperties.FirstName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.UserCreateParameterProperties.FirstName", Name: validation.MaxLength, Rule: 100, Chain: nil}, - {Target: "parameters.UserCreateParameterProperties.FirstName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - {Target: "parameters.UserCreateParameterProperties.LastName", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.UserCreateParameterProperties.LastName", Name: validation.MaxLength, Rule: 100, Chain: nil}, - {Target: "parameters.UserCreateParameterProperties.LastName", Name: validation.MinLength, Rule: 1, Chain: nil}, - }}, - }}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serviceName, UID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client UserClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserCreateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client UserClient) CreateOrUpdateResponder(resp *http.Response) (result UserContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Delete deletes specific user. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -// deleteSubscriptions - whether to delete user's subscription or not. -// notify - send an Account Closed Email notification to the User. -func (client UserClient) Delete(ctx context.Context, resourceGroupName string, serviceName string, UID string, ifMatch string, deleteSubscriptions *bool, notify *bool) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.Delete") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, serviceName, UID, ifMatch, deleteSubscriptions, notify) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeletePreparer prepares the Delete request. -func (client UserClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, ifMatch string, deleteSubscriptions *bool, notify *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if deleteSubscriptions != nil { - queryParameters["deleteSubscriptions"] = autorest.Encode("query", *deleteSubscriptions) - } - if notify != nil { - queryParameters["notify"] = autorest.Encode("query", *notify) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client UserClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GenerateSsoURL retrieves a redirection URL containing an authentication token for signing a given user into the -// developer portal. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName string, serviceName string, UID string) (result GenerateSsoURLResult, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.GenerateSsoURL") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "GenerateSsoURL", err.Error()) - } - - req, err := client.GenerateSsoURLPreparer(ctx, resourceGroupName, serviceName, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", nil, "Failure preparing request") - return - } - - resp, err := client.GenerateSsoURLSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure sending request") - return - } - - result, err = client.GenerateSsoURLResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GenerateSsoURL", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GenerateSsoURLPreparer prepares the GenerateSsoURL request. -func (client UserClient) GenerateSsoURLPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/generateSsoUrl", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GenerateSsoURLSender sends the GenerateSsoURL request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) GenerateSsoURLSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GenerateSsoURLResponder handles the response to the GenerateSsoURL request. The method always -// closes the http.Response Body. -func (client UserClient) GenerateSsoURLResponder(resp *http.Response) (result GenerateSsoURLResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Get gets the details of the user specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client UserClient) Get(ctx context.Context, resourceGroupName string, serviceName string, UID string) (result UserContract, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.Get") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, serviceName, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetPreparer prepares the Get request. -func (client UserClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/users/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client UserClient) GetResponder(resp *http.Response) (result UserContract, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTag gets the entity state (Etag) version of the user specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName string, serviceName string, UID string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.GetEntityTag") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "GetEntityTag", err.Error()) - } - - req, err := client.GetEntityTagPreparer(ctx, resourceGroupName, serviceName, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", nil, "Failure preparing request") - return - } - - resp, err := client.GetEntityTagSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure sending request") - return - } - - result, err = client.GetEntityTagResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetEntityTag", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagPreparer prepares the GetEntityTag request. -func (client UserClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagSender sends the GetEntityTag request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetEntityTagResponder handles the response to the GetEntityTag request. The method always -// closes the http.Response Body. -func (client UserClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSharedAccessToken gets the Shared Access Authorization Token for the User. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -// parameters - create Authorization Token parameters. -func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserTokenParameters) (result UserTokenResult, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.GetSharedAccessToken") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Expiry", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "GetSharedAccessToken", err.Error()) - } - - req, err := client.GetSharedAccessTokenPreparer(ctx, resourceGroupName, serviceName, UID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", nil, "Failure preparing request") - return - } - - resp, err := client.GetSharedAccessTokenSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure sending request") - return - } - - result, err = client.GetSharedAccessTokenResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetSharedAccessToken", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSharedAccessTokenPreparer prepares the GetSharedAccessToken request. -func (client UserClient) GetSharedAccessTokenPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserTokenParameters) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/token", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSharedAccessTokenSender sends the GetSharedAccessToken request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) GetSharedAccessTokenSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// GetSharedAccessTokenResponder handles the response to the GetSharedAccessToken request. The method always -// closes the http.Response Body. -func (client UserClient) GetSharedAccessTokenResponder(resp *http.Response) (result UserTokenResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByService lists a collection of registered users in the specified service instance. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// filter - | Field | Supported operators | Supported functions | -// |------------------|------------------------|-----------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | firstName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | lastName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | email | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | eq | N/A | -// | registrationDate | ge, le, eq, ne, gt, lt | N/A | -// | note | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client UserClient) ListByService(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result UserCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.ListByService") - defer func() { - sc := -1 - if result.uc.Response.Response != nil { - sc = result.uc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "ListByService", err.Error()) - } - - result.fn = client.listByServiceNextResults - req, err := client.ListByServicePreparer(ctx, resourceGroupName, serviceName, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", nil, "Failure preparing request") - return - } - - resp, err := client.ListByServiceSender(req) - if err != nil { - result.uc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure sending request") - return - } - - result.uc, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "ListByService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServicePreparer prepares the ListByService request. -func (client UserClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceSender sends the ListByService request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) ListByServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceResponder handles the response to the ListByService request. The method always -// closes the http.Response Body. -func (client UserClient) ListByServiceResponder(resp *http.Response) (result UserCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByServiceNextResults retrieves the next set of results, if any. -func (client UserClient) listByServiceNextResults(ctx context.Context, lastResults UserCollection) (result UserCollection, err error) { - req, err := lastResults.userCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "listByServiceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. -func (client UserClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result UserCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.ListByService") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, filter, top, skip) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Update updates the details of the user specified by its identifier. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -// parameters - update parameters. -// ifMatch - eTag of the Entity. ETag should match the current entity state from the header response of the GET -// request or it should be * for unconditional update. -func (client UserClient) Update(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserUpdateParameters, ifMatch string) (result autorest.Response, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.Update") - defer func() { - sc := -1 - if result.Response != nil { - sc = result.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.UserClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, UID, parameters, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdatePreparer prepares the Update request. -func (client UserClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserUpdateParameters, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client UserClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client UserClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go deleted file mode 100644 index c8fbc991eeb2..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go +++ /dev/null @@ -1,201 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserGroupClient is the apiManagement Client -type UserGroupClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserGroupClient creates an instance of the UserGroupClient client. -func NewUserGroupClient(subscriptionID string) UserGroupClient { - return NewUserGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserGroupClientWithBaseURI creates an instance of the UserGroupClient client. -func NewUserGroupClientWithBaseURI(baseURI string, subscriptionID string) UserGroupClient { - return UserGroupClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists all user groups. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |-------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// top - number of records to return. -// skip - number of records to skip. -func (client UserGroupClient) List(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (result GroupCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserGroupClient.List") - defer func() { - sc := -1 - if result.gc.Response.Response != nil { - sc = result.gc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.UserGroupClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, UID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.gc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure sending request") - return - } - - result.gc, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client UserGroupClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/groups", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client UserGroupClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client UserGroupClient) ListResponder(resp *http.Response) (result GroupCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client UserGroupClient) listNextResults(ctx context.Context, lastResults GroupCollection) (result GroupCollection, err error) { - req, err := lastResults.groupCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserGroupClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client UserGroupClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserGroupClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, UID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go deleted file mode 100644 index ca421c8fa639..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go +++ /dev/null @@ -1,179 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserIdentitiesClient is the apiManagement Client -type UserIdentitiesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserIdentitiesClient creates an instance of the UserIdentitiesClient client. -func NewUserIdentitiesClient(subscriptionID string) UserIdentitiesClient { - return NewUserIdentitiesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserIdentitiesClientWithBaseURI creates an instance of the UserIdentitiesClient client. -func NewUserIdentitiesClientWithBaseURI(baseURI string, subscriptionID string) UserIdentitiesClient { - return UserIdentitiesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists all user identities. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName string, serviceName string, UID string) (result UserIdentityCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserIdentitiesClient.List") - defer func() { - sc := -1 - if result.uic.Response.Response != nil { - sc = result.uic.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}}); err != nil { - return result, validation.NewError("apimanagement.UserIdentitiesClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, UID) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.uic.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure sending request") - return - } - - result.uic, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client UserIdentitiesClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-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.ApiManagement/service/{serviceName}/users/{uid}/identities", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client UserIdentitiesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client UserIdentitiesClient) ListResponder(resp *http.Response) (result UserIdentityCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client UserIdentitiesClient) listNextResults(ctx context.Context, lastResults UserIdentityCollection) (result UserIdentityCollection, err error) { - req, err := lastResults.userIdentityCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserIdentitiesClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client UserIdentitiesClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, UID string) (result UserIdentityCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserIdentitiesClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, UID) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go deleted file mode 100644 index 229996327787..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go +++ /dev/null @@ -1,204 +0,0 @@ -package apimanagement - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/Azure/go-autorest/tracing" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserSubscriptionClient is the apiManagement Client -type UserSubscriptionClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserSubscriptionClient creates an instance of the UserSubscriptionClient client. -func NewUserSubscriptionClient(subscriptionID string) UserSubscriptionClient { - return NewUserSubscriptionClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// NewUserSubscriptionClientWithBaseURI creates an instance of the UserSubscriptionClient client. -func NewUserSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) UserSubscriptionClient { - return UserSubscriptionClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// List lists the collection of subscriptions of the specified user. -// Parameters: -// resourceGroupName - the name of the resource group. -// serviceName - the name of the API Management service. -// UID - user identifier. Must be unique in the current API Management service instance. -// filter - | Field | Supported operators | Supported functions | -// |--------------|------------------------|---------------------------------------------| -// | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | -// | state | eq | | -// top - number of records to return. -// skip - number of records to skip. -func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (result SubscriptionCollectionPage, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserSubscriptionClient.List") - defer func() { - sc := -1 - if result.sc.Response.Response != nil { - sc = result.sc.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceName, - Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, - {TargetValue: UID, - Constraints: []validation.Constraint{{Target: "UID", Name: validation.MaxLength, Rule: 80, Chain: nil}, - {Target: "UID", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "UID", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, - {TargetValue: top, - Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}}}}}, - {TargetValue: skip, - Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("apimanagement.UserSubscriptionClient", "List", err.Error()) - } - - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, serviceName, UID, filter, top, skip) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.sc.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure sending request") - return - } - - result.sc, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListPreparer prepares the List request. -func (client UserSubscriptionClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "serviceName": autorest.Encode("path", serviceName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - "uid": autorest.Encode("path", UID), - } - - const APIVersion = "2018-01-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/subscriptions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client UserSubscriptionClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client UserSubscriptionClient) ListResponder(resp *http.Response) (result SubscriptionCollection, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastResults SubscriptionCollection) (result SubscriptionCollection, err error) { - req, err := lastResults.subscriptionCollectionPreparer(ctx) - if err != nil { - return result, autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "apimanagement.UserSubscriptionClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client UserSubscriptionClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (result SubscriptionCollectionIterator, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/UserSubscriptionClient.List") - defer func() { - sc := -1 - if result.Response().Response.Response != nil { - sc = result.page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - result.page, err = client.List(ctx, resourceGroupName, serviceName, UID, filter, top, skip) - return -} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/version.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/version.go deleted file mode 100644 index 73e588250db7..000000000000 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package apimanagement - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " apimanagement/2018-01-01" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/client.go b/services/provisioningservices/mgmt/2017-08-21-preview/iothub/client.go deleted file mode 100644 index bf9beae53238..000000000000 --- a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/client.go +++ /dev/null @@ -1,54 +0,0 @@ -// Package iothub implements the Azure ARM Iothub service API version 2017-08-21-preview. -// -// API for using the Azure IoT Hub Device Provisioning Service features. -package iothub - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Iothub - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// BaseClient is the base client for Iothub. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificate.go b/services/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificate.go deleted file mode 100644 index 982e761297c7..000000000000 --- a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificate.go +++ /dev/null @@ -1,518 +0,0 @@ -package iothub - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DpsCertificateClient is the API for using the Azure IoT Hub Device Provisioning Service features. -type DpsCertificateClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewDpsCertificateClient creates an instance of the DpsCertificateClient client. -func NewDpsCertificateClient(subscriptionID string) DpsCertificateClient { - return NewDpsCertificateClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewDpsCertificateClientWithBaseURI creates an instance of the DpsCertificateClient client. -func NewDpsCertificateClientWithBaseURI(baseURI string, subscriptionID string) DpsCertificateClient { - return DpsCertificateClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdate add new certificate or update an existing certificate. -// -// resourceGroupName is resource group identifier. provisioningServiceName is the name of the provisioning service. -// certificateName is the name of the certificate create or update. certificateDescription is the certificate body. -// ifMatch is eTag of the certificate. This is required to update an existing certificate, and ignored while -// creating a brand new certificate. -func (client DpsCertificateClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, provisioningServiceName string, certificateName string, certificateDescription CertificateBodyDescription, ifMatch string) (result CertificateResponse, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: certificateName, - Constraints: []validation.Constraint{{Target: "certificateName", Name: validation.MaxLength, Rule: 256, Chain: nil}}}}); err != nil { - return result, validation.NewError("iothub.DpsCertificateClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, provisioningServiceName, certificateName, certificateDescription, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DpsCertificateClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, provisioningServiceName string, certificateName string, certificateDescription CertificateBodyDescription, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateName": autorest.Encode("path", certificateName), - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}", pathParameters), - autorest.WithJSON(certificateDescription), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client DpsCertificateClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client DpsCertificateClient) CreateOrUpdateResponder(resp *http.Response) (result CertificateResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Delete sends the delete request. -// -// resourceGroupName is resource group identifier. ifMatch is eTag of the certificate provisioningServiceName is -// the name of the provisioning service. certificateName is this is a mandatory field, and is the logical name of -// the certificate that the provisioning service will access by. certificatename is this is optional, and it is the -// Common Name of the certificate. certificaterawBytes is raw data within the certificate. certificateisVerified is -// indicates if certificate has been verified by owner of the private key. certificatepurpose is a description that -// mentions the purpose of the certificate. certificatecreated is time the certificate is created. -// certificatelastUpdated is time the certificate is last updated. certificatehasPrivateKey is indicates if the -// certificate contains a private key. certificatenonce is random number generated to indicate Proof of Possession. -func (client DpsCertificateClient) Delete(ctx context.Context, resourceGroupName string, ifMatch string, provisioningServiceName string, certificateName string, certificatename string, certificaterawBytes []byte, certificateisVerified *bool, certificatepurpose CertificatePurpose, certificatecreated *date.Time, certificatelastUpdated *date.Time, certificatehasPrivateKey *bool, certificatenonce string) (result autorest.Response, err error) { - req, err := client.DeletePreparer(ctx, resourceGroupName, ifMatch, provisioningServiceName, certificateName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DeletePreparer prepares the Delete request. -func (client DpsCertificateClient) DeletePreparer(ctx context.Context, resourceGroupName string, ifMatch string, provisioningServiceName string, certificateName string, certificatename string, certificaterawBytes []byte, certificateisVerified *bool, certificatepurpose CertificatePurpose, certificatecreated *date.Time, certificatelastUpdated *date.Time, certificatehasPrivateKey *bool, certificatenonce string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateName": autorest.Encode("path", certificateName), - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(certificatename) > 0 { - queryParameters["certificate.name"] = autorest.Encode("query", certificatename) - } - if certificaterawBytes != nil && len(certificaterawBytes) > 0 { - queryParameters["certificate.rawBytes"] = autorest.Encode("query", certificaterawBytes) - } - if certificateisVerified != nil { - queryParameters["certificate.isVerified"] = autorest.Encode("query", *certificateisVerified) - } - if len(string(certificatepurpose)) > 0 { - queryParameters["certificate.purpose"] = autorest.Encode("query", certificatepurpose) - } - if certificatecreated != nil { - queryParameters["certificate.created"] = autorest.Encode("query", *certificatecreated) - } - if certificatelastUpdated != nil { - queryParameters["certificate.lastUpdated"] = autorest.Encode("query", *certificatelastUpdated) - } - if certificatehasPrivateKey != nil { - queryParameters["certificate.hasPrivateKey"] = autorest.Encode("query", *certificatehasPrivateKey) - } - if len(certificatenonce) > 0 { - queryParameters["certificate.nonce"] = autorest.Encode("query", certificatenonce) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client DpsCertificateClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client DpsCertificateClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GenerateVerificationCode generate verification code for Proof of Possession. -// -// certificateName is the mandatory logical name of the certificate, that the provisioning service uses to access. -// ifMatch is eTag of the certificate. This is required to update an existing certificate, and ignored while -// creating a brand new certificate. resourceGroupName is name of resource group. provisioningServiceName is name -// of provisioning service. certificatename is common Name for the certificate. certificaterawBytes is raw data of -// certificate. certificateisVerified is indicates if the certificate has been verified by owner of the private -// key. certificatepurpose is description mentioning the purpose of the certificate. certificatecreated is -// certificate creation time. certificatelastUpdated is certificate last updated time. certificatehasPrivateKey is -// indicates if the certificate contains private key. certificatenonce is random number generated to indicate Proof -// of Possession. -func (client DpsCertificateClient) GenerateVerificationCode(ctx context.Context, certificateName string, ifMatch string, resourceGroupName string, provisioningServiceName string, certificatename string, certificaterawBytes []byte, certificateisVerified *bool, certificatepurpose CertificatePurpose, certificatecreated *date.Time, certificatelastUpdated *date.Time, certificatehasPrivateKey *bool, certificatenonce string) (result VerificationCodeResponse, err error) { - req, err := client.GenerateVerificationCodePreparer(ctx, certificateName, ifMatch, resourceGroupName, provisioningServiceName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "GenerateVerificationCode", nil, "Failure preparing request") - return - } - - resp, err := client.GenerateVerificationCodeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "GenerateVerificationCode", resp, "Failure sending request") - return - } - - result, err = client.GenerateVerificationCodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "GenerateVerificationCode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GenerateVerificationCodePreparer prepares the GenerateVerificationCode request. -func (client DpsCertificateClient) GenerateVerificationCodePreparer(ctx context.Context, certificateName string, ifMatch string, resourceGroupName string, provisioningServiceName string, certificatename string, certificaterawBytes []byte, certificateisVerified *bool, certificatepurpose CertificatePurpose, certificatecreated *date.Time, certificatelastUpdated *date.Time, certificatehasPrivateKey *bool, certificatenonce string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateName": autorest.Encode("path", certificateName), - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(certificatename) > 0 { - queryParameters["certificate.name"] = autorest.Encode("query", certificatename) - } - if certificaterawBytes != nil && len(certificaterawBytes) > 0 { - queryParameters["certificate.rawBytes"] = autorest.Encode("query", certificaterawBytes) - } - if certificateisVerified != nil { - queryParameters["certificate.isVerified"] = autorest.Encode("query", *certificateisVerified) - } - if len(string(certificatepurpose)) > 0 { - queryParameters["certificate.purpose"] = autorest.Encode("query", certificatepurpose) - } - if certificatecreated != nil { - queryParameters["certificate.created"] = autorest.Encode("query", *certificatecreated) - } - if certificatelastUpdated != nil { - queryParameters["certificate.lastUpdated"] = autorest.Encode("query", *certificatelastUpdated) - } - if certificatehasPrivateKey != nil { - queryParameters["certificate.hasPrivateKey"] = autorest.Encode("query", *certificatehasPrivateKey) - } - if len(certificatenonce) > 0 { - queryParameters["certificate.nonce"] = autorest.Encode("query", certificatenonce) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GenerateVerificationCodeSender sends the GenerateVerificationCode request. The method will close the -// http.Response Body if it receives an error. -func (client DpsCertificateClient) GenerateVerificationCodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GenerateVerificationCodeResponder handles the response to the GenerateVerificationCode request. The method always -// closes the http.Response Body. -func (client DpsCertificateClient) GenerateVerificationCodeResponder(resp *http.Response) (result VerificationCodeResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Get get the certificate from the provisioning service. -// -// certificateName is name of the certificate to retrieve. resourceGroupName is resource group identifier. -// provisioningServiceName is name of the provisioning service the certificate is associated with. ifMatch is eTag -// of the certificate. -func (client DpsCertificateClient) Get(ctx context.Context, certificateName string, resourceGroupName string, provisioningServiceName string, ifMatch string) (result CertificateResponse, err error) { - req, err := client.GetPreparer(ctx, certificateName, resourceGroupName, provisioningServiceName, ifMatch) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetPreparer prepares the Get request. -func (client DpsCertificateClient) GetPreparer(ctx context.Context, certificateName string, resourceGroupName string, provisioningServiceName string, ifMatch string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateName": autorest.Encode("path", certificateName), - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if len(ifMatch) > 0 { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DpsCertificateClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DpsCertificateClient) GetResponder(resp *http.Response) (result CertificateResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// VerifyCertificate verifies certificate for the provisioning service. -// -// certificateName is the mandatory logical name of the certificate, that the provisioning service uses to access. -// ifMatch is eTag of the certificate. resourceGroupName is resource group name. provisioningServiceName is -// provisioning service name. certificatename is common Name for the certificate. certificaterawBytes is raw data -// of certificate. certificateisVerified is indicates if the certificate has been verified by owner of the private -// key. certificatepurpose is describe the purpose of the certificate. certificatecreated is certificate creation -// time. certificatelastUpdated is certificate last updated time. certificatehasPrivateKey is indicates if the -// certificate contains private key. certificatenonce is random number generated to indicate Proof of Possession. -func (client DpsCertificateClient) VerifyCertificate(ctx context.Context, certificateName string, ifMatch string, request VerificationCodeRequest, resourceGroupName string, provisioningServiceName string, certificatename string, certificaterawBytes []byte, certificateisVerified *bool, certificatepurpose CertificatePurpose, certificatecreated *date.Time, certificatelastUpdated *date.Time, certificatehasPrivateKey *bool, certificatenonce string) (result CertificateResponse, err error) { - req, err := client.VerifyCertificatePreparer(ctx, certificateName, ifMatch, request, resourceGroupName, provisioningServiceName, certificatename, certificaterawBytes, certificateisVerified, certificatepurpose, certificatecreated, certificatelastUpdated, certificatehasPrivateKey, certificatenonce) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "VerifyCertificate", nil, "Failure preparing request") - return - } - - resp, err := client.VerifyCertificateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "VerifyCertificate", resp, "Failure sending request") - return - } - - result, err = client.VerifyCertificateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificateClient", "VerifyCertificate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// VerifyCertificatePreparer prepares the VerifyCertificate request. -func (client DpsCertificateClient) VerifyCertificatePreparer(ctx context.Context, certificateName string, ifMatch string, request VerificationCodeRequest, resourceGroupName string, provisioningServiceName string, certificatename string, certificaterawBytes []byte, certificateisVerified *bool, certificatepurpose CertificatePurpose, certificatecreated *date.Time, certificatelastUpdated *date.Time, certificatehasPrivateKey *bool, certificatenonce string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "certificateName": autorest.Encode("path", certificateName), - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(certificatename) > 0 { - queryParameters["certificate.name"] = autorest.Encode("query", certificatename) - } - if certificaterawBytes != nil && len(certificaterawBytes) > 0 { - queryParameters["certificate.rawBytes"] = autorest.Encode("query", certificaterawBytes) - } - if certificateisVerified != nil { - queryParameters["certificate.isVerified"] = autorest.Encode("query", *certificateisVerified) - } - if len(string(certificatepurpose)) > 0 { - queryParameters["certificate.purpose"] = autorest.Encode("query", certificatepurpose) - } - if certificatecreated != nil { - queryParameters["certificate.created"] = autorest.Encode("query", *certificatecreated) - } - if certificatelastUpdated != nil { - queryParameters["certificate.lastUpdated"] = autorest.Encode("query", *certificatelastUpdated) - } - if certificatehasPrivateKey != nil { - queryParameters["certificate.hasPrivateKey"] = autorest.Encode("query", *certificatehasPrivateKey) - } - if len(certificatenonce) > 0 { - queryParameters["certificate.nonce"] = autorest.Encode("query", certificatenonce) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify", pathParameters), - autorest.WithJSON(request), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("If-Match", autorest.String(ifMatch))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// VerifyCertificateSender sends the VerifyCertificate request. The method will close the -// http.Response Body if it receives an error. -func (client DpsCertificateClient) VerifyCertificateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// VerifyCertificateResponder handles the response to the VerifyCertificate request. The method always -// closes the http.Response Body. -func (client DpsCertificateClient) VerifyCertificateResponder(resp *http.Response) (result CertificateResponse, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificates.go b/services/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificates.go deleted file mode 100644 index d04d04115e65..000000000000 --- a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/dpscertificates.go +++ /dev/null @@ -1,114 +0,0 @@ -package iothub - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DpsCertificatesClient is the API for using the Azure IoT Hub Device Provisioning Service features. -type DpsCertificatesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewDpsCertificatesClient creates an instance of the DpsCertificatesClient client. -func NewDpsCertificatesClient(subscriptionID string) DpsCertificatesClient { - return NewDpsCertificatesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewDpsCertificatesClientWithBaseURI creates an instance of the DpsCertificatesClient client. -func NewDpsCertificatesClientWithBaseURI(baseURI string, subscriptionID string) DpsCertificatesClient { - return DpsCertificatesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// List get all the certificates tied to the provisioning service. -// -// resourceGroupName is name of resource group. provisioningServiceName is name of provisioning service to retrieve -// certificates for. -func (client DpsCertificatesClient) List(ctx context.Context, resourceGroupName string, provisioningServiceName string) (result CertificateListDescription, err error) { - req, err := client.ListPreparer(ctx, resourceGroupName, provisioningServiceName) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificatesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.DpsCertificatesClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.DpsCertificatesClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListPreparer prepares the List request. -func (client DpsCertificatesClient) ListPreparer(ctx context.Context, resourceGroupName string, provisioningServiceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client DpsCertificatesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client DpsCertificatesClient) ListResponder(resp *http.Response) (result CertificateListDescription, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/iotdpsresource.go b/services/provisioningservices/mgmt/2017-08-21-preview/iothub/iotdpsresource.go deleted file mode 100644 index 2b9d95ba4efd..000000000000 --- a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/iotdpsresource.go +++ /dev/null @@ -1,888 +0,0 @@ -package iothub - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsResourceClient is the API for using the Azure IoT Hub Device Provisioning Service features. -type IotDpsResourceClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewIotDpsResourceClient creates an instance of the IotDpsResourceClient client. -func NewIotDpsResourceClient(subscriptionID string) IotDpsResourceClient { - return NewIotDpsResourceClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewIotDpsResourceClientWithBaseURI creates an instance of the IotDpsResourceClient client. -func NewIotDpsResourceClientWithBaseURI(baseURI string, subscriptionID string) IotDpsResourceClient { - return IotDpsResourceClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CheckNameAvailability check if a provisioning service name is available. -// -// arguments is set the name parameter in the OperationInputs structure to the name of the provisioning service to -// check. -func (client IotDpsResourceClient) CheckNameAvailability(ctx context.Context, arguments OperationInputs) (result NameAvailabilityInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: arguments, - Constraints: []validation.Constraint{{Target: "arguments.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("iothub.IotDpsResourceClient", "CheckNameAvailability", err.Error()) - } - - req, err := client.CheckNameAvailabilityPreparer(ctx, arguments) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CheckNameAvailability", nil, "Failure preparing request") - return - } - - resp, err := client.CheckNameAvailabilitySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CheckNameAvailability", resp, "Failure sending request") - return - } - - result, err = client.CheckNameAvailabilityResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CheckNameAvailability", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. -func (client IotDpsResourceClient) CheckNameAvailabilityPreparer(ctx context.Context, arguments OperationInputs) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability", pathParameters), - autorest.WithJSON(arguments), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) CheckNameAvailabilityResponder(resp *http.Response) (result NameAvailabilityInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdate create or update the metadata of the provisioning service. The usual pattern to modify a property is -// to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values -// in a new body to update the provisioning service. -// -// resourceGroupName is resource group identifier. provisioningServiceName is name of provisioning service to -// create or update. iotDpsDescription is description of the provisioning service to create or update. -func (client IotDpsResourceClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, provisioningServiceName string, iotDpsDescription ProvisioningServiceDescription) (result IotDpsResourceCreateOrUpdateFuture, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: iotDpsDescription, - Constraints: []validation.Constraint{{Target: "iotDpsDescription.Properties", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "iotDpsDescription.Sku", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("iothub.IotDpsResourceClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, provisioningServiceName, iotDpsDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "CreateOrUpdate", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client IotDpsResourceClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, provisioningServiceName string, iotDpsDescription ProvisioningServiceDescription) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}", pathParameters), - autorest.WithJSON(iotDpsDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) CreateOrUpdateSender(req *http.Request) (future IotDpsResourceCreateOrUpdateFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) CreateOrUpdateResponder(resp *http.Response) (result ProvisioningServiceDescription, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Delete sends the delete request. -// -// provisioningServiceName is name of provisioning service to delete. resourceGroupName is resource group -// identifier. -func (client IotDpsResourceClient) Delete(ctx context.Context, provisioningServiceName string, resourceGroupName string) (result IotDpsResourceDeleteFuture, err error) { - req, err := client.DeletePreparer(ctx, provisioningServiceName, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Delete", nil, "Failure preparing request") - return - } - - result, err = client.DeleteSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Delete", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DeletePreparer prepares the Delete request. -func (client IotDpsResourceClient) DeletePreparer(ctx context.Context, provisioningServiceName string, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) DeleteSender(req *http.Request) (future IotDpsResourceDeleteFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent, http.StatusNotFound)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Get get the non-security related metadata of the provisioning service. -// -// provisioningServiceName is name of the provisioning service to retrieve. resourceGroupName is resource group -// name. -func (client IotDpsResourceClient) Get(ctx context.Context, provisioningServiceName string, resourceGroupName string) (result ProvisioningServiceDescription, err error) { - req, err := client.GetPreparer(ctx, provisioningServiceName, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetPreparer prepares the Get request. -func (client IotDpsResourceClient) GetPreparer(ctx context.Context, provisioningServiceName string, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) GetResponder(resp *http.Response) (result ProvisioningServiceDescription, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetKeysForKeyName get a shared access policy by name from a provisioning service. -// -// provisioningServiceName is name of the provisioning service. keyName is logical key name to get key-values for. -// resourceGroupName is the name of the resource group that contains the provisioning service. -func (client IotDpsResourceClient) GetKeysForKeyName(ctx context.Context, provisioningServiceName string, keyName string, resourceGroupName string) (result SharedAccessSignatureAuthorizationRuleAccessRightsDescription, err error) { - req, err := client.GetKeysForKeyNamePreparer(ctx, provisioningServiceName, keyName, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetKeysForKeyName", nil, "Failure preparing request") - return - } - - resp, err := client.GetKeysForKeyNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetKeysForKeyName", resp, "Failure sending request") - return - } - - result, err = client.GetKeysForKeyNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetKeysForKeyName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetKeysForKeyNamePreparer prepares the GetKeysForKeyName request. -func (client IotDpsResourceClient) GetKeysForKeyNamePreparer(ctx context.Context, provisioningServiceName string, keyName string, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "keyName": autorest.Encode("path", keyName), - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetKeysForKeyNameSender sends the GetKeysForKeyName request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) GetKeysForKeyNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetKeysForKeyNameResponder handles the response to the GetKeysForKeyName request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) GetKeysForKeyNameResponder(resp *http.Response) (result SharedAccessSignatureAuthorizationRuleAccessRightsDescription, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetOperationResult gets the status of a long running operation, such as create, update or delete a provisioning -// service. -// -// operationID is operation id corresponding to long running operation. Use this to poll for the status. -// resourceGroupName is resource group identifier. provisioningServiceName is name of provisioning service that the -// operation is running on. asyncinfo is async header used to poll on the status of the operation, obtained while -// creating the long running operation. -func (client IotDpsResourceClient) GetOperationResult(ctx context.Context, operationID string, resourceGroupName string, provisioningServiceName string, asyncinfo string) (result AsyncOperationResult, err error) { - req, err := client.GetOperationResultPreparer(ctx, operationID, resourceGroupName, provisioningServiceName, asyncinfo) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetOperationResult", nil, "Failure preparing request") - return - } - - resp, err := client.GetOperationResultSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetOperationResult", resp, "Failure sending request") - return - } - - result, err = client.GetOperationResultResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "GetOperationResult", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetOperationResultPreparer prepares the GetOperationResult request. -func (client IotDpsResourceClient) GetOperationResultPreparer(ctx context.Context, operationID string, resourceGroupName string, provisioningServiceName string, asyncinfo string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "operationId": autorest.Encode("path", operationID), - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "asyncinfo": autorest.Encode("query", asyncinfo), - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetOperationResultSender sends the GetOperationResult request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) GetOperationResultSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// GetOperationResultResponder handles the response to the GetOperationResult request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) GetOperationResultResponder(resp *http.Response) (result AsyncOperationResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListByResourceGroup get a list of all provisioning services in the given resource group. -// -// resourceGroupName is resource group identifier. -func (client IotDpsResourceClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ProvisioningServiceDescriptionListResultPage, err error) { - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.psdlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.psdlr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client IotDpsResourceClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) ListByResourceGroupResponder(resp *http.Response) (result ProvisioningServiceDescriptionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client IotDpsResourceClient) listByResourceGroupNextResults(lastResults ProvisioningServiceDescriptionListResult) (result ProvisioningServiceDescriptionListResult, err error) { - req, err := lastResults.provisioningServiceDescriptionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client IotDpsResourceClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ProvisioningServiceDescriptionListResultIterator, err error) { - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListBySubscription get all the provisioning services in a subscription. -func (client IotDpsResourceClient) ListBySubscription(ctx context.Context) (result ProvisioningServiceDescriptionListResultPage, err error) { - result.fn = client.listBySubscriptionNextResults - req, err := client.ListBySubscriptionPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListBySubscription", nil, "Failure preparing request") - return - } - - resp, err := client.ListBySubscriptionSender(req) - if err != nil { - result.psdlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListBySubscription", resp, "Failure sending request") - return - } - - result.psdlr, err = client.ListBySubscriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListBySubscription", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListBySubscriptionPreparer prepares the ListBySubscription request. -func (client IotDpsResourceClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListBySubscriptionSender sends the ListBySubscription request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) ListBySubscriptionResponder(resp *http.Response) (result ProvisioningServiceDescriptionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listBySubscriptionNextResults retrieves the next set of results, if any. -func (client IotDpsResourceClient) listBySubscriptionNextResults(lastResults ProvisioningServiceDescriptionListResult) (result ProvisioningServiceDescriptionListResult, err error) { - req, err := lastResults.provisioningServiceDescriptionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListBySubscriptionSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") - } - result, err = client.ListBySubscriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. -func (client IotDpsResourceClient) ListBySubscriptionComplete(ctx context.Context) (result ProvisioningServiceDescriptionListResultIterator, err error) { - result.page, err = client.ListBySubscription(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListKeys get the security metadata for a provisioning service. -// -// provisioningServiceName is the provisioning service name to get the shared access keys for. resourceGroupName is -// resource group name -func (client IotDpsResourceClient) ListKeys(ctx context.Context, provisioningServiceName string, resourceGroupName string) (result SharedAccessSignatureAuthorizationRuleListResultPage, err error) { - result.fn = client.listKeysNextResults - req, err := client.ListKeysPreparer(ctx, provisioningServiceName, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeys", nil, "Failure preparing request") - return - } - - resp, err := client.ListKeysSender(req) - if err != nil { - result.sasarlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeys", resp, "Failure sending request") - return - } - - result.sasarlr, err = client.ListKeysResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListKeys", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListKeysPreparer prepares the ListKeys request. -func (client IotDpsResourceClient) ListKeysPreparer(ctx context.Context, provisioningServiceName string, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListKeysSender sends the ListKeys request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) ListKeysSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListKeysResponder handles the response to the ListKeys request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) ListKeysResponder(resp *http.Response) (result SharedAccessSignatureAuthorizationRuleListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listKeysNextResults retrieves the next set of results, if any. -func (client IotDpsResourceClient) listKeysNextResults(lastResults SharedAccessSignatureAuthorizationRuleListResult) (result SharedAccessSignatureAuthorizationRuleListResult, err error) { - req, err := lastResults.sharedAccessSignatureAuthorizationRuleListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listKeysNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListKeysSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listKeysNextResults", resp, "Failure sending next results request") - } - result, err = client.ListKeysResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listKeysNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListKeysComplete enumerates all values, automatically crossing page boundaries as required. -func (client IotDpsResourceClient) ListKeysComplete(ctx context.Context, provisioningServiceName string, resourceGroupName string) (result SharedAccessSignatureAuthorizationRuleListResultIterator, err error) { - result.page, err = client.ListKeys(ctx, provisioningServiceName, resourceGroupName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListValidSkus get the list of valid SKUs for a provisioning service. -// -// provisioningServiceName is name of provisioning service. resourceGroupName is name of resource group. -func (client IotDpsResourceClient) ListValidSkus(ctx context.Context, provisioningServiceName string, resourceGroupName string) (result IotDpsSkuDefinitionListResultPage, err error) { - result.fn = client.listValidSkusNextResults - req, err := client.ListValidSkusPreparer(ctx, provisioningServiceName, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListValidSkus", nil, "Failure preparing request") - return - } - - resp, err := client.ListValidSkusSender(req) - if err != nil { - result.idsdlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListValidSkus", resp, "Failure sending request") - return - } - - result.idsdlr, err = client.ListValidSkusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "ListValidSkus", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListValidSkusPreparer prepares the ListValidSkus request. -func (client IotDpsResourceClient) ListValidSkusPreparer(ctx context.Context, provisioningServiceName string, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "provisioningServiceName": autorest.Encode("path", provisioningServiceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListValidSkusSender sends the ListValidSkus request. The method will close the -// http.Response Body if it receives an error. -func (client IotDpsResourceClient) ListValidSkusSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListValidSkusResponder handles the response to the ListValidSkus request. The method always -// closes the http.Response Body. -func (client IotDpsResourceClient) ListValidSkusResponder(resp *http.Response) (result IotDpsSkuDefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listValidSkusNextResults retrieves the next set of results, if any. -func (client IotDpsResourceClient) listValidSkusNextResults(lastResults IotDpsSkuDefinitionListResult) (result IotDpsSkuDefinitionListResult, err error) { - req, err := lastResults.iotDpsSkuDefinitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listValidSkusNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListValidSkusSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listValidSkusNextResults", resp, "Failure sending next results request") - } - result, err = client.ListValidSkusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceClient", "listValidSkusNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListValidSkusComplete enumerates all values, automatically crossing page boundaries as required. -func (client IotDpsResourceClient) ListValidSkusComplete(ctx context.Context, provisioningServiceName string, resourceGroupName string) (result IotDpsSkuDefinitionListResultIterator, err error) { - result.page, err = client.ListValidSkus(ctx, provisioningServiceName, resourceGroupName) - return -} diff --git a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/models.go b/services/provisioningservices/mgmt/2017-08-21-preview/iothub/models.go deleted file mode 100644 index eebebdfe72cb..000000000000 --- a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/models.go +++ /dev/null @@ -1,1005 +0,0 @@ -package iothub - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/to" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// AccessRightsDescription enumerates the values for access rights description. -type AccessRightsDescription string - -const ( - // DeviceConnect ... - DeviceConnect AccessRightsDescription = "DeviceConnect" - // EnrollmentRead ... - EnrollmentRead AccessRightsDescription = "EnrollmentRead" - // EnrollmentWrite ... - EnrollmentWrite AccessRightsDescription = "EnrollmentWrite" - // RegistrationStatusRead ... - RegistrationStatusRead AccessRightsDescription = "RegistrationStatusRead" - // RegistrationStatusWrite ... - RegistrationStatusWrite AccessRightsDescription = "RegistrationStatusWrite" - // ServiceConfig ... - ServiceConfig AccessRightsDescription = "ServiceConfig" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// PossibleAccessRightsDescriptionValues returns an array of possible values for the AccessRightsDescription const type. -func PossibleAccessRightsDescriptionValues() []AccessRightsDescription { - return []AccessRightsDescription{DeviceConnect, EnrollmentRead, EnrollmentWrite, RegistrationStatusRead, RegistrationStatusWrite, ServiceConfig} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// AllocationPolicy enumerates the values for allocation policy. -type AllocationPolicy string - -const ( - // GeoLatency ... - GeoLatency AllocationPolicy = "GeoLatency" - // Hashed ... - Hashed AllocationPolicy = "Hashed" - // Static ... - Static AllocationPolicy = "Static" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// PossibleAllocationPolicyValues returns an array of possible values for the AllocationPolicy const type. -func PossibleAllocationPolicyValues() []AllocationPolicy { - return []AllocationPolicy{GeoLatency, Hashed, Static} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CertificatePurpose enumerates the values for certificate purpose. -type CertificatePurpose string - -const ( - // ClientAuthentication ... - ClientAuthentication CertificatePurpose = "clientAuthentication" - // ServerAuthentication ... - ServerAuthentication CertificatePurpose = "serverAuthentication" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// PossibleCertificatePurposeValues returns an array of possible values for the CertificatePurpose const type. -func PossibleCertificatePurposeValues() []CertificatePurpose { - return []CertificatePurpose{ClientAuthentication, ServerAuthentication} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsSku enumerates the values for iot dps sku. -type IotDpsSku string - -const ( - // S1 ... - S1 IotDpsSku = "S1" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// PossibleIotDpsSkuValues returns an array of possible values for the IotDpsSku const type. -func PossibleIotDpsSkuValues() []IotDpsSku { - return []IotDpsSku{S1} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NameUnavailabilityReason enumerates the values for name unavailability reason. -type NameUnavailabilityReason string - -const ( - // AlreadyExists ... - AlreadyExists NameUnavailabilityReason = "AlreadyExists" - // Invalid ... - Invalid NameUnavailabilityReason = "Invalid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// PossibleNameUnavailabilityReasonValues returns an array of possible values for the NameUnavailabilityReason const type. -func PossibleNameUnavailabilityReasonValues() []NameUnavailabilityReason { - return []NameUnavailabilityReason{AlreadyExists, Invalid} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// State enumerates the values for state. -type State string - -const ( - // Activating ... - Activating State = "Activating" - // ActivationFailed ... - ActivationFailed State = "ActivationFailed" - // Active ... - Active State = "Active" - // Deleted ... - Deleted State = "Deleted" - // Deleting ... - Deleting State = "Deleting" - // DeletionFailed ... - DeletionFailed State = "DeletionFailed" - // FailingOver ... - FailingOver State = "FailingOver" - // FailoverFailed ... - FailoverFailed State = "FailoverFailed" - // Resuming ... - Resuming State = "Resuming" - // Suspended ... - Suspended State = "Suspended" - // Suspending ... - Suspending State = "Suspending" - // Transitioning ... - Transitioning State = "Transitioning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// PossibleStateValues returns an array of possible values for the State const type. -func PossibleStateValues() []State { - return []State{Activating, ActivationFailed, Active, Deleted, Deleting, DeletionFailed, FailingOver, FailoverFailed, Resuming, Suspended, Suspending, Transitioning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// AsyncOperationResult result of a long running operation. -type AsyncOperationResult struct { - autorest.Response `json:"-"` - Status *string `json:"status,omitempty"` - Error *ErrorMesssage `json:"error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CertificateBodyDescription the JSON-serialized X509 Certificate. -type CertificateBodyDescription struct { - // Certificate - Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. - Certificate *string `json:"certificate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CertificateListDescription the JSON-serialized array of Certificate objects. -type CertificateListDescription struct { - autorest.Response `json:"-"` - // Value - The array of Certificate objects. - Value *[]CertificateResponse `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CertificateProperties the description of an X509 CA Certificate. -type CertificateProperties struct { - // Subject - The certificate's subject name. - Subject *string `json:"subject,omitempty"` - // Expiry - The certificate's expiration date and time. - Expiry *date.TimeRFC1123 `json:"expiry,omitempty"` - // Thumbprint - The certificate's thumbprint. - Thumbprint *string `json:"thumbprint,omitempty"` - // IsVerified - Determines whether certificate has been verified. - IsVerified *bool `json:"isVerified,omitempty"` - // Created - The certificate's creation date and time. - Created *date.TimeRFC1123 `json:"created,omitempty"` - // Updated - The certificate's last update date and time. - Updated *date.TimeRFC1123 `json:"updated,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// CertificateResponse the X509 Certificate. -type CertificateResponse struct { - autorest.Response `json:"-"` - Properties *CertificateProperties `json:"properties,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The name of the certificate. - Name *string `json:"name,omitempty"` - // Etag - The entity tag. - Etag *string `json:"etag,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// DefinitionDescription description of the IoT hub. -type DefinitionDescription struct { - ApplyAllocationPolicy *bool `json:"applyAllocationPolicy,omitempty"` - AllocationWeight *int32 `json:"allocationWeight,omitempty"` - // Name - Host name of the IoT hub. - Name *string `json:"name,omitempty"` - // ConnectionString - Connection string og the IoT hub. - ConnectionString *string `json:"connectionString,omitempty"` - // Location - ARM region of the IoT hub. - Location *string `json:"location,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ErrorDetails ... -type ErrorDetails struct { - // Code - error code. - Code *string `json:"code,omitempty"` - HTTPStatusCode *string `json:"httpStatusCode,omitempty"` - Message *string `json:"message,omitempty"` - Details *string `json:"details,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ErrorMesssage error response containing message and code. -type ErrorMesssage struct { - Code *string `json:"code,omitempty"` - Message *string `json:"message,omitempty"` - Details *string `json:"details,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsPropertiesDescription ... -type IotDpsPropertiesDescription struct { - // State - Current state of the provisioning service. Possible values include: 'Activating', 'Active', 'Deleting', 'Deleted', 'ActivationFailed', 'DeletionFailed', 'Transitioning', 'Suspending', 'Suspended', 'Resuming', 'FailingOver', 'FailoverFailed' - State State `json:"state,omitempty"` - // ProvisioningState - The ARM provisioning state of the provisioning service. - ProvisioningState *string `json:"provisioningState,omitempty"` - // IotHubs - List of IoT hubs assosciated with this provisioning service. - IotHubs *[]DefinitionDescription `json:"iotHubs,omitempty"` - // AllocationPolicy - Allocation policy to be used by this provisioning service. Possible values include: 'Hashed', 'GeoLatency', 'Static' - AllocationPolicy AllocationPolicy `json:"allocationPolicy,omitempty"` - // ServiceOperationsHostName - Service endpoint for provisioning service. - ServiceOperationsHostName *string `json:"serviceOperationsHostName,omitempty"` - // DeviceProvisioningHostName - Device endpoint for this provisioning service. - DeviceProvisioningHostName *string `json:"deviceProvisioningHostName,omitempty"` - // IDScope - Unique identifier of this provisioning service. - IDScope *string `json:"idScope,omitempty"` - AuthorizationPolicies *[]SharedAccessSignatureAuthorizationRuleAccessRightsDescription `json:"authorizationPolicies,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsResourceCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type IotDpsResourceCreateOrUpdateFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future IotDpsResourceCreateOrUpdateFuture) Result(client IotDpsResourceClient) (psd ProvisioningServiceDescription, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return psd, azure.NewAsyncOpIncompleteError("iothub.IotDpsResourceCreateOrUpdateFuture") - } - if future.PollingMethod() == azure.PollingLocation { - psd, err = client.CreateOrUpdateResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceCreateOrUpdateFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceCreateOrUpdateFuture", "Result", resp, "Failure sending request") - return - } - psd, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceCreateOrUpdateFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsResourceDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type IotDpsResourceDeleteFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future IotDpsResourceDeleteFuture) Result(client IotDpsResourceClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceDeleteFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("iothub.IotDpsResourceDeleteFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.DeleteResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceDeleteFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceDeleteFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.IotDpsResourceDeleteFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsSkuDefinition SKU definition in terms of tier and units. -type IotDpsSkuDefinition struct { - // Name - Possible values include: 'S1' - Name IotDpsSku `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsSkuDefinitionListResult list of available SKUs. -type IotDpsSkuDefinitionListResult struct { - autorest.Response `json:"-"` - Value *[]IotDpsSkuDefinition `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsSkuDefinitionListResultIterator provides access to a complete listing of IotDpsSkuDefinition values. -type IotDpsSkuDefinitionListResultIterator struct { - i int - page IotDpsSkuDefinitionListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *IotDpsSkuDefinitionListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter IotDpsSkuDefinitionListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (iter IotDpsSkuDefinitionListResultIterator) Response() IotDpsSkuDefinitionListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter IotDpsSkuDefinitionListResultIterator) Value() IotDpsSkuDefinition { - if !iter.page.NotDone() { - return IotDpsSkuDefinition{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IsEmpty returns true if the ListResult contains no values. -func (idsdlr IotDpsSkuDefinitionListResult) IsEmpty() bool { - return idsdlr.Value == nil || len(*idsdlr.Value) == 0 -} - -// iotDpsSkuDefinitionListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (idsdlr IotDpsSkuDefinitionListResult) iotDpsSkuDefinitionListResultPreparer() (*http.Request, error) { - if idsdlr.NextLink == nil || len(to.String(idsdlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(idsdlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsSkuDefinitionListResultPage contains a page of IotDpsSkuDefinition values. -type IotDpsSkuDefinitionListResultPage struct { - fn func(IotDpsSkuDefinitionListResult) (IotDpsSkuDefinitionListResult, error) - idsdlr IotDpsSkuDefinitionListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *IotDpsSkuDefinitionListResultPage) Next() error { - next, err := page.fn(page.idsdlr) - if err != nil { - return err - } - page.idsdlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page IotDpsSkuDefinitionListResultPage) NotDone() bool { - return !page.idsdlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (page IotDpsSkuDefinitionListResultPage) Response() IotDpsSkuDefinitionListResult { - return page.idsdlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page IotDpsSkuDefinitionListResultPage) Values() []IotDpsSkuDefinition { - if page.idsdlr.IsEmpty() { - return nil - } - return *page.idsdlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IotDpsSkuInfo list of possible provisoning service SKUs. -type IotDpsSkuInfo struct { - // Name - Possible values include: 'S1' - Name IotDpsSku `json:"name,omitempty"` - // Tier - Pricing tier of the provisioning service. - Tier *string `json:"tier,omitempty"` - // Capacity - The number of services of the selected tier allowed in the subscription. - Capacity *int64 `json:"capacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NameAvailabilityInfo description of name availability. -type NameAvailabilityInfo struct { - autorest.Response `json:"-"` - NameAvailable *bool `json:"nameAvailable,omitempty"` - // Reason - Possible values include: 'Invalid', 'AlreadyExists' - Reason NameUnavailabilityReason `json:"reason,omitempty"` - Message *string `json:"message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Operation ioT Hub REST API operation. -type Operation struct { - // Name - Operation name: {provider}/{resource}/{read | write | action | delete} - Name *string `json:"name,omitempty"` - // Display - The object that represents the operation. - Display *OperationDisplay `json:"display,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// OperationDisplay the object that represents the operation. -type OperationDisplay struct { - // Provider - Service provider: Microsoft Devices. - Provider *string `json:"provider,omitempty"` - // Resource - Resource Type: ProvisioningServices. - Resource *string `json:"resource,omitempty"` - // Operation - Name of the operation. - Operation *string `json:"operation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// OperationInputs input values for operation results call. -type OperationInputs struct { - // Name - The name of the Provisioning Service to check. - Name *string `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// OperationListResult result of the request to list IoT Hub operations. It contains a list of operations and a URL -// link to get the next set of results. -type OperationListResult struct { - autorest.Response `json:"-"` - // Value - List of IoT Hub operations supported by the Microsoft.Devices resource provider. - Value *[]Operation `json:"value,omitempty"` - // NextLink - URL to get the next set of operation list results if there are any. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// OperationListResultIterator provides access to a complete listing of Operation values. -type OperationListResultIterator struct { - i int - page OperationListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *OperationListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter OperationListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (iter OperationListResultIterator) Response() OperationListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter OperationListResultIterator) Value() Operation { - if !iter.page.NotDone() { - return Operation{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IsEmpty returns true if the ListResult contains no values. -func (olr OperationListResult) IsEmpty() bool { - return olr.Value == nil || len(*olr.Value) == 0 -} - -// operationListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (olr OperationListResult) operationListResultPreparer() (*http.Request, error) { - if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(olr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// OperationListResultPage contains a page of Operation values. -type OperationListResultPage struct { - fn func(OperationListResult) (OperationListResult, error) - olr OperationListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *OperationListResultPage) Next() error { - next, err := page.fn(page.olr) - if err != nil { - return err - } - page.olr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page OperationListResultPage) NotDone() bool { - return !page.olr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (page OperationListResultPage) Response() OperationListResult { - return page.olr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page OperationListResultPage) Values() []Operation { - if page.olr.IsEmpty() { - return nil - } - return *page.olr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ProvisioningServiceDescription the description of the provisioning service. -type ProvisioningServiceDescription struct { - autorest.Response `json:"-"` - // Etag - The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. - Etag *string `json:"etag,omitempty"` - Properties *IotDpsPropertiesDescription `json:"properties,omitempty"` - Sku *IotDpsSkuInfo `json:"sku,omitempty"` - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Location - The resource location. - Location *string `json:"location,omitempty"` - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// MarshalJSON is the custom marshaler for ProvisioningServiceDescription. -func (psd ProvisioningServiceDescription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if psd.Etag != nil { - objectMap["etag"] = psd.Etag - } - if psd.Properties != nil { - objectMap["properties"] = psd.Properties - } - if psd.Sku != nil { - objectMap["sku"] = psd.Sku - } - if psd.ID != nil { - objectMap["id"] = psd.ID - } - if psd.Name != nil { - objectMap["name"] = psd.Name - } - if psd.Type != nil { - objectMap["type"] = psd.Type - } - if psd.Location != nil { - objectMap["location"] = psd.Location - } - if psd.Tags != nil { - objectMap["tags"] = psd.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ProvisioningServiceDescriptionListResult list of provisioning service descriptions. -type ProvisioningServiceDescriptionListResult struct { - autorest.Response `json:"-"` - Value *[]ProvisioningServiceDescription `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ProvisioningServiceDescriptionListResultIterator provides access to a complete listing of -// ProvisioningServiceDescription values. -type ProvisioningServiceDescriptionListResultIterator struct { - i int - page ProvisioningServiceDescriptionListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ProvisioningServiceDescriptionListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ProvisioningServiceDescriptionListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (iter ProvisioningServiceDescriptionListResultIterator) Response() ProvisioningServiceDescriptionListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ProvisioningServiceDescriptionListResultIterator) Value() ProvisioningServiceDescription { - if !iter.page.NotDone() { - return ProvisioningServiceDescription{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IsEmpty returns true if the ListResult contains no values. -func (psdlr ProvisioningServiceDescriptionListResult) IsEmpty() bool { - return psdlr.Value == nil || len(*psdlr.Value) == 0 -} - -// provisioningServiceDescriptionListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (psdlr ProvisioningServiceDescriptionListResult) provisioningServiceDescriptionListResultPreparer() (*http.Request, error) { - if psdlr.NextLink == nil || len(to.String(psdlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(psdlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ProvisioningServiceDescriptionListResultPage contains a page of ProvisioningServiceDescription values. -type ProvisioningServiceDescriptionListResultPage struct { - fn func(ProvisioningServiceDescriptionListResult) (ProvisioningServiceDescriptionListResult, error) - psdlr ProvisioningServiceDescriptionListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ProvisioningServiceDescriptionListResultPage) Next() error { - next, err := page.fn(page.psdlr) - if err != nil { - return err - } - page.psdlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ProvisioningServiceDescriptionListResultPage) NotDone() bool { - return !page.psdlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (page ProvisioningServiceDescriptionListResultPage) Response() ProvisioningServiceDescriptionListResult { - return page.psdlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page ProvisioningServiceDescriptionListResultPage) Values() []ProvisioningServiceDescription { - if page.psdlr.IsEmpty() { - return nil - } - return *page.psdlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Resource the common properties of an Azure resource. -type Resource struct { - // ID - The resource identifier. - ID *string `json:"id,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` - // Type - The resource type. - Type *string `json:"type,omitempty"` - // Location - The resource location. - Location *string `json:"location,omitempty"` - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// MarshalJSON is the custom marshaler for Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// SharedAccessSignatureAuthorizationRuleAccessRightsDescription description of the shared access key. -type SharedAccessSignatureAuthorizationRuleAccessRightsDescription struct { - autorest.Response `json:"-"` - // KeyName - Name of the key. - KeyName *string `json:"keyName,omitempty"` - // PrimaryKey - Primary SAS key value. - PrimaryKey *string `json:"primaryKey,omitempty"` - // SecondaryKey - Secondary SAS key value. - SecondaryKey *string `json:"secondaryKey,omitempty"` - // Rights - Rights that this key has. Possible values include: 'ServiceConfig', 'EnrollmentRead', 'EnrollmentWrite', 'DeviceConnect', 'RegistrationStatusRead', 'RegistrationStatusWrite' - Rights AccessRightsDescription `json:"rights,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// SharedAccessSignatureAuthorizationRuleListResult list of shared access keys. -type SharedAccessSignatureAuthorizationRuleListResult struct { - autorest.Response `json:"-"` - Value *[]SharedAccessSignatureAuthorizationRuleAccessRightsDescription `json:"value,omitempty"` - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// SharedAccessSignatureAuthorizationRuleListResultIterator provides access to a complete listing of -// SharedAccessSignatureAuthorizationRuleAccessRightsDescription values. -type SharedAccessSignatureAuthorizationRuleListResultIterator struct { - i int - page SharedAccessSignatureAuthorizationRuleListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *SharedAccessSignatureAuthorizationRuleListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter SharedAccessSignatureAuthorizationRuleListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (iter SharedAccessSignatureAuthorizationRuleListResultIterator) Response() SharedAccessSignatureAuthorizationRuleListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter SharedAccessSignatureAuthorizationRuleListResultIterator) Value() SharedAccessSignatureAuthorizationRuleAccessRightsDescription { - if !iter.page.NotDone() { - return SharedAccessSignatureAuthorizationRuleAccessRightsDescription{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// IsEmpty returns true if the ListResult contains no values. -func (sasarlr SharedAccessSignatureAuthorizationRuleListResult) IsEmpty() bool { - return sasarlr.Value == nil || len(*sasarlr.Value) == 0 -} - -// sharedAccessSignatureAuthorizationRuleListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (sasarlr SharedAccessSignatureAuthorizationRuleListResult) sharedAccessSignatureAuthorizationRuleListResultPreparer() (*http.Request, error) { - if sasarlr.NextLink == nil || len(to.String(sasarlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(sasarlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// SharedAccessSignatureAuthorizationRuleListResultPage contains a page of -// SharedAccessSignatureAuthorizationRuleAccessRightsDescription values. -type SharedAccessSignatureAuthorizationRuleListResultPage struct { - fn func(SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error) - sasarlr SharedAccessSignatureAuthorizationRuleListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *SharedAccessSignatureAuthorizationRuleListResultPage) Next() error { - next, err := page.fn(page.sasarlr) - if err != nil { - return err - } - page.sasarlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page SharedAccessSignatureAuthorizationRuleListResultPage) NotDone() bool { - return !page.sasarlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Response returns the raw server response from the last page request. -func (page SharedAccessSignatureAuthorizationRuleListResultPage) Response() SharedAccessSignatureAuthorizationRuleListResult { - return page.sasarlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page SharedAccessSignatureAuthorizationRuleListResultPage) Values() []SharedAccessSignatureAuthorizationRuleAccessRightsDescription { - if page.sasarlr.IsEmpty() { - return nil - } - return *page.sasarlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// VerificationCodeRequest certificate to generate verification code for. -type VerificationCodeRequest struct { - Certificate *string `json:"certificate,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// VerificationCodeResponse description of the response of the verification code. -type VerificationCodeResponse struct { - autorest.Response `json:"-"` - // VerificationCode - Verification code. - VerificationCode *string `json:"verificationCode,omitempty"` - // Name - Name of certificate. - Name *string `json:"name,omitempty"` - // Etag - Request etag. - Etag *string `json:"etag,omitempty"` - // Subject - Certificate subject. - Subject *string `json:"subject,omitempty"` - // Expiry - Code expiry. - Expiry *string `json:"expiry,omitempty"` - // Thumbprint - Certificate thumbprint. - Thumbprint *string `json:"thumbprint,omitempty"` - // IsVerified - Indicate if the certificate is verified by owner of private key. - IsVerified *bool `json:"isVerified,omitempty"` - // Created - Certificate created time. - Created *string `json:"created,omitempty"` - // Updated - Certificate updated time. - Updated *string `json:"updated,omitempty"` -} diff --git a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/operations.go b/services/provisioningservices/mgmt/2017-08-21-preview/iothub/operations.go deleted file mode 100644 index 84a1e3be7e2c..000000000000 --- a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/operations.go +++ /dev/null @@ -1,134 +0,0 @@ -package iothub - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// OperationsClient is the API for using the Azure IoT Hub Device Provisioning Service features. -type OperationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewOperationsClient creates an instance of the OperationsClient client. -func NewOperationsClient(subscriptionID string) OperationsClient { - return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. -func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { - return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// List lists all of the available Microsoft.Devices REST API operations. -func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.olr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "List", resp, "Failure sending request") - return - } - - result.olr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListPreparer prepares the List request. -func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2017-08-21-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.Devices/operations"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client OperationsClient) listNextResults(lastResults OperationListResult) (result OperationListResult, err error) { - req, err := lastResults.operationListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "iothub.OperationsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "iothub.OperationsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "iothub.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { - result.page, err = client.List(ctx) - return -} diff --git a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/version.go b/services/provisioningservices/mgmt/2017-08-21-preview/iothub/version.go deleted file mode 100644 index e907ead88fd4..000000000000 --- a/services/provisioningservices/mgmt/2017-08-21-preview/iothub/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package iothub - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " iothub/2017-08-21-preview" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/provisioningservices/preview/mgmt/2017-08-21-preview/iothub instead. -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/resources/mgmt/2015-10-01-preview/policy/assignments.go b/services/resources/mgmt/2015-10-01-preview/policy/assignments.go deleted file mode 100644 index b5d69496ed37..000000000000 --- a/services/resources/mgmt/2015-10-01-preview/policy/assignments.go +++ /dev/null @@ -1,804 +0,0 @@ -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// AssignmentsClient is the to manage and control access to your resources, you can define customized policies and -// assign them at a scope. -type AssignmentsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NewAssignmentsClient creates an instance of the AssignmentsClient client. -func NewAssignmentsClient(subscriptionID string) AssignmentsClient { - return NewAssignmentsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NewAssignmentsClientWithBaseURI creates an instance of the AssignmentsClient client. -func NewAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) AssignmentsClient { - return AssignmentsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Create policy assignments are inherited by child resources. For example, when you apply a policy to a resource group -// that policy is assigned to all resources in the group. -// -// scope is the scope of the policy assignment. policyAssignmentName is the name of the policy assignment. -// parameters is parameters for the policy assignment. -func (client AssignmentsClient) Create(ctx context.Context, scope string, policyAssignmentName string, parameters Assignment) (result Assignment, err error) { - req, err := client.CreatePreparer(ctx, scope, policyAssignmentName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreatePreparer prepares the Create request. -func (client AssignmentsClient) CreatePreparer(ctx context.Context, scope string, policyAssignmentName string, parameters Assignment) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentName": autorest.Encode("path", policyAssignmentName), - "scope": scope, - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) CreateResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateByID policy assignments are inherited by child resources. For example, when you apply a policy to a resource -// group that policy is assigned to all resources in the group. When providing a scope for the assigment, use -// '/subscriptions/{subscription-id}/' for subscriptions, -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' -// for resources. -// -// policyAssignmentID is the ID of the policy assignment to create. Use the format -// '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. parameters is -// parameters for policy assignment. -func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignmentID string, parameters Assignment) (result Assignment, err error) { - req, err := client.CreateByIDPreparer(ctx, policyAssignmentID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", nil, "Failure preparing request") - return - } - - resp, err := client.CreateByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure sending request") - return - } - - result, err = client.CreateByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateByIDPreparer prepares the CreateByID request. -func (client AssignmentsClient) CreateByIDPreparer(ctx context.Context, policyAssignmentID string, parameters Assignment) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentId": policyAssignmentID, - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{policyAssignmentId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateByIDSender sends the CreateByID request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) CreateByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateByIDResponder handles the response to the CreateByID request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) CreateByIDResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Delete deletes a policy assignment. -// -// scope is the scope of the policy assignment. policyAssignmentName is the name of the policy assignment to -// delete. -func (client AssignmentsClient) Delete(ctx context.Context, scope string, policyAssignmentName string) (result Assignment, err error) { - req, err := client.DeletePreparer(ctx, scope, policyAssignmentName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeletePreparer prepares the Delete request. -func (client AssignmentsClient) DeletePreparer(ctx context.Context, scope string, policyAssignmentName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentName": autorest.Encode("path", policyAssignmentName), - "scope": scope, - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) DeleteResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteByID when providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' -// for resources. -// -// policyAssignmentID is the ID of the policy assignment to delete. Use the format -// '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. -func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignmentID string) (result Assignment, err error) { - req, err := client.DeleteByIDPreparer(ctx, policyAssignmentID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure sending request") - return - } - - result, err = client.DeleteByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteByIDPreparer prepares the DeleteByID request. -func (client AssignmentsClient) DeleteByIDPreparer(ctx context.Context, policyAssignmentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentId": policyAssignmentID, - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{policyAssignmentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteByIDSender sends the DeleteByID request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) DeleteByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteByIDResponder handles the response to the DeleteByID request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) DeleteByIDResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Get gets a policy assignment. -// -// scope is the scope of the policy assignment. policyAssignmentName is the name of the policy assignment to get. -func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAssignmentName string) (result Assignment, err error) { - req, err := client.GetPreparer(ctx, scope, policyAssignmentName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetPreparer prepares the Get request. -func (client AssignmentsClient) GetPreparer(ctx context.Context, scope string, policyAssignmentName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentName": autorest.Encode("path", policyAssignmentName), - "scope": scope, - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) GetResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetByID when providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' -// for resources. -// -// policyAssignmentID is the ID of the policy assignment to get. Use the format -// '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. -func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID string) (result Assignment, err error) { - req, err := client.GetByIDPreparer(ctx, policyAssignmentID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", nil, "Failure preparing request") - return - } - - resp, err := client.GetByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure sending request") - return - } - - result, err = client.GetByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetByIDPreparer prepares the GetByID request. -func (client AssignmentsClient) GetByIDPreparer(ctx context.Context, policyAssignmentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentId": policyAssignmentID, - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{policyAssignmentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetByIDSender sends the GetByID request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetByIDResponder handles the response to the GetByID request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) GetByIDResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// List gets all the policy assignments for a subscription. -// -// filter is the filter to apply on the operation. -func (client AssignmentsClient) List(ctx context.Context, filter string) (result AssignmentListResultPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure sending request") - return - } - - result.alr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListPreparer prepares the List request. -func (client AssignmentsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) ListResponder(resp *http.Response) (result AssignmentListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client AssignmentsClient) listNextResults(lastResults AssignmentListResult) (result AssignmentListResult, err error) { - req, err := lastResults.assignmentListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client AssignmentsClient) ListComplete(ctx context.Context, filter string) (result AssignmentListResultIterator, err error) { - result.page, err = client.List(ctx, filter) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResource gets policy assignments for a resource. -// -// resourceGroupName is the name of the resource group containing the resource. The name is case insensitive. -// resourceProviderNamespace is the namespace of the resource provider. parentResourcePath is the parent resource -// path. resourceType is the resource type. resourceName is the name of the resource with policy assignments. -// filter is the filter to apply on the operation. -func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result AssignmentListResultPage, 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}}}}); err != nil { - return result, validation.NewError("policy.AssignmentsClient", "ListForResource", err.Error()) - } - - result.fn = client.listForResourceNextResults - req, err := client.ListForResourcePreparer(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", nil, "Failure preparing request") - return - } - - resp, err := client.ListForResourceSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure sending request") - return - } - - result.alr, err = client.ListForResourceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourcePreparer prepares the ListForResource request. -func (client AssignmentsClient) ListForResourcePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "parentResourcePath": parentResourcePath, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), - "resourceType": resourceType, - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceSender sends the ListForResource request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) ListForResourceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceResponder handles the response to the ListForResource request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) ListForResourceResponder(resp *http.Response) (result AssignmentListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listForResourceNextResults retrieves the next set of results, if any. -func (client AssignmentsClient) listForResourceNextResults(lastResults AssignmentListResult) (result AssignmentListResult, err error) { - req, err := lastResults.assignmentListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListForResourceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListForResourceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceComplete enumerates all values, automatically crossing page boundaries as required. -func (client AssignmentsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result AssignmentListResultIterator, err error) { - result.page, err = client.ListForResource(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, filter) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceGroup gets policy assignments for the resource group. -// -// resourceGroupName is the name of the resource group that contains policy assignments. filter is the filter to -// apply on the operation. -func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result AssignmentListResultPage, 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}}}}); err != nil { - return result, validation.NewError("policy.AssignmentsClient", "ListForResourceGroup", err.Error()) - } - - result.fn = client.listForResourceGroupNextResults - req, err := client.ListForResourceGroupPreparer(ctx, resourceGroupName, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListForResourceGroupSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure sending request") - return - } - - result.alr, err = client.ListForResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceGroupPreparer prepares the ListForResourceGroup request. -func (client AssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceGroupSender sends the ListForResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result AssignmentListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listForResourceGroupNextResults retrieves the next set of results, if any. -func (client AssignmentsClient) listForResourceGroupNextResults(lastResults AssignmentListResult) (result AssignmentListResult, err error) { - req, err := lastResults.assignmentListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListForResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListForResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client AssignmentsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result AssignmentListResultIterator, err error) { - result.page, err = client.ListForResourceGroup(ctx, resourceGroupName, filter) - return -} diff --git a/services/resources/mgmt/2015-10-01-preview/policy/client.go b/services/resources/mgmt/2015-10-01-preview/policy/client.go deleted file mode 100644 index d82956024237..000000000000 --- a/services/resources/mgmt/2015-10-01-preview/policy/client.go +++ /dev/null @@ -1,54 +0,0 @@ -// Package policy implements the Azure ARM Policy service API version 2015-10-01-preview. -// -// To manage and control access to your resources, you can define customized policies and assign them at a scope. -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Policy - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// BaseClient is the base client for Policy. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/services/resources/mgmt/2015-10-01-preview/policy/definitions.go b/services/resources/mgmt/2015-10-01-preview/policy/definitions.go deleted file mode 100644 index d36e8822726d..000000000000 --- a/services/resources/mgmt/2015-10-01-preview/policy/definitions.go +++ /dev/null @@ -1,353 +0,0 @@ -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DefinitionsClient is the to manage and control access to your resources, you can define customized policies and -// assign them at a scope. -type DefinitionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NewDefinitionsClient creates an instance of the DefinitionsClient client. -func NewDefinitionsClient(subscriptionID string) DefinitionsClient { - return NewDefinitionsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NewDefinitionsClientWithBaseURI creates an instance of the DefinitionsClient client. -func NewDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) DefinitionsClient { - return DefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateOrUpdate creates or updates a policy definition. -// -// policyDefinitionName is the name of the policy definition to create. parameters is the policy definition -// properties. -func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefinitionName string, parameters Definition) (result Definition, err error) { - req, err := client.CreateOrUpdatePreparer(ctx, policyDefinitionName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, policyDefinitionName string, parameters Definition) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result Definition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Delete deletes a policy definition. -// -// policyDefinitionName is the name of the policy definition to delete. -func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName string) (result autorest.Response, err error) { - req, err := client.DeletePreparer(ctx, policyDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeletePreparer prepares the Delete request. -func (client DefinitionsClient) DeletePreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Get gets the policy definition. -// -// policyDefinitionName is the name of the policy definition to get. -func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName string) (result Definition, err error) { - req, err := client.GetPreparer(ctx, policyDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetPreparer prepares the Get request. -func (client DefinitionsClient) GetPreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) GetResponder(resp *http.Response) (result Definition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// List gets all the policy definitions for a subscription. -// -// filter is the filter to apply on the operation. -func (client DefinitionsClient) List(ctx context.Context, filter string) (result DefinitionListResultPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.dlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure sending request") - return - } - - result.dlr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListPreparer prepares the List request. -func (client DefinitionsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2015-10-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) ListResponder(resp *http.Response) (result DefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client DefinitionsClient) listNextResults(lastResults DefinitionListResult) (result DefinitionListResult, err error) { - req, err := lastResults.definitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client DefinitionsClient) ListComplete(ctx context.Context, filter string) (result DefinitionListResultIterator, err error) { - result.page, err = client.List(ctx, filter) - return -} diff --git a/services/resources/mgmt/2015-10-01-preview/policy/models.go b/services/resources/mgmt/2015-10-01-preview/policy/models.go deleted file mode 100644 index bbd4926b9161..000000000000 --- a/services/resources/mgmt/2015-10-01-preview/policy/models.go +++ /dev/null @@ -1,452 +0,0 @@ -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/to" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Type enumerates the values for type. -type Type string - -const ( - // BuiltIn ... - BuiltIn Type = "BuiltIn" - // Custom ... - Custom Type = "Custom" - // NotSpecified ... - NotSpecified Type = "NotSpecified" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{BuiltIn, Custom, NotSpecified} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Assignment the policy assignment. -type Assignment struct { - autorest.Response `json:"-"` - // AssignmentProperties - Properties for the policy assignment. - *AssignmentProperties `json:"properties,omitempty"` - // ID - The ID of the policy assignment. - ID *string `json:"id,omitempty"` - // Type - The type of the policy assignment. - Type *string `json:"type,omitempty"` - // Name - The name of the policy assignment. - Name *string `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// MarshalJSON is the custom marshaler for Assignment. -func (a Assignment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if a.AssignmentProperties != nil { - objectMap["properties"] = a.AssignmentProperties - } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Type != nil { - objectMap["type"] = a.Type - } - if a.Name != nil { - objectMap["name"] = a.Name - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// UnmarshalJSON is the custom unmarshaler for Assignment struct. -func (a *Assignment) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var assignmentProperties AssignmentProperties - err = json.Unmarshal(*v, &assignmentProperties) - if err != nil { - return err - } - a.AssignmentProperties = &assignmentProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - a.ID = &ID - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - a.Type = &typeVar - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - a.Name = &name - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// AssignmentListResult list of policy assignments. -type AssignmentListResult struct { - autorest.Response `json:"-"` - // Value - An array of policy assignments. - Value *[]Assignment `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// AssignmentListResultIterator provides access to a complete listing of Assignment values. -type AssignmentListResultIterator struct { - i int - page AssignmentListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *AssignmentListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter AssignmentListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (iter AssignmentListResultIterator) Response() AssignmentListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter AssignmentListResultIterator) Value() Assignment { - if !iter.page.NotDone() { - return Assignment{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// IsEmpty returns true if the ListResult contains no values. -func (alr AssignmentListResult) IsEmpty() bool { - return alr.Value == nil || len(*alr.Value) == 0 -} - -// assignmentListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (alr AssignmentListResult) assignmentListResultPreparer() (*http.Request, error) { - if alr.NextLink == nil || len(to.String(alr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(alr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// AssignmentListResultPage contains a page of Assignment values. -type AssignmentListResultPage struct { - fn func(AssignmentListResult) (AssignmentListResult, error) - alr AssignmentListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *AssignmentListResultPage) Next() error { - next, err := page.fn(page.alr) - if err != nil { - return err - } - page.alr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page AssignmentListResultPage) NotDone() bool { - return !page.alr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (page AssignmentListResultPage) Response() AssignmentListResult { - return page.alr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page AssignmentListResultPage) Values() []Assignment { - if page.alr.IsEmpty() { - return nil - } - return *page.alr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// AssignmentProperties the policy assignment properties. -type AssignmentProperties struct { - // DisplayName - The display name of the policy assignment. - DisplayName *string `json:"displayName,omitempty"` - // PolicyDefinitionID - The ID of the policy definition. - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"` - // Scope - The scope for the policy assignment. - Scope *string `json:"scope,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Definition the policy definition. -type Definition struct { - autorest.Response `json:"-"` - // DefinitionProperties - The policy definition properties. - *DefinitionProperties `json:"properties,omitempty"` - // ID - The ID of the policy definition. - ID *string `json:"id,omitempty"` - // Name - The name of the policy definition. If you do not specify a value for name, the value is inferred from the name value in the request URI. - Name *string `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// MarshalJSON is the custom marshaler for Definition. -func (d Definition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if d.DefinitionProperties != nil { - objectMap["properties"] = d.DefinitionProperties - } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// UnmarshalJSON is the custom unmarshaler for Definition struct. -func (d *Definition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var definitionProperties DefinitionProperties - err = json.Unmarshal(*v, &definitionProperties) - if err != nil { - return err - } - d.DefinitionProperties = &definitionProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - d.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - d.Name = &name - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DefinitionListResult list of policy definitions. -type DefinitionListResult struct { - autorest.Response `json:"-"` - // Value - An array of policy definitions. - Value *[]Definition `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DefinitionListResultIterator provides access to a complete listing of Definition values. -type DefinitionListResultIterator struct { - i int - page DefinitionListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *DefinitionListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter DefinitionListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (iter DefinitionListResultIterator) Response() DefinitionListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter DefinitionListResultIterator) Value() Definition { - if !iter.page.NotDone() { - return Definition{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// IsEmpty returns true if the ListResult contains no values. -func (dlr DefinitionListResult) IsEmpty() bool { - return dlr.Value == nil || len(*dlr.Value) == 0 -} - -// definitionListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (dlr DefinitionListResult) definitionListResultPreparer() (*http.Request, error) { - if dlr.NextLink == nil || len(to.String(dlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(dlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DefinitionListResultPage contains a page of Definition values. -type DefinitionListResultPage struct { - fn func(DefinitionListResult) (DefinitionListResult, error) - dlr DefinitionListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *DefinitionListResultPage) Next() error { - next, err := page.fn(page.dlr) - if err != nil { - return err - } - page.dlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page DefinitionListResultPage) NotDone() bool { - return !page.dlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (page DefinitionListResultPage) Response() DefinitionListResult { - return page.dlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page DefinitionListResultPage) Values() []Definition { - if page.dlr.IsEmpty() { - return nil - } - return *page.dlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// DefinitionProperties the policy definition properties. -type DefinitionProperties struct { - // PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom' - PolicyType Type `json:"policyType,omitempty"` - // DisplayName - The display name of the policy definition. - DisplayName *string `json:"displayName,omitempty"` - // Description - The policy definition description. - Description *string `json:"description,omitempty"` - // PolicyRule - The policy rule. - PolicyRule interface{} `json:"policyRule,omitempty"` -} diff --git a/services/resources/mgmt/2015-10-01-preview/policy/version.go b/services/resources/mgmt/2015-10-01-preview/policy/version.go deleted file mode 100644 index 79997abc27cc..000000000000 --- a/services/resources/mgmt/2015-10-01-preview/policy/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package policy - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " policy/2015-10-01-preview" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2015-10-01-preview/policy instead. -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/resources/mgmt/2016-09-01-preview/managedapplications/appliancedefinitions.go b/services/resources/mgmt/2016-09-01-preview/managedapplications/appliancedefinitions.go deleted file mode 100644 index 8a3cc259f1af..000000000000 --- a/services/resources/mgmt/2016-09-01-preview/managedapplications/appliancedefinitions.go +++ /dev/null @@ -1,632 +0,0 @@ -package managedapplications - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionsClient is the ARM managed applications (appliances) -type ApplianceDefinitionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NewApplianceDefinitionsClient creates an instance of the ApplianceDefinitionsClient client. -func NewApplianceDefinitionsClient(subscriptionID string) ApplianceDefinitionsClient { - return NewApplianceDefinitionsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NewApplianceDefinitionsClientWithBaseURI creates an instance of the ApplianceDefinitionsClient client. -func NewApplianceDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) ApplianceDefinitionsClient { - return ApplianceDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdate creates a new appliance definition. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. applianceDefinitionName is -// the name of the appliance definition. parameters is parameters supplied to the create or update an appliance -// definition. -func (client ApplianceDefinitionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applianceDefinitionName string, parameters ApplianceDefinition) (result ApplianceDefinitionsCreateOrUpdateFuture, 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: applianceDefinitionName, - Constraints: []validation.Constraint{{Target: "applianceDefinitionName", Name: validation.MaxLength, Rule: 64, Chain: nil}, - {Target: "applianceDefinitionName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ApplianceDefinitionProperties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ApplianceDefinitionProperties.Authorizations", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.ApplianceDefinitionProperties.PackageFileURI", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("managedapplications.ApplianceDefinitionsClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, applianceDefinitionName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "CreateOrUpdate", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ApplianceDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applianceDefinitionName string, parameters ApplianceDefinition) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceDefinitionName": autorest.Encode("path", applianceDefinitionName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ApplianceDefinitionsClient) CreateOrUpdateSender(req *http.Request) (future ApplianceDefinitionsCreateOrUpdateFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ApplianceDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplianceDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByID creates a new appliance definition. -// -// applianceDefinitionID is the fully qualified ID of the appliance definition, including the appliance name and -// the appliance definition resource type. Use the format, -// /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name} -// parameters is parameters supplied to the create or update an appliance definition. -func (client ApplianceDefinitionsClient) CreateOrUpdateByID(ctx context.Context, applianceDefinitionID string, parameters ApplianceDefinition) (result ApplianceDefinitionsCreateOrUpdateByIDFuture, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ApplianceDefinitionProperties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ApplianceDefinitionProperties.Authorizations", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.ApplianceDefinitionProperties.PackageFileURI", Name: validation.Null, Rule: true, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("managedapplications.ApplianceDefinitionsClient", "CreateOrUpdateByID", err.Error()) - } - - req, err := client.CreateOrUpdateByIDPreparer(ctx, applianceDefinitionID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "CreateOrUpdateByID", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateByIDSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "CreateOrUpdateByID", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByIDPreparer prepares the CreateOrUpdateByID request. -func (client ApplianceDefinitionsClient) CreateOrUpdateByIDPreparer(ctx context.Context, applianceDefinitionID string, parameters ApplianceDefinition) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceDefinitionId": applianceDefinitionID, - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{applianceDefinitionId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByIDSender sends the CreateOrUpdateByID request. The method will close the -// http.Response Body if it receives an error. -func (client ApplianceDefinitionsClient) CreateOrUpdateByIDSender(req *http.Request) (future ApplianceDefinitionsCreateOrUpdateByIDFuture, err error) { - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByIDResponder handles the response to the CreateOrUpdateByID request. The method always -// closes the http.Response Body. -func (client ApplianceDefinitionsClient) CreateOrUpdateByIDResponder(resp *http.Response) (result ApplianceDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Delete deletes the appliance definition. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. applianceDefinitionName is -// the name of the appliance definition to delete. -func (client ApplianceDefinitionsClient) Delete(ctx context.Context, resourceGroupName string, applianceDefinitionName string) (result ApplianceDefinitionsDeleteFuture, 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: applianceDefinitionName, - Constraints: []validation.Constraint{{Target: "applianceDefinitionName", Name: validation.MaxLength, Rule: 64, Chain: nil}, - {Target: "applianceDefinitionName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("managedapplications.ApplianceDefinitionsClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, applianceDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "Delete", nil, "Failure preparing request") - return - } - - result, err = client.DeleteSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "Delete", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeletePreparer prepares the Delete request. -func (client ApplianceDefinitionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applianceDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceDefinitionName": autorest.Encode("path", applianceDefinitionName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ApplianceDefinitionsClient) DeleteSender(req *http.Request) (future ApplianceDefinitionsDeleteFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ApplianceDefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByID deletes the appliance definition. -// -// applianceDefinitionID is the fully qualified ID of the appliance definition, including the appliance name and -// the appliance definition resource type. Use the format, -// /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name} -func (client ApplianceDefinitionsClient) DeleteByID(ctx context.Context, applianceDefinitionID string) (result ApplianceDefinitionsDeleteByIDFuture, err error) { - req, err := client.DeleteByIDPreparer(ctx, applianceDefinitionID) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "DeleteByID", nil, "Failure preparing request") - return - } - - result, err = client.DeleteByIDSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "DeleteByID", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByIDPreparer prepares the DeleteByID request. -func (client ApplianceDefinitionsClient) DeleteByIDPreparer(ctx context.Context, applianceDefinitionID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceDefinitionId": applianceDefinitionID, - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{applianceDefinitionId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByIDSender sends the DeleteByID request. The method will close the -// http.Response Body if it receives an error. -func (client ApplianceDefinitionsClient) DeleteByIDSender(req *http.Request) (future ApplianceDefinitionsDeleteByIDFuture, err error) { - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByIDResponder handles the response to the DeleteByID request. The method always -// closes the http.Response Body. -func (client ApplianceDefinitionsClient) DeleteByIDResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Get gets the appliance definition. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. applianceDefinitionName is -// the name of the appliance definition. -func (client ApplianceDefinitionsClient) Get(ctx context.Context, resourceGroupName string, applianceDefinitionName string) (result ApplianceDefinition, 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: applianceDefinitionName, - Constraints: []validation.Constraint{{Target: "applianceDefinitionName", Name: validation.MaxLength, Rule: 64, Chain: nil}, - {Target: "applianceDefinitionName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("managedapplications.ApplianceDefinitionsClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, applianceDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetPreparer prepares the Get request. -func (client ApplianceDefinitionsClient) GetPreparer(ctx context.Context, resourceGroupName string, applianceDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceDefinitionName": autorest.Encode("path", applianceDefinitionName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ApplianceDefinitionsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ApplianceDefinitionsClient) GetResponder(resp *http.Response) (result ApplianceDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByID gets the appliance definition. -// -// applianceDefinitionID is the fully qualified ID of the appliance definition, including the appliance name and -// the appliance definition resource type. Use the format, -// /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name} -func (client ApplianceDefinitionsClient) GetByID(ctx context.Context, applianceDefinitionID string) (result ApplianceDefinition, err error) { - req, err := client.GetByIDPreparer(ctx, applianceDefinitionID) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "GetByID", nil, "Failure preparing request") - return - } - - resp, err := client.GetByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "GetByID", resp, "Failure sending request") - return - } - - result, err = client.GetByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "GetByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByIDPreparer prepares the GetByID request. -func (client ApplianceDefinitionsClient) GetByIDPreparer(ctx context.Context, applianceDefinitionID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceDefinitionId": applianceDefinitionID, - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{applianceDefinitionId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByIDSender sends the GetByID request. The method will close the -// http.Response Body if it receives an error. -func (client ApplianceDefinitionsClient) GetByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByIDResponder handles the response to the GetByID request. The method always -// closes the http.Response Body. -func (client ApplianceDefinitionsClient) GetByIDResponder(resp *http.Response) (result ApplianceDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroup lists the appliance definitions in a resource group. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. -func (client ApplianceDefinitionsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ApplianceDefinitionListResultPage, 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}}}}); err != nil { - return result, validation.NewError("managedapplications.ApplianceDefinitionsClient", "ListByResourceGroup", err.Error()) - } - - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.adlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.adlr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client ApplianceDefinitionsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client ApplianceDefinitionsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client ApplianceDefinitionsClient) ListByResourceGroupResponder(resp *http.Response) (result ApplianceDefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client ApplianceDefinitionsClient) listByResourceGroupNextResults(lastResults ApplianceDefinitionListResult) (result ApplianceDefinitionListResult, err error) { - req, err := lastResults.applianceDefinitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client ApplianceDefinitionsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ApplianceDefinitionListResultIterator, err error) { - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) - return -} diff --git a/services/resources/mgmt/2016-09-01-preview/managedapplications/appliances.go b/services/resources/mgmt/2016-09-01-preview/managedapplications/appliances.go deleted file mode 100644 index e252833fb4d1..000000000000 --- a/services/resources/mgmt/2016-09-01-preview/managedapplications/appliances.go +++ /dev/null @@ -1,901 +0,0 @@ -package managedapplications - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// AppliancesClient is the ARM managed applications (appliances) -type AppliancesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NewAppliancesClient creates an instance of the AppliancesClient client. -func NewAppliancesClient(subscriptionID string) AppliancesClient { - return NewAppliancesClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NewAppliancesClientWithBaseURI creates an instance of the AppliancesClient client. -func NewAppliancesClientWithBaseURI(baseURI string, subscriptionID string) AppliancesClient { - return AppliancesClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdate creates a new appliance. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. applianceName is the name of -// the appliance. parameters is parameters supplied to the create or update an appliance. -func (client AppliancesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applianceName string, parameters Appliance) (result AppliancesCreateOrUpdateFuture, 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: applianceName, - Constraints: []validation.Constraint{{Target: "applianceName", Name: validation.MaxLength, Rule: 64, Chain: nil}, - {Target: "applianceName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ApplianceProperties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ApplianceProperties.ManagedResourceGroupID", Name: validation.Null, Rule: true, Chain: nil}}}, - {Target: "parameters.Plan", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Plan.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Plan.Publisher", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Plan.Product", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Plan.Version", Name: validation.Null, Rule: true, Chain: nil}, - }}, - {Target: "parameters.Kind", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Kind", Name: validation.Pattern, Rule: `^[-\w\._,\(\)]+$`, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("managedapplications.AppliancesClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, applianceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "CreateOrUpdate", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client AppliancesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applianceName string, parameters Appliance) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceName": autorest.Encode("path", applianceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) CreateOrUpdateSender(req *http.Request) (future AppliancesCreateOrUpdateFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client AppliancesClient) CreateOrUpdateResponder(resp *http.Response) (result Appliance, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByID creates a new appliance. -// -// applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource -// type. Use the format, -// /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} -// parameters is parameters supplied to the create or update an appliance. -func (client AppliancesClient) CreateOrUpdateByID(ctx context.Context, applianceID string, parameters Appliance) (result AppliancesCreateOrUpdateByIDFuture, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ApplianceProperties", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ApplianceProperties.ManagedResourceGroupID", Name: validation.Null, Rule: true, Chain: nil}}}, - {Target: "parameters.Plan", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Plan.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Plan.Publisher", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Plan.Product", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.Plan.Version", Name: validation.Null, Rule: true, Chain: nil}, - }}, - {Target: "parameters.Kind", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Kind", Name: validation.Pattern, Rule: `^[-\w\._,\(\)]+$`, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("managedapplications.AppliancesClient", "CreateOrUpdateByID", err.Error()) - } - - req, err := client.CreateOrUpdateByIDPreparer(ctx, applianceID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "CreateOrUpdateByID", nil, "Failure preparing request") - return - } - - result, err = client.CreateOrUpdateByIDSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "CreateOrUpdateByID", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByIDPreparer prepares the CreateOrUpdateByID request. -func (client AppliancesClient) CreateOrUpdateByIDPreparer(ctx context.Context, applianceID string, parameters Appliance) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceId": applianceID, - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{applianceId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByIDSender sends the CreateOrUpdateByID request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) CreateOrUpdateByIDSender(req *http.Request) (future AppliancesCreateOrUpdateByIDFuture, err error) { - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// CreateOrUpdateByIDResponder handles the response to the CreateOrUpdateByID request. The method always -// closes the http.Response Body. -func (client AppliancesClient) CreateOrUpdateByIDResponder(resp *http.Response) (result Appliance, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Delete deletes the appliance. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. applianceName is the name of -// the appliance. -func (client AppliancesClient) Delete(ctx context.Context, resourceGroupName string, applianceName string) (result AppliancesDeleteFuture, 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: applianceName, - Constraints: []validation.Constraint{{Target: "applianceName", Name: validation.MaxLength, Rule: 64, Chain: nil}, - {Target: "applianceName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("managedapplications.AppliancesClient", "Delete", err.Error()) - } - - req, err := client.DeletePreparer(ctx, resourceGroupName, applianceName) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Delete", nil, "Failure preparing request") - return - } - - result, err = client.DeleteSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Delete", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeletePreparer prepares the Delete request. -func (client AppliancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, applianceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceName": autorest.Encode("path", applianceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) DeleteSender(req *http.Request) (future AppliancesDeleteFuture, err error) { - sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client AppliancesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByID deletes the appliance. -// -// applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource -// type. Use the format, -// /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} -func (client AppliancesClient) DeleteByID(ctx context.Context, applianceID string) (result AppliancesDeleteByIDFuture, err error) { - req, err := client.DeleteByIDPreparer(ctx, applianceID) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "DeleteByID", nil, "Failure preparing request") - return - } - - result, err = client.DeleteByIDSender(req) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "DeleteByID", result.Response(), "Failure sending request") - return - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByIDPreparer prepares the DeleteByID request. -func (client AppliancesClient) DeleteByIDPreparer(ctx context.Context, applianceID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceId": applianceID, - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{applianceId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByIDSender sends the DeleteByID request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) DeleteByIDSender(req *http.Request) (future AppliancesDeleteByIDFuture, err error) { - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - future.Future = azure.NewFuture(req) - future.req = req - _, err = future.Done(sender) - if err != nil { - return - } - err = autorest.Respond(future.Response(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent)) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// DeleteByIDResponder handles the response to the DeleteByID request. The method always -// closes the http.Response Body. -func (client AppliancesClient) DeleteByIDResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Get gets the appliance. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. applianceName is the name of -// the appliance. -func (client AppliancesClient) Get(ctx context.Context, resourceGroupName string, applianceName string) (result Appliance, 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: applianceName, - Constraints: []validation.Constraint{{Target: "applianceName", Name: validation.MaxLength, Rule: 64, Chain: nil}, - {Target: "applianceName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("managedapplications.AppliancesClient", "Get", err.Error()) - } - - req, err := client.GetPreparer(ctx, resourceGroupName, applianceName) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetPreparer prepares the Get request. -func (client AppliancesClient) GetPreparer(ctx context.Context, resourceGroupName string, applianceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceName": autorest.Encode("path", applianceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client AppliancesClient) GetResponder(resp *http.Response) (result Appliance, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByID gets the appliance. -// -// applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource -// type. Use the format, -// /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} -func (client AppliancesClient) GetByID(ctx context.Context, applianceID string) (result Appliance, err error) { - req, err := client.GetByIDPreparer(ctx, applianceID) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "GetByID", nil, "Failure preparing request") - return - } - - resp, err := client.GetByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "GetByID", resp, "Failure sending request") - return - } - - result, err = client.GetByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "GetByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByIDPreparer prepares the GetByID request. -func (client AppliancesClient) GetByIDPreparer(ctx context.Context, applianceID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceId": applianceID, - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{applianceId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByIDSender sends the GetByID request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) GetByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GetByIDResponder handles the response to the GetByID request. The method always -// closes the http.Response Body. -func (client AppliancesClient) GetByIDResponder(resp *http.Response) (result Appliance, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroup gets all the appliances within a resource group. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. -func (client AppliancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ApplianceListResultPage, 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}}}}); err != nil { - return result, validation.NewError("managedapplications.AppliancesClient", "ListByResourceGroup", err.Error()) - } - - result.fn = client.listByResourceGroupNextResults - req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListByResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListByResourceGroup", resp, "Failure sending request") - return - } - - result.alr, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListByResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupPreparer prepares the ListByResourceGroup request. -func (client AppliancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always -// closes the http.Response Body. -func (client AppliancesClient) ListByResourceGroupResponder(resp *http.Response) (result ApplianceListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByResourceGroupNextResults retrieves the next set of results, if any. -func (client AppliancesClient) listByResourceGroupNextResults(lastResults ApplianceListResult) (result ApplianceListResult, err error) { - req, err := lastResults.applianceListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppliancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ApplianceListResultIterator, err error) { - result.page, err = client.ListByResourceGroup(ctx, resourceGroupName) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListBySubscription gets all the appliances within a subscription. -func (client AppliancesClient) ListBySubscription(ctx context.Context) (result ApplianceListResultPage, err error) { - result.fn = client.listBySubscriptionNextResults - req, err := client.ListBySubscriptionPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListBySubscription", nil, "Failure preparing request") - return - } - - resp, err := client.ListBySubscriptionSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListBySubscription", resp, "Failure sending request") - return - } - - result.alr, err = client.ListBySubscriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "ListBySubscription", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListBySubscriptionPreparer prepares the ListBySubscription request. -func (client AppliancesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/appliances", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListBySubscriptionSender sends the ListBySubscription request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always -// closes the http.Response Body. -func (client AppliancesClient) ListBySubscriptionResponder(resp *http.Response) (result ApplianceListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listBySubscriptionNextResults retrieves the next set of results, if any. -func (client AppliancesClient) listBySubscriptionNextResults(lastResults ApplianceListResult) (result ApplianceListResult, err error) { - req, err := lastResults.applianceListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListBySubscriptionSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listBySubscriptionNextResults", resp, "Failure sending next results request") - } - result, err = client.ListBySubscriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. -func (client AppliancesClient) ListBySubscriptionComplete(ctx context.Context) (result ApplianceListResultIterator, err error) { - result.page, err = client.ListBySubscription(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Update updates an existing appliance. The only value that can be updated via PATCH currently is the tags. -// -// resourceGroupName is the name of the resource group. The name is case insensitive. applianceName is the name of -// the appliance. parameters is parameters supplied to update an existing appliance. -func (client AppliancesClient) Update(ctx context.Context, resourceGroupName string, applianceName string, parameters *Appliance) (result Appliance, 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: applianceName, - Constraints: []validation.Constraint{{Target: "applianceName", Name: validation.MaxLength, Rule: 64, Chain: nil}, - {Target: "applianceName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { - return result, validation.NewError("managedapplications.AppliancesClient", "Update", err.Error()) - } - - req, err := client.UpdatePreparer(ctx, resourceGroupName, applianceName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UpdatePreparer prepares the Update request. -func (client AppliancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, applianceName string, parameters *Appliance) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceName": autorest.Encode("path", applianceName), - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if parameters != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(parameters)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client AppliancesClient) UpdateResponder(resp *http.Response) (result Appliance, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UpdateByID updates an existing appliance. The only value that can be updated via PATCH currently is the tags. -// -// applianceID is the fully qualified ID of the appliance, including the appliance name and the appliance resource -// type. Use the format, -// /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/appliances/{appliance-name} -// parameters is parameters supplied to update an existing appliance. -func (client AppliancesClient) UpdateByID(ctx context.Context, applianceID string, parameters *Appliance) (result Appliance, err error) { - req, err := client.UpdateByIDPreparer(ctx, applianceID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "UpdateByID", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "UpdateByID", resp, "Failure sending request") - return - } - - result, err = client.UpdateByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesClient", "UpdateByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UpdateByIDPreparer prepares the UpdateByID request. -func (client AppliancesClient) UpdateByIDPreparer(ctx context.Context, applianceID string, parameters *Appliance) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applianceId": applianceID, - } - - const APIVersion = "2016-09-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPatch(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{applianceId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if parameters != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(parameters)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UpdateByIDSender sends the UpdateByID request. The method will close the -// http.Response Body if it receives an error. -func (client AppliancesClient) UpdateByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UpdateByIDResponder handles the response to the UpdateByID request. The method always -// closes the http.Response Body. -func (client AppliancesClient) UpdateByIDResponder(resp *http.Response) (result Appliance, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/resources/mgmt/2016-09-01-preview/managedapplications/client.go b/services/resources/mgmt/2016-09-01-preview/managedapplications/client.go deleted file mode 100644 index 5bfc58347724..000000000000 --- a/services/resources/mgmt/2016-09-01-preview/managedapplications/client.go +++ /dev/null @@ -1,54 +0,0 @@ -// Package managedapplications implements the Azure ARM Managedapplications service API version 2016-09-01-preview. -// -// ARM managed applications (appliances) -package managedapplications - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Managedapplications - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// BaseClient is the base client for Managedapplications. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/services/resources/mgmt/2016-09-01-preview/managedapplications/models.go b/services/resources/mgmt/2016-09-01-preview/managedapplications/models.go deleted file mode 100644 index 9abb6b70d96e..000000000000 --- a/services/resources/mgmt/2016-09-01-preview/managedapplications/models.go +++ /dev/null @@ -1,1496 +0,0 @@ -package managedapplications - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/to" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceArtifactType enumerates the values for appliance artifact type. -type ApplianceArtifactType string - -const ( - // Custom ... - Custom ApplianceArtifactType = "Custom" - // Template ... - Template ApplianceArtifactType = "Template" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// PossibleApplianceArtifactTypeValues returns an array of possible values for the ApplianceArtifactType const type. -func PossibleApplianceArtifactTypeValues() []ApplianceArtifactType { - return []ApplianceArtifactType{Custom, Template} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceLockLevel enumerates the values for appliance lock level. -type ApplianceLockLevel string - -const ( - // CanNotDelete ... - CanNotDelete ApplianceLockLevel = "CanNotDelete" - // None ... - None ApplianceLockLevel = "None" - // ReadOnly ... - ReadOnly ApplianceLockLevel = "ReadOnly" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// PossibleApplianceLockLevelValues returns an array of possible values for the ApplianceLockLevel const type. -func PossibleApplianceLockLevelValues() []ApplianceLockLevel { - return []ApplianceLockLevel{CanNotDelete, None, ReadOnly} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ProvisioningState enumerates the values for provisioning state. -type ProvisioningState string - -const ( - // Accepted ... - Accepted ProvisioningState = "Accepted" - // Canceled ... - Canceled ProvisioningState = "Canceled" - // Created ... - Created ProvisioningState = "Created" - // Creating ... - Creating ProvisioningState = "Creating" - // Deleted ... - Deleted ProvisioningState = "Deleted" - // Deleting ... - Deleting ProvisioningState = "Deleting" - // Failed ... - Failed ProvisioningState = "Failed" - // Ready ... - Ready ProvisioningState = "Ready" - // Running ... - Running ProvisioningState = "Running" - // Succeeded ... - Succeeded ProvisioningState = "Succeeded" - // Updating ... - Updating ProvisioningState = "Updating" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. -func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{Accepted, Canceled, Created, Creating, Deleted, Deleting, Failed, Ready, Running, Succeeded, Updating} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ResourceIdentityType enumerates the values for resource identity type. -type ResourceIdentityType string - -const ( - // SystemAssigned ... - SystemAssigned ResourceIdentityType = "SystemAssigned" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. -func PossibleResourceIdentityTypeValues() []ResourceIdentityType { - return []ResourceIdentityType{SystemAssigned} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Appliance information about appliance. -type Appliance struct { - autorest.Response `json:"-"` - // ApplianceProperties - The appliance properties. - *ApplianceProperties `json:"properties,omitempty"` - // Plan - The plan information. - Plan *Plan `json:"plan,omitempty"` - // Kind - The kind of the appliance. Allowed values are MarketPlace and ServiceCatalog. - Kind *string `json:"kind,omitempty"` - // ManagedBy - ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` - // Sku - The SKU of the resource. - Sku *Sku `json:"sku,omitempty"` - // Identity - The identity of the resource. - Identity *Identity `json:"identity,omitempty"` - // ID - Resource ID - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// MarshalJSON is the custom marshaler for Appliance. -func (a Appliance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if a.ApplianceProperties != nil { - objectMap["properties"] = a.ApplianceProperties - } - if a.Plan != nil { - objectMap["plan"] = a.Plan - } - if a.Kind != nil { - objectMap["kind"] = a.Kind - } - if a.ManagedBy != nil { - objectMap["managedBy"] = a.ManagedBy - } - if a.Sku != nil { - objectMap["sku"] = a.Sku - } - if a.Identity != nil { - objectMap["identity"] = a.Identity - } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Type != nil { - objectMap["type"] = a.Type - } - if a.Location != nil { - objectMap["location"] = a.Location - } - if a.Tags != nil { - objectMap["tags"] = a.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UnmarshalJSON is the custom unmarshaler for Appliance struct. -func (a *Appliance) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var applianceProperties ApplianceProperties - err = json.Unmarshal(*v, &applianceProperties) - if err != nil { - return err - } - a.ApplianceProperties = &applianceProperties - } - case "plan": - if v != nil { - var plan Plan - err = json.Unmarshal(*v, &plan) - if err != nil { - return err - } - a.Plan = &plan - } - case "kind": - if v != nil { - var kind string - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - a.Kind = &kind - } - case "managedBy": - if v != nil { - var managedBy string - err = json.Unmarshal(*v, &managedBy) - if err != nil { - return err - } - a.ManagedBy = &managedBy - } - case "sku": - if v != nil { - var sku Sku - err = json.Unmarshal(*v, &sku) - if err != nil { - return err - } - a.Sku = &sku - } - case "identity": - if v != nil { - var identity Identity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - a.Identity = &identity - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - a.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - a.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - a.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - a.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - a.Tags = tags - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceArtifact appliance artifact. -type ApplianceArtifact struct { - // Name - The appliance artifact name. - Name *string `json:"name,omitempty"` - // URI - The appliance artifact blob uri. - URI *string `json:"uri,omitempty"` - // Type - The the appliance artifact type. Possible values include: 'Template', 'Custom' - Type ApplianceArtifactType `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinition information about appliance definition. -type ApplianceDefinition struct { - autorest.Response `json:"-"` - // ApplianceDefinitionProperties - The appliance definition properties. - *ApplianceDefinitionProperties `json:"properties,omitempty"` - // ManagedBy - ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` - // Sku - The SKU of the resource. - Sku *Sku `json:"sku,omitempty"` - // Identity - The identity of the resource. - Identity *Identity `json:"identity,omitempty"` - // ID - Resource ID - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// MarshalJSON is the custom marshaler for ApplianceDefinition. -func (ad ApplianceDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ad.ApplianceDefinitionProperties != nil { - objectMap["properties"] = ad.ApplianceDefinitionProperties - } - if ad.ManagedBy != nil { - objectMap["managedBy"] = ad.ManagedBy - } - if ad.Sku != nil { - objectMap["sku"] = ad.Sku - } - if ad.Identity != nil { - objectMap["identity"] = ad.Identity - } - if ad.ID != nil { - objectMap["id"] = ad.ID - } - if ad.Name != nil { - objectMap["name"] = ad.Name - } - if ad.Type != nil { - objectMap["type"] = ad.Type - } - if ad.Location != nil { - objectMap["location"] = ad.Location - } - if ad.Tags != nil { - objectMap["tags"] = ad.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UnmarshalJSON is the custom unmarshaler for ApplianceDefinition struct. -func (ad *ApplianceDefinition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var applianceDefinitionProperties ApplianceDefinitionProperties - err = json.Unmarshal(*v, &applianceDefinitionProperties) - if err != nil { - return err - } - ad.ApplianceDefinitionProperties = &applianceDefinitionProperties - } - case "managedBy": - if v != nil { - var managedBy string - err = json.Unmarshal(*v, &managedBy) - if err != nil { - return err - } - ad.ManagedBy = &managedBy - } - case "sku": - if v != nil { - var sku Sku - err = json.Unmarshal(*v, &sku) - if err != nil { - return err - } - ad.Sku = &sku - } - case "identity": - if v != nil { - var identity Identity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - ad.Identity = &identity - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ad.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ad.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ad.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - ad.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - ad.Tags = tags - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionListResult list of appliance definitions. -type ApplianceDefinitionListResult struct { - autorest.Response `json:"-"` - // Value - The array of appliance definitions. - Value *[]ApplianceDefinition `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionListResultIterator provides access to a complete listing of ApplianceDefinition values. -type ApplianceDefinitionListResultIterator struct { - i int - page ApplianceDefinitionListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ApplianceDefinitionListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ApplianceDefinitionListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Response returns the raw server response from the last page request. -func (iter ApplianceDefinitionListResultIterator) Response() ApplianceDefinitionListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ApplianceDefinitionListResultIterator) Value() ApplianceDefinition { - if !iter.page.NotDone() { - return ApplianceDefinition{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// IsEmpty returns true if the ListResult contains no values. -func (adlr ApplianceDefinitionListResult) IsEmpty() bool { - return adlr.Value == nil || len(*adlr.Value) == 0 -} - -// applianceDefinitionListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (adlr ApplianceDefinitionListResult) applianceDefinitionListResultPreparer() (*http.Request, error) { - if adlr.NextLink == nil || len(to.String(adlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(adlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionListResultPage contains a page of ApplianceDefinition values. -type ApplianceDefinitionListResultPage struct { - fn func(ApplianceDefinitionListResult) (ApplianceDefinitionListResult, error) - adlr ApplianceDefinitionListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ApplianceDefinitionListResultPage) Next() error { - next, err := page.fn(page.adlr) - if err != nil { - return err - } - page.adlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ApplianceDefinitionListResultPage) NotDone() bool { - return !page.adlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Response returns the raw server response from the last page request. -func (page ApplianceDefinitionListResultPage) Response() ApplianceDefinitionListResult { - return page.adlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page ApplianceDefinitionListResultPage) Values() []ApplianceDefinition { - if page.adlr.IsEmpty() { - return nil - } - return *page.adlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionProperties the appliance definition properties. -type ApplianceDefinitionProperties struct { - // LockLevel - The appliance lock level. Possible values include: 'CanNotDelete', 'ReadOnly', 'None' - LockLevel ApplianceLockLevel `json:"lockLevel,omitempty"` - // DisplayName - The appliance definition display name. - DisplayName *string `json:"displayName,omitempty"` - // Authorizations - The appliance provider authorizations. - Authorizations *[]ApplianceProviderAuthorization `json:"authorizations,omitempty"` - // Artifacts - The collection of appliance artifacts. The portal will use the files specified as artifacts to construct the user experience of creating an appliance from an appliance definition. - Artifacts *[]ApplianceArtifact `json:"artifacts,omitempty"` - // Description - The appliance definition description. - Description *string `json:"description,omitempty"` - // PackageFileURI - The appliance definition package file Uri. - PackageFileURI *string `json:"packageFileUri,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionsCreateOrUpdateByIDFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type ApplianceDefinitionsCreateOrUpdateByIDFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future ApplianceDefinitionsCreateOrUpdateByIDFuture) Result(client ApplianceDefinitionsClient) (ad ApplianceDefinition, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateByIDFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ad, azure.NewAsyncOpIncompleteError("managedapplications.ApplianceDefinitionsCreateOrUpdateByIDFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ad, err = client.CreateOrUpdateByIDResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateByIDFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateByIDFuture", "Result", resp, "Failure sending request") - return - } - ad, err = client.CreateOrUpdateByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateByIDFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type ApplianceDefinitionsCreateOrUpdateFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future ApplianceDefinitionsCreateOrUpdateFuture) Result(client ApplianceDefinitionsClient) (ad ApplianceDefinition, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ad, azure.NewAsyncOpIncompleteError("managedapplications.ApplianceDefinitionsCreateOrUpdateFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ad, err = client.CreateOrUpdateResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateFuture", "Result", resp, "Failure sending request") - return - } - ad, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsCreateOrUpdateFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionsDeleteByIDFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ApplianceDefinitionsDeleteByIDFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future ApplianceDefinitionsDeleteByIDFuture) Result(client ApplianceDefinitionsClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteByIDFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("managedapplications.ApplianceDefinitionsDeleteByIDFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.DeleteByIDResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteByIDFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteByIDFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.DeleteByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteByIDFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceDefinitionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type ApplianceDefinitionsDeleteFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future ApplianceDefinitionsDeleteFuture) Result(client ApplianceDefinitionsClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("managedapplications.ApplianceDefinitionsDeleteFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.DeleteResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.ApplianceDefinitionsDeleteFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceListResult list of appliances. -type ApplianceListResult struct { - autorest.Response `json:"-"` - // Value - The array of appliances. - Value *[]Appliance `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceListResultIterator provides access to a complete listing of Appliance values. -type ApplianceListResultIterator struct { - i int - page ApplianceListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ApplianceListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ApplianceListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Response returns the raw server response from the last page request. -func (iter ApplianceListResultIterator) Response() ApplianceListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ApplianceListResultIterator) Value() Appliance { - if !iter.page.NotDone() { - return Appliance{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// IsEmpty returns true if the ListResult contains no values. -func (alr ApplianceListResult) IsEmpty() bool { - return alr.Value == nil || len(*alr.Value) == 0 -} - -// applianceListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (alr ApplianceListResult) applianceListResultPreparer() (*http.Request, error) { - if alr.NextLink == nil || len(to.String(alr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(alr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceListResultPage contains a page of Appliance values. -type ApplianceListResultPage struct { - fn func(ApplianceListResult) (ApplianceListResult, error) - alr ApplianceListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ApplianceListResultPage) Next() error { - next, err := page.fn(page.alr) - if err != nil { - return err - } - page.alr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ApplianceListResultPage) NotDone() bool { - return !page.alr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Response returns the raw server response from the last page request. -func (page ApplianceListResultPage) Response() ApplianceListResult { - return page.alr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page ApplianceListResultPage) Values() []Appliance { - if page.alr.IsEmpty() { - return nil - } - return *page.alr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// AppliancePatchable information about appliance. -type AppliancePatchable struct { - // AppliancePropertiesPatchable - The appliance properties. - *AppliancePropertiesPatchable `json:"properties,omitempty"` - // Plan - The plan information. - Plan *PlanPatchable `json:"plan,omitempty"` - // Kind - The kind of the appliance. Allowed values are MarketPlace and ServiceCatalog. - Kind *string `json:"kind,omitempty"` - // ManagedBy - ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` - // Sku - The SKU of the resource. - Sku *Sku `json:"sku,omitempty"` - // Identity - The identity of the resource. - Identity *Identity `json:"identity,omitempty"` - // ID - Resource ID - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// MarshalJSON is the custom marshaler for AppliancePatchable. -func (ap AppliancePatchable) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ap.AppliancePropertiesPatchable != nil { - objectMap["properties"] = ap.AppliancePropertiesPatchable - } - if ap.Plan != nil { - objectMap["plan"] = ap.Plan - } - if ap.Kind != nil { - objectMap["kind"] = ap.Kind - } - if ap.ManagedBy != nil { - objectMap["managedBy"] = ap.ManagedBy - } - if ap.Sku != nil { - objectMap["sku"] = ap.Sku - } - if ap.Identity != nil { - objectMap["identity"] = ap.Identity - } - if ap.ID != nil { - objectMap["id"] = ap.ID - } - if ap.Name != nil { - objectMap["name"] = ap.Name - } - if ap.Type != nil { - objectMap["type"] = ap.Type - } - if ap.Location != nil { - objectMap["location"] = ap.Location - } - if ap.Tags != nil { - objectMap["tags"] = ap.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UnmarshalJSON is the custom unmarshaler for AppliancePatchable struct. -func (ap *AppliancePatchable) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var appliancePropertiesPatchable AppliancePropertiesPatchable - err = json.Unmarshal(*v, &appliancePropertiesPatchable) - if err != nil { - return err - } - ap.AppliancePropertiesPatchable = &appliancePropertiesPatchable - } - case "plan": - if v != nil { - var plan PlanPatchable - err = json.Unmarshal(*v, &plan) - if err != nil { - return err - } - ap.Plan = &plan - } - case "kind": - if v != nil { - var kind string - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - ap.Kind = &kind - } - case "managedBy": - if v != nil { - var managedBy string - err = json.Unmarshal(*v, &managedBy) - if err != nil { - return err - } - ap.ManagedBy = &managedBy - } - case "sku": - if v != nil { - var sku Sku - err = json.Unmarshal(*v, &sku) - if err != nil { - return err - } - ap.Sku = &sku - } - case "identity": - if v != nil { - var identity Identity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - ap.Identity = &identity - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - ap.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ap.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ap.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - ap.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - ap.Tags = tags - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceProperties the appliance properties. -type ApplianceProperties struct { - // ManagedResourceGroupID - The managed resource group Id. - ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` - // ApplianceDefinitionID - The fully qualified path of appliance definition Id. - ApplianceDefinitionID *string `json:"applianceDefinitionId,omitempty"` - // Parameters - Name and value pairs that define the appliance parameters. It can be a JObject or a well formed JSON string. - Parameters interface{} `json:"parameters,omitempty"` - // Outputs - Name and value pairs that define the appliance outputs. - Outputs interface{} `json:"outputs,omitempty"` - // ProvisioningState - The appliance provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' - ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // UIDefinitionURI - The blob URI where the UI definition file is located. - UIDefinitionURI *string `json:"uiDefinitionUri,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// AppliancePropertiesPatchable the appliance properties. -type AppliancePropertiesPatchable struct { - // ManagedResourceGroupID - The managed resource group Id. - ManagedResourceGroupID *string `json:"managedResourceGroupId,omitempty"` - // ApplianceDefinitionID - The fully qualified path of appliance definition Id. - ApplianceDefinitionID *string `json:"applianceDefinitionId,omitempty"` - // Parameters - Name and value pairs that define the appliance parameters. It can be a JObject or a well formed JSON string. - Parameters interface{} `json:"parameters,omitempty"` - // Outputs - Name and value pairs that define the appliance outputs. - Outputs interface{} `json:"outputs,omitempty"` - // ProvisioningState - The appliance provisioning state. Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating' - ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` - // UIDefinitionURI - The blob URI where the UI definition file is located. - UIDefinitionURI *string `json:"uiDefinitionUri,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ApplianceProviderAuthorization the appliance provider authorization. -type ApplianceProviderAuthorization struct { - // PrincipalID - The provider's principal identifier. This is the identity that the provider will use to call ARM to manage the appliance resources. - PrincipalID *string `json:"principalId,omitempty"` - // RoleDefinitionID - The provider's role definition identifier. This role will define all the permissions that the provider must have on the appliance's container resource group. This role definition cannot have permission to delete the resource group. - RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// AppliancesCreateOrUpdateByIDFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type AppliancesCreateOrUpdateByIDFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future AppliancesCreateOrUpdateByIDFuture) Result(client AppliancesClient) (a Appliance, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateByIDFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return a, azure.NewAsyncOpIncompleteError("managedapplications.AppliancesCreateOrUpdateByIDFuture") - } - if future.PollingMethod() == azure.PollingLocation { - a, err = client.CreateOrUpdateByIDResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateByIDFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateByIDFuture", "Result", resp, "Failure sending request") - return - } - a, err = client.CreateOrUpdateByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateByIDFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// AppliancesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type AppliancesCreateOrUpdateFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future AppliancesCreateOrUpdateFuture) Result(client AppliancesClient) (a Appliance, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return a, azure.NewAsyncOpIncompleteError("managedapplications.AppliancesCreateOrUpdateFuture") - } - if future.PollingMethod() == azure.PollingLocation { - a, err = client.CreateOrUpdateResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateFuture", "Result", resp, "Failure sending request") - return - } - a, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesCreateOrUpdateFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// AppliancesDeleteByIDFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type AppliancesDeleteByIDFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future AppliancesDeleteByIDFuture) Result(client AppliancesClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteByIDFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("managedapplications.AppliancesDeleteByIDFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.DeleteByIDResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteByIDFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteByIDFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.DeleteByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteByIDFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// AppliancesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type AppliancesDeleteFuture struct { - azure.Future - req *http.Request -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Result returns the result of the asynchronous operation. -// If the operation has not completed it will return an error. -func (future AppliancesDeleteFuture) Result(client AppliancesClient) (ar autorest.Response, err error) { - var done bool - done, err = future.Done(client) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - return ar, azure.NewAsyncOpIncompleteError("managedapplications.AppliancesDeleteFuture") - } - if future.PollingMethod() == azure.PollingLocation { - ar, err = client.DeleteResponder(future.Response()) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteFuture", "Result", future.Response(), "Failure responding to request") - } - return - } - var req *http.Request - var resp *http.Response - if future.PollingURL() != "" { - req, err = http.NewRequest(http.MethodGet, future.PollingURL(), nil) - if err != nil { - return - } - } else { - req = autorest.ChangeToGet(future.req) - } - resp, err = autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteFuture", "Result", resp, "Failure sending request") - return - } - ar, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "managedapplications.AppliancesDeleteFuture", "Result", resp, "Failure responding to request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// ErrorResponse error reponse indicates ARM appliance is not able to process the incoming request. The reason is -// provided in the error message. -type ErrorResponse struct { - // HTTPStatus - Http status code. - HTTPStatus *string `json:"httpStatus,omitempty"` - // ErrorCode - Error code. - ErrorCode *string `json:"errorCode,omitempty"` - // ErrorMessage - Error message indicating why the operation failed. - ErrorMessage *string `json:"errorMessage,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// GenericResource resource information. -type GenericResource struct { - // ManagedBy - ID of the resource that manages this resource. - ManagedBy *string `json:"managedBy,omitempty"` - // Sku - The SKU of the resource. - Sku *Sku `json:"sku,omitempty"` - // Identity - The identity of the resource. - Identity *Identity `json:"identity,omitempty"` - // ID - Resource ID - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// MarshalJSON is the custom marshaler for GenericResource. -func (gr GenericResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if gr.ManagedBy != nil { - objectMap["managedBy"] = gr.ManagedBy - } - if gr.Sku != nil { - objectMap["sku"] = gr.Sku - } - if gr.Identity != nil { - objectMap["identity"] = gr.Identity - } - if gr.ID != nil { - objectMap["id"] = gr.ID - } - if gr.Name != nil { - objectMap["name"] = gr.Name - } - if gr.Type != nil { - objectMap["type"] = gr.Type - } - if gr.Location != nil { - objectMap["location"] = gr.Location - } - if gr.Tags != nil { - objectMap["tags"] = gr.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Identity identity for the resource. -type Identity struct { - // PrincipalID - The principal ID of resource identity. - PrincipalID *string `json:"principalId,omitempty"` - // TenantID - The tenant ID of resource. - TenantID *string `json:"tenantId,omitempty"` - // Type - The identity type. Possible values include: 'SystemAssigned' - Type ResourceIdentityType `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Plan plan for the appliance. -type Plan struct { - // Name - The plan name. - Name *string `json:"name,omitempty"` - // Publisher - The publisher ID. - Publisher *string `json:"publisher,omitempty"` - // Product - The product code. - Product *string `json:"product,omitempty"` - // PromotionCode - The promotion code. - PromotionCode *string `json:"promotionCode,omitempty"` - // Version - The plan's version. - Version *string `json:"version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// PlanPatchable plan for the appliance. -type PlanPatchable struct { - // Name - The plan name. - Name *string `json:"name,omitempty"` - // Publisher - The publisher ID. - Publisher *string `json:"publisher,omitempty"` - // Product - The product code. - Product *string `json:"product,omitempty"` - // PromotionCode - The promotion code. - PromotionCode *string `json:"promotionCode,omitempty"` - // Version - The plan's version. - Version *string `json:"version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Resource resource information. -type Resource struct { - // ID - Resource ID - ID *string `json:"id,omitempty"` - // Name - Resource name - Name *string `json:"name,omitempty"` - // Type - Resource type - Type *string `json:"type,omitempty"` - // Location - Resource location - Location *string `json:"location,omitempty"` - // Tags - Resource tags - Tags map[string]*string `json:"tags"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// MarshalJSON is the custom marshaler for Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if r.ID != nil { - objectMap["id"] = r.ID - } - if r.Name != nil { - objectMap["name"] = r.Name - } - if r.Type != nil { - objectMap["type"] = r.Type - } - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Sku SKU for the resource. -type Sku struct { - // Name - The SKU name. - Name *string `json:"name,omitempty"` - // Tier - The SKU tier. - Tier *string `json:"tier,omitempty"` - // Size - The SKU size. - Size *string `json:"size,omitempty"` - // Family - The SKU family. - Family *string `json:"family,omitempty"` - // Model - The SKU model. - Model *string `json:"model,omitempty"` - // Capacity - The SKU capacity. - Capacity *int32 `json:"capacity,omitempty"` -} diff --git a/services/resources/mgmt/2016-09-01-preview/managedapplications/version.go b/services/resources/mgmt/2016-09-01-preview/managedapplications/version.go deleted file mode 100644 index 97afb814afa5..000000000000 --- a/services/resources/mgmt/2016-09-01-preview/managedapplications/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package managedapplications - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " managedapplications/2016-09-01-preview" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2016-09-01-preview/managedapplications instead. -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/resources/mgmt/2017-06-01-preview/policy/assignments.go b/services/resources/mgmt/2017-06-01-preview/policy/assignments.go deleted file mode 100644 index 935831e2a4b5..000000000000 --- a/services/resources/mgmt/2017-06-01-preview/policy/assignments.go +++ /dev/null @@ -1,818 +0,0 @@ -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// AssignmentsClient is the to manage and control access to your resources, you can define customized policies and -// assign them at a scope. -type AssignmentsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NewAssignmentsClient creates an instance of the AssignmentsClient client. -func NewAssignmentsClient(subscriptionID string) AssignmentsClient { - return NewAssignmentsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NewAssignmentsClientWithBaseURI creates an instance of the AssignmentsClient client. -func NewAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) AssignmentsClient { - return AssignmentsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Create policy assignments are inherited by child resources. For example, when you apply a policy to a resource group -// that policy is assigned to all resources in the group. -// -// scope is the scope of the policy assignment. policyAssignmentName is the name of the policy assignment. -// parameters is parameters for the policy assignment. -func (client AssignmentsClient) Create(ctx context.Context, scope string, policyAssignmentName string, parameters Assignment) (result Assignment, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("policy.AssignmentsClient", "Create", err.Error()) - } - - req, err := client.CreatePreparer(ctx, scope, policyAssignmentName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreatePreparer prepares the Create request. -func (client AssignmentsClient) CreatePreparer(ctx context.Context, scope string, policyAssignmentName string, parameters Assignment) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentName": autorest.Encode("path", policyAssignmentName), - "scope": scope, - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) CreateResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateByID policy assignments are inherited by child resources. For example, when you apply a policy to a resource -// group that policy is assigned to all resources in the group. When providing a scope for the assigment, use -// '/subscriptions/{subscription-id}/' for subscriptions, -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' -// for resources. -// -// policyAssignmentID is the ID of the policy assignment to create. Use the format -// '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. parameters is -// parameters for policy assignment. -func (client AssignmentsClient) CreateByID(ctx context.Context, policyAssignmentID string, parameters Assignment) (result Assignment, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("policy.AssignmentsClient", "CreateByID", err.Error()) - } - - req, err := client.CreateByIDPreparer(ctx, policyAssignmentID, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", nil, "Failure preparing request") - return - } - - resp, err := client.CreateByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure sending request") - return - } - - result, err = client.CreateByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "CreateByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateByIDPreparer prepares the CreateByID request. -func (client AssignmentsClient) CreateByIDPreparer(ctx context.Context, policyAssignmentID string, parameters Assignment) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentId": policyAssignmentID, - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{policyAssignmentId}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateByIDSender sends the CreateByID request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) CreateByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateByIDResponder handles the response to the CreateByID request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) CreateByIDResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Delete deletes a policy assignment. -// -// scope is the scope of the policy assignment. policyAssignmentName is the name of the policy assignment to -// delete. -func (client AssignmentsClient) Delete(ctx context.Context, scope string, policyAssignmentName string) (result Assignment, err error) { - req, err := client.DeletePreparer(ctx, scope, policyAssignmentName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeletePreparer prepares the Delete request. -func (client AssignmentsClient) DeletePreparer(ctx context.Context, scope string, policyAssignmentName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentName": autorest.Encode("path", policyAssignmentName), - "scope": scope, - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) DeleteResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteByID when providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' -// for resources. -// -// policyAssignmentID is the ID of the policy assignment to delete. Use the format -// '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. -func (client AssignmentsClient) DeleteByID(ctx context.Context, policyAssignmentID string) (result Assignment, err error) { - req, err := client.DeleteByIDPreparer(ctx, policyAssignmentID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure sending request") - return - } - - result, err = client.DeleteByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "DeleteByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteByIDPreparer prepares the DeleteByID request. -func (client AssignmentsClient) DeleteByIDPreparer(ctx context.Context, policyAssignmentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentId": policyAssignmentID, - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{policyAssignmentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteByIDSender sends the DeleteByID request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) DeleteByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteByIDResponder handles the response to the DeleteByID request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) DeleteByIDResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Get gets a policy assignment. -// -// scope is the scope of the policy assignment. policyAssignmentName is the name of the policy assignment to get. -func (client AssignmentsClient) Get(ctx context.Context, scope string, policyAssignmentName string) (result Assignment, err error) { - req, err := client.GetPreparer(ctx, scope, policyAssignmentName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetPreparer prepares the Get request. -func (client AssignmentsClient) GetPreparer(ctx context.Context, scope string, policyAssignmentName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentName": autorest.Encode("path", policyAssignmentName), - "scope": scope, - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) GetResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetByID when providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and -// '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' -// for resources. -// -// policyAssignmentID is the ID of the policy assignment to get. Use the format -// '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. -func (client AssignmentsClient) GetByID(ctx context.Context, policyAssignmentID string) (result Assignment, err error) { - req, err := client.GetByIDPreparer(ctx, policyAssignmentID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", nil, "Failure preparing request") - return - } - - resp, err := client.GetByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure sending request") - return - } - - result, err = client.GetByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "GetByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetByIDPreparer prepares the GetByID request. -func (client AssignmentsClient) GetByIDPreparer(ctx context.Context, policyAssignmentID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyAssignmentId": policyAssignmentID, - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/{policyAssignmentId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetByIDSender sends the GetByID request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) GetByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetByIDResponder handles the response to the GetByID request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) GetByIDResponder(resp *http.Response) (result Assignment, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// List gets all the policy assignments for a subscription. -// -// filter is the filter to apply on the operation. -func (client AssignmentsClient) List(ctx context.Context, filter string) (result AssignmentListResultPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure sending request") - return - } - - result.alr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListPreparer prepares the List request. -func (client AssignmentsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) ListResponder(resp *http.Response) (result AssignmentListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client AssignmentsClient) listNextResults(lastResults AssignmentListResult) (result AssignmentListResult, err error) { - req, err := lastResults.assignmentListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client AssignmentsClient) ListComplete(ctx context.Context, filter string) (result AssignmentListResultIterator, err error) { - result.page, err = client.List(ctx, filter) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResource gets policy assignments for a resource. -// -// resourceGroupName is the name of the resource group containing the resource. The name is case insensitive. -// resourceProviderNamespace is the namespace of the resource provider. parentResourcePath is the parent resource -// path. resourceType is the resource type. resourceName is the name of the resource with policy assignments. -// filter is the filter to apply on the operation. -func (client AssignmentsClient) ListForResource(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result AssignmentListResultPage, 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}}}}); err != nil { - return result, validation.NewError("policy.AssignmentsClient", "ListForResource", err.Error()) - } - - result.fn = client.listForResourceNextResults - req, err := client.ListForResourcePreparer(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", nil, "Failure preparing request") - return - } - - resp, err := client.ListForResourceSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure sending request") - return - } - - result.alr, err = client.ListForResourceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResource", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourcePreparer prepares the ListForResource request. -func (client AssignmentsClient) ListForResourcePreparer(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "parentResourcePath": parentResourcePath, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), - "resourceType": resourceType, - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceSender sends the ListForResource request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) ListForResourceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceResponder handles the response to the ListForResource request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) ListForResourceResponder(resp *http.Response) (result AssignmentListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listForResourceNextResults retrieves the next set of results, if any. -func (client AssignmentsClient) listForResourceNextResults(lastResults AssignmentListResult) (result AssignmentListResult, err error) { - req, err := lastResults.assignmentListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListForResourceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure sending next results request") - } - result, err = client.ListForResourceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceComplete enumerates all values, automatically crossing page boundaries as required. -func (client AssignmentsClient) ListForResourceComplete(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, filter string) (result AssignmentListResultIterator, err error) { - result.page, err = client.ListForResource(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, filter) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceGroup gets policy assignments for the resource group. -// -// resourceGroupName is the name of the resource group that contains policy assignments. filter is the filter to -// apply on the operation. -func (client AssignmentsClient) ListForResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result AssignmentListResultPage, 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}}}}); err != nil { - return result, validation.NewError("policy.AssignmentsClient", "ListForResourceGroup", err.Error()) - } - - result.fn = client.listForResourceGroupNextResults - req, err := client.ListForResourceGroupPreparer(ctx, resourceGroupName, filter) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListForResourceGroupSender(req) - if err != nil { - result.alr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure sending request") - return - } - - result.alr, err = client.ListForResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "ListForResourceGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceGroupPreparer prepares the ListForResourceGroup request. -func (client AssignmentsClient) ListForResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = filter - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceGroupSender sends the ListForResourceGroup request. The method will close the -// http.Response Body if it receives an error. -func (client AssignmentsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always -// closes the http.Response Body. -func (client AssignmentsClient) ListForResourceGroupResponder(resp *http.Response) (result AssignmentListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listForResourceGroupNextResults retrieves the next set of results, if any. -func (client AssignmentsClient) listForResourceGroupNextResults(lastResults AssignmentListResult) (result AssignmentListResult, err error) { - req, err := lastResults.assignmentListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListForResourceGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListForResourceGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.AssignmentsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client AssignmentsClient) ListForResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result AssignmentListResultIterator, err error) { - result.page, err = client.ListForResourceGroup(ctx, resourceGroupName, filter) - return -} diff --git a/services/resources/mgmt/2017-06-01-preview/policy/client.go b/services/resources/mgmt/2017-06-01-preview/policy/client.go deleted file mode 100644 index 3268cbf54df1..000000000000 --- a/services/resources/mgmt/2017-06-01-preview/policy/client.go +++ /dev/null @@ -1,54 +0,0 @@ -// Package policy implements the Azure ARM Policy service API version . -// -// To manage and control access to your resources, you can define customized policies and assign them at a scope. -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Policy - DefaultBaseURI = "https://management.azure.com" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// BaseClient is the base client for Policy. -type BaseClient struct { - autorest.Client - BaseURI string - SubscriptionID string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// New creates an instance of the BaseClient client. -func New(subscriptionID string) BaseClient { - return NewWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - SubscriptionID: subscriptionID, - } -} diff --git a/services/resources/mgmt/2017-06-01-preview/policy/definitions.go b/services/resources/mgmt/2017-06-01-preview/policy/definitions.go deleted file mode 100644 index f0817dec84d5..000000000000 --- a/services/resources/mgmt/2017-06-01-preview/policy/definitions.go +++ /dev/null @@ -1,815 +0,0 @@ -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DefinitionsClient is the to manage and control access to your resources, you can define customized policies and -// assign them at a scope. -type DefinitionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NewDefinitionsClient creates an instance of the DefinitionsClient client. -func NewDefinitionsClient(subscriptionID string) DefinitionsClient { - return NewDefinitionsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NewDefinitionsClientWithBaseURI creates an instance of the DefinitionsClient client. -func NewDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) DefinitionsClient { - return DefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdate creates or updates a policy definition. -// -// policyDefinitionName is the name of the policy definition to create. parameters is the policy definition -// properties. -func (client DefinitionsClient) CreateOrUpdate(ctx context.Context, policyDefinitionName string, parameters Definition) (result Definition, err error) { - req, err := client.CreateOrUpdatePreparer(ctx, policyDefinitionName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client DefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, policyDefinitionName string, parameters Definition) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result Definition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroup creates or updates a policy definition at management group level. -// -// policyDefinitionName is the name of the policy definition to create. parameters is the policy definition -// properties. managementGroupID is the ID of the management group. -func (client DefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, policyDefinitionName string, parameters Definition, managementGroupID string) (result Definition, err error) { - req, err := client.CreateOrUpdateAtManagementGroupPreparer(ctx, policyDefinitionName, parameters, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateAtManagementGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroupPreparer prepares the CreateOrUpdateAtManagementGroup request. -func (client DefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx context.Context, policyDefinitionName string, parameters Definition, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroupSender sends the CreateOrUpdateAtManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) CreateOrUpdateAtManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroupResponder handles the response to the CreateOrUpdateAtManagementGroup request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) CreateOrUpdateAtManagementGroupResponder(resp *http.Response) (result Definition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Delete deletes a policy definition. -// -// policyDefinitionName is the name of the policy definition to delete. -func (client DefinitionsClient) Delete(ctx context.Context, policyDefinitionName string) (result autorest.Response, err error) { - req, err := client.DeletePreparer(ctx, policyDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeletePreparer prepares the Delete request. -func (client DefinitionsClient) DeletePreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroup deletes a policy definition at management group level. -// -// policyDefinitionName is the name of the policy definition to delete. managementGroupID is the ID of the -// management group. -func (client DefinitionsClient) DeleteAtManagementGroup(ctx context.Context, policyDefinitionName string, managementGroupID string) (result autorest.Response, err error) { - req, err := client.DeleteAtManagementGroupPreparer(ctx, policyDefinitionName, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteAtManagementGroupSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure sending request") - return - } - - result, err = client.DeleteAtManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroupPreparer prepares the DeleteAtManagementGroup request. -func (client DefinitionsClient) DeleteAtManagementGroupPreparer(ctx context.Context, policyDefinitionName string, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroupSender sends the DeleteAtManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) DeleteAtManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroupResponder handles the response to the DeleteAtManagementGroup request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) DeleteAtManagementGroupResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Get gets the policy definition. -// -// policyDefinitionName is the name of the policy definition to get. -func (client DefinitionsClient) Get(ctx context.Context, policyDefinitionName string) (result Definition, err error) { - req, err := client.GetPreparer(ctx, policyDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetPreparer prepares the Get request. -func (client DefinitionsClient) GetPreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) GetResponder(resp *http.Response) (result Definition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroup gets the policy definition at management group level. -// -// policyDefinitionName is the name of the policy definition to get. managementGroupID is the ID of the management -// group. -func (client DefinitionsClient) GetAtManagementGroup(ctx context.Context, policyDefinitionName string, managementGroupID string) (result Definition, err error) { - req, err := client.GetAtManagementGroupPreparer(ctx, policyDefinitionName, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.GetAtManagementGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure sending request") - return - } - - result, err = client.GetAtManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroupPreparer prepares the GetAtManagementGroup request. -func (client DefinitionsClient) GetAtManagementGroupPreparer(ctx context.Context, policyDefinitionName string, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroupSender sends the GetAtManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) GetAtManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroupResponder handles the response to the GetAtManagementGroup request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) GetAtManagementGroupResponder(resp *http.Response) (result Definition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltIn gets the built in policy definition. -// -// policyDefinitionName is the name of the built in policy definition to get. -func (client DefinitionsClient) GetBuiltIn(ctx context.Context, policyDefinitionName string) (result Definition, err error) { - req, err := client.GetBuiltInPreparer(ctx, policyDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", nil, "Failure preparing request") - return - } - - resp, err := client.GetBuiltInSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure sending request") - return - } - - result, err = client.GetBuiltInResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltInPreparer prepares the GetBuiltIn request. -func (client DefinitionsClient) GetBuiltInPreparer(ctx context.Context, policyDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policyDefinitionName": autorest.Encode("path", policyDefinitionName), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltInSender sends the GetBuiltIn request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) GetBuiltInSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltInResponder handles the response to the GetBuiltIn request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) GetBuiltInResponder(resp *http.Response) (result Definition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// List gets all the policy definitions for a subscription. -func (client DefinitionsClient) List(ctx context.Context) (result DefinitionListResultPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.dlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure sending request") - return - } - - result.dlr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListPreparer prepares the List request. -func (client DefinitionsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) ListResponder(resp *http.Response) (result DefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client DefinitionsClient) listNextResults(lastResults DefinitionListResult) (result DefinitionListResult, err error) { - req, err := lastResults.definitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client DefinitionsClient) ListComplete(ctx context.Context) (result DefinitionListResultIterator, err error) { - result.page, err = client.List(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltIn gets all the built in policy definitions. -func (client DefinitionsClient) ListBuiltIn(ctx context.Context) (result DefinitionListResultPage, err error) { - result.fn = client.listBuiltInNextResults - req, err := client.ListBuiltInPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", nil, "Failure preparing request") - return - } - - resp, err := client.ListBuiltInSender(req) - if err != nil { - result.dlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure sending request") - return - } - - result.dlr, err = client.ListBuiltInResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInPreparer prepares the ListBuiltIn request. -func (client DefinitionsClient) ListBuiltInPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.Authorization/policyDefinitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInSender sends the ListBuiltIn request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) ListBuiltInSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInResponder handles the response to the ListBuiltIn request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) ListBuiltInResponder(resp *http.Response) (result DefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listBuiltInNextResults retrieves the next set of results, if any. -func (client DefinitionsClient) listBuiltInNextResults(lastResults DefinitionListResult) (result DefinitionListResult, err error) { - req, err := lastResults.definitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListBuiltInSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure sending next results request") - } - result, err = client.ListBuiltInResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInComplete enumerates all values, automatically crossing page boundaries as required. -func (client DefinitionsClient) ListBuiltInComplete(ctx context.Context) (result DefinitionListResultIterator, err error) { - result.page, err = client.ListBuiltIn(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroup gets all the policy definitions for a subscription at management group level. -// -// managementGroupID is the ID of the management group. -func (client DefinitionsClient) ListByManagementGroup(ctx context.Context, managementGroupID string) (result DefinitionListResultPage, err error) { - result.fn = client.listByManagementGroupNextResults - req, err := client.ListByManagementGroupPreparer(ctx, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByManagementGroupSender(req) - if err != nil { - result.dlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure sending request") - return - } - - result.dlr, err = client.ListByManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupPreparer prepares the ListByManagementGroup request. -func (client DefinitionsClient) ListByManagementGroupPreparer(ctx context.Context, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - } - - const APIVersion = "2016-12-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupSender sends the ListByManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client DefinitionsClient) ListByManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupResponder handles the response to the ListByManagementGroup request. The method always -// closes the http.Response Body. -func (client DefinitionsClient) ListByManagementGroupResponder(resp *http.Response) (result DefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByManagementGroupNextResults retrieves the next set of results, if any. -func (client DefinitionsClient) listByManagementGroupNextResults(lastResults DefinitionListResult) (result DefinitionListResult, err error) { - req, err := lastResults.definitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByManagementGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.DefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client DefinitionsClient) ListByManagementGroupComplete(ctx context.Context, managementGroupID string) (result DefinitionListResultIterator, err error) { - result.page, err = client.ListByManagementGroup(ctx, managementGroupID) - return -} diff --git a/services/resources/mgmt/2017-06-01-preview/policy/models.go b/services/resources/mgmt/2017-06-01-preview/policy/models.go deleted file mode 100644 index fe4d01e2a733..000000000000 --- a/services/resources/mgmt/2017-06-01-preview/policy/models.go +++ /dev/null @@ -1,745 +0,0 @@ -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/to" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Mode enumerates the values for mode. -type Mode string - -const ( - // All ... - All Mode = "All" - // Indexed ... - Indexed Mode = "Indexed" - // NotSpecified ... - NotSpecified Mode = "NotSpecified" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// PossibleModeValues returns an array of possible values for the Mode const type. -func PossibleModeValues() []Mode { - return []Mode{All, Indexed, NotSpecified} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Type enumerates the values for type. -type Type string - -const ( - // TypeBuiltIn ... - TypeBuiltIn Type = "BuiltIn" - // TypeCustom ... - TypeCustom Type = "Custom" - // TypeNotSpecified ... - TypeNotSpecified Type = "NotSpecified" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeBuiltIn, TypeCustom, TypeNotSpecified} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Assignment the policy assignment. -type Assignment struct { - autorest.Response `json:"-"` - // AssignmentProperties - Properties for the policy assignment. - *AssignmentProperties `json:"properties,omitempty"` - // ID - The ID of the policy assignment. - ID *string `json:"id,omitempty"` - // Type - The type of the policy assignment. - Type *string `json:"type,omitempty"` - // Name - The name of the policy assignment. - Name *string `json:"name,omitempty"` - // Sku - The policy sku. - Sku *Sku `json:"sku,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// MarshalJSON is the custom marshaler for Assignment. -func (a Assignment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if a.AssignmentProperties != nil { - objectMap["properties"] = a.AssignmentProperties - } - if a.ID != nil { - objectMap["id"] = a.ID - } - if a.Type != nil { - objectMap["type"] = a.Type - } - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Sku != nil { - objectMap["sku"] = a.Sku - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// UnmarshalJSON is the custom unmarshaler for Assignment struct. -func (a *Assignment) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var assignmentProperties AssignmentProperties - err = json.Unmarshal(*v, &assignmentProperties) - if err != nil { - return err - } - a.AssignmentProperties = &assignmentProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - a.ID = &ID - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - a.Type = &typeVar - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - a.Name = &name - } - case "sku": - if v != nil { - var sku Sku - err = json.Unmarshal(*v, &sku) - if err != nil { - return err - } - a.Sku = &sku - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// AssignmentListResult list of policy assignments. -type AssignmentListResult struct { - autorest.Response `json:"-"` - // Value - An array of policy assignments. - Value *[]Assignment `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// AssignmentListResultIterator provides access to a complete listing of Assignment values. -type AssignmentListResultIterator struct { - i int - page AssignmentListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *AssignmentListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter AssignmentListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (iter AssignmentListResultIterator) Response() AssignmentListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter AssignmentListResultIterator) Value() Assignment { - if !iter.page.NotDone() { - return Assignment{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// IsEmpty returns true if the ListResult contains no values. -func (alr AssignmentListResult) IsEmpty() bool { - return alr.Value == nil || len(*alr.Value) == 0 -} - -// assignmentListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (alr AssignmentListResult) assignmentListResultPreparer() (*http.Request, error) { - if alr.NextLink == nil || len(to.String(alr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(alr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// AssignmentListResultPage contains a page of Assignment values. -type AssignmentListResultPage struct { - fn func(AssignmentListResult) (AssignmentListResult, error) - alr AssignmentListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *AssignmentListResultPage) Next() error { - next, err := page.fn(page.alr) - if err != nil { - return err - } - page.alr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page AssignmentListResultPage) NotDone() bool { - return !page.alr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (page AssignmentListResultPage) Response() AssignmentListResult { - return page.alr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page AssignmentListResultPage) Values() []Assignment { - if page.alr.IsEmpty() { - return nil - } - return *page.alr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// AssignmentProperties the policy assignment properties. -type AssignmentProperties struct { - // DisplayName - The display name of the policy assignment. - DisplayName *string `json:"displayName,omitempty"` - // PolicyDefinitionID - The ID of the policy definition. - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"` - // Scope - The scope for the policy assignment. - Scope *string `json:"scope,omitempty"` - // NotScopes - The policy's excluded scopes. - NotScopes *[]string `json:"notScopes,omitempty"` - // Parameters - Required if a parameter is used in policy rule. - Parameters interface{} `json:"parameters,omitempty"` - // Description - This message will be part of response in case of policy violation. - Description *string `json:"description,omitempty"` - // Metadata - The policy assignment metadata. - Metadata interface{} `json:"metadata,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Definition the policy definition. -type Definition struct { - autorest.Response `json:"-"` - // DefinitionProperties - The policy definition properties. - *DefinitionProperties `json:"properties,omitempty"` - // ID - The ID of the policy definition. - ID *string `json:"id,omitempty"` - // Name - The name of the policy definition. - Name *string `json:"name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// MarshalJSON is the custom marshaler for Definition. -func (d Definition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if d.DefinitionProperties != nil { - objectMap["properties"] = d.DefinitionProperties - } - if d.ID != nil { - objectMap["id"] = d.ID - } - if d.Name != nil { - objectMap["name"] = d.Name - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// UnmarshalJSON is the custom unmarshaler for Definition struct. -func (d *Definition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var definitionProperties DefinitionProperties - err = json.Unmarshal(*v, &definitionProperties) - if err != nil { - return err - } - d.DefinitionProperties = &definitionProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - d.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - d.Name = &name - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DefinitionListResult list of policy definitions. -type DefinitionListResult struct { - autorest.Response `json:"-"` - // Value - An array of policy definitions. - Value *[]Definition `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DefinitionListResultIterator provides access to a complete listing of Definition values. -type DefinitionListResultIterator struct { - i int - page DefinitionListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *DefinitionListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter DefinitionListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (iter DefinitionListResultIterator) Response() DefinitionListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter DefinitionListResultIterator) Value() Definition { - if !iter.page.NotDone() { - return Definition{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// IsEmpty returns true if the ListResult contains no values. -func (dlr DefinitionListResult) IsEmpty() bool { - return dlr.Value == nil || len(*dlr.Value) == 0 -} - -// definitionListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (dlr DefinitionListResult) definitionListResultPreparer() (*http.Request, error) { - if dlr.NextLink == nil || len(to.String(dlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(dlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DefinitionListResultPage contains a page of Definition values. -type DefinitionListResultPage struct { - fn func(DefinitionListResult) (DefinitionListResult, error) - dlr DefinitionListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *DefinitionListResultPage) Next() error { - next, err := page.fn(page.dlr) - if err != nil { - return err - } - page.dlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page DefinitionListResultPage) NotDone() bool { - return !page.dlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (page DefinitionListResultPage) Response() DefinitionListResult { - return page.dlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page DefinitionListResultPage) Values() []Definition { - if page.dlr.IsEmpty() { - return nil - } - return *page.dlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DefinitionProperties the policy definition properties. -type DefinitionProperties struct { - // PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'TypeNotSpecified', 'TypeBuiltIn', 'TypeCustom' - PolicyType Type `json:"policyType,omitempty"` - // Mode - The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', 'All' - Mode Mode `json:"mode,omitempty"` - // DisplayName - The display name of the policy definition. - DisplayName *string `json:"displayName,omitempty"` - // Description - The policy definition description. - Description *string `json:"description,omitempty"` - // PolicyRule - The policy rule. - PolicyRule interface{} `json:"policyRule,omitempty"` - // Metadata - The policy definition metadata. - Metadata interface{} `json:"metadata,omitempty"` - // Parameters - Required if a parameter is used in policy rule. - Parameters interface{} `json:"parameters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DefinitionReference the policy definition reference. -type DefinitionReference struct { - // PolicyDefinitionID - The ID of the policy definition or policy set definition. - PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"` - // Parameters - Required if a parameter is used in policy rule. - Parameters interface{} `json:"parameters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ErrorResponse error reponse indicates ARM is not able to process the incoming request. The reason is provided in -// the error message. -type ErrorResponse struct { - // HTTPStatus - Http status code. - HTTPStatus *string `json:"httpStatus,omitempty"` - // ErrorCode - Error code. - ErrorCode *string `json:"errorCode,omitempty"` - // ErrorMessage - Error message indicating why the operation failed. - ErrorMessage *string `json:"errorMessage,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// SetDefinition the policy set definition. -type SetDefinition struct { - autorest.Response `json:"-"` - // SetDefinitionProperties - The policy definition properties. - *SetDefinitionProperties `json:"properties,omitempty"` - // ID - The ID of the policy set definition. - ID *string `json:"id,omitempty"` - // Name - The name of the policy set definition. - Name *string `json:"name,omitempty"` - // Type - The type of the resource (Microsoft.Authorization/policySetDefinitions). - Type *string `json:"type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// MarshalJSON is the custom marshaler for SetDefinition. -func (sd SetDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sd.SetDefinitionProperties != nil { - objectMap["properties"] = sd.SetDefinitionProperties - } - if sd.ID != nil { - objectMap["id"] = sd.ID - } - if sd.Name != nil { - objectMap["name"] = sd.Name - } - if sd.Type != nil { - objectMap["type"] = sd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// UnmarshalJSON is the custom unmarshaler for SetDefinition struct. -func (sd *SetDefinition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - var setDefinitionProperties SetDefinitionProperties - err = json.Unmarshal(*v, &setDefinitionProperties) - if err != nil { - return err - } - sd.SetDefinitionProperties = &setDefinitionProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - sd.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sd.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sd.Type = &typeVar - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// SetDefinitionListResult list of policy set definitions. -type SetDefinitionListResult struct { - autorest.Response `json:"-"` - // Value - An array of policy set definitions. - Value *[]SetDefinition `json:"value,omitempty"` - // NextLink - The URL to use for getting the next set of results. - NextLink *string `json:"nextLink,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// SetDefinitionListResultIterator provides access to a complete listing of SetDefinition values. -type SetDefinitionListResultIterator struct { - i int - page SetDefinitionListResultPage -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *SetDefinitionListResultIterator) Next() error { - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err := iter.page.Next() - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter SetDefinitionListResultIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (iter SetDefinitionListResultIterator) Response() SetDefinitionListResult { - return iter.page.Response() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter SetDefinitionListResultIterator) Value() SetDefinition { - if !iter.page.NotDone() { - return SetDefinition{} - } - return iter.page.Values()[iter.i] -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// IsEmpty returns true if the ListResult contains no values. -func (sdlr SetDefinitionListResult) IsEmpty() bool { - return sdlr.Value == nil || len(*sdlr.Value) == 0 -} - -// setDefinitionListResultPreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (sdlr SetDefinitionListResult) setDefinitionListResultPreparer() (*http.Request, error) { - if sdlr.NextLink == nil || len(to.String(sdlr.NextLink)) < 1 { - return nil, nil - } - return autorest.Prepare(&http.Request{}, - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(sdlr.NextLink))) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// SetDefinitionListResultPage contains a page of SetDefinition values. -type SetDefinitionListResultPage struct { - fn func(SetDefinitionListResult) (SetDefinitionListResult, error) - sdlr SetDefinitionListResult -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *SetDefinitionListResultPage) Next() error { - next, err := page.fn(page.sdlr) - if err != nil { - return err - } - page.sdlr = next - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page SetDefinitionListResultPage) NotDone() bool { - return !page.sdlr.IsEmpty() -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Response returns the raw server response from the last page request. -func (page SetDefinitionListResultPage) Response() SetDefinitionListResult { - return page.sdlr -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Values returns the slice of values for the current page or nil if there are no values. -func (page SetDefinitionListResultPage) Values() []SetDefinition { - if page.sdlr.IsEmpty() { - return nil - } - return *page.sdlr.Value -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// SetDefinitionProperties the policy set definition properties. -type SetDefinitionProperties struct { - // PolicyType - The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'TypeNotSpecified', 'TypeBuiltIn', 'TypeCustom' - PolicyType Type `json:"policyType,omitempty"` - // DisplayName - The display name of the policy set definition. - DisplayName *string `json:"displayName,omitempty"` - // Description - The policy set definition description. - Description *string `json:"description,omitempty"` - // Metadata - The policy set definition metadata. - Metadata interface{} `json:"metadata,omitempty"` - // Parameters - The policy set definition parameters that can be used in policy definition references. - Parameters interface{} `json:"parameters,omitempty"` - // PolicyDefinitions - An array of policy definition references. - PolicyDefinitions *[]DefinitionReference `json:"policyDefinitions,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Sku the policy sku. -type Sku struct { - // Name - The name of the policy sku. Possible values are A0 and A1. - Name *string `json:"name,omitempty"` - // Tier - The policy sku tier. Possible values are Free and Standard. - Tier *string `json:"tier,omitempty"` -} diff --git a/services/resources/mgmt/2017-06-01-preview/policy/setdefinitions.go b/services/resources/mgmt/2017-06-01-preview/policy/setdefinitions.go deleted file mode 100644 index 05a72376cf43..000000000000 --- a/services/resources/mgmt/2017-06-01-preview/policy/setdefinitions.go +++ /dev/null @@ -1,830 +0,0 @@ -package policy - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// SetDefinitionsClient is the to manage and control access to your resources, you can define customized policies and -// assign them at a scope. -type SetDefinitionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NewSetDefinitionsClient creates an instance of the SetDefinitionsClient client. -func NewSetDefinitionsClient(subscriptionID string) SetDefinitionsClient { - return NewSetDefinitionsClientWithBaseURI(DefaultBaseURI, subscriptionID) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// NewSetDefinitionsClientWithBaseURI creates an instance of the SetDefinitionsClient client. -func NewSetDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) SetDefinitionsClient { - return SetDefinitionsClient{NewWithBaseURI(baseURI, subscriptionID)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdate creates or updates a policy set definition. -// -// policySetDefinitionName is the name of the policy set definition to create. parameters is the policy set -// definition properties. -func (client SetDefinitionsClient) CreateOrUpdate(ctx context.Context, policySetDefinitionName string, parameters SetDefinition) (result SetDefinition, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.SetDefinitionProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SetDefinitionProperties.PolicyDefinitions", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("policy.SetDefinitionsClient", "CreateOrUpdate", err.Error()) - } - - req, err := client.CreateOrUpdatePreparer(ctx, policySetDefinitionName, parameters) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client SetDefinitionsClient) CreateOrUpdatePreparer(ctx context.Context, policySetDefinitionName string, parameters SetDefinition) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) CreateOrUpdateResponder(resp *http.Response) (result SetDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroup creates or updates a policy set definition at management group level. -// -// policySetDefinitionName is the name of the policy set definition to create. parameters is the policy set -// definition properties. managementGroupID is the ID of the management group. -func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, policySetDefinitionName string, parameters SetDefinition, managementGroupID string) (result SetDefinition, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.SetDefinitionProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.SetDefinitionProperties.PolicyDefinitions", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", err.Error()) - } - - req, err := client.CreateOrUpdateAtManagementGroupPreparer(ctx, policySetDefinitionName, parameters, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.CreateOrUpdateAtManagementGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure sending request") - return - } - - result, err = client.CreateOrUpdateAtManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroupPreparer prepares the CreateOrUpdateAtManagementGroup request. -func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupPreparer(ctx context.Context, policySetDefinitionName string, parameters SetDefinition, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroupSender sends the CreateOrUpdateAtManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// CreateOrUpdateAtManagementGroupResponder handles the response to the CreateOrUpdateAtManagementGroup request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) CreateOrUpdateAtManagementGroupResponder(resp *http.Response) (result SetDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Delete deletes a policy set definition. -// -// policySetDefinitionName is the name of the policy set definition to delete. -func (client SetDefinitionsClient) Delete(ctx context.Context, policySetDefinitionName string) (result autorest.Response, err error) { - req, err := client.DeletePreparer(ctx, policySetDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure sending request") - return - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeletePreparer prepares the Delete request. -func (client SetDefinitionsClient) DeletePreparer(ctx context.Context, policySetDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroup deletes a policy set definition at management group level. -// -// policySetDefinitionName is the name of the policy set definition to delete. managementGroupID is the ID of the -// management group. -func (client SetDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, policySetDefinitionName string, managementGroupID string) (result autorest.Response, err error) { - req, err := client.DeleteAtManagementGroupPreparer(ctx, policySetDefinitionName, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteAtManagementGroupSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure sending request") - return - } - - result, err = client.DeleteAtManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "DeleteAtManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroupPreparer prepares the DeleteAtManagementGroup request. -func (client SetDefinitionsClient) DeleteAtManagementGroupPreparer(ctx context.Context, policySetDefinitionName string, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroupSender sends the DeleteAtManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) DeleteAtManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// DeleteAtManagementGroupResponder handles the response to the DeleteAtManagementGroup request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) DeleteAtManagementGroupResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Get gets the policy set definition. -// -// policySetDefinitionName is the name of the policy set definition to get. -func (client SetDefinitionsClient) Get(ctx context.Context, policySetDefinitionName string) (result SetDefinition, err error) { - req, err := client.GetPreparer(ctx, policySetDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetPreparer prepares the Get request. -func (client SetDefinitionsClient) GetPreparer(ctx context.Context, policySetDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) GetResponder(resp *http.Response) (result SetDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroup gets the policy set definition at management group level. -// -// policySetDefinitionName is the name of the policy set definition to get. managementGroupID is the ID of the -// management group. -func (client SetDefinitionsClient) GetAtManagementGroup(ctx context.Context, policySetDefinitionName string, managementGroupID string) (result SetDefinition, err error) { - req, err := client.GetAtManagementGroupPreparer(ctx, policySetDefinitionName, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.GetAtManagementGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure sending request") - return - } - - result, err = client.GetAtManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetAtManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroupPreparer prepares the GetAtManagementGroup request. -func (client SetDefinitionsClient) GetAtManagementGroupPreparer(ctx context.Context, policySetDefinitionName string, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroupSender sends the GetAtManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) GetAtManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetAtManagementGroupResponder handles the response to the GetAtManagementGroup request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) GetAtManagementGroupResponder(resp *http.Response) (result SetDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltIn gets the built in policy set definition. -// -// policySetDefinitionName is the name of the policy set definition to get. -func (client SetDefinitionsClient) GetBuiltIn(ctx context.Context, policySetDefinitionName string) (result SetDefinition, err error) { - req, err := client.GetBuiltInPreparer(ctx, policySetDefinitionName) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", nil, "Failure preparing request") - return - } - - resp, err := client.GetBuiltInSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure sending request") - return - } - - result, err = client.GetBuiltInResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "GetBuiltIn", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltInPreparer prepares the GetBuiltIn request. -func (client SetDefinitionsClient) GetBuiltInPreparer(ctx context.Context, policySetDefinitionName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltInSender sends the GetBuiltIn request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) GetBuiltInSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// GetBuiltInResponder handles the response to the GetBuiltIn request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) GetBuiltInResponder(resp *http.Response) (result SetDefinition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// List gets all the policy set definitions for a subscription. -func (client SetDefinitionsClient) List(ctx context.Context) (result SetDefinitionListResultPage, err error) { - result.fn = client.listNextResults - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.sdlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure sending request") - return - } - - result.sdlr, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListPreparer prepares the List request. -func (client SetDefinitionsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - azure.DoRetryWithRegistration(client.Client)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) ListResponder(resp *http.Response) (result SetDefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listNextResults retrieves the next set of results, if any. -func (client SetDefinitionsClient) listNextResults(lastResults SetDefinitionListResult) (result SetDefinitionListResult, err error) { - req, err := lastResults.setDefinitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure sending next results request") - } - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client SetDefinitionsClient) ListComplete(ctx context.Context) (result SetDefinitionListResultIterator, err error) { - result.page, err = client.List(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltIn gets all the built in policy set definitions. -func (client SetDefinitionsClient) ListBuiltIn(ctx context.Context) (result SetDefinitionListResultPage, err error) { - result.fn = client.listBuiltInNextResults - req, err := client.ListBuiltInPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", nil, "Failure preparing request") - return - } - - resp, err := client.ListBuiltInSender(req) - if err != nil { - result.sdlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure sending request") - return - } - - result.sdlr, err = client.ListBuiltInResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListBuiltIn", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInPreparer prepares the ListBuiltIn request. -func (client SetDefinitionsClient) ListBuiltInPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/providers/Microsoft.Authorization/policySetDefinitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInSender sends the ListBuiltIn request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) ListBuiltInSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInResponder handles the response to the ListBuiltIn request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) ListBuiltInResponder(resp *http.Response) (result SetDefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listBuiltInNextResults retrieves the next set of results, if any. -func (client SetDefinitionsClient) listBuiltInNextResults(lastResults SetDefinitionListResult) (result SetDefinitionListResult, err error) { - req, err := lastResults.setDefinitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListBuiltInSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure sending next results request") - } - result, err = client.ListBuiltInResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listBuiltInNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListBuiltInComplete enumerates all values, automatically crossing page boundaries as required. -func (client SetDefinitionsClient) ListBuiltInComplete(ctx context.Context) (result SetDefinitionListResultIterator, err error) { - result.page, err = client.ListBuiltIn(ctx) - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroup gets all the policy set definitions for a subscription at management group. -// -// managementGroupID is the ID of the management group. -func (client SetDefinitionsClient) ListByManagementGroup(ctx context.Context, managementGroupID string) (result SetDefinitionListResultPage, err error) { - result.fn = client.listByManagementGroupNextResults - req, err := client.ListByManagementGroupPreparer(ctx, managementGroupID) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", nil, "Failure preparing request") - return - } - - resp, err := client.ListByManagementGroupSender(req) - if err != nil { - result.sdlr.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure sending request") - return - } - - result.sdlr, err = client.ListByManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "ListByManagementGroup", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupPreparer prepares the ListByManagementGroup request. -func (client SetDefinitionsClient) ListByManagementGroupPreparer(ctx context.Context, managementGroupID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "managementGroupId": autorest.Encode("path", managementGroupID), - } - - const APIVersion = "2017-06-01-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupSender sends the ListByManagementGroup request. The method will close the -// http.Response Body if it receives an error. -func (client SetDefinitionsClient) ListByManagementGroupSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupResponder handles the response to the ListByManagementGroup request. The method always -// closes the http.Response Body. -func (client SetDefinitionsClient) ListByManagementGroupResponder(resp *http.Response) (result SetDefinitionListResult, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// listByManagementGroupNextResults retrieves the next set of results, if any. -func (client SetDefinitionsClient) listByManagementGroupNextResults(lastResults SetDefinitionListResult) (result SetDefinitionListResult, err error) { - req, err := lastResults.setDefinitionListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", nil, "Failure preparing next results request") - } - if req == nil { - return - } - resp, err := client.ListByManagementGroupSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure sending next results request") - } - result, err = client.ListByManagementGroupResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "policy.SetDefinitionsClient", "listByManagementGroupNextResults", resp, "Failure responding to next results request") - } - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// ListByManagementGroupComplete enumerates all values, automatically crossing page boundaries as required. -func (client SetDefinitionsClient) ListByManagementGroupComplete(ctx context.Context, managementGroupID string) (result SetDefinitionListResultIterator, err error) { - result.page, err = client.ListByManagementGroup(ctx, managementGroupID) - return -} diff --git a/services/resources/mgmt/2017-06-01-preview/policy/version.go b/services/resources/mgmt/2017-06-01-preview/policy/version.go deleted file mode 100644 index ab1aecc31b3f..000000000000 --- a/services/resources/mgmt/2017-06-01-preview/policy/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package policy - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " policy/2017-06-01-preview" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-06-01-preview/policy instead. -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/servicefabric/1.0.0/servicefabric/applicationhealths.go b/services/servicefabric/1.0.0/servicefabric/applicationhealths.go deleted file mode 100644 index 87c2c94f1536..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/applicationhealths.go +++ /dev/null @@ -1,196 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthsClient is the client for the ApplicationHealths methods of the Servicefabric service. -type ApplicationHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationHealthsClient creates an instance of the ApplicationHealthsClient client. -func NewApplicationHealthsClient(timeout *int32) ApplicationHealthsClient { - return NewApplicationHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationHealthsClientWithBaseURI creates an instance of the ApplicationHealthsClient client. -func NewApplicationHealthsClientWithBaseURI(baseURI string, timeout *int32) ApplicationHealthsClient { - return ApplicationHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get application healths -// Parameters: -// applicationName - the name of the application -// eventsHealthStateFilter - the filter of the events health state -// deployedApplicationsHealthStateFilter - the filter of the deployed application health state -func (client ApplicationHealthsClient) Get(ctx context.Context, applicationName string, eventsHealthStateFilter string, deployedApplicationsHealthStateFilter string) (result ApplicationHealth, err error) { - req, err := client.GetPreparer(ctx, applicationName, eventsHealthStateFilter, deployedApplicationsHealthStateFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ApplicationHealthsClient) GetPreparer(ctx context.Context, applicationName string, eventsHealthStateFilter string, deployedApplicationsHealthStateFilter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(eventsHealthStateFilter) > 0 { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", eventsHealthStateFilter) - } - if len(deployedApplicationsHealthStateFilter) > 0 { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", deployedApplicationsHealthStateFilter) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ApplicationHealthsClient) GetResponder(resp *http.Response) (result ApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send send application health -// Parameters: -// applicationName - the name of the application -// applicationHealthReport - the report of the application health -func (client ApplicationHealthsClient) Send(ctx context.Context, applicationName string, applicationHealthReport ApplicationHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, applicationName, applicationHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client ApplicationHealthsClient) SendPreparer(ctx context.Context, applicationName string, applicationHealthReport ApplicationHealthReport) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/ReportHealth", pathParameters), - autorest.WithJSON(applicationHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client ApplicationHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/applicationmanifests.go b/services/servicefabric/1.0.0/servicefabric/applicationmanifests.go deleted file mode 100644 index 7031d4d90992..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/applicationmanifests.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationManifestsClient is the client for the ApplicationManifests methods of the Servicefabric service. -type ApplicationManifestsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationManifestsClient creates an instance of the ApplicationManifestsClient client. -func NewApplicationManifestsClient(timeout *int32) ApplicationManifestsClient { - return NewApplicationManifestsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationManifestsClientWithBaseURI creates an instance of the ApplicationManifestsClient client. -func NewApplicationManifestsClientWithBaseURI(baseURI string, timeout *int32) ApplicationManifestsClient { - return ApplicationManifestsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get application manifests -// Parameters: -// applicationTypeName - the name of the application type -// applicationTypeVersion - the version of the application type -func (client ApplicationManifestsClient) Get(ctx context.Context, applicationTypeName string, applicationTypeVersion string) (result ApplicationManifest, err error) { - req, err := client.GetPreparer(ctx, applicationTypeName, applicationTypeVersion) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationManifestsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationManifestsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationManifestsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ApplicationManifestsClient) GetPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationManifestsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ApplicationManifestsClient) GetResponder(resp *http.Response) (result ApplicationManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/applications.go b/services/servicefabric/1.0.0/servicefabric/applications.go deleted file mode 100644 index 666fbc498d8f..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/applications.go +++ /dev/null @@ -1,328 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationsClient is the client for the Applications methods of the Servicefabric service. -type ApplicationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationsClient creates an instance of the ApplicationsClient client. -func NewApplicationsClient(timeout *int32) ApplicationsClient { - return NewApplicationsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client. -func NewApplicationsClientWithBaseURI(baseURI string, timeout *int32) ApplicationsClient { - return ApplicationsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Create create applications -// Parameters: -// applicationDescription - the description of the application -func (client ApplicationsClient) Create(ctx context.Context, applicationDescription ApplicationDescription) (result String, err error) { - req, err := client.CreatePreparer(ctx, applicationDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreatePreparer prepares the Create request. -func (client ApplicationsClient) CreatePreparer(ctx context.Context, applicationDescription ApplicationDescription) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications/$/Create"), - autorest.WithJSON(applicationDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationsClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client ApplicationsClient) CreateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get applications -// Parameters: -// applicationName - the name of the application -func (client ApplicationsClient) Get(ctx context.Context, applicationName string) (result Application, err error) { - req, err := client.GetPreparer(ctx, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ApplicationsClient) GetPreparer(ctx context.Context, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ApplicationsClient) GetResponder(resp *http.Response) (result Application, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// List list applications -// Parameters: -// continuationToken - the token of the continuation -func (client ApplicationsClient) List(ctx context.Context, continuationToken string) (result ApplicationList, err error) { - req, err := client.ListPreparer(ctx, continuationToken) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListPreparer prepares the List request. -func (client ApplicationsClient) ListPreparer(ctx context.Context, continuationToken string) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - if len(continuationToken) > 0 { - queryParameters["continuation-token"] = autorest.Encode("query", continuationToken) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Remove remove applications -// Parameters: -// applicationName - the name of the application -// forceRemove - the force remove flag to skip services check -func (client ApplicationsClient) Remove(ctx context.Context, applicationName string, forceRemove *bool) (result String, err error) { - req, err := client.RemovePreparer(ctx, applicationName, forceRemove) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Remove", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Remove", resp, "Failure sending request") - return - } - - result, err = client.RemoveResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationsClient", "Remove", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemovePreparer prepares the Remove request. -func (client ApplicationsClient) RemovePreparer(ctx context.Context, applicationName string, forceRemove *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveSender sends the Remove request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationsClient) RemoveSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveResponder handles the response to the Remove request. The method always -// closes the http.Response Body. -func (client ApplicationsClient) RemoveResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/applicationtypes.go b/services/servicefabric/1.0.0/servicefabric/applicationtypes.go deleted file mode 100644 index 86dba04da679..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/applicationtypes.go +++ /dev/null @@ -1,322 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypesClient is the client for the ApplicationTypes methods of the Servicefabric service. -type ApplicationTypesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationTypesClient creates an instance of the ApplicationTypesClient client. -func NewApplicationTypesClient(timeout *int32) ApplicationTypesClient { - return NewApplicationTypesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationTypesClientWithBaseURI creates an instance of the ApplicationTypesClient client. -func NewApplicationTypesClientWithBaseURI(baseURI string, timeout *int32) ApplicationTypesClient { - return ApplicationTypesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get application types -// Parameters: -// applicationTypeName - the name of the application type -func (client ApplicationTypesClient) Get(ctx context.Context, applicationTypeName string) (result ListApplicationType, err error) { - req, err := client.GetPreparer(ctx, applicationTypeName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ApplicationTypesClient) GetPreparer(ctx context.Context, applicationTypeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationTypesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ApplicationTypesClient) GetResponder(resp *http.Response) (result ListApplicationType, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// List list application types -func (client ApplicationTypesClient) List(ctx context.Context) (result ListApplicationType, err error) { - req, err := client.ListPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListPreparer prepares the List request. -func (client ApplicationTypesClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationTypesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ApplicationTypesClient) ListResponder(resp *http.Response) (result ListApplicationType, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Register register application types -// Parameters: -// registerApplicationType - the type of the register application -func (client ApplicationTypesClient) Register(ctx context.Context, registerApplicationType RegisterApplicationType) (result String, err error) { - req, err := client.RegisterPreparer(ctx, registerApplicationType) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Register", nil, "Failure preparing request") - return - } - - resp, err := client.RegisterSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Register", resp, "Failure sending request") - return - } - - result, err = client.RegisterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Register", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterPreparer prepares the Register request. -func (client ApplicationTypesClient) RegisterPreparer(ctx context.Context, registerApplicationType RegisterApplicationType) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes/$/Provision"), - autorest.WithJSON(registerApplicationType), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterSender sends the Register request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationTypesClient) RegisterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterResponder handles the response to the Register request. The method always -// closes the http.Response Body. -func (client ApplicationTypesClient) RegisterResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Unregister unregister application types -// Parameters: -// applicationTypeName - the name of the application type -// unregisterApplicationType - the type of the unregister application -func (client ApplicationTypesClient) Unregister(ctx context.Context, applicationTypeName string, unregisterApplicationType UnregisterApplicationType) (result String, err error) { - req, err := client.UnregisterPreparer(ctx, applicationTypeName, unregisterApplicationType) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Unregister", nil, "Failure preparing request") - return - } - - resp, err := client.UnregisterSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Unregister", resp, "Failure sending request") - return - } - - result, err = client.UnregisterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationTypesClient", "Unregister", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterPreparer prepares the Unregister request. -func (client ApplicationTypesClient) UnregisterPreparer(ctx context.Context, applicationTypeName string, unregisterApplicationType UnregisterApplicationType) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/Unprovision", pathParameters), - autorest.WithJSON(unregisterApplicationType), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterSender sends the Unregister request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationTypesClient) UnregisterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterResponder handles the response to the Unregister request. The method always -// closes the http.Response Body. -func (client ApplicationTypesClient) UnregisterResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/applicationupgraderollbacks.go b/services/servicefabric/1.0.0/servicefabric/applicationupgraderollbacks.go deleted file mode 100644 index caec3648d06c..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/applicationupgraderollbacks.go +++ /dev/null @@ -1,115 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeRollbacksClient is the client for the ApplicationUpgradeRollbacks methods of the Servicefabric -// service. -type ApplicationUpgradeRollbacksClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationUpgradeRollbacksClient creates an instance of the ApplicationUpgradeRollbacksClient client. -func NewApplicationUpgradeRollbacksClient(timeout *int32) ApplicationUpgradeRollbacksClient { - return NewApplicationUpgradeRollbacksClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationUpgradeRollbacksClientWithBaseURI creates an instance of the ApplicationUpgradeRollbacksClient client. -func NewApplicationUpgradeRollbacksClientWithBaseURI(baseURI string, timeout *int32) ApplicationUpgradeRollbacksClient { - return ApplicationUpgradeRollbacksClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Start start application upgrade rollbacks -// Parameters: -// applicationName - the name of the application -func (client ApplicationUpgradeRollbacksClient) Start(ctx context.Context, applicationName string) (result String, err error) { - req, err := client.StartPreparer(ctx, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradeRollbacksClient", "Start", nil, "Failure preparing request") - return - } - - resp, err := client.StartSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradeRollbacksClient", "Start", resp, "Failure sending request") - return - } - - result, err = client.StartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradeRollbacksClient", "Start", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPreparer prepares the Start request. -func (client ApplicationUpgradeRollbacksClient) StartPreparer(ctx context.Context, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/RollbackUpgrade", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartSender sends the Start request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationUpgradeRollbacksClient) StartSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartResponder handles the response to the Start request. The method always -// closes the http.Response Body. -func (client ApplicationUpgradeRollbacksClient) StartResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/applicationupgrades.go b/services/servicefabric/1.0.0/servicefabric/applicationupgrades.go deleted file mode 100644 index 373c596dad3e..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/applicationupgrades.go +++ /dev/null @@ -1,336 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradesClient is the client for the ApplicationUpgrades methods of the Servicefabric service. -type ApplicationUpgradesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationUpgradesClient creates an instance of the ApplicationUpgradesClient client. -func NewApplicationUpgradesClient(timeout *int32) ApplicationUpgradesClient { - return NewApplicationUpgradesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewApplicationUpgradesClientWithBaseURI creates an instance of the ApplicationUpgradesClient client. -func NewApplicationUpgradesClientWithBaseURI(baseURI string, timeout *int32) ApplicationUpgradesClient { - return ApplicationUpgradesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get application upgrades -// Parameters: -// applicationName - the name of the application -func (client ApplicationUpgradesClient) Get(ctx context.Context, applicationName string) (result ApplicationUpgrade, err error) { - req, err := client.GetPreparer(ctx, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ApplicationUpgradesClient) GetPreparer(ctx context.Context, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetUpgradeProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationUpgradesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ApplicationUpgradesClient) GetResponder(resp *http.Response) (result ApplicationUpgrade, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Resume resume application upgrades -// Parameters: -// applicationName - the name of the application -// resumeApplicationUpgrade - the upgrade of the resume application -func (client ApplicationUpgradesClient) Resume(ctx context.Context, applicationName string, resumeApplicationUpgrade ResumeApplicationUpgrade) (result String, err error) { - req, err := client.ResumePreparer(ctx, applicationName, resumeApplicationUpgrade) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Resume", nil, "Failure preparing request") - return - } - - resp, err := client.ResumeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Resume", resp, "Failure sending request") - return - } - - result, err = client.ResumeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Resume", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumePreparer prepares the Resume request. -func (client ApplicationUpgradesClient) ResumePreparer(ctx context.Context, applicationName string, resumeApplicationUpgrade ResumeApplicationUpgrade) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/MoveNextUpgradeDomain", pathParameters), - autorest.WithJSON(resumeApplicationUpgrade), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeSender sends the Resume request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationUpgradesClient) ResumeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeResponder handles the response to the Resume request. The method always -// closes the http.Response Body. -func (client ApplicationUpgradesClient) ResumeResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Start start application upgrades -// Parameters: -// applicationName - the name of the application -// startApplicationUpgrade - the description of the start application upgrade -func (client ApplicationUpgradesClient) Start(ctx context.Context, applicationName string, startApplicationUpgrade StartApplicationUpgrade) (result String, err error) { - req, err := client.StartPreparer(ctx, applicationName, startApplicationUpgrade) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Start", nil, "Failure preparing request") - return - } - - resp, err := client.StartSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Start", resp, "Failure sending request") - return - } - - result, err = client.StartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Start", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPreparer prepares the Start request. -func (client ApplicationUpgradesClient) StartPreparer(ctx context.Context, applicationName string, startApplicationUpgrade StartApplicationUpgrade) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/Upgrade", pathParameters), - autorest.WithJSON(startApplicationUpgrade), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartSender sends the Start request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationUpgradesClient) StartSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartResponder handles the response to the Start request. The method always -// closes the http.Response Body. -func (client ApplicationUpgradesClient) StartResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Update update application upgrades -// Parameters: -// applicationName - the name of the application -// updateApplicationUpgrade - the description of the update application upgrade -func (client ApplicationUpgradesClient) Update(ctx context.Context, applicationName string, updateApplicationUpgrade UpdateApplicationUpgrade) (result String, err error) { - req, err := client.UpdatePreparer(ctx, applicationName, updateApplicationUpgrade) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ApplicationUpgradesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdatePreparer prepares the Update request. -func (client ApplicationUpgradesClient) UpdatePreparer(ctx context.Context, applicationName string, updateApplicationUpgrade UpdateApplicationUpgrade) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/UpdateUpgrade", pathParameters), - autorest.WithJSON(updateApplicationUpgrade), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client ApplicationUpgradesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client ApplicationUpgradesClient) UpdateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/client.go b/services/servicefabric/1.0.0/servicefabric/client.go deleted file mode 100644 index f2ece26b46d0..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/client.go +++ /dev/null @@ -1,54 +0,0 @@ -// Package servicefabric implements the Azure ARM Servicefabric service API version 1.0.0. -// -// -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// 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" -) - -const ( - // DefaultBaseURI is the default URI used for the service Servicefabric - DefaultBaseURI = "http://localhost:19080" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BaseClient is the base client for Servicefabric. -type BaseClient struct { - autorest.Client - BaseURI string - Timeout *int32 -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// New creates an instance of the BaseClient client. -func New(timeout *int32) BaseClient { - return NewWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string, timeout *int32) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - Timeout: timeout, - } -} diff --git a/services/servicefabric/1.0.0/servicefabric/clusterhealths.go b/services/servicefabric/1.0.0/servicefabric/clusterhealths.go deleted file mode 100644 index 923d385eda22..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/clusterhealths.go +++ /dev/null @@ -1,190 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthsClient is the client for the ClusterHealths methods of the Servicefabric service. -type ClusterHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterHealthsClient creates an instance of the ClusterHealthsClient client. -func NewClusterHealthsClient(timeout *int32) ClusterHealthsClient { - return NewClusterHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterHealthsClientWithBaseURI creates an instance of the ClusterHealthsClient client. -func NewClusterHealthsClientWithBaseURI(baseURI string, timeout *int32) ClusterHealthsClient { - return ClusterHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get cluster healths -// Parameters: -// eventsHealthStateFilter - the filter of the events health state -// nodesHealthStateFilter - the filter of the nodes health state -// applicationsHealthStateFilter - the filter of the applications health state -func (client ClusterHealthsClient) Get(ctx context.Context, eventsHealthStateFilter string, nodesHealthStateFilter string, applicationsHealthStateFilter string) (result ClusterHealth, err error) { - req, err := client.GetPreparer(ctx, eventsHealthStateFilter, nodesHealthStateFilter, applicationsHealthStateFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ClusterHealthsClient) GetPreparer(ctx context.Context, eventsHealthStateFilter string, nodesHealthStateFilter string, applicationsHealthStateFilter string) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(eventsHealthStateFilter) > 0 { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", eventsHealthStateFilter) - } - if len(nodesHealthStateFilter) > 0 { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", nodesHealthStateFilter) - } - if len(applicationsHealthStateFilter) > 0 { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", applicationsHealthStateFilter) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealth"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ClusterHealthsClient) GetResponder(resp *http.Response) (result ClusterHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send report cluster healths -// Parameters: -// clusterHealthReport - the report of the cluster health -func (client ClusterHealthsClient) Send(ctx context.Context, clusterHealthReport ClusterHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, clusterHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client ClusterHealthsClient) SendPreparer(ctx context.Context, clusterHealthReport ClusterHealthReport) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/ReportClusterHealth"), - autorest.WithJSON(clusterHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client ClusterHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/clusterloadinformations.go b/services/servicefabric/1.0.0/servicefabric/clusterloadinformations.go deleted file mode 100644 index 51ee41bb4446..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/clusterloadinformations.go +++ /dev/null @@ -1,108 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterLoadInformationsClient is the client for the ClusterLoadInformations methods of the Servicefabric service. -type ClusterLoadInformationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterLoadInformationsClient creates an instance of the ClusterLoadInformationsClient client. -func NewClusterLoadInformationsClient(timeout *int32) ClusterLoadInformationsClient { - return NewClusterLoadInformationsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterLoadInformationsClientWithBaseURI creates an instance of the ClusterLoadInformationsClient client. -func NewClusterLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) ClusterLoadInformationsClient { - return ClusterLoadInformationsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get cluster load informations -func (client ClusterLoadInformationsClient) Get(ctx context.Context) (result ClusterLoadInformation, err error) { - req, err := client.GetPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterLoadInformationsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterLoadInformationsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterLoadInformationsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ClusterLoadInformationsClient) GetPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetLoadInformation"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterLoadInformationsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ClusterLoadInformationsClient) GetResponder(resp *http.Response) (result ClusterLoadInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/clustermanifests.go b/services/servicefabric/1.0.0/servicefabric/clustermanifests.go deleted file mode 100644 index c2691123268e..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/clustermanifests.go +++ /dev/null @@ -1,108 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterManifestsClient is the client for the ClusterManifests methods of the Servicefabric service. -type ClusterManifestsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterManifestsClient creates an instance of the ClusterManifestsClient client. -func NewClusterManifestsClient(timeout *int32) ClusterManifestsClient { - return NewClusterManifestsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterManifestsClientWithBaseURI creates an instance of the ClusterManifestsClient client. -func NewClusterManifestsClientWithBaseURI(baseURI string, timeout *int32) ClusterManifestsClient { - return ClusterManifestsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get cluster manifests -func (client ClusterManifestsClient) Get(ctx context.Context) (result String, err error) { - req, err := client.GetPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterManifestsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterManifestsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterManifestsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ClusterManifestsClient) GetPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterManifest"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterManifestsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ClusterManifestsClient) GetResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/clusterpackages.go b/services/servicefabric/1.0.0/servicefabric/clusterpackages.go deleted file mode 100644 index 9c7b258b14d8..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/clusterpackages.go +++ /dev/null @@ -1,181 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterPackagesClient is the client for the ClusterPackages methods of the Servicefabric service. -type ClusterPackagesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterPackagesClient creates an instance of the ClusterPackagesClient client. -func NewClusterPackagesClient(timeout *int32) ClusterPackagesClient { - return NewClusterPackagesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterPackagesClientWithBaseURI creates an instance of the ClusterPackagesClient client. -func NewClusterPackagesClientWithBaseURI(baseURI string, timeout *int32) ClusterPackagesClient { - return ClusterPackagesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Register register cluster packages -// Parameters: -// registerClusterPackage - the package of the register cluster -func (client ClusterPackagesClient) Register(ctx context.Context, registerClusterPackage RegisterClusterPackage) (result String, err error) { - req, err := client.RegisterPreparer(ctx, registerClusterPackage) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterPackagesClient", "Register", nil, "Failure preparing request") - return - } - - resp, err := client.RegisterSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterPackagesClient", "Register", resp, "Failure sending request") - return - } - - result, err = client.RegisterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterPackagesClient", "Register", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterPreparer prepares the Register request. -func (client ClusterPackagesClient) RegisterPreparer(ctx context.Context, registerClusterPackage RegisterClusterPackage) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Provision"), - autorest.WithJSON(registerClusterPackage), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterSender sends the Register request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterPackagesClient) RegisterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterResponder handles the response to the Register request. The method always -// closes the http.Response Body. -func (client ClusterPackagesClient) RegisterResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Unregister unregister cluster packages -// Parameters: -// unregisterClusterPackage - the package of the unregister cluster -func (client ClusterPackagesClient) Unregister(ctx context.Context, unregisterClusterPackage UnregisterClusterPackage) (result String, err error) { - req, err := client.UnregisterPreparer(ctx, unregisterClusterPackage) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterPackagesClient", "Unregister", nil, "Failure preparing request") - return - } - - resp, err := client.UnregisterSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterPackagesClient", "Unregister", resp, "Failure sending request") - return - } - - result, err = client.UnregisterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterPackagesClient", "Unregister", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterPreparer prepares the Unregister request. -func (client ClusterPackagesClient) UnregisterPreparer(ctx context.Context, unregisterClusterPackage UnregisterClusterPackage) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Unprovision"), - autorest.WithJSON(unregisterClusterPackage), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterSender sends the Unregister request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterPackagesClient) UnregisterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterResponder handles the response to the Unregister request. The method always -// closes the http.Response Body. -func (client ClusterPackagesClient) UnregisterResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/clusterupgrades.go b/services/servicefabric/1.0.0/servicefabric/clusterupgrades.go deleted file mode 100644 index fded71291da0..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/clusterupgrades.go +++ /dev/null @@ -1,315 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradesClient is the client for the ClusterUpgrades methods of the Servicefabric service. -type ClusterUpgradesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterUpgradesClient creates an instance of the ClusterUpgradesClient client. -func NewClusterUpgradesClient(timeout *int32) ClusterUpgradesClient { - return NewClusterUpgradesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewClusterUpgradesClientWithBaseURI creates an instance of the ClusterUpgradesClient client. -func NewClusterUpgradesClientWithBaseURI(baseURI string, timeout *int32) ClusterUpgradesClient { - return ClusterUpgradesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Resume resume cluster upgrades -// Parameters: -// resumeClusterUpgrade - the upgrade of the cluster -func (client ClusterUpgradesClient) Resume(ctx context.Context, resumeClusterUpgrade ResumeClusterUpgrade) (result String, err error) { - req, err := client.ResumePreparer(ctx, resumeClusterUpgrade) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Resume", nil, "Failure preparing request") - return - } - - resp, err := client.ResumeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Resume", resp, "Failure sending request") - return - } - - result, err = client.ResumeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Resume", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumePreparer prepares the Resume request. -func (client ClusterUpgradesClient) ResumePreparer(ctx context.Context, resumeClusterUpgrade ResumeClusterUpgrade) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/MoveToNextUpgradeDomain"), - autorest.WithJSON(resumeClusterUpgrade), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeSender sends the Resume request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterUpgradesClient) ResumeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeResponder handles the response to the Resume request. The method always -// closes the http.Response Body. -func (client ClusterUpgradesClient) ResumeResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Rollback rollback cluster upgrades -func (client ClusterUpgradesClient) Rollback(ctx context.Context) (result String, err error) { - req, err := client.RollbackPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Rollback", nil, "Failure preparing request") - return - } - - resp, err := client.RollbackSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Rollback", resp, "Failure sending request") - return - } - - result, err = client.RollbackResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Rollback", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackPreparer prepares the Rollback request. -func (client ClusterUpgradesClient) RollbackPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RollbackUpgrade"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackSender sends the Rollback request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterUpgradesClient) RollbackSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackResponder handles the response to the Rollback request. The method always -// closes the http.Response Body. -func (client ClusterUpgradesClient) RollbackResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Start start cluster upgrades -// Parameters: -// startClusterUpgrade - the description of the start cluster upgrade -func (client ClusterUpgradesClient) Start(ctx context.Context, startClusterUpgrade StartClusterUpgrade) (result String, err error) { - req, err := client.StartPreparer(ctx, startClusterUpgrade) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Start", nil, "Failure preparing request") - return - } - - resp, err := client.StartSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Start", resp, "Failure sending request") - return - } - - result, err = client.StartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Start", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPreparer prepares the Start request. -func (client ClusterUpgradesClient) StartPreparer(ctx context.Context, startClusterUpgrade StartClusterUpgrade) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Upgrade"), - autorest.WithJSON(startClusterUpgrade), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartSender sends the Start request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterUpgradesClient) StartSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartResponder handles the response to the Start request. The method always -// closes the http.Response Body. -func (client ClusterUpgradesClient) StartResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Update update cluster upgrades -// Parameters: -// updateClusterUpgrade - the description of the update cluster upgrade -func (client ClusterUpgradesClient) Update(ctx context.Context, updateClusterUpgrade UpdateClusterUpgrade) (result String, err error) { - req, err := client.UpdatePreparer(ctx, updateClusterUpgrade) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ClusterUpgradesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdatePreparer prepares the Update request. -func (client ClusterUpgradesClient) UpdatePreparer(ctx context.Context, updateClusterUpgrade UpdateClusterUpgrade) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/UpdateUpgrade"), - autorest.WithJSON(updateClusterUpgrade), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client ClusterUpgradesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client ClusterUpgradesClient) UpdateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedapplicationhealths.go b/services/servicefabric/1.0.0/servicefabric/deployedapplicationhealths.go deleted file mode 100644 index 9856ccb63fee..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedapplicationhealths.go +++ /dev/null @@ -1,201 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthsClient is the client for the DeployedApplicationHealths methods of the Servicefabric -// service. -type DeployedApplicationHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedApplicationHealthsClient creates an instance of the DeployedApplicationHealthsClient client. -func NewDeployedApplicationHealthsClient(timeout *int32) DeployedApplicationHealthsClient { - return NewDeployedApplicationHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedApplicationHealthsClientWithBaseURI creates an instance of the DeployedApplicationHealthsClient client. -func NewDeployedApplicationHealthsClientWithBaseURI(baseURI string, timeout *int32) DeployedApplicationHealthsClient { - return DeployedApplicationHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed application healths -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -// eventsHealthStateFilter - the filter of the events health state -// deployedServicePackagesHealthStateFilter - the filter of the deployed service packages health state -func (client DeployedApplicationHealthsClient) Get(ctx context.Context, nodeName string, applicationName string, eventsHealthStateFilter string, deployedServicePackagesHealthStateFilter string) (result DeployedApplicationHealth, err error) { - req, err := client.GetPreparer(ctx, nodeName, applicationName, eventsHealthStateFilter, deployedServicePackagesHealthStateFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedApplicationHealthsClient) GetPreparer(ctx context.Context, nodeName string, applicationName string, eventsHealthStateFilter string, deployedServicePackagesHealthStateFilter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(eventsHealthStateFilter) > 0 { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", eventsHealthStateFilter) - } - if len(deployedServicePackagesHealthStateFilter) > 0 { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", deployedServicePackagesHealthStateFilter) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedApplicationHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedApplicationHealthsClient) GetResponder(resp *http.Response) (result DeployedApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send send deployed application health -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -// deployedApplicationHealthReport - the report of the deployed application health -func (client DeployedApplicationHealthsClient) Send(ctx context.Context, nodeName string, applicationName string, deployedApplicationHealthReport DeployedApplicationHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, nodeName, applicationName, deployedApplicationHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client DeployedApplicationHealthsClient) SendPreparer(ctx context.Context, nodeName string, applicationName string, deployedApplicationHealthReport DeployedApplicationHealthReport) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/ReportHealth", pathParameters), - autorest.WithJSON(deployedApplicationHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedApplicationHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client DeployedApplicationHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedapplications.go b/services/servicefabric/1.0.0/servicefabric/deployedapplications.go deleted file mode 100644 index 15e9fa2c22b2..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedapplications.go +++ /dev/null @@ -1,187 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationsClient is the client for the DeployedApplications methods of the Servicefabric service. -type DeployedApplicationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedApplicationsClient creates an instance of the DeployedApplicationsClient client. -func NewDeployedApplicationsClient(timeout *int32) DeployedApplicationsClient { - return NewDeployedApplicationsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedApplicationsClientWithBaseURI creates an instance of the DeployedApplicationsClient client. -func NewDeployedApplicationsClientWithBaseURI(baseURI string, timeout *int32) DeployedApplicationsClient { - return DeployedApplicationsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed applications -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -func (client DeployedApplicationsClient) Get(ctx context.Context, nodeName string, applicationName string) (result DeployedApplication, err error) { - req, err := client.GetPreparer(ctx, nodeName, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedApplicationsClient) GetPreparer(ctx context.Context, nodeName string, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": autorest.Encode("path", applicationName), - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedApplicationsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedApplicationsClient) GetResponder(resp *http.Response) (result DeployedApplication, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// List list deployed applications -// Parameters: -// nodeName - the name of the node -func (client DeployedApplicationsClient) List(ctx context.Context, nodeName string) (result ListDeployedApplication, err error) { - req, err := client.ListPreparer(ctx, nodeName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationsClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedApplicationsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListPreparer prepares the List request. -func (client DeployedApplicationsClient) ListPreparer(ctx context.Context, nodeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedApplicationsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client DeployedApplicationsClient) ListResponder(resp *http.Response) (result ListDeployedApplication, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedcodepackages.go b/services/servicefabric/1.0.0/servicefabric/deployedcodepackages.go deleted file mode 100644 index e0c56ee1b783..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedcodepackages.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedCodePackagesClient is the client for the DeployedCodePackages methods of the Servicefabric service. -type DeployedCodePackagesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedCodePackagesClient creates an instance of the DeployedCodePackagesClient client. -func NewDeployedCodePackagesClient(timeout *int32) DeployedCodePackagesClient { - return NewDeployedCodePackagesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedCodePackagesClientWithBaseURI creates an instance of the DeployedCodePackagesClient client. -func NewDeployedCodePackagesClientWithBaseURI(baseURI string, timeout *int32) DeployedCodePackagesClient { - return DeployedCodePackagesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed code packages -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -func (client DeployedCodePackagesClient) Get(ctx context.Context, nodeName string, applicationName string) (result ListDeployedCodePackage, err error) { - req, err := client.GetPreparer(ctx, nodeName, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedCodePackagesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedCodePackagesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedCodePackagesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedCodePackagesClient) GetPreparer(ctx context.Context, nodeName string, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/GetCodePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedCodePackagesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedCodePackagesClient) GetResponder(resp *http.Response) (result ListDeployedCodePackage, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedreplicadetails.go b/services/servicefabric/1.0.0/servicefabric/deployedreplicadetails.go deleted file mode 100644 index beebe08fb5c4..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedreplicadetails.go +++ /dev/null @@ -1,118 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedReplicaDetailsClient is the client for the DeployedReplicaDetails methods of the Servicefabric service. -type DeployedReplicaDetailsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedReplicaDetailsClient creates an instance of the DeployedReplicaDetailsClient client. -func NewDeployedReplicaDetailsClient(timeout *int32) DeployedReplicaDetailsClient { - return NewDeployedReplicaDetailsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedReplicaDetailsClientWithBaseURI creates an instance of the DeployedReplicaDetailsClient client. -func NewDeployedReplicaDetailsClientWithBaseURI(baseURI string, timeout *int32) DeployedReplicaDetailsClient { - return DeployedReplicaDetailsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed replica details -// Parameters: -// nodeName - the name of the node -// partitionName - the name of the partition -// replicaID - the id of the replica -func (client DeployedReplicaDetailsClient) Get(ctx context.Context, nodeName string, partitionName string, replicaID string) (result DeployedReplicaDetail, err error) { - req, err := client.GetPreparer(ctx, nodeName, partitionName, replicaID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedReplicaDetailsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedReplicaDetailsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedReplicaDetailsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedReplicaDetailsClient) GetPreparer(ctx context.Context, nodeName string, partitionName string, replicaID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionName": partitionName, - "replicaId": autorest.Encode("path", replicaID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionName}/$/GetReplicas/{replicaId}/$/GetDetail", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedReplicaDetailsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedReplicaDetailsClient) GetResponder(resp *http.Response) (result DeployedReplicaDetail, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedreplicas.go b/services/servicefabric/1.0.0/servicefabric/deployedreplicas.go deleted file mode 100644 index 82ded7e09f61..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedreplicas.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedReplicasClient is the client for the DeployedReplicas methods of the Servicefabric service. -type DeployedReplicasClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedReplicasClient creates an instance of the DeployedReplicasClient client. -func NewDeployedReplicasClient(timeout *int32) DeployedReplicasClient { - return NewDeployedReplicasClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedReplicasClientWithBaseURI creates an instance of the DeployedReplicasClient client. -func NewDeployedReplicasClientWithBaseURI(baseURI string, timeout *int32) DeployedReplicasClient { - return DeployedReplicasClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed replicas -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -func (client DeployedReplicasClient) Get(ctx context.Context, nodeName string, applicationName string) (result ListDeployedReplica, err error) { - req, err := client.GetPreparer(ctx, nodeName, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedReplicasClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedReplicasClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedReplicasClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedReplicasClient) GetPreparer(ctx context.Context, nodeName string, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedReplicasClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedReplicasClient) GetResponder(resp *http.Response) (result ListDeployedReplica, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedservicepackagehealths.go b/services/servicefabric/1.0.0/servicefabric/deployedservicepackagehealths.go deleted file mode 100644 index 4a5cfe62f21a..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedservicepackagehealths.go +++ /dev/null @@ -1,202 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthsClient is the client for the DeployedServicePackageHealths methods of the Servicefabric -// service. -type DeployedServicePackageHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedServicePackageHealthsClient creates an instance of the DeployedServicePackageHealthsClient client. -func NewDeployedServicePackageHealthsClient(timeout *int32) DeployedServicePackageHealthsClient { - return NewDeployedServicePackageHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedServicePackageHealthsClientWithBaseURI creates an instance of the DeployedServicePackageHealthsClient -// client. -func NewDeployedServicePackageHealthsClientWithBaseURI(baseURI string, timeout *int32) DeployedServicePackageHealthsClient { - return DeployedServicePackageHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed service package healths -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -// servicePackageName - the name of the service package -// eventsHealthStateFilter - the filter of the events health state -func (client DeployedServicePackageHealthsClient) Get(ctx context.Context, nodeName string, applicationName string, servicePackageName string, eventsHealthStateFilter string) (result DeployedServicePackageHealth, err error) { - req, err := client.GetPreparer(ctx, nodeName, applicationName, servicePackageName, eventsHealthStateFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackageHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackageHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackageHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedServicePackageHealthsClient) GetPreparer(ctx context.Context, nodeName string, applicationName string, servicePackageName string, eventsHealthStateFilter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": autorest.Encode("path", servicePackageName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(eventsHealthStateFilter) > 0 { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", eventsHealthStateFilter) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/GetServicePackages/{servicePackageName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedServicePackageHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedServicePackageHealthsClient) GetResponder(resp *http.Response) (result DeployedServicePackageHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send send deployed service package health -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -// serviceManifestName - the name of the service manifest -// deployedServicePackageHealthReport - the report of the deployed service package health -func (client DeployedServicePackageHealthsClient) Send(ctx context.Context, nodeName string, applicationName string, serviceManifestName string, deployedServicePackageHealthReport DeployedServiceHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, nodeName, applicationName, serviceManifestName, deployedServicePackageHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackageHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackageHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackageHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client DeployedServicePackageHealthsClient) SendPreparer(ctx context.Context, nodeName string, applicationName string, serviceManifestName string, deployedServicePackageHealthReport DeployedServiceHealthReport) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - "serviceManifestName": autorest.Encode("path", serviceManifestName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/GetServicePackages/{serviceManifestName}/$/ReportHealth", pathParameters), - autorest.WithJSON(deployedServicePackageHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedServicePackageHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client DeployedServicePackageHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedservicepackages.go b/services/servicefabric/1.0.0/servicefabric/deployedservicepackages.go deleted file mode 100644 index 780b9ed98dcd..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedservicepackages.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackagesClient is the client for the DeployedServicePackages methods of the Servicefabric service. -type DeployedServicePackagesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedServicePackagesClient creates an instance of the DeployedServicePackagesClient client. -func NewDeployedServicePackagesClient(timeout *int32) DeployedServicePackagesClient { - return NewDeployedServicePackagesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedServicePackagesClientWithBaseURI creates an instance of the DeployedServicePackagesClient client. -func NewDeployedServicePackagesClientWithBaseURI(baseURI string, timeout *int32) DeployedServicePackagesClient { - return DeployedServicePackagesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed service packages -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -func (client DeployedServicePackagesClient) Get(ctx context.Context, nodeName string, applicationName string) (result ListDeployedServicePackage, err error) { - req, err := client.GetPreparer(ctx, nodeName, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackagesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackagesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServicePackagesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedServicePackagesClient) GetPreparer(ctx context.Context, nodeName string, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/GetServicePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedServicePackagesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedServicePackagesClient) GetResponder(resp *http.Response) (result ListDeployedServicePackage, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/deployedservicetypes.go b/services/servicefabric/1.0.0/servicefabric/deployedservicetypes.go deleted file mode 100644 index 30f6d87fb809..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/deployedservicetypes.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceTypesClient is the client for the DeployedServiceTypes methods of the Servicefabric service. -type DeployedServiceTypesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedServiceTypesClient creates an instance of the DeployedServiceTypesClient client. -func NewDeployedServiceTypesClient(timeout *int32) DeployedServiceTypesClient { - return NewDeployedServiceTypesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewDeployedServiceTypesClientWithBaseURI creates an instance of the DeployedServiceTypesClient client. -func NewDeployedServiceTypesClientWithBaseURI(baseURI string, timeout *int32) DeployedServiceTypesClient { - return DeployedServiceTypesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get deployed service types -// Parameters: -// nodeName - the name of the node -// applicationName - the name of the application -func (client DeployedServiceTypesClient) Get(ctx context.Context, nodeName string, applicationName string) (result ListDeployedServiceType, err error) { - req, err := client.GetPreparer(ctx, nodeName, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServiceTypesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServiceTypesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.DeployedServiceTypesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client DeployedServiceTypesClient) GetPreparer(ctx context.Context, nodeName string, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationName}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client DeployedServiceTypesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client DeployedServiceTypesClient) GetResponder(resp *http.Response) (result ListDeployedServiceType, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/models.go b/services/servicefabric/1.0.0/servicefabric/models.go deleted file mode 100644 index c5cb4b6ffe34..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/models.go +++ /dev/null @@ -1,8531 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState enumerates the values for aggregated health state. -type AggregatedHealthState string - -const ( - // Error ... - Error AggregatedHealthState = "Error" - // Invalid ... - Invalid AggregatedHealthState = "Invalid" - // Ok ... - Ok AggregatedHealthState = "Ok" - // Unknown ... - Unknown AggregatedHealthState = "Unknown" - // Warning ... - Warning AggregatedHealthState = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthStateValues returns an array of possible values for the AggregatedHealthState const type. -func PossibleAggregatedHealthStateValues() []AggregatedHealthState { - return []AggregatedHealthState{Error, Invalid, Ok, Unknown, Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState1 enumerates the values for aggregated health state 1. -type AggregatedHealthState1 string - -const ( - // AggregatedHealthState1Error ... - AggregatedHealthState1Error AggregatedHealthState1 = "Error" - // AggregatedHealthState1Invalid ... - AggregatedHealthState1Invalid AggregatedHealthState1 = "Invalid" - // AggregatedHealthState1Ok ... - AggregatedHealthState1Ok AggregatedHealthState1 = "Ok" - // AggregatedHealthState1Unknown ... - AggregatedHealthState1Unknown AggregatedHealthState1 = "Unknown" - // AggregatedHealthState1Warning ... - AggregatedHealthState1Warning AggregatedHealthState1 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState1Values returns an array of possible values for the AggregatedHealthState1 const type. -func PossibleAggregatedHealthState1Values() []AggregatedHealthState1 { - return []AggregatedHealthState1{AggregatedHealthState1Error, AggregatedHealthState1Invalid, AggregatedHealthState1Ok, AggregatedHealthState1Unknown, AggregatedHealthState1Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState10 enumerates the values for aggregated health state 10. -type AggregatedHealthState10 string - -const ( - // AggregatedHealthState10Error ... - AggregatedHealthState10Error AggregatedHealthState10 = "Error" - // AggregatedHealthState10Invalid ... - AggregatedHealthState10Invalid AggregatedHealthState10 = "Invalid" - // AggregatedHealthState10Ok ... - AggregatedHealthState10Ok AggregatedHealthState10 = "Ok" - // AggregatedHealthState10Unknown ... - AggregatedHealthState10Unknown AggregatedHealthState10 = "Unknown" - // AggregatedHealthState10Warning ... - AggregatedHealthState10Warning AggregatedHealthState10 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState10Values returns an array of possible values for the AggregatedHealthState10 const type. -func PossibleAggregatedHealthState10Values() []AggregatedHealthState10 { - return []AggregatedHealthState10{AggregatedHealthState10Error, AggregatedHealthState10Invalid, AggregatedHealthState10Ok, AggregatedHealthState10Unknown, AggregatedHealthState10Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState11 enumerates the values for aggregated health state 11. -type AggregatedHealthState11 string - -const ( - // AggregatedHealthState11Error ... - AggregatedHealthState11Error AggregatedHealthState11 = "Error" - // AggregatedHealthState11Invalid ... - AggregatedHealthState11Invalid AggregatedHealthState11 = "Invalid" - // AggregatedHealthState11Ok ... - AggregatedHealthState11Ok AggregatedHealthState11 = "Ok" - // AggregatedHealthState11Unknown ... - AggregatedHealthState11Unknown AggregatedHealthState11 = "Unknown" - // AggregatedHealthState11Warning ... - AggregatedHealthState11Warning AggregatedHealthState11 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState11Values returns an array of possible values for the AggregatedHealthState11 const type. -func PossibleAggregatedHealthState11Values() []AggregatedHealthState11 { - return []AggregatedHealthState11{AggregatedHealthState11Error, AggregatedHealthState11Invalid, AggregatedHealthState11Ok, AggregatedHealthState11Unknown, AggregatedHealthState11Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState12 enumerates the values for aggregated health state 12. -type AggregatedHealthState12 string - -const ( - // AggregatedHealthState12Error ... - AggregatedHealthState12Error AggregatedHealthState12 = "Error" - // AggregatedHealthState12Invalid ... - AggregatedHealthState12Invalid AggregatedHealthState12 = "Invalid" - // AggregatedHealthState12Ok ... - AggregatedHealthState12Ok AggregatedHealthState12 = "Ok" - // AggregatedHealthState12Unknown ... - AggregatedHealthState12Unknown AggregatedHealthState12 = "Unknown" - // AggregatedHealthState12Warning ... - AggregatedHealthState12Warning AggregatedHealthState12 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState12Values returns an array of possible values for the AggregatedHealthState12 const type. -func PossibleAggregatedHealthState12Values() []AggregatedHealthState12 { - return []AggregatedHealthState12{AggregatedHealthState12Error, AggregatedHealthState12Invalid, AggregatedHealthState12Ok, AggregatedHealthState12Unknown, AggregatedHealthState12Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState13 enumerates the values for aggregated health state 13. -type AggregatedHealthState13 string - -const ( - // AggregatedHealthState13Error ... - AggregatedHealthState13Error AggregatedHealthState13 = "Error" - // AggregatedHealthState13Invalid ... - AggregatedHealthState13Invalid AggregatedHealthState13 = "Invalid" - // AggregatedHealthState13Ok ... - AggregatedHealthState13Ok AggregatedHealthState13 = "Ok" - // AggregatedHealthState13Unknown ... - AggregatedHealthState13Unknown AggregatedHealthState13 = "Unknown" - // AggregatedHealthState13Warning ... - AggregatedHealthState13Warning AggregatedHealthState13 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState13Values returns an array of possible values for the AggregatedHealthState13 const type. -func PossibleAggregatedHealthState13Values() []AggregatedHealthState13 { - return []AggregatedHealthState13{AggregatedHealthState13Error, AggregatedHealthState13Invalid, AggregatedHealthState13Ok, AggregatedHealthState13Unknown, AggregatedHealthState13Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState14 enumerates the values for aggregated health state 14. -type AggregatedHealthState14 string - -const ( - // AggregatedHealthState14Error ... - AggregatedHealthState14Error AggregatedHealthState14 = "Error" - // AggregatedHealthState14Invalid ... - AggregatedHealthState14Invalid AggregatedHealthState14 = "Invalid" - // AggregatedHealthState14Ok ... - AggregatedHealthState14Ok AggregatedHealthState14 = "Ok" - // AggregatedHealthState14Unknown ... - AggregatedHealthState14Unknown AggregatedHealthState14 = "Unknown" - // AggregatedHealthState14Warning ... - AggregatedHealthState14Warning AggregatedHealthState14 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState14Values returns an array of possible values for the AggregatedHealthState14 const type. -func PossibleAggregatedHealthState14Values() []AggregatedHealthState14 { - return []AggregatedHealthState14{AggregatedHealthState14Error, AggregatedHealthState14Invalid, AggregatedHealthState14Ok, AggregatedHealthState14Unknown, AggregatedHealthState14Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState15 enumerates the values for aggregated health state 15. -type AggregatedHealthState15 string - -const ( - // AggregatedHealthState15Error ... - AggregatedHealthState15Error AggregatedHealthState15 = "Error" - // AggregatedHealthState15Invalid ... - AggregatedHealthState15Invalid AggregatedHealthState15 = "Invalid" - // AggregatedHealthState15Ok ... - AggregatedHealthState15Ok AggregatedHealthState15 = "Ok" - // AggregatedHealthState15Unknown ... - AggregatedHealthState15Unknown AggregatedHealthState15 = "Unknown" - // AggregatedHealthState15Warning ... - AggregatedHealthState15Warning AggregatedHealthState15 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState15Values returns an array of possible values for the AggregatedHealthState15 const type. -func PossibleAggregatedHealthState15Values() []AggregatedHealthState15 { - return []AggregatedHealthState15{AggregatedHealthState15Error, AggregatedHealthState15Invalid, AggregatedHealthState15Ok, AggregatedHealthState15Unknown, AggregatedHealthState15Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState2 enumerates the values for aggregated health state 2. -type AggregatedHealthState2 string - -const ( - // AggregatedHealthState2Error ... - AggregatedHealthState2Error AggregatedHealthState2 = "Error" - // AggregatedHealthState2Invalid ... - AggregatedHealthState2Invalid AggregatedHealthState2 = "Invalid" - // AggregatedHealthState2Ok ... - AggregatedHealthState2Ok AggregatedHealthState2 = "Ok" - // AggregatedHealthState2Unknown ... - AggregatedHealthState2Unknown AggregatedHealthState2 = "Unknown" - // AggregatedHealthState2Warning ... - AggregatedHealthState2Warning AggregatedHealthState2 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState2Values returns an array of possible values for the AggregatedHealthState2 const type. -func PossibleAggregatedHealthState2Values() []AggregatedHealthState2 { - return []AggregatedHealthState2{AggregatedHealthState2Error, AggregatedHealthState2Invalid, AggregatedHealthState2Ok, AggregatedHealthState2Unknown, AggregatedHealthState2Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState3 enumerates the values for aggregated health state 3. -type AggregatedHealthState3 string - -const ( - // AggregatedHealthState3Error ... - AggregatedHealthState3Error AggregatedHealthState3 = "Error" - // AggregatedHealthState3Invalid ... - AggregatedHealthState3Invalid AggregatedHealthState3 = "Invalid" - // AggregatedHealthState3Ok ... - AggregatedHealthState3Ok AggregatedHealthState3 = "Ok" - // AggregatedHealthState3Unknown ... - AggregatedHealthState3Unknown AggregatedHealthState3 = "Unknown" - // AggregatedHealthState3Warning ... - AggregatedHealthState3Warning AggregatedHealthState3 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState3Values returns an array of possible values for the AggregatedHealthState3 const type. -func PossibleAggregatedHealthState3Values() []AggregatedHealthState3 { - return []AggregatedHealthState3{AggregatedHealthState3Error, AggregatedHealthState3Invalid, AggregatedHealthState3Ok, AggregatedHealthState3Unknown, AggregatedHealthState3Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState4 enumerates the values for aggregated health state 4. -type AggregatedHealthState4 string - -const ( - // AggregatedHealthState4Error ... - AggregatedHealthState4Error AggregatedHealthState4 = "Error" - // AggregatedHealthState4Invalid ... - AggregatedHealthState4Invalid AggregatedHealthState4 = "Invalid" - // AggregatedHealthState4Ok ... - AggregatedHealthState4Ok AggregatedHealthState4 = "Ok" - // AggregatedHealthState4Unknown ... - AggregatedHealthState4Unknown AggregatedHealthState4 = "Unknown" - // AggregatedHealthState4Warning ... - AggregatedHealthState4Warning AggregatedHealthState4 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState4Values returns an array of possible values for the AggregatedHealthState4 const type. -func PossibleAggregatedHealthState4Values() []AggregatedHealthState4 { - return []AggregatedHealthState4{AggregatedHealthState4Error, AggregatedHealthState4Invalid, AggregatedHealthState4Ok, AggregatedHealthState4Unknown, AggregatedHealthState4Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState5 enumerates the values for aggregated health state 5. -type AggregatedHealthState5 string - -const ( - // AggregatedHealthState5Error ... - AggregatedHealthState5Error AggregatedHealthState5 = "Error" - // AggregatedHealthState5Invalid ... - AggregatedHealthState5Invalid AggregatedHealthState5 = "Invalid" - // AggregatedHealthState5Ok ... - AggregatedHealthState5Ok AggregatedHealthState5 = "Ok" - // AggregatedHealthState5Unknown ... - AggregatedHealthState5Unknown AggregatedHealthState5 = "Unknown" - // AggregatedHealthState5Warning ... - AggregatedHealthState5Warning AggregatedHealthState5 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState5Values returns an array of possible values for the AggregatedHealthState5 const type. -func PossibleAggregatedHealthState5Values() []AggregatedHealthState5 { - return []AggregatedHealthState5{AggregatedHealthState5Error, AggregatedHealthState5Invalid, AggregatedHealthState5Ok, AggregatedHealthState5Unknown, AggregatedHealthState5Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState6 enumerates the values for aggregated health state 6. -type AggregatedHealthState6 string - -const ( - // AggregatedHealthState6Error ... - AggregatedHealthState6Error AggregatedHealthState6 = "Error" - // AggregatedHealthState6Invalid ... - AggregatedHealthState6Invalid AggregatedHealthState6 = "Invalid" - // AggregatedHealthState6Ok ... - AggregatedHealthState6Ok AggregatedHealthState6 = "Ok" - // AggregatedHealthState6Unknown ... - AggregatedHealthState6Unknown AggregatedHealthState6 = "Unknown" - // AggregatedHealthState6Warning ... - AggregatedHealthState6Warning AggregatedHealthState6 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState6Values returns an array of possible values for the AggregatedHealthState6 const type. -func PossibleAggregatedHealthState6Values() []AggregatedHealthState6 { - return []AggregatedHealthState6{AggregatedHealthState6Error, AggregatedHealthState6Invalid, AggregatedHealthState6Ok, AggregatedHealthState6Unknown, AggregatedHealthState6Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState7 enumerates the values for aggregated health state 7. -type AggregatedHealthState7 string - -const ( - // AggregatedHealthState7Error ... - AggregatedHealthState7Error AggregatedHealthState7 = "Error" - // AggregatedHealthState7Invalid ... - AggregatedHealthState7Invalid AggregatedHealthState7 = "Invalid" - // AggregatedHealthState7Ok ... - AggregatedHealthState7Ok AggregatedHealthState7 = "Ok" - // AggregatedHealthState7Unknown ... - AggregatedHealthState7Unknown AggregatedHealthState7 = "Unknown" - // AggregatedHealthState7Warning ... - AggregatedHealthState7Warning AggregatedHealthState7 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState7Values returns an array of possible values for the AggregatedHealthState7 const type. -func PossibleAggregatedHealthState7Values() []AggregatedHealthState7 { - return []AggregatedHealthState7{AggregatedHealthState7Error, AggregatedHealthState7Invalid, AggregatedHealthState7Ok, AggregatedHealthState7Unknown, AggregatedHealthState7Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState8 enumerates the values for aggregated health state 8. -type AggregatedHealthState8 string - -const ( - // AggregatedHealthState8Error ... - AggregatedHealthState8Error AggregatedHealthState8 = "Error" - // AggregatedHealthState8Invalid ... - AggregatedHealthState8Invalid AggregatedHealthState8 = "Invalid" - // AggregatedHealthState8Ok ... - AggregatedHealthState8Ok AggregatedHealthState8 = "Ok" - // AggregatedHealthState8Unknown ... - AggregatedHealthState8Unknown AggregatedHealthState8 = "Unknown" - // AggregatedHealthState8Warning ... - AggregatedHealthState8Warning AggregatedHealthState8 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState8Values returns an array of possible values for the AggregatedHealthState8 const type. -func PossibleAggregatedHealthState8Values() []AggregatedHealthState8 { - return []AggregatedHealthState8{AggregatedHealthState8Error, AggregatedHealthState8Invalid, AggregatedHealthState8Ok, AggregatedHealthState8Unknown, AggregatedHealthState8Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState9 enumerates the values for aggregated health state 9. -type AggregatedHealthState9 string - -const ( - // AggregatedHealthState9Error ... - AggregatedHealthState9Error AggregatedHealthState9 = "Error" - // AggregatedHealthState9Invalid ... - AggregatedHealthState9Invalid AggregatedHealthState9 = "Invalid" - // AggregatedHealthState9Ok ... - AggregatedHealthState9Ok AggregatedHealthState9 = "Ok" - // AggregatedHealthState9Unknown ... - AggregatedHealthState9Unknown AggregatedHealthState9 = "Unknown" - // AggregatedHealthState9Warning ... - AggregatedHealthState9Warning AggregatedHealthState9 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState9Values returns an array of possible values for the AggregatedHealthState9 const type. -func PossibleAggregatedHealthState9Values() []AggregatedHealthState9 { - return []AggregatedHealthState9{AggregatedHealthState9Error, AggregatedHealthState9Invalid, AggregatedHealthState9Ok, AggregatedHealthState9Unknown, AggregatedHealthState9Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeactivationIntent enumerates the values for deactivation intent. -type DeactivationIntent string - -const ( - // Pause ... - Pause DeactivationIntent = "Pause" - // RemoveData ... - RemoveData DeactivationIntent = "RemoveData" - // RemoveNode ... - RemoveNode DeactivationIntent = "RemoveNode" - // Restart ... - Restart DeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDeactivationIntentValues returns an array of possible values for the DeactivationIntent const type. -func PossibleDeactivationIntentValues() []DeactivationIntent { - return []DeactivationIntent{Pause, RemoveData, RemoveNode, Restart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost enumerates the values for default move cost. -type DefaultMoveCost string - -const ( - // High ... - High DefaultMoveCost = "High" - // Low ... - Low DefaultMoveCost = "Low" - // Medium ... - Medium DefaultMoveCost = "Medium" - // Zero ... - Zero DefaultMoveCost = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCostValues returns an array of possible values for the DefaultMoveCost const type. -func PossibleDefaultMoveCostValues() []DefaultMoveCost { - return []DefaultMoveCost{High, Low, Medium, Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost1 enumerates the values for default move cost 1. -type DefaultMoveCost1 string - -const ( - // DefaultMoveCost1High ... - DefaultMoveCost1High DefaultMoveCost1 = "High" - // DefaultMoveCost1Low ... - DefaultMoveCost1Low DefaultMoveCost1 = "Low" - // DefaultMoveCost1Medium ... - DefaultMoveCost1Medium DefaultMoveCost1 = "Medium" - // DefaultMoveCost1Zero ... - DefaultMoveCost1Zero DefaultMoveCost1 = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCost1Values returns an array of possible values for the DefaultMoveCost1 const type. -func PossibleDefaultMoveCost1Values() []DefaultMoveCost1 { - return []DefaultMoveCost1{DefaultMoveCost1High, DefaultMoveCost1Low, DefaultMoveCost1Medium, DefaultMoveCost1Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost2 enumerates the values for default move cost 2. -type DefaultMoveCost2 string - -const ( - // DefaultMoveCost2High ... - DefaultMoveCost2High DefaultMoveCost2 = "High" - // DefaultMoveCost2Low ... - DefaultMoveCost2Low DefaultMoveCost2 = "Low" - // DefaultMoveCost2Medium ... - DefaultMoveCost2Medium DefaultMoveCost2 = "Medium" - // DefaultMoveCost2Zero ... - DefaultMoveCost2Zero DefaultMoveCost2 = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCost2Values returns an array of possible values for the DefaultMoveCost2 const type. -func PossibleDefaultMoveCost2Values() []DefaultMoveCost2 { - return []DefaultMoveCost2{DefaultMoveCost2High, DefaultMoveCost2Low, DefaultMoveCost2Medium, DefaultMoveCost2Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost3 enumerates the values for default move cost 3. -type DefaultMoveCost3 string - -const ( - // DefaultMoveCost3High ... - DefaultMoveCost3High DefaultMoveCost3 = "High" - // DefaultMoveCost3Low ... - DefaultMoveCost3Low DefaultMoveCost3 = "Low" - // DefaultMoveCost3Medium ... - DefaultMoveCost3Medium DefaultMoveCost3 = "Medium" - // DefaultMoveCost3Zero ... - DefaultMoveCost3Zero DefaultMoveCost3 = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCost3Values returns an array of possible values for the DefaultMoveCost3 const type. -func PossibleDefaultMoveCost3Values() []DefaultMoveCost3 { - return []DefaultMoveCost3{DefaultMoveCost3High, DefaultMoveCost3Low, DefaultMoveCost3Medium, DefaultMoveCost3Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason enumerates the values for failure reason. -type FailureReason string - -const ( - // FailureReasonHealthCheck ... - FailureReasonHealthCheck FailureReason = "HealthCheck" - // FailureReasonInterrupted ... - FailureReasonInterrupted FailureReason = "Interrupted" - // FailureReasonInvalid ... - FailureReasonInvalid FailureReason = "Invalid" - // FailureReasonOverallUpgradeTimeout ... - FailureReasonOverallUpgradeTimeout FailureReason = "OverallUpgradeTimeout" - // FailureReasonUpgradeDomainTimeout ... - FailureReasonUpgradeDomainTimeout FailureReason = "UpgradeDomainTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReasonValues returns an array of possible values for the FailureReason const type. -func PossibleFailureReasonValues() []FailureReason { - return []FailureReason{FailureReasonHealthCheck, FailureReasonInterrupted, FailureReasonInvalid, FailureReasonOverallUpgradeTimeout, FailureReasonUpgradeDomainTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason1 enumerates the values for failure reason 1. -type FailureReason1 string - -const ( - // FailureReason1HealthCheck ... - FailureReason1HealthCheck FailureReason1 = "HealthCheck" - // FailureReason1Interrupted ... - FailureReason1Interrupted FailureReason1 = "Interrupted" - // FailureReason1Invalid ... - FailureReason1Invalid FailureReason1 = "Invalid" - // FailureReason1OverallUpgradeTimeout ... - FailureReason1OverallUpgradeTimeout FailureReason1 = "OverallUpgradeTimeout" - // FailureReason1UpgradeDomainTimeout ... - FailureReason1UpgradeDomainTimeout FailureReason1 = "UpgradeDomainTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReason1Values returns an array of possible values for the FailureReason1 const type. -func PossibleFailureReason1Values() []FailureReason1 { - return []FailureReason1{FailureReason1HealthCheck, FailureReason1Interrupted, FailureReason1Invalid, FailureReason1OverallUpgradeTimeout, FailureReason1UpgradeDomainTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState enumerates the values for health state. -type HealthState string - -const ( - // HealthStateError ... - HealthStateError HealthState = "Error" - // HealthStateInvalid ... - HealthStateInvalid HealthState = "Invalid" - // HealthStateOk ... - HealthStateOk HealthState = "Ok" - // HealthStateUnknown ... - HealthStateUnknown HealthState = "Unknown" - // HealthStateWarning ... - HealthStateWarning HealthState = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthStateValues returns an array of possible values for the HealthState const type. -func PossibleHealthStateValues() []HealthState { - return []HealthState{HealthStateError, HealthStateInvalid, HealthStateOk, HealthStateUnknown, HealthStateWarning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState1 enumerates the values for health state 1. -type HealthState1 string - -const ( - // HealthState1Error ... - HealthState1Error HealthState1 = "Error" - // HealthState1Invalid ... - HealthState1Invalid HealthState1 = "Invalid" - // HealthState1Ok ... - HealthState1Ok HealthState1 = "Ok" - // HealthState1Unknown ... - HealthState1Unknown HealthState1 = "Unknown" - // HealthState1Warning ... - HealthState1Warning HealthState1 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState1Values returns an array of possible values for the HealthState1 const type. -func PossibleHealthState1Values() []HealthState1 { - return []HealthState1{HealthState1Error, HealthState1Invalid, HealthState1Ok, HealthState1Unknown, HealthState1Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState2 enumerates the values for health state 2. -type HealthState2 string - -const ( - // HealthState2Error ... - HealthState2Error HealthState2 = "Error" - // HealthState2Invalid ... - HealthState2Invalid HealthState2 = "Invalid" - // HealthState2Ok ... - HealthState2Ok HealthState2 = "Ok" - // HealthState2Unknown ... - HealthState2Unknown HealthState2 = "Unknown" - // HealthState2Warning ... - HealthState2Warning HealthState2 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState2Values returns an array of possible values for the HealthState2 const type. -func PossibleHealthState2Values() []HealthState2 { - return []HealthState2{HealthState2Error, HealthState2Invalid, HealthState2Ok, HealthState2Unknown, HealthState2Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState3 enumerates the values for health state 3. -type HealthState3 string - -const ( - // HealthState3Error ... - HealthState3Error HealthState3 = "Error" - // HealthState3Invalid ... - HealthState3Invalid HealthState3 = "Invalid" - // HealthState3Ok ... - HealthState3Ok HealthState3 = "Ok" - // HealthState3Unknown ... - HealthState3Unknown HealthState3 = "Unknown" - // HealthState3Warning ... - HealthState3Warning HealthState3 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState3Values returns an array of possible values for the HealthState3 const type. -func PossibleHealthState3Values() []HealthState3 { - return []HealthState3{HealthState3Error, HealthState3Invalid, HealthState3Ok, HealthState3Unknown, HealthState3Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState4 enumerates the values for health state 4. -type HealthState4 string - -const ( - // HealthState4Error ... - HealthState4Error HealthState4 = "Error" - // HealthState4Invalid ... - HealthState4Invalid HealthState4 = "Invalid" - // HealthState4Ok ... - HealthState4Ok HealthState4 = "Ok" - // HealthState4Unknown ... - HealthState4Unknown HealthState4 = "Unknown" - // HealthState4Warning ... - HealthState4Warning HealthState4 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState4Values returns an array of possible values for the HealthState4 const type. -func PossibleHealthState4Values() []HealthState4 { - return []HealthState4{HealthState4Error, HealthState4Invalid, HealthState4Ok, HealthState4Unknown, HealthState4Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState5 enumerates the values for health state 5. -type HealthState5 string - -const ( - // HealthState5Error ... - HealthState5Error HealthState5 = "Error" - // HealthState5Invalid ... - HealthState5Invalid HealthState5 = "Invalid" - // HealthState5Ok ... - HealthState5Ok HealthState5 = "Ok" - // HealthState5Unknown ... - HealthState5Unknown HealthState5 = "Unknown" - // HealthState5Warning ... - HealthState5Warning HealthState5 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState5Values returns an array of possible values for the HealthState5 const type. -func PossibleHealthState5Values() []HealthState5 { - return []HealthState5{HealthState5Error, HealthState5Invalid, HealthState5Ok, HealthState5Unknown, HealthState5Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState6 enumerates the values for health state 6. -type HealthState6 string - -const ( - // HealthState6Error ... - HealthState6Error HealthState6 = "Error" - // HealthState6Invalid ... - HealthState6Invalid HealthState6 = "Invalid" - // HealthState6Ok ... - HealthState6Ok HealthState6 = "Ok" - // HealthState6Unknown ... - HealthState6Unknown HealthState6 = "Unknown" - // HealthState6Warning ... - HealthState6Warning HealthState6 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState6Values returns an array of possible values for the HealthState6 const type. -func PossibleHealthState6Values() []HealthState6 { - return []HealthState6{HealthState6Error, HealthState6Invalid, HealthState6Ok, HealthState6Unknown, HealthState6Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Kind enumerates the values for kind. -type Kind string - -const ( - // KindApplication ... - KindApplication Kind = "Application" - // KindApplications ... - KindApplications Kind = "Applications" - // KindApplicationType ... - KindApplicationType Kind = "ApplicationType" - // KindDeltaNodesCheck ... - KindDeltaNodesCheck Kind = "DeltaNodesCheck" - // KindDeployedApplication ... - KindDeployedApplication Kind = "DeployedApplication" - // KindDeployedApplications ... - KindDeployedApplications Kind = "DeployedApplications" - // KindDeployedServicePackage ... - KindDeployedServicePackage Kind = "DeployedServicePackage" - // KindDeployedServicePackages ... - KindDeployedServicePackages Kind = "DeployedServicePackages" - // KindEvent ... - KindEvent Kind = "Event" - // KindHealthEvaluation ... - KindHealthEvaluation Kind = "HealthEvaluation" - // KindNode ... - KindNode Kind = "Node" - // KindNodes ... - KindNodes Kind = "Nodes" - // KindPartition ... - KindPartition Kind = "Partition" - // KindPartitions ... - KindPartitions Kind = "Partitions" - // KindReplica ... - KindReplica Kind = "Replica" - // KindReplicas ... - KindReplicas Kind = "Replicas" - // KindService ... - KindService Kind = "Service" - // KindServices ... - KindServices Kind = "Services" - // KindSystemApplication ... - KindSystemApplication Kind = "SystemApplication" - // KindUpgradeDomainDeltaNodesCheck ... - KindUpgradeDomainDeltaNodesCheck Kind = "UpgradeDomainDeltaNodesCheck" - // KindUpgradeDomainDeployedApplications ... - KindUpgradeDomainDeployedApplications Kind = "UpgradeDomainDeployedApplications" - // KindUpgradeDomainNodes ... - KindUpgradeDomainNodes Kind = "UpgradeDomainNodes" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindValues returns an array of possible values for the Kind const type. -func PossibleKindValues() []Kind { - return []Kind{KindApplication, KindApplications, KindApplicationType, KindDeltaNodesCheck, KindDeployedApplication, KindDeployedApplications, KindDeployedServicePackage, KindDeployedServicePackages, KindEvent, KindHealthEvaluation, KindNode, KindNodes, KindPartition, KindPartitions, KindReplica, KindReplicas, KindService, KindServices, KindSystemApplication, KindUpgradeDomainDeltaNodesCheck, KindUpgradeDomainDeployedApplications, KindUpgradeDomainNodes} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationIntent enumerates the values for node deactivation intent. -type NodeDeactivationIntent string - -const ( - // NodeDeactivationIntentInvalid ... - NodeDeactivationIntentInvalid NodeDeactivationIntent = "Invalid" - // NodeDeactivationIntentPause ... - NodeDeactivationIntentPause NodeDeactivationIntent = "Pause" - // NodeDeactivationIntentRemoveData ... - NodeDeactivationIntentRemoveData NodeDeactivationIntent = "RemoveData" - // NodeDeactivationIntentRestart ... - NodeDeactivationIntentRestart NodeDeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationIntentValues returns an array of possible values for the NodeDeactivationIntent const type. -func PossibleNodeDeactivationIntentValues() []NodeDeactivationIntent { - return []NodeDeactivationIntent{NodeDeactivationIntentInvalid, NodeDeactivationIntentPause, NodeDeactivationIntentRemoveData, NodeDeactivationIntentRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationStatus enumerates the values for node deactivation status. -type NodeDeactivationStatus string - -const ( - // NodeDeactivationStatusCompleted ... - NodeDeactivationStatusCompleted NodeDeactivationStatus = "Completed" - // NodeDeactivationStatusInvalid ... - NodeDeactivationStatusInvalid NodeDeactivationStatus = "Invalid" - // NodeDeactivationStatusSafetyCheckComplete ... - NodeDeactivationStatusSafetyCheckComplete NodeDeactivationStatus = "SafetyCheckComplete" - // NodeDeactivationStatusSafetyCheckInProgress ... - NodeDeactivationStatusSafetyCheckInProgress NodeDeactivationStatus = "SafetyCheckInProgress" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationStatusValues returns an array of possible values for the NodeDeactivationStatus const type. -func PossibleNodeDeactivationStatusValues() []NodeDeactivationStatus { - return []NodeDeactivationStatus{NodeDeactivationStatusCompleted, NodeDeactivationStatusInvalid, NodeDeactivationStatusSafetyCheckComplete, NodeDeactivationStatusSafetyCheckInProgress} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeStatus enumerates the values for node status. -type NodeStatus string - -const ( - // NodeStatusDisabled ... - NodeStatusDisabled NodeStatus = "Disabled" - // NodeStatusDisabling ... - NodeStatusDisabling NodeStatus = "Disabling" - // NodeStatusDown ... - NodeStatusDown NodeStatus = "Down" - // NodeStatusEnabling ... - NodeStatusEnabling NodeStatus = "Enabling" - // NodeStatusInvalid ... - NodeStatusInvalid NodeStatus = "Invalid" - // NodeStatusRemoved ... - NodeStatusRemoved NodeStatus = "Removed" - // NodeStatusUnknown ... - NodeStatusUnknown NodeStatus = "Unknown" - // NodeStatusUp ... - NodeStatusUp NodeStatus = "Up" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type. -func PossibleNodeStatusValues() []NodeStatus { - return []NodeStatus{NodeStatusDisabled, NodeStatusDisabling, NodeStatusDown, NodeStatusEnabling, NodeStatusInvalid, NodeStatusRemoved, NodeStatusUnknown, NodeStatusUp} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionScheme enumerates the values for partition scheme. -type PartitionScheme string - -const ( - // PartitionSchemeInvalid ... - PartitionSchemeInvalid PartitionScheme = "Invalid" - // PartitionSchemeNamed ... - PartitionSchemeNamed PartitionScheme = "Named" - // PartitionSchemeSingleton ... - PartitionSchemeSingleton PartitionScheme = "Singleton" - // PartitionSchemeUniformInt64 ... - PartitionSchemeUniformInt64 PartitionScheme = "UniformInt64" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type. -func PossiblePartitionSchemeValues() []PartitionScheme { - return []PartitionScheme{PartitionSchemeInvalid, PartitionSchemeNamed, PartitionSchemeSingleton, PartitionSchemeUniformInt64} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionStatus enumerates the values for partition status. -type PartitionStatus string - -const ( - // PartitionStatusDeleting ... - PartitionStatusDeleting PartitionStatus = "Deleting" - // PartitionStatusInQuorumLoss ... - PartitionStatusInQuorumLoss PartitionStatus = "InQuorumLoss" - // PartitionStatusInvalid ... - PartitionStatusInvalid PartitionStatus = "Invalid" - // PartitionStatusNotReady ... - PartitionStatusNotReady PartitionStatus = "NotReady" - // PartitionStatusReady ... - PartitionStatusReady PartitionStatus = "Ready" - // PartitionStatusReconfiguring ... - PartitionStatusReconfiguring PartitionStatus = "Reconfiguring" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionStatusValues returns an array of possible values for the PartitionStatus const type. -func PossiblePartitionStatusValues() []PartitionStatus { - return []PartitionStatus{PartitionStatusDeleting, PartitionStatusInQuorumLoss, PartitionStatusInvalid, PartitionStatusNotReady, PartitionStatusReady, PartitionStatusReconfiguring} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaRole enumerates the values for replica role. -type ReplicaRole string - -const ( - // ReplicaRoleActiveSecondary ... - ReplicaRoleActiveSecondary ReplicaRole = "ActiveSecondary" - // ReplicaRoleIdleSecondary ... - ReplicaRoleIdleSecondary ReplicaRole = "IdleSecondary" - // ReplicaRoleInvalid ... - ReplicaRoleInvalid ReplicaRole = "Invalid" - // ReplicaRoleNone ... - ReplicaRoleNone ReplicaRole = "None" - // ReplicaRolePrimary ... - ReplicaRolePrimary ReplicaRole = "Primary" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaRoleValues returns an array of possible values for the ReplicaRole const type. -func PossibleReplicaRoleValues() []ReplicaRole { - return []ReplicaRole{ReplicaRoleActiveSecondary, ReplicaRoleIdleSecondary, ReplicaRoleInvalid, ReplicaRoleNone, ReplicaRolePrimary} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaRole1 enumerates the values for replica role 1. -type ReplicaRole1 string - -const ( - // ReplicaRole1ActiveSecondary ... - ReplicaRole1ActiveSecondary ReplicaRole1 = "ActiveSecondary" - // ReplicaRole1IdleSecondary ... - ReplicaRole1IdleSecondary ReplicaRole1 = "IdleSecondary" - // ReplicaRole1Invalid ... - ReplicaRole1Invalid ReplicaRole1 = "Invalid" - // ReplicaRole1None ... - ReplicaRole1None ReplicaRole1 = "None" - // ReplicaRole1Primary ... - ReplicaRole1Primary ReplicaRole1 = "Primary" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaRole1Values returns an array of possible values for the ReplicaRole1 const type. -func PossibleReplicaRole1Values() []ReplicaRole1 { - return []ReplicaRole1{ReplicaRole1ActiveSecondary, ReplicaRole1IdleSecondary, ReplicaRole1Invalid, ReplicaRole1None, ReplicaRole1Primary} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus enumerates the values for replica status. -type ReplicaStatus string - -const ( - // ReplicaStatusDown ... - ReplicaStatusDown ReplicaStatus = "Down" - // ReplicaStatusDropped ... - ReplicaStatusDropped ReplicaStatus = "Dropped" - // ReplicaStatusInBuild ... - ReplicaStatusInBuild ReplicaStatus = "InBuild" - // ReplicaStatusInvalid ... - ReplicaStatusInvalid ReplicaStatus = "Invalid" - // ReplicaStatusReady ... - ReplicaStatusReady ReplicaStatus = "Ready" - // ReplicaStatusStandby ... - ReplicaStatusStandby ReplicaStatus = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatusValues returns an array of possible values for the ReplicaStatus const type. -func PossibleReplicaStatusValues() []ReplicaStatus { - return []ReplicaStatus{ReplicaStatusDown, ReplicaStatusDropped, ReplicaStatusInBuild, ReplicaStatusInvalid, ReplicaStatusReady, ReplicaStatusStandby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus1 enumerates the values for replica status 1. -type ReplicaStatus1 string - -const ( - // ReplicaStatus1Down ... - ReplicaStatus1Down ReplicaStatus1 = "Down" - // ReplicaStatus1Dropped ... - ReplicaStatus1Dropped ReplicaStatus1 = "Dropped" - // ReplicaStatus1InBuild ... - ReplicaStatus1InBuild ReplicaStatus1 = "InBuild" - // ReplicaStatus1Invalid ... - ReplicaStatus1Invalid ReplicaStatus1 = "Invalid" - // ReplicaStatus1Ready ... - ReplicaStatus1Ready ReplicaStatus1 = "Ready" - // ReplicaStatus1Standby ... - ReplicaStatus1Standby ReplicaStatus1 = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatus1Values returns an array of possible values for the ReplicaStatus1 const type. -func PossibleReplicaStatus1Values() []ReplicaStatus1 { - return []ReplicaStatus1{ReplicaStatus1Down, ReplicaStatus1Dropped, ReplicaStatus1InBuild, ReplicaStatus1Invalid, ReplicaStatus1Ready, ReplicaStatus1Standby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode enumerates the values for rolling upgrade mode. -type RollingUpgradeMode string - -const ( - // RollingUpgradeModeInvalid ... - RollingUpgradeModeInvalid RollingUpgradeMode = "Invalid" - // RollingUpgradeModeMonitored ... - RollingUpgradeModeMonitored RollingUpgradeMode = "Monitored" - // RollingUpgradeModeUnmonitoredAuto ... - RollingUpgradeModeUnmonitoredAuto RollingUpgradeMode = "UnmonitoredAuto" - // RollingUpgradeModeUnmonitoredManual ... - RollingUpgradeModeUnmonitoredManual RollingUpgradeMode = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeModeValues returns an array of possible values for the RollingUpgradeMode const type. -func PossibleRollingUpgradeModeValues() []RollingUpgradeMode { - return []RollingUpgradeMode{RollingUpgradeModeInvalid, RollingUpgradeModeMonitored, RollingUpgradeModeUnmonitoredAuto, RollingUpgradeModeUnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode1 enumerates the values for rolling upgrade mode 1. -type RollingUpgradeMode1 string - -const ( - // RollingUpgradeMode1Invalid ... - RollingUpgradeMode1Invalid RollingUpgradeMode1 = "Invalid" - // RollingUpgradeMode1Monitored ... - RollingUpgradeMode1Monitored RollingUpgradeMode1 = "Monitored" - // RollingUpgradeMode1UnmonitoredAuto ... - RollingUpgradeMode1UnmonitoredAuto RollingUpgradeMode1 = "UnmonitoredAuto" - // RollingUpgradeMode1UnmonitoredManual ... - RollingUpgradeMode1UnmonitoredManual RollingUpgradeMode1 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode1Values returns an array of possible values for the RollingUpgradeMode1 const type. -func PossibleRollingUpgradeMode1Values() []RollingUpgradeMode1 { - return []RollingUpgradeMode1{RollingUpgradeMode1Invalid, RollingUpgradeMode1Monitored, RollingUpgradeMode1UnmonitoredAuto, RollingUpgradeMode1UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode2 enumerates the values for rolling upgrade mode 2. -type RollingUpgradeMode2 string - -const ( - // RollingUpgradeMode2Invalid ... - RollingUpgradeMode2Invalid RollingUpgradeMode2 = "Invalid" - // RollingUpgradeMode2Monitored ... - RollingUpgradeMode2Monitored RollingUpgradeMode2 = "Monitored" - // RollingUpgradeMode2UnmonitoredAuto ... - RollingUpgradeMode2UnmonitoredAuto RollingUpgradeMode2 = "UnmonitoredAuto" - // RollingUpgradeMode2UnmonitoredManual ... - RollingUpgradeMode2UnmonitoredManual RollingUpgradeMode2 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode2Values returns an array of possible values for the RollingUpgradeMode2 const type. -func PossibleRollingUpgradeMode2Values() []RollingUpgradeMode2 { - return []RollingUpgradeMode2{RollingUpgradeMode2Invalid, RollingUpgradeMode2Monitored, RollingUpgradeMode2UnmonitoredAuto, RollingUpgradeMode2UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode3 enumerates the values for rolling upgrade mode 3. -type RollingUpgradeMode3 string - -const ( - // RollingUpgradeMode3Invalid ... - RollingUpgradeMode3Invalid RollingUpgradeMode3 = "Invalid" - // RollingUpgradeMode3Monitored ... - RollingUpgradeMode3Monitored RollingUpgradeMode3 = "Monitored" - // RollingUpgradeMode3UnmonitoredAuto ... - RollingUpgradeMode3UnmonitoredAuto RollingUpgradeMode3 = "UnmonitoredAuto" - // RollingUpgradeMode3UnmonitoredManual ... - RollingUpgradeMode3UnmonitoredManual RollingUpgradeMode3 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode3Values returns an array of possible values for the RollingUpgradeMode3 const type. -func PossibleRollingUpgradeMode3Values() []RollingUpgradeMode3 { - return []RollingUpgradeMode3{RollingUpgradeMode3Invalid, RollingUpgradeMode3Monitored, RollingUpgradeMode3UnmonitoredAuto, RollingUpgradeMode3UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode4 enumerates the values for rolling upgrade mode 4. -type RollingUpgradeMode4 string - -const ( - // RollingUpgradeMode4Invalid ... - RollingUpgradeMode4Invalid RollingUpgradeMode4 = "Invalid" - // RollingUpgradeMode4Monitored ... - RollingUpgradeMode4Monitored RollingUpgradeMode4 = "Monitored" - // RollingUpgradeMode4UnmonitoredAuto ... - RollingUpgradeMode4UnmonitoredAuto RollingUpgradeMode4 = "UnmonitoredAuto" - // RollingUpgradeMode4UnmonitoredManual ... - RollingUpgradeMode4UnmonitoredManual RollingUpgradeMode4 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode4Values returns an array of possible values for the RollingUpgradeMode4 const type. -func PossibleRollingUpgradeMode4Values() []RollingUpgradeMode4 { - return []RollingUpgradeMode4{RollingUpgradeMode4Invalid, RollingUpgradeMode4Monitored, RollingUpgradeMode4UnmonitoredAuto, RollingUpgradeMode4UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode5 enumerates the values for rolling upgrade mode 5. -type RollingUpgradeMode5 string - -const ( - // RollingUpgradeMode5Invalid ... - RollingUpgradeMode5Invalid RollingUpgradeMode5 = "Invalid" - // RollingUpgradeMode5Monitored ... - RollingUpgradeMode5Monitored RollingUpgradeMode5 = "Monitored" - // RollingUpgradeMode5UnmonitoredAuto ... - RollingUpgradeMode5UnmonitoredAuto RollingUpgradeMode5 = "UnmonitoredAuto" - // RollingUpgradeMode5UnmonitoredManual ... - RollingUpgradeMode5UnmonitoredManual RollingUpgradeMode5 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode5Values returns an array of possible values for the RollingUpgradeMode5 const type. -func PossibleRollingUpgradeMode5Values() []RollingUpgradeMode5 { - return []RollingUpgradeMode5{RollingUpgradeMode5Invalid, RollingUpgradeMode5Monitored, RollingUpgradeMode5UnmonitoredAuto, RollingUpgradeMode5UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceCorrelationScheme enumerates the values for service correlation scheme. -type ServiceCorrelationScheme string - -const ( - // ServiceCorrelationSchemeAffinity ... - ServiceCorrelationSchemeAffinity ServiceCorrelationScheme = "Affinity" - // ServiceCorrelationSchemeAlignedAffinity ... - ServiceCorrelationSchemeAlignedAffinity ServiceCorrelationScheme = "AlignedAffinity" - // ServiceCorrelationSchemeInvalid ... - ServiceCorrelationSchemeInvalid ServiceCorrelationScheme = "Invalid" - // ServiceCorrelationSchemeNonAlignedAffinity ... - ServiceCorrelationSchemeNonAlignedAffinity ServiceCorrelationScheme = "NonAlignedAffinity" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceCorrelationSchemeValues returns an array of possible values for the ServiceCorrelationScheme const type. -func PossibleServiceCorrelationSchemeValues() []ServiceCorrelationScheme { - return []ServiceCorrelationScheme{ServiceCorrelationSchemeAffinity, ServiceCorrelationSchemeAlignedAffinity, ServiceCorrelationSchemeInvalid, ServiceCorrelationSchemeNonAlignedAffinity} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind enumerates the values for service kind. -type ServiceKind string - -const ( - // ServiceKindInvalid ... - ServiceKindInvalid ServiceKind = "Invalid" - // ServiceKindStateful ... - ServiceKindStateful ServiceKind = "Stateful" - // ServiceKindStateless ... - ServiceKindStateless ServiceKind = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. -func PossibleServiceKindValues() []ServiceKind { - return []ServiceKind{ServiceKindInvalid, ServiceKindStateful, ServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind1 enumerates the values for service kind 1. -type ServiceKind1 string - -const ( - // ServiceKind1Invalid ... - ServiceKind1Invalid ServiceKind1 = "Invalid" - // ServiceKind1Stateful ... - ServiceKind1Stateful ServiceKind1 = "Stateful" - // ServiceKind1Stateless ... - ServiceKind1Stateless ServiceKind1 = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKind1Values returns an array of possible values for the ServiceKind1 const type. -func PossibleServiceKind1Values() []ServiceKind1 { - return []ServiceKind1{ServiceKind1Invalid, ServiceKind1Stateful, ServiceKind1Stateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind2 enumerates the values for service kind 2. -type ServiceKind2 string - -const ( - // ServiceKind2Invalid ... - ServiceKind2Invalid ServiceKind2 = "Invalid" - // ServiceKind2Stateful ... - ServiceKind2Stateful ServiceKind2 = "Stateful" - // ServiceKind2Stateless ... - ServiceKind2Stateless ServiceKind2 = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKind2Values returns an array of possible values for the ServiceKind2 const type. -func PossibleServiceKind2Values() []ServiceKind2 { - return []ServiceKind2{ServiceKind2Invalid, ServiceKind2Stateful, ServiceKind2Stateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind3 enumerates the values for service kind 3. -type ServiceKind3 string - -const ( - // ServiceKind3Invalid ... - ServiceKind3Invalid ServiceKind3 = "Invalid" - // ServiceKind3Stateful ... - ServiceKind3Stateful ServiceKind3 = "Stateful" - // ServiceKind3Stateless ... - ServiceKind3Stateless ServiceKind3 = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKind3Values returns an array of possible values for the ServiceKind3 const type. -func PossibleServiceKind3Values() []ServiceKind3 { - return []ServiceKind3{ServiceKind3Invalid, ServiceKind3Stateful, ServiceKind3Stateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind4 enumerates the values for service kind 4. -type ServiceKind4 string - -const ( - // ServiceKind4Invalid ... - ServiceKind4Invalid ServiceKind4 = "Invalid" - // ServiceKind4Stateful ... - ServiceKind4Stateful ServiceKind4 = "Stateful" - // ServiceKind4Stateless ... - ServiceKind4Stateless ServiceKind4 = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKind4Values returns an array of possible values for the ServiceKind4 const type. -func PossibleServiceKind4Values() []ServiceKind4 { - return []ServiceKind4{ServiceKind4Invalid, ServiceKind4Stateful, ServiceKind4Stateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind5 enumerates the values for service kind 5. -type ServiceKind5 string - -const ( - // ServiceKind5Invalid ... - ServiceKind5Invalid ServiceKind5 = "Invalid" - // ServiceKind5Stateful ... - ServiceKind5Stateful ServiceKind5 = "Stateful" - // ServiceKind5Stateless ... - ServiceKind5Stateless ServiceKind5 = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKind5Values returns an array of possible values for the ServiceKind5 const type. -func PossibleServiceKind5Values() []ServiceKind5 { - return []ServiceKind5{ServiceKind5Invalid, ServiceKind5Stateful, ServiceKind5Stateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind6 enumerates the values for service kind 6. -type ServiceKind6 string - -const ( - // ServiceKind6Invalid ... - ServiceKind6Invalid ServiceKind6 = "Invalid" - // ServiceKind6Stateful ... - ServiceKind6Stateful ServiceKind6 = "Stateful" - // ServiceKind6Stateless ... - ServiceKind6Stateless ServiceKind6 = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKind6Values returns an array of possible values for the ServiceKind6 const type. -func PossibleServiceKind6Values() []ServiceKind6 { - return []ServiceKind6{ServiceKind6Invalid, ServiceKind6Stateful, ServiceKind6Stateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicCreateServiceDescription enumerates the values for service kind basic create service -// description. -type ServiceKindBasicCreateServiceDescription string - -const ( - // ServiceKindCreateServiceDescription ... - ServiceKindCreateServiceDescription ServiceKindBasicCreateServiceDescription = "CreateServiceDescription" - // ServiceKindStateful1 ... - ServiceKindStateful1 ServiceKindBasicCreateServiceDescription = "Stateful" - // ServiceKindStateless1 ... - ServiceKindStateless1 ServiceKindBasicCreateServiceDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicCreateServiceDescriptionValues returns an array of possible values for the ServiceKindBasicCreateServiceDescription const type. -func PossibleServiceKindBasicCreateServiceDescriptionValues() []ServiceKindBasicCreateServiceDescription { - return []ServiceKindBasicCreateServiceDescription{ServiceKindCreateServiceDescription, ServiceKindStateful1, ServiceKindStateless1} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicCreateServiceGroupDescription enumerates the values for service kind basic create service -// group description. -type ServiceKindBasicCreateServiceGroupDescription string - -const ( - // ServiceKindBasicCreateServiceGroupDescriptionServiceKindCreateServiceGroupDescription ... - ServiceKindBasicCreateServiceGroupDescriptionServiceKindCreateServiceGroupDescription ServiceKindBasicCreateServiceGroupDescription = "CreateServiceGroupDescription" - // ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful ... - ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful ServiceKindBasicCreateServiceGroupDescription = "Stateful" - // ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless ... - ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless ServiceKindBasicCreateServiceGroupDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicCreateServiceGroupDescriptionValues returns an array of possible values for the ServiceKindBasicCreateServiceGroupDescription const type. -func PossibleServiceKindBasicCreateServiceGroupDescriptionValues() []ServiceKindBasicCreateServiceGroupDescription { - return []ServiceKindBasicCreateServiceGroupDescription{ServiceKindBasicCreateServiceGroupDescriptionServiceKindCreateServiceGroupDescription, ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful, ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceDescription enumerates the values for service kind basic service description. -type ServiceKindBasicServiceDescription string - -const ( - // ServiceKindBasicServiceDescriptionServiceKindServiceDescription ... - ServiceKindBasicServiceDescriptionServiceKindServiceDescription ServiceKindBasicServiceDescription = "ServiceDescription" - // ServiceKindBasicServiceDescriptionServiceKindStateful ... - ServiceKindBasicServiceDescriptionServiceKindStateful ServiceKindBasicServiceDescription = "Stateful" - // ServiceKindBasicServiceDescriptionServiceKindStateless ... - ServiceKindBasicServiceDescriptionServiceKindStateless ServiceKindBasicServiceDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceDescriptionValues returns an array of possible values for the ServiceKindBasicServiceDescription const type. -func PossibleServiceKindBasicServiceDescriptionValues() []ServiceKindBasicServiceDescription { - return []ServiceKindBasicServiceDescription{ServiceKindBasicServiceDescriptionServiceKindServiceDescription, ServiceKindBasicServiceDescriptionServiceKindStateful, ServiceKindBasicServiceDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceGroupDescription enumerates the values for service kind basic service group -// description. -type ServiceKindBasicServiceGroupDescription string - -const ( - // ServiceKindBasicServiceGroupDescriptionServiceKindServiceGroupDescription ... - ServiceKindBasicServiceGroupDescriptionServiceKindServiceGroupDescription ServiceKindBasicServiceGroupDescription = "ServiceGroupDescription" - // ServiceKindBasicServiceGroupDescriptionServiceKindStateful ... - ServiceKindBasicServiceGroupDescriptionServiceKindStateful ServiceKindBasicServiceGroupDescription = "Stateful" - // ServiceKindBasicServiceGroupDescriptionServiceKindStateless ... - ServiceKindBasicServiceGroupDescriptionServiceKindStateless ServiceKindBasicServiceGroupDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceGroupDescriptionValues returns an array of possible values for the ServiceKindBasicServiceGroupDescription const type. -func PossibleServiceKindBasicServiceGroupDescriptionValues() []ServiceKindBasicServiceGroupDescription { - return []ServiceKindBasicServiceGroupDescription{ServiceKindBasicServiceGroupDescriptionServiceKindServiceGroupDescription, ServiceKindBasicServiceGroupDescriptionServiceKindStateful, ServiceKindBasicServiceGroupDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicUpdateServiceDescription enumerates the values for service kind basic update service -// description. -type ServiceKindBasicUpdateServiceDescription string - -const ( - // ServiceKindBasicUpdateServiceDescriptionServiceKindStateful ... - ServiceKindBasicUpdateServiceDescriptionServiceKindStateful ServiceKindBasicUpdateServiceDescription = "Stateful" - // ServiceKindBasicUpdateServiceDescriptionServiceKindStateless ... - ServiceKindBasicUpdateServiceDescriptionServiceKindStateless ServiceKindBasicUpdateServiceDescription = "Stateless" - // ServiceKindBasicUpdateServiceDescriptionServiceKindUpdateServiceDescription ... - ServiceKindBasicUpdateServiceDescriptionServiceKindUpdateServiceDescription ServiceKindBasicUpdateServiceDescription = "UpdateServiceDescription" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicUpdateServiceDescriptionValues returns an array of possible values for the ServiceKindBasicUpdateServiceDescription const type. -func PossibleServiceKindBasicUpdateServiceDescriptionValues() []ServiceKindBasicUpdateServiceDescription { - return []ServiceKindBasicUpdateServiceDescription{ServiceKindBasicUpdateServiceDescriptionServiceKindStateful, ServiceKindBasicUpdateServiceDescriptionServiceKindStateless, ServiceKindBasicUpdateServiceDescriptionServiceKindUpdateServiceDescription} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicUpdateServiceGroupDescription enumerates the values for service kind basic update service -// group description. -type ServiceKindBasicUpdateServiceGroupDescription string - -const ( - // ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful ... - ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful ServiceKindBasicUpdateServiceGroupDescription = "Stateful" - // ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless ... - ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless ServiceKindBasicUpdateServiceGroupDescription = "Stateless" - // ServiceKindBasicUpdateServiceGroupDescriptionServiceKindUpdateServiceGroupDescription ... - ServiceKindBasicUpdateServiceGroupDescriptionServiceKindUpdateServiceGroupDescription ServiceKindBasicUpdateServiceGroupDescription = "UpdateServiceGroupDescription" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicUpdateServiceGroupDescriptionValues returns an array of possible values for the ServiceKindBasicUpdateServiceGroupDescription const type. -func PossibleServiceKindBasicUpdateServiceGroupDescriptionValues() []ServiceKindBasicUpdateServiceGroupDescription { - return []ServiceKindBasicUpdateServiceGroupDescription{ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful, ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless, ServiceKindBasicUpdateServiceGroupDescriptionServiceKindUpdateServiceGroupDescription} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceLoadMetricWeight enumerates the values for service load metric weight. -type ServiceLoadMetricWeight string - -const ( - // ServiceLoadMetricWeightHigh ... - ServiceLoadMetricWeightHigh ServiceLoadMetricWeight = "High" - // ServiceLoadMetricWeightLow ... - ServiceLoadMetricWeightLow ServiceLoadMetricWeight = "Low" - // ServiceLoadMetricWeightMedium ... - ServiceLoadMetricWeightMedium ServiceLoadMetricWeight = "Medium" - // ServiceLoadMetricWeightZero ... - ServiceLoadMetricWeightZero ServiceLoadMetricWeight = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceLoadMetricWeightValues returns an array of possible values for the ServiceLoadMetricWeight const type. -func PossibleServiceLoadMetricWeightValues() []ServiceLoadMetricWeight { - return []ServiceLoadMetricWeight{ServiceLoadMetricWeightHigh, ServiceLoadMetricWeightLow, ServiceLoadMetricWeightMedium, ServiceLoadMetricWeightZero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionKind enumerates the values for service partition kind. -type ServicePartitionKind string - -const ( - // ServicePartitionKindInt64Range ... - ServicePartitionKindInt64Range ServicePartitionKind = "Int64Range" - // ServicePartitionKindInvalid ... - ServicePartitionKindInvalid ServicePartitionKind = "Invalid" - // ServicePartitionKindNamed ... - ServicePartitionKindNamed ServicePartitionKind = "Named" - // ServicePartitionKindSingleton ... - ServicePartitionKindSingleton ServicePartitionKind = "Singleton" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePartitionKindValues returns an array of possible values for the ServicePartitionKind const type. -func PossibleServicePartitionKindValues() []ServicePartitionKind { - return []ServicePartitionKind{ServicePartitionKindInt64Range, ServicePartitionKindInvalid, ServicePartitionKindNamed, ServicePartitionKindSingleton} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceStatus enumerates the values for service status. -type ServiceStatus string - -const ( - // ServiceStatusActive ... - ServiceStatusActive ServiceStatus = "Active" - // ServiceStatusCreating ... - ServiceStatusCreating ServiceStatus = "Creating" - // ServiceStatusDeleting ... - ServiceStatusDeleting ServiceStatus = "Deleting" - // ServiceStatusFaile ... - ServiceStatusFaile ServiceStatus = "Faile" - // ServiceStatusInvalid ... - ServiceStatusInvalid ServiceStatus = "Invalid" - // ServiceStatusUpgrading ... - ServiceStatusUpgrading ServiceStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceStatusValues returns an array of possible values for the ServiceStatus const type. -func PossibleServiceStatusValues() []ServiceStatus { - return []ServiceStatus{ServiceStatusActive, ServiceStatusCreating, ServiceStatusDeleting, ServiceStatusFaile, ServiceStatusInvalid, ServiceStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind enumerates the values for upgrade kind. -type UpgradeKind string - -const ( - // UpgradeKindInvalid ... - UpgradeKindInvalid UpgradeKind = "Invalid" - // UpgradeKindRolling ... - UpgradeKindRolling UpgradeKind = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKindValues returns an array of possible values for the UpgradeKind const type. -func PossibleUpgradeKindValues() []UpgradeKind { - return []UpgradeKind{UpgradeKindInvalid, UpgradeKindRolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState enumerates the values for upgrade state. -type UpgradeState string - -const ( - // UpgradeStateInvalid ... - UpgradeStateInvalid UpgradeState = "Invalid" - // UpgradeStateRollingBackCompleted ... - UpgradeStateRollingBackCompleted UpgradeState = "RollingBackCompleted" - // UpgradeStateRollingBackInProgress ... - UpgradeStateRollingBackInProgress UpgradeState = "RollingBackInProgress" - // UpgradeStateRollingForwardCompleted ... - UpgradeStateRollingForwardCompleted UpgradeState = "RollingForwardCompleted" - // UpgradeStateRollingForwardInProgress ... - UpgradeStateRollingForwardInProgress UpgradeState = "RollingForwardInProgress" - // UpgradeStateRollingForwardPending ... - UpgradeStateRollingForwardPending UpgradeState = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeStateValues returns an array of possible values for the UpgradeState const type. -func PossibleUpgradeStateValues() []UpgradeState { - return []UpgradeState{UpgradeStateInvalid, UpgradeStateRollingBackCompleted, UpgradeStateRollingBackInProgress, UpgradeStateRollingForwardCompleted, UpgradeStateRollingForwardInProgress, UpgradeStateRollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState1 enumerates the values for upgrade state 1. -type UpgradeState1 string - -const ( - // UpgradeState1Invalid ... - UpgradeState1Invalid UpgradeState1 = "Invalid" - // UpgradeState1RollingBackCompleted ... - UpgradeState1RollingBackCompleted UpgradeState1 = "RollingBackCompleted" - // UpgradeState1RollingBackInProgress ... - UpgradeState1RollingBackInProgress UpgradeState1 = "RollingBackInProgress" - // UpgradeState1RollingForwardCompleted ... - UpgradeState1RollingForwardCompleted UpgradeState1 = "RollingForwardCompleted" - // UpgradeState1RollingForwardInProgress ... - UpgradeState1RollingForwardInProgress UpgradeState1 = "RollingForwardInProgress" - // UpgradeState1RollingForwardPending ... - UpgradeState1RollingForwardPending UpgradeState1 = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeState1Values returns an array of possible values for the UpgradeState1 const type. -func PossibleUpgradeState1Values() []UpgradeState1 { - return []UpgradeState1{UpgradeState1Invalid, UpgradeState1RollingBackCompleted, UpgradeState1RollingBackInProgress, UpgradeState1RollingForwardCompleted, UpgradeState1RollingForwardInProgress, UpgradeState1RollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Application the application -type Application struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TypeVersion *string `json:"TypeVersion,omitempty"` - Status *string `json:"Status,omitempty"` - Parameters *[]ApplicationParametersItem `json:"Parameters,omitempty"` - // HealthState - Possible values include: 'HealthState3Invalid', 'HealthState3Ok', 'HealthState3Warning', 'HealthState3Error', 'HealthState3Unknown' - HealthState HealthState3 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationDescription the description of the application -type ApplicationDescription struct { - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TypeVersion *string `json:"TypeVersion,omitempty"` - ParameterList *[]ApplicationDescriptionParameterListItem `json:"ParameterList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationDescriptionParameterListItem the list of the parameter -type ApplicationDescriptionParameterListItem struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealth the health of the application -type ApplicationHealth struct { - autorest.Response `json:"-"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState7Invalid', 'AggregatedHealthState7Ok', 'AggregatedHealthState7Warning', 'AggregatedHealthState7Error', 'AggregatedHealthState7Unknown' - AggregatedHealthState AggregatedHealthState7 `json:"AggregatedHealthState,omitempty"` - UnhealthyEvaluations *string `json:"UnhealthyEvaluations,omitempty"` - Name *string `json:"Name,omitempty"` - ServiceHealthStates *[]ApplicationHealthServiceHealthStatesItem `json:"ServiceHealthStates,omitempty"` - DeployedApplicationHealthStates *[]ApplicationHealthDeployedApplicationHealthStatesItem `json:"DeployedApplicationHealthStates,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthDeployedApplicationHealthStatesItem the states of the deployed application health -type ApplicationHealthDeployedApplicationHealthStatesItem struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState6Invalid', 'AggregatedHealthState6Ok', 'AggregatedHealthState6Warning', 'AggregatedHealthState6Error', 'AggregatedHealthState6Unknown' - AggregatedHealthState AggregatedHealthState6 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthEvaluation the evaluation of the application health -type ApplicationHealthEvaluation struct { - ServiceName *string `json:"ServiceName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplication - objectMap := make(map[string]interface{}) - if ahe.ServiceName != nil { - objectMap["ServiceName"] = ahe.ServiceName - } - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicy the policy of the application health -type ApplicationHealthPolicy struct { - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - // DefaultServiceTypeHealthPolicy - The policy of the default service type health - DefaultServiceTypeHealthPolicy *ApplicationHealthPolicyDefaultServiceTypeHealthPolicy `json:"DefaultServiceTypeHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicyDefaultServiceTypeHealthPolicy the policy of the default service type health -type ApplicationHealthPolicyDefaultServiceTypeHealthPolicy struct { - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicyMap the application health policy of the cluster -type ApplicationHealthPolicyMap struct { - // ConsiderWarningAsError - The boolean of the consider warning as error - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // MaxPercentUnhealthyDeployedApplications - The max percent of the unhealthy deployed applications - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - // DefaultServiceTypeHealthPolicy - The policy of the default service type health - DefaultServiceTypeHealthPolicy *int32 `json:"DefaultServiceTypeHealthPolicy,omitempty"` - // MaxPercentUnhealthyServices - The policy of the default service type health - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` - // MaxPercentUnhealthyPartitionsPerService - The max percent unhealthy partitions per service - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - // MaxPercentUnhealthyReplicasPerPartition - The max percent unhealthy replicas per partition - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthReport the report of the application health -type ApplicationHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthServiceHealthStatesItem the states of the service health -type ApplicationHealthServiceHealthStatesItem struct { - ServiceName *string `json:"ServiceName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState5Invalid', 'AggregatedHealthState5Ok', 'AggregatedHealthState5Warning', 'AggregatedHealthState5Error', 'AggregatedHealthState5Unknown' - AggregatedHealthState AggregatedHealthState5 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationList the list of the application -type ApplicationList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]Application `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationManifest the manifest of the application -type ApplicationManifest struct { - autorest.Response `json:"-"` - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationParametersItem the parameters -type ApplicationParametersItem struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationsHealthEvaluation the evaluation of the applications health -type ApplicationsHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplications - objectMap := make(map[string]interface{}) - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.TotalCount != nil { - objectMap["TotalCount"] = ahe.TotalCount - } - if ahe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = ahe.MaxPercentUnhealthyApplications - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationType the type of the application -type ApplicationType struct { - Name *string `json:"Name,omitempty"` - Version *string `json:"Version,omitempty"` - DefaultParameterList *[]ApplicationTypeDefaultParameterListItem `json:"DefaultParameterList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeDefaultParameterListItem the list of the default parameter -type ApplicationTypeDefaultParameterListItem struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeHealthEvaluation the evaluation of the application type health -type ApplicationTypeHealthEvaluation struct { - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) MarshalJSON() ([]byte, error) { - athe.Kind = KindApplicationType - objectMap := make(map[string]interface{}) - if athe.ApplicationTypeName != nil { - objectMap["ApplicationTypeName"] = athe.ApplicationTypeName - } - if athe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = athe.UnhealthyEvaluations - } - if athe.TotalCount != nil { - objectMap["TotalCount"] = athe.TotalCount - } - if athe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = athe.MaxPercentUnhealthyApplications - } - if athe.Description != nil { - objectMap["Description"] = athe.Description - } - if athe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = athe.AggregatedHealthState - } - if athe.Kind != "" { - objectMap["Kind"] = athe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return &athe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeHealthEvaluation. -func (athe ApplicationTypeHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &athe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgrade the upgrade of the application -type ApplicationUpgrade struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - UpgradeDomains *string `json:"UpgradeDomains,omitempty"` - // UpgradeState - Possible values include: 'UpgradeStateInvalid', 'UpgradeStateRollingBackInProgress', 'UpgradeStateRollingBackCompleted', 'UpgradeStateRollingForwardPending', 'UpgradeStateRollingForwardInProgress', 'UpgradeStateRollingForwardCompleted' - UpgradeState UpgradeState `json:"UpgradeState,omitempty"` - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode1Invalid', 'RollingUpgradeMode1UnmonitoredAuto', 'RollingUpgradeMode1UnmonitoredManual', 'RollingUpgradeMode1Monitored' - RollingUpgradeMode RollingUpgradeMode1 `json:"RollingUpgradeMode,omitempty"` - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - UnhealthyEvaluations *string `json:"UnhealthyEvaluations,omitempty"` - // CurrentUpgradeDomainProgress - The progress of the current upgrade domain - CurrentUpgradeDomainProgress *ApplicationUpgradeCurrentUpgradeDomainProgress `json:"CurrentUpgradeDomainProgress,omitempty"` - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - Possible values include: 'FailureReasonInvalid', 'FailureReasonInterrupted', 'FailureReasonHealthCheck', 'FailureReasonUpgradeDomainTimeout', 'FailureReasonOverallUpgradeTimeout' - FailureReason FailureReason `json:"FailureReason,omitempty"` - // DeployedApplicationHealthStates - The states of the deployed application health - DeployedApplicationHealthStates *ApplicationUpgradeDeployedApplicationHealthStates `json:"DeployedApplicationHealthStates,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeCurrentUpgradeDomainProgress the progress of the current upgrade domain -type ApplicationUpgradeCurrentUpgradeDomainProgress struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *string `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeDeployedApplicationHealthStates the states of the deployed application health -type ApplicationUpgradeDeployedApplicationHealthStates struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *string `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealth the health of the cluster -type ClusterHealth struct { - autorest.Response `json:"-"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState15Invalid', 'AggregatedHealthState15Ok', 'AggregatedHealthState15Warning', 'AggregatedHealthState15Error', 'AggregatedHealthState15Unknown' - AggregatedHealthState AggregatedHealthState15 `json:"AggregatedHealthState,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - NodeHealthStates *[]ClusterHealthNodeHealthStatesItem `json:"NodeHealthStates,omitempty"` - ApplicationHealthState *[]ClusterHealthApplicationHealthStateItem `json:"ApplicationHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthApplicationHealthStateItem the state of the application health -type ClusterHealthApplicationHealthStateItem struct { - Name *string `json:"Name,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState14Invalid', 'AggregatedHealthState14Ok', 'AggregatedHealthState14Warning', 'AggregatedHealthState14Error', 'AggregatedHealthState14Unknown' - AggregatedHealthState AggregatedHealthState14 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthNodeHealthStatesItem the states of tehe node health -type ClusterHealthNodeHealthStatesItem struct { - Name *string `json:"Name,omitempty"` - // ID - The id - ID *ClusterHealthNodeHealthStatesItemID `json:"Id,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState13Invalid', 'AggregatedHealthState13Ok', 'AggregatedHealthState13Warning', 'AggregatedHealthState13Error', 'AggregatedHealthState13Unknown' - AggregatedHealthState AggregatedHealthState13 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthNodeHealthStatesItemID the id -type ClusterHealthNodeHealthStatesItemID struct { - ID *string `json:"Id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthPolicy the policy of the cluster health -type ClusterHealthPolicy struct { - // RollingUpgradeMode - The mode of the rolling upgrade. Possible values include: 'RollingUpgradeMode4Invalid', 'RollingUpgradeMode4UnmonitoredAuto', 'RollingUpgradeMode4UnmonitoredManual', 'RollingUpgradeMode4Monitored' - RollingUpgradeMode RollingUpgradeMode4 `json:"RollingUpgradeMode,omitempty"` - // ForceRestart - The flag of the force restart - ForceRestart *bool `json:"ForceRestart,omitempty"` - // FailureAction - The action of the failure - FailureAction *string `json:"FailureAction,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The seconds of the upgrade replica set check timeout - UpgradeReplicaSetCheckTimeoutInSeconds *int32 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // HealthCheckWaitDurationInMilliseconds - The milliseconds of the health check wait duration - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - // HealthCheckStableDurationInMilliseconds - The milliseconds of the health check stable duration - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - // HealthCheckRetryTimeoutInMilliseconds - The milliseconds of the health check retry timeout - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - // UpgradeTimeoutInMilliseconds - The milliseconds of the upgrade timeout - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - // UpgradeDomainTimeoutInMilliseconds - The milliseconds of the upgrade domain timeout - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthReport the report of the cluster health -type ClusterHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterLoadInformation the information of the cluster load -type ClusterLoadInformation struct { - autorest.Response `json:"-"` - LastBalancingStartTimeUtc *string `json:"LastBalancingStartTimeUtc,omitempty"` - LastBalancingEndTimeUtc *string `json:"LastBalancingEndTimeUtc,omitempty"` - LoadMetricInformation *[]LoadMetricInformation `json:"LoadMetricInformation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeHealthPolicy the upgrade health policy of the cluster -type ClusterUpgradeHealthPolicy struct { - // MaxPercentDeltaUnhealthyNodes - The max percent of the delta unhealthy nodes, values are [0-100] - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The max percent of the upgrade domain delta unhealthy nodes, values are [0-100] - MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"MaxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeProgress the progress of the cluster upgrade -type ClusterUpgradeProgress struct { - autorest.Response `json:"-"` - CodeVersion *string `json:"CodeVersion,omitempty"` - ConfigVersion *string `json:"ConfigVersion,omitempty"` - UpgradeDomains *[]string `json:"UpgradeDomains,omitempty"` - // UpgradeState - Possible values include: 'UpgradeState1Invalid', 'UpgradeState1RollingBackInProgress', 'UpgradeState1RollingBackCompleted', 'UpgradeState1RollingForwardPending', 'UpgradeState1RollingForwardInProgress', 'UpgradeState1RollingForwardCompleted' - UpgradeState UpgradeState1 `json:"UpgradeState,omitempty"` - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode5Invalid', 'RollingUpgradeMode5UnmonitoredAuto', 'RollingUpgradeMode5UnmonitoredManual', 'RollingUpgradeMode5Monitored' - RollingUpgradeMode RollingUpgradeMode5 `json:"RollingUpgradeMode,omitempty"` - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - // CurrentUpgradeDomainProgress - The progress of the current upgrade domain - CurrentUpgradeDomainProgress *ClusterUpgradeProgressCurrentUpgradeDomainProgress `json:"CurrentUpgradeDomainProgress,omitempty"` - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - Possible values include: 'FailureReason1Invalid', 'FailureReason1Interrupted', 'FailureReason1HealthCheck', 'FailureReason1UpgradeDomainTimeout', 'FailureReason1OverallUpgradeTimeout' - FailureReason FailureReason1 `json:"FailureReason,omitempty"` - // UpgradeDomainProgressAtFailure - The failure of the upgrade domain progress at - UpgradeDomainProgressAtFailure *ClusterUpgradeProgressUpgradeDomainProgressAtFailure `json:"UpgradeDomainProgressAtFailure,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeProgressCurrentUpgradeDomainProgress the progress of the current upgrade domain -type ClusterUpgradeProgressCurrentUpgradeDomainProgress struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *string `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeProgressUpgradeDomainProgressAtFailure the failure of the upgrade domain progress at -type ClusterUpgradeProgressUpgradeDomainProgressAtFailure struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *string `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CodePackageEntryPointStatistics the statistics of the code package entry point -type CodePackageEntryPointStatistics struct { - LastExitCode *int32 `json:"LastExitCode,omitempty"` - LastActivationTime *string `json:"LastActivationTime,omitempty"` - LastExitTime *string `json:"LastExitTime,omitempty"` - LastSuccessfulActivationTime *string `json:"LastSuccessfulActivationTime,omitempty"` - LastSuccessfulExitTime *string `json:"LastSuccessfulExitTime,omitempty"` - ActivationFailureCount *int32 `json:"ActivationFailureCount,omitempty"` - ContinuousActivationFailureCount *int32 `json:"ContinuousActivationFailureCount,omitempty"` - ExitFailureCount *int32 `json:"ExitFailureCount,omitempty"` - ContinuousExitFailureCount *int32 `json:"ContinuousExitFailureCount,omitempty"` - ActivationCount *int32 `json:"ActivationCount,omitempty"` - ExitCount *int32 `json:"ExitCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicCreateServiceDescription the description of the create service -type BasicCreateServiceDescription interface { - AsStatelessCreateServiceDescription() (*StatelessCreateServiceDescription, bool) - AsStatefulCreateServiceDescription() (*StatefulCreateServiceDescription, bool) - AsCreateServiceDescription() (*CreateServiceDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceDescription the description of the create service -type CreateServiceDescription struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindCreateServiceDescription', 'ServiceKindStateless1', 'ServiceKindStateful1' - ServiceKind ServiceKindBasicCreateServiceDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicCreateServiceDescription(body []byte) (BasicCreateServiceDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindStateless1): - var scsd StatelessCreateServiceDescription - err := json.Unmarshal(body, &scsd) - return scsd, err - case string(ServiceKindStateful1): - var scsd StatefulCreateServiceDescription - err := json.Unmarshal(body, &scsd) - return scsd, err - default: - var csd CreateServiceDescription - err := json.Unmarshal(body, &csd) - return csd, err - } -} -func unmarshalBasicCreateServiceDescriptionArray(body []byte) ([]BasicCreateServiceDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - csdArray := make([]BasicCreateServiceDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - csd, err := unmarshalBasicCreateServiceDescription(*rawMessage) - if err != nil { - return nil, err - } - csdArray[index] = csd - } - return csdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CreateServiceDescription. -func (csd CreateServiceDescription) MarshalJSON() ([]byte, error) { - csd.ServiceKind = ServiceKindCreateServiceDescription - objectMap := make(map[string]interface{}) - if csd.ApplicationName != nil { - objectMap["ApplicationName"] = csd.ApplicationName - } - if csd.ServiceName != nil { - objectMap["ServiceName"] = csd.ServiceName - } - if csd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = csd.ServiceTypeName - } - if csd.PartitionDescription != nil { - objectMap["PartitionDescription"] = csd.PartitionDescription - } - if csd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = csd.PlacementConstraints - } - if csd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = csd.CorrelationScheme - } - if csd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = csd.ServiceLoadMetrics - } - if csd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = csd.ServicePlacementPolicies - } - if csd.Flags != nil { - objectMap["Flags"] = csd.Flags - } - if csd.ServiceKind != "" { - objectMap["ServiceKind"] = csd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessCreateServiceDescription is the BasicCreateServiceDescription implementation for CreateServiceDescription. -func (csd CreateServiceDescription) AsStatelessCreateServiceDescription() (*StatelessCreateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulCreateServiceDescription is the BasicCreateServiceDescription implementation for CreateServiceDescription. -func (csd CreateServiceDescription) AsStatefulCreateServiceDescription() (*StatefulCreateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCreateServiceDescription is the BasicCreateServiceDescription implementation for CreateServiceDescription. -func (csd CreateServiceDescription) AsCreateServiceDescription() (*CreateServiceDescription, bool) { - return &csd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicCreateServiceDescription is the BasicCreateServiceDescription implementation for CreateServiceDescription. -func (csd CreateServiceDescription) AsBasicCreateServiceDescription() (BasicCreateServiceDescription, bool) { - return &csd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicCreateServiceGroupDescription the description of the create service group -type BasicCreateServiceGroupDescription interface { - AsStatelessCreateServiceGroupDescription() (*StatelessCreateServiceGroupDescription, bool) - AsStatefulCreateServiceGroupDescription() (*StatefulCreateServiceGroupDescription, bool) - AsCreateServiceGroupDescription() (*CreateServiceGroupDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceGroupDescription the description of the create service group -type CreateServiceGroupDescription struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - ServiceGroupMemberDescription *[]ServiceGroupMemberDescription `json:"ServiceGroupMemberDescription,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindCreateServiceGroupDescription', 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicCreateServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicCreateServiceGroupDescription(body []byte) (BasicCreateServiceGroupDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless): - var scsgd StatelessCreateServiceGroupDescription - err := json.Unmarshal(body, &scsgd) - return scsgd, err - case string(ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful): - var scsgd StatefulCreateServiceGroupDescription - err := json.Unmarshal(body, &scsgd) - return scsgd, err - default: - var csgd CreateServiceGroupDescription - err := json.Unmarshal(body, &csgd) - return csgd, err - } -} -func unmarshalBasicCreateServiceGroupDescriptionArray(body []byte) ([]BasicCreateServiceGroupDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - csgdArray := make([]BasicCreateServiceGroupDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - csgd, err := unmarshalBasicCreateServiceGroupDescription(*rawMessage) - if err != nil { - return nil, err - } - csgdArray[index] = csgd - } - return csgdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CreateServiceGroupDescription. -func (csgd CreateServiceGroupDescription) MarshalJSON() ([]byte, error) { - csgd.ServiceKind = ServiceKindBasicCreateServiceGroupDescriptionServiceKindCreateServiceGroupDescription - objectMap := make(map[string]interface{}) - if csgd.ApplicationName != nil { - objectMap["ApplicationName"] = csgd.ApplicationName - } - if csgd.ServiceName != nil { - objectMap["ServiceName"] = csgd.ServiceName - } - if csgd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = csgd.ServiceTypeName - } - if csgd.PartitionDescription != nil { - objectMap["PartitionDescription"] = csgd.PartitionDescription - } - if csgd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = csgd.PlacementConstraints - } - if csgd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = csgd.CorrelationScheme - } - if csgd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = csgd.ServiceLoadMetrics - } - if csgd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = csgd.ServicePlacementPolicies - } - if csgd.Flags != nil { - objectMap["Flags"] = csgd.Flags - } - if csgd.ServiceGroupMemberDescription != nil { - objectMap["ServiceGroupMemberDescription"] = csgd.ServiceGroupMemberDescription - } - if csgd.ServiceKind != "" { - objectMap["ServiceKind"] = csgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for CreateServiceGroupDescription. -func (csgd CreateServiceGroupDescription) AsStatelessCreateServiceGroupDescription() (*StatelessCreateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for CreateServiceGroupDescription. -func (csgd CreateServiceGroupDescription) AsStatefulCreateServiceGroupDescription() (*StatefulCreateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for CreateServiceGroupDescription. -func (csgd CreateServiceGroupDescription) AsCreateServiceGroupDescription() (*CreateServiceGroupDescription, bool) { - return &csgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for CreateServiceGroupDescription. -func (csgd CreateServiceGroupDescription) AsBasicCreateServiceGroupDescription() (BasicCreateServiceGroupDescription, bool) { - return &csgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeltaNodesCheckHealthEvaluation the evaluation of the delta nodes check health -type DeltaNodesCheckHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - BaselineErrorCount *int32 `json:"BaselineErrorCount,omitempty"` - BaselineTotalCount *int32 `json:"BaselineTotalCount,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - dnche.Kind = KindDeltaNodesCheck - objectMap := make(map[string]interface{}) - if dnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dnche.UnhealthyEvaluations - } - if dnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = dnche.BaselineErrorCount - } - if dnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = dnche.BaselineTotalCount - } - if dnche.TotalCount != nil { - objectMap["TotalCount"] = dnche.TotalCount - } - if dnche.MaxPercentDeltaUnhealthyNodes != nil { - objectMap["MaxPercentDeltaUnhealthyNodes"] = dnche.MaxPercentDeltaUnhealthyNodes - } - if dnche.Description != nil { - objectMap["Description"] = dnche.Description - } - if dnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dnche.AggregatedHealthState - } - if dnche.Kind != "" { - objectMap["Kind"] = dnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplication the application of the deployed -type DeployedApplication struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - Status *string `json:"Status,omitempty"` - WorkDirectory *string `json:"WorkDirectory,omitempty"` - LogDirectory *string `json:"LogDirectory,omitempty"` - TempDirectory *string `json:"TempDirectory,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealth the health of the deployed application -type DeployedApplicationHealth struct { - autorest.Response `json:"-"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState3Invalid', 'AggregatedHealthState3Ok', 'AggregatedHealthState3Warning', 'AggregatedHealthState3Error', 'AggregatedHealthState3Unknown' - AggregatedHealthState AggregatedHealthState3 `json:"AggregatedHealthState,omitempty"` - UnhealthyEvaluations *string `json:"UnhealthyEvaluations,omitempty"` - Name *string `json:"Name,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - DeployedServicePackageHealthStates *DeployedServicePackageHealthState `json:"DeployedServicePackageHealthStates,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthEvaluation the evaluation of the deployed application health -type DeployedApplicationHealthEvaluation struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplication - objectMap := make(map[string]interface{}) - if dahe.ApplicationName != nil { - objectMap["ApplicationName"] = dahe.ApplicationName - } - if dahe.NodeName != nil { - objectMap["NodeName"] = dahe.NodeName - } - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthReport the report of the deployed application health -type DeployedApplicationHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationsHealthEvaluation the evaluation of the deployed applications health -type DeployedApplicationsHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplications - objectMap := make(map[string]interface{}) - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.TotalCount != nil { - objectMap["TotalCount"] = dahe.TotalCount - } - if dahe.MaxPercentUnhealthyDeployedApplications != nil { - objectMap["MaxPercentUnhealthyDeployedApplications"] = dahe.MaxPercentUnhealthyDeployedApplications - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedCodePackage the package of the deployed code -type DeployedCodePackage struct { - Name *string `json:"Name,omitempty"` - Version *string `json:"Version,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - Status *string `json:"Status,omitempty"` - RunFrequencyInterval *string `json:"RunFrequencyInterval,omitempty"` - SetupEntryPoint *EntryPoint `json:"SetupEntryPoint,omitempty"` - MainEntryPoint *EntryPoint `json:"MainEntryPoint,omitempty"` - HasSetupEntryPoint *bool `json:"HasSetupEntryPoint,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedReplica the replica of the deployed -type DeployedReplica struct { - // ServiceKind - Possible values include: 'ServiceKindInvalid', 'ServiceKindStateless', 'ServiceKindStateful' - ServiceKind ServiceKind `json:"ServiceKind,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - ServiceManifestVersion *string `json:"ServiceManifestVersion,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - CodePackageName *string `json:"CodePackageName,omitempty"` - PartitionID *string `json:"PartitionId,omitempty"` - InstanceID *string `json:"InstanceId,omitempty"` - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaRole - Possible values include: 'ReplicaRoleInvalid', 'ReplicaRoleNone', 'ReplicaRolePrimary', 'ReplicaRoleIdleSecondary', 'ReplicaRoleActiveSecondary' - ReplicaRole ReplicaRole `json:"ReplicaRole,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - Address *string `json:"Address,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedReplicaDetail the detail of the deployed replica -type DeployedReplicaDetail struct { - autorest.Response `json:"-"` - // ServiceKind - Possible values include: 'ServiceKind1Invalid', 'ServiceKind1Stateless', 'ServiceKind1Stateful' - ServiceKind ServiceKind1 `json:"ServiceKind,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *string `json:"PartitionId,omitempty"` - CurrentServiceOperation *int32 `json:"CurrentServiceOperation,omitempty"` - CurrentReplicatorOperation *int32 `json:"CurrentReplicatorOperation,omitempty"` - CurrentServiceOperationStartTimeUtc *string `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - InstanceID *string `json:"InstanceId,omitempty"` - ReplicaID *string `json:"ReplicaId,omitempty"` - ReadStatus *int32 `json:"ReadStatus,omitempty"` - WriteStatus *int32 `json:"WriteStatus,omitempty"` - // ReplicatorStatus - The status of the replicator - ReplicatorStatus *DeployedReplicaDetailReplicatorStatus `json:"ReplicatorStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedReplicaDetailReplicatorStatus the status of the replicator -type DeployedReplicaDetailReplicatorStatus struct { - Kind *int32 `json:"Kind,omitempty"` - // ReplicationQueueStatus - The status of the replication queue - ReplicationQueueStatus *DeployedReplicaDetailReplicatorStatusReplicationQueueStatus `json:"ReplicationQueueStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedReplicaDetailReplicatorStatusReplicationQueueStatus the status of the replication queue -type DeployedReplicaDetailReplicatorStatusReplicationQueueStatus struct { - QueueUtilizationPercentage *string `json:"QueueUtilizationPercentage,omitempty"` - QueueMemorySize *string `json:"QueueMemorySize,omitempty"` - FirstSequenceNumber *string `json:"FirstSequenceNumber,omitempty"` - CompletedSequenceNumber *string `json:"CompletedSequenceNumber,omitempty"` - CommittedSequenceNumber *string `json:"CommittedSequenceNumber,omitempty"` - LastSequenceNumber *string `json:"LastSequenceNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceHealthReport the report of the deployed service package health -type DeployedServiceHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackage the package of the deployed service -type DeployedServicePackage struct { - Name *string `json:"Name,omitempty"` - Version *string `json:"Version,omitempty"` - Status *string `json:"Status,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealth the health of the deployed service package -type DeployedServicePackageHealth struct { - autorest.Response `json:"-"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState4Invalid', 'AggregatedHealthState4Ok', 'AggregatedHealthState4Warning', 'AggregatedHealthState4Error', 'AggregatedHealthState4Unknown' - AggregatedHealthState AggregatedHealthState4 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthEvaluation the evaluation of the deployed service package health -type DeployedServicePackageHealthEvaluation struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackage - objectMap := make(map[string]interface{}) - if dsphe.ApplicationName != nil { - objectMap["ApplicationName"] = dsphe.ApplicationName - } - if dsphe.NodeName != nil { - objectMap["NodeName"] = dsphe.NodeName - } - if dsphe.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dsphe.ServiceManifestName - } - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthState the state of the deployed service package health -type DeployedServicePackageHealthState struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackagesHealthEvaluation the evaluation of the deployed service packages health -type DeployedServicePackagesHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackages - objectMap := make(map[string]interface{}) - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.TotalCount != nil { - objectMap["TotalCount"] = dsphe.TotalCount - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceType the type of the deploye service -type DeployedServiceType struct { - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - CodePackageName *string `json:"CodePackageName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - Status *string `json:"Status,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNode the node -type DisableNode struct { - // DeactivationIntent - Possible values include: 'Pause', 'Restart', 'RemoveData', 'RemoveNode' - DeactivationIntent DeactivationIntent `json:"DeactivationIntent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntryPoint the point of the entry -type EntryPoint struct { - EntryPointLocation *int32 `json:"EntryPointLocation,omitempty"` - ProcessID *int32 `json:"ProcessId,omitempty"` - RunAsUserName *int32 `json:"RunAsUserName,omitempty"` - NextActivationTime *int32 `json:"NextActivationTime,omitempty"` - Status *string `json:"Status,omitempty"` - CodePackageEntryPointStatistics *CodePackageEntryPointStatistics `json:"CodePackageEntryPointStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ErrorModel the model of the error -type ErrorModel struct { - // Error - The error - Error *ErrorModelError `json:"Error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ErrorModelError the error -type ErrorModelError struct { - Code *string `json:"Code,omitempty"` - Message *string `json:"Message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EventHealthEvaluation the evaluation of the event health -type EventHealthEvaluation struct { - UnhealthyEvent *HealthEvent `json:"UnhealthyEvent,omitempty"` - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EventHealthEvaluation. -func (ehe EventHealthEvaluation) MarshalJSON() ([]byte, error) { - ehe.Kind = KindEvent - objectMap := make(map[string]interface{}) - if ehe.UnhealthyEvent != nil { - objectMap["UnhealthyEvent"] = ehe.UnhealthyEvent - } - if ehe.ConsiderWarningAsError != nil { - objectMap["ConsiderWarningAsError"] = ehe.ConsiderWarningAsError - } - if ehe.Description != nil { - objectMap["Description"] = ehe.Description - } - if ehe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ehe.AggregatedHealthState - } - if ehe.Kind != "" { - objectMap["Kind"] = ehe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicHealthEvaluation the evauation of the health -type BasicHealthEvaluation interface { - AsEventHealthEvaluation() (*EventHealthEvaluation, bool) - AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) - AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) - AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) - AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) - AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) - AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) - AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) - AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) - AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) - AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) - AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) - AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) - AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) - AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) - AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) - AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) - AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) - AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) - AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) - AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) - AsHealthEvaluation() (*HealthEvaluation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluation the evauation of the health -type HealthEvaluation struct { - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -func unmarshalBasicHealthEvaluation(body []byte) (BasicHealthEvaluation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindEvent): - var ehe EventHealthEvaluation - err := json.Unmarshal(body, &ehe) - return ehe, err - case string(KindPartitions): - var phe PartitionsHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindReplicas): - var rhe ReplicasHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindDeployedServicePackages): - var dsphe DeployedServicePackagesHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindDeployedApplications): - var dahe DeployedApplicationsHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindServices): - var she ServicesHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindNodes): - var nhe NodesHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindApplications): - var ahe ApplicationsHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindUpgradeDomainNodes): - var udnhe UpgradeDomainNodesHealthEvaluation - err := json.Unmarshal(body, &udnhe) - return udnhe, err - case string(KindUpgradeDomainDeployedApplications): - var uddahe UpgradeDomainDeployedApplicationsHealthEvaluation - err := json.Unmarshal(body, &uddahe) - return uddahe, err - case string(KindSystemApplication): - var sahe SystemApplicationHealthEvaluation - err := json.Unmarshal(body, &sahe) - return sahe, err - case string(KindPartition): - var phe PartitionHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindReplica): - var rhe ReplicaHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindDeployedServicePackage): - var dsphe DeployedServicePackageHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindDeployedApplication): - var dahe DeployedApplicationHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindService): - var she ServiceHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindNode): - var nhe NodeHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindApplication): - var ahe ApplicationHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindDeltaNodesCheck): - var dnche DeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &dnche) - return dnche, err - case string(KindUpgradeDomainDeltaNodesCheck): - var uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &uddnche) - return uddnche, err - case string(KindApplicationType): - var athe ApplicationTypeHealthEvaluation - err := json.Unmarshal(body, &athe) - return athe, err - default: - var he HealthEvaluation - err := json.Unmarshal(body, &he) - return he, err - } -} -func unmarshalBasicHealthEvaluationArray(body []byte) ([]BasicHealthEvaluation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - heArray := make([]BasicHealthEvaluation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - he, err := unmarshalBasicHealthEvaluation(*rawMessage) - if err != nil { - return nil, err - } - heArray[index] = he - } - return heArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for HealthEvaluation. -func (he HealthEvaluation) MarshalJSON() ([]byte, error) { - he.Kind = KindHealthEvaluation - objectMap := make(map[string]interface{}) - if he.Description != nil { - objectMap["Description"] = he.Description - } - if he.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = he.AggregatedHealthState - } - if he.Kind != "" { - objectMap["Kind"] = he.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvent the event of the health -type HealthEvent struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - Description *string `json:"Description,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` - SourceUtcTimestamp *string `json:"SourceUtcTimestamp,omitempty"` - LastModifiedUtcTimestamp *string `json:"LastModifiedUtcTimestamp,omitempty"` - IsExpired *bool `json:"IsExpired,omitempty"` - LastOkTransitionAt *string `json:"LastOkTransitionAt,omitempty"` - LastWarningTransitionAt *string `json:"LastWarningTransitionAt,omitempty"` - LastErrorTransitionAt *string `json:"LastErrorTransitionAt,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthReport the report of the health -type HealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListApplicationType ... -type ListApplicationType struct { - autorest.Response `json:"-"` - Value *[]ApplicationType `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedApplication ... -type ListDeployedApplication struct { - autorest.Response `json:"-"` - Value *[]DeployedApplication `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedCodePackage ... -type ListDeployedCodePackage struct { - autorest.Response `json:"-"` - Value *[]DeployedCodePackage `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedReplica ... -type ListDeployedReplica struct { - autorest.Response `json:"-"` - Value *[]DeployedReplica `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServicePackage ... -type ListDeployedServicePackage struct { - autorest.Response `json:"-"` - Value *[]DeployedServicePackage `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServiceType ... -type ListDeployedServiceType struct { - autorest.Response `json:"-"` - Value *[]DeployedServiceType `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListServiceType ... -type ListServiceType struct { - autorest.Response `json:"-"` - Value *[]ServiceType `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricInformation the information of the load metric -type LoadMetricInformation struct { - Name *string `json:"Name,omitempty"` - IsBalancedBefore *bool `json:"IsBalancedBefore,omitempty"` - IsBalancedAfter *bool `json:"IsBalancedAfter,omitempty"` - DeviationBefore *int32 `json:"DeviationBefore,omitempty"` - DeviationAfter *int32 `json:"DeviationAfter,omitempty"` - BalancingThreshold *int32 `json:"BalancingThreshold,omitempty"` - Action *string `json:"Action,omitempty"` - ActivityThreshold *int32 `json:"ActivityThreshold,omitempty"` - ClusterCapacity *string `json:"ClusterCapacity,omitempty"` - ClusterLoad *string `json:"ClusterLoad,omitempty"` - RemainingUnbufferedCapacity *string `json:"RemainingUnbufferedCapacity,omitempty"` - NodeBufferPercentage *int32 `json:"NodeBufferPercentage,omitempty"` - BufferedCapacity *string `json:"BufferedCapacity,omitempty"` - RemainingBufferedCapacity *string `json:"RemainingBufferedCapacity,omitempty"` - IsClusterCapacityViolation *bool `json:"IsClusterCapacityViolation,omitempty"` - MinNodeLoadValue *string `json:"MinNodeLoadValue,omitempty"` - // MinNodeLoadID - The id of the min node - MinNodeLoadID *LoadMetricInformationMinNodeLoadID `json:"MinNodeLoadId,omitempty"` - MaxNodeLoadValue *string `json:"MaxNodeLoadValue,omitempty"` - // MaxNodeLoadID - The id of the max node load - MaxNodeLoadID *LoadMetricInformationMaxNodeLoadID `json:"MaxNodeLoadId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricInformationMaxNodeLoadID the id of the max node load -type LoadMetricInformationMaxNodeLoadID struct { - ID *string `json:"Id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricInformationMinNodeLoadID the id of the min node -type LoadMetricInformationMinNodeLoadID struct { - ID *string `json:"Id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MonitoringPolicy the policy of the monitoring -type MonitoringPolicy struct { - FailureAction *string `json:"FailureAction,omitempty"` - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Node the node -type Node struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - IPAddressOrFQDN *string `json:"IpAddressOrFQDN,omitempty"` - Type *string `json:"Type,omitempty"` - CodeVersion *string `json:"CodeVersion,omitempty"` - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // NodeStatus - Possible values include: 'NodeStatusInvalid', 'NodeStatusUp', 'NodeStatusDown', 'NodeStatusEnabling', 'NodeStatusDisabling', 'NodeStatusDisabled', 'NodeStatusUnknown', 'NodeStatusRemoved' - NodeStatus NodeStatus `json:"NodeStatus,omitempty"` - NodeUpTimeInSeconds *string `json:"NodeUpTimeInSeconds,omitempty"` - // HealthState - Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - IsSeedNode *bool `json:"IsSeedNode,omitempty"` - UpgradeDomain *string `json:"UpgradeDomain,omitempty"` - FaultDomain *string `json:"FaultDomain,omitempty"` - // ID - The id - ID *NodeID `json:"Id,omitempty"` - InstanceID *string `json:"InstanceId,omitempty"` - // NodeDeactivationInfo - The info of the deactivation info - NodeDeactivationInfo *NodeNodeDeactivationInfo `json:"NodeDeactivationInfo,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealth the health of the node -type NodeHealth struct { - autorest.Response `json:"-"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthEvaluation the evaluation of the node health -type NodeHealthEvaluation struct { - NodeName *string `json:"NodeName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNode - objectMap := make(map[string]interface{}) - if nhe.NodeName != nil { - objectMap["NodeName"] = nhe.NodeName - } - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthReport the report of the node health -type NodeHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeID the id -type NodeID struct { - ID *string `json:"Id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeList the list of the node -type NodeList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]Node `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadInformation the information of the node load -type NodeLoadInformation struct { - autorest.Response `json:"-"` - NodeName *string `json:"NodeName,omitempty"` - NodeLoadMetricInformation *NodeLoadMetricInformation `json:"NodeLoadMetricInformation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadMetricInformation the information of the node load metric -type NodeLoadMetricInformation struct { - Name *string `json:"Name,omitempty"` - NodeCapacity *string `json:"NodeCapacity,omitempty"` - NodeLoad *string `json:"NodeLoad,omitempty"` - NodeRemainingCapacity *string `json:"NodeRemainingCapacity,omitempty"` - IsCapacityViolation *bool `json:"IsCapacityViolation,omitempty"` - NodeBufferedCapacity *string `json:"NodeBufferedCapacity,omitempty"` - NodeRemainingBufferedCapacity *string `json:"NodeRemainingBufferedCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeNodeDeactivationInfo the info of the deactivation info -type NodeNodeDeactivationInfo struct { - // NodeDeactivationIntent - Possible values include: 'NodeDeactivationIntentInvalid', 'NodeDeactivationIntentPause', 'NodeDeactivationIntentRestart', 'NodeDeactivationIntentRemoveData' - NodeDeactivationIntent NodeDeactivationIntent `json:"NodeDeactivationIntent,omitempty"` - // NodeDeactivationStatus - Possible values include: 'NodeDeactivationStatusInvalid', 'NodeDeactivationStatusSafetyCheckInProgress', 'NodeDeactivationStatusSafetyCheckComplete', 'NodeDeactivationStatusCompleted' - NodeDeactivationStatus NodeDeactivationStatus `json:"NodeDeactivationStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodesHealthEvaluation the evaluation of the nodes health -type NodesHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNodes - objectMap := make(map[string]interface{}) - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.TotalCount != nil { - objectMap["TotalCount"] = nhe.TotalCount - } - if nhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = nhe.MaxPercentUnhealthyNodes - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Partition the partition -type Partition struct { - autorest.Response `json:"-"` - // ServiceKind - Possible values include: 'ServiceKind4Invalid', 'ServiceKind4Stateless', 'ServiceKind4Stateful' - ServiceKind ServiceKind4 `json:"ServiceKind,omitempty"` - PartitionInformation *PartitionInformation `json:"PartitionInformation,omitempty"` - InstanceCount *int32 `json:"InstanceCount,omitempty"` - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - // HealthState - Possible values include: 'HealthState5Invalid', 'HealthState5Ok', 'HealthState5Warning', 'HealthState5Error', 'HealthState5Unknown' - HealthState HealthState5 `json:"HealthState,omitempty"` - // PartitionStatus - Possible values include: 'PartitionStatusInvalid', 'PartitionStatusReady', 'PartitionStatusNotReady', 'PartitionStatusInQuorumLoss', 'PartitionStatusReconfiguring', 'PartitionStatusDeleting' - PartitionStatus PartitionStatus `json:"PartitionStatus,omitempty"` - // CurrentConfigurationEpoch - The epoch of the current configuration - CurrentConfigurationEpoch *PartitionCurrentConfigurationEpoch `json:"CurrentConfigurationEpoch,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionCurrentConfigurationEpoch the epoch of the current configuration -type PartitionCurrentConfigurationEpoch struct { - ConfigurationVersion *string `json:"ConfigurationVersion,omitempty"` - DataLossVersion *string `json:"DataLossVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionDescription the description of the partition -type PartitionDescription struct { - // PartitionScheme - Possible values include: 'PartitionSchemeInvalid', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64', 'PartitionSchemeNamed' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` - Count *int32 `json:"Count,omitempty"` - Names *[]string `json:"Names,omitempty"` - LowKey *string `json:"LowKey,omitempty"` - HighKey *string `json:"HighKey,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealth the health of the partition -type PartitionHealth struct { - autorest.Response `json:"-"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState11Invalid', 'AggregatedHealthState11Ok', 'AggregatedHealthState11Warning', 'AggregatedHealthState11Error', 'AggregatedHealthState11Unknown' - AggregatedHealthState AggregatedHealthState11 `json:"AggregatedHealthState,omitempty"` - PartitionID *string `json:"PartitionId,omitempty"` - ReplicaHealthStates *[]PartitionHealthReplicaHealthStatesItem `json:"ReplicaHealthStates,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthEvaluation the evaluation of the partition health -type PartitionHealthEvaluation struct { - PartitionID *string `json:"PartitionId,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartition - objectMap := make(map[string]interface{}) - if phe.PartitionID != nil { - objectMap["PartitionId"] = phe.PartitionID - } - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthReplicaHealthStatesItem the states of the replica health -type PartitionHealthReplicaHealthStatesItem struct { - HealthEvents *int32 `json:"HealthEvents,omitempty"` - PartitionID *string `json:"PartitionId,omitempty"` - ReplicaID *string `json:"ReplicaId,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState10Invalid', 'AggregatedHealthState10Ok', 'AggregatedHealthState10Warning', 'AggregatedHealthState10Error', 'AggregatedHealthState10Unknown' - AggregatedHealthState AggregatedHealthState10 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthReport the report of the partition health -type PartitionHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionInformation the information of the partition -type PartitionInformation struct { - // ServicePartitionKind - Possible values include: 'ServicePartitionKindInvalid', 'ServicePartitionKindSingleton', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` - ID *string `json:"Id,omitempty"` - Name *[]string `json:"Name,omitempty"` - LowKey *string `json:"LowKey,omitempty"` - HighKey *string `json:"HighKey,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionList the list of the partition -type PartitionList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]Partition `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionLoadInformation the information of the partition load -type PartitionLoadInformation struct { - autorest.Response `json:"-"` - PartitionID *string `json:"PartitionId,omitempty"` - PrimaryLoadMetricReports *[]string `json:"PrimaryLoadMetricReports,omitempty"` - SecondaryLoadMetricReports *[]string `json:"SecondaryLoadMetricReports,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionsHealthEvaluation the evaluation of the partitions health -type PartitionsHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartitions - objectMap := make(map[string]interface{}) - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.TotalCount != nil { - objectMap["TotalCount"] = phe.TotalCount - } - if phe.MaxPercentUnhealthyPartitionsPerService != nil { - objectMap["MaxPercentUnhealthyPartitionsPerService"] = phe.MaxPercentUnhealthyPartitionsPerService - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterApplicationType the type of the register application -type RegisterApplicationType struct { - ApplicationTypeBuildPath *string `json:"ApplicationTypeBuildPath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegisterClusterPackage the package of the register cluster -type RegisterClusterPackage struct { - // CodeFilePath - The path of the code file - CodeFilePath *string `json:"CodeFilePath,omitempty"` - // ClusterManifestFilePath - The relative path of the cluster manifest file - ClusterManifestFilePath *string `json:"ClusterManifestFilePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Replica the replica -type Replica struct { - autorest.Response `json:"-"` - // ServiceKind - Possible values include: 'ServiceKind5Invalid', 'ServiceKind5Stateless', 'ServiceKind5Stateful' - ServiceKind ServiceKind5 `json:"ServiceKind,omitempty"` - InstanceID *string `json:"InstanceId,omitempty"` - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaRole - Possible values include: 'ReplicaRole1Invalid', 'ReplicaRole1None', 'ReplicaRole1Primary', 'ReplicaRole1IdleSecondary', 'ReplicaRole1ActiveSecondary' - ReplicaRole ReplicaRole1 `json:"ReplicaRole,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - Possible values include: 'HealthState6Invalid', 'HealthState6Ok', 'HealthState6Warning', 'HealthState6Error', 'HealthState6Unknown' - HealthState HealthState6 `json:"HealthState,omitempty"` - Address *string `json:"Address,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealth the health of the replica -type ReplicaHealth struct { - autorest.Response `json:"-"` - // ServiceKind - Possible values include: 'ServiceKind6Invalid', 'ServiceKind6Stateless', 'ServiceKind6Stateful' - ServiceKind ServiceKind6 `json:"ServiceKind,omitempty"` - PartitionID *string `json:"PartitionId,omitempty"` - ReplicaID *string `json:"ReplicaId,omitempty"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState12Invalid', 'AggregatedHealthState12Ok', 'AggregatedHealthState12Warning', 'AggregatedHealthState12Error', 'AggregatedHealthState12Unknown' - AggregatedHealthState AggregatedHealthState12 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthEvaluation the evaluation of the replica health -type ReplicaHealthEvaluation struct { - PartitionID *string `json:"PartitionId,omitempty"` - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplica - objectMap := make(map[string]interface{}) - if rhe.PartitionID != nil { - objectMap["PartitionId"] = rhe.PartitionID - } - if rhe.ReplicaOrInstanceID != nil { - objectMap["ReplicaOrInstanceId"] = rhe.ReplicaOrInstanceID - } - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthReport the report of the replica health -type ReplicaHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaList the list of the replica -type ReplicaList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]Replica `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaLoadInformation the information of the replica load -type ReplicaLoadInformation struct { - autorest.Response `json:"-"` - PartitionID *string `json:"PartitionId,omitempty"` - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - ReportedLoad *[]string `json:"ReportedLoad,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicasHealthEvaluation the evaluation of the replicas health -type ReplicasHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplicas - objectMap := make(map[string]interface{}) - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.TotalCount != nil { - objectMap["TotalCount"] = rhe.TotalCount - } - if rhe.MaxPercentUnhealthyPartitionsPerService != nil { - objectMap["MaxPercentUnhealthyPartitionsPerService"] = rhe.MaxPercentUnhealthyPartitionsPerService - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServicePartition the partition of the resolved service -type ResolvedServicePartition struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - PartitionInformation *PartitionInformation `json:"PartitionInformation,omitempty"` - Endpoints *[]ResolvedServicePartitionEndpointsItem `json:"Endpoints,omitempty"` - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServicePartitionEndpointsItem the endpoints -type ResolvedServicePartitionEndpointsItem struct { - Kind *int32 `json:"Kind,omitempty"` - Address *string `json:"Address,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgrade the upgrade of the resume application -type ResumeApplicationUpgrade struct { - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgrade the upgrade of the resume cluster -type ResumeClusterUpgrade struct { - UpgradeDomain *string `json:"UpgradeDomain,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Service the service -type Service struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - // ServiceKind - Possible values include: 'ServiceKind2Invalid', 'ServiceKind2Stateless', 'ServiceKind2Stateful' - ServiceKind ServiceKind2 `json:"ServiceKind,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - ManifestVersion *string `json:"ManifestVersion,omitempty"` - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // HealthState - Possible values include: 'HealthState4Invalid', 'HealthState4Ok', 'HealthState4Warning', 'HealthState4Error', 'HealthState4Unknown' - HealthState HealthState4 `json:"HealthState,omitempty"` - // ServiceStatus - Possible values include: 'ServiceStatusInvalid', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFaile' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceCorrelationDescription the description of the service correlation -type ServiceCorrelationDescription struct { - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceCorrelationScheme - Possible values include: 'ServiceCorrelationSchemeInvalid', 'ServiceCorrelationSchemeAffinity', 'ServiceCorrelationSchemeAlignedAffinity', 'ServiceCorrelationSchemeNonAlignedAffinity' - ServiceCorrelationScheme ServiceCorrelationScheme `json:"ServiceCorrelationScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceDescription the description of the service -type BasicServiceDescription interface { - AsStatelessServiceDescription() (*StatelessServiceDescription, bool) - AsStatefulServiceDescription() (*StatefulServiceDescription, bool) - AsServiceDescription() (*ServiceDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescription the description of the service -type ServiceDescription struct { - autorest.Response `json:"-"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateless', 'ServiceKindBasicServiceDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceDescription(body []byte) (BasicServiceDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceDescriptionServiceKindStateless): - var ssd StatelessServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - case string(ServiceKindBasicServiceDescriptionServiceKindStateful): - var ssd StatefulServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - default: - var sd ServiceDescription - err := json.Unmarshal(body, &sd) - return sd, err - } -} -func unmarshalBasicServiceDescriptionArray(body []byte) ([]BasicServiceDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sdArray := make([]BasicServiceDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sd, err := unmarshalBasicServiceDescription(*rawMessage) - if err != nil { - return nil, err - } - sdArray[index] = sd - } - return sdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceDescription. -func (sd ServiceDescription) MarshalJSON() ([]byte, error) { - sd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindServiceDescription - objectMap := make(map[string]interface{}) - if sd.ApplicationName != nil { - objectMap["ApplicationName"] = sd.ApplicationName - } - if sd.ServiceName != nil { - objectMap["ServiceName"] = sd.ServiceName - } - if sd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sd.ServiceTypeName - } - if sd.PartitionDescription != nil { - objectMap["PartitionDescription"] = sd.PartitionDescription - } - if sd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sd.PlacementConstraints - } - if sd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sd.CorrelationScheme - } - if sd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = sd.ServiceLoadMetrics - } - if sd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sd.ServicePlacementPolicies - } - if sd.Flags != nil { - objectMap["Flags"] = sd.Flags - } - if sd.ServiceKind != "" { - objectMap["ServiceKind"] = sd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescriptionModel ... -type ServiceDescriptionModel struct { - autorest.Response `json:"-"` - Value BasicServiceDescription `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceDescriptionModel struct. -func (sdm *ServiceDescriptionModel) UnmarshalJSON(body []byte) error { - sd, err := unmarshalBasicServiceDescription(body) - if err != nil { - return err - } - sdm.Value = sd - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescriptionTemplate the template of the service description -type ServiceDescriptionTemplate struct { - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceGroupDescription the description of the service group -type BasicServiceGroupDescription interface { - AsStatelessServiceGroupDescription() (*StatelessServiceGroupDescription, bool) - AsStatefulServiceGroupDescription() (*StatefulServiceGroupDescription, bool) - AsServiceGroupDescription() (*ServiceGroupDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupDescription the description of the service group -type ServiceGroupDescription struct { - autorest.Response `json:"-"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - ServiceGroupMemberDescription *[]ServiceGroupMemberDescription `json:"ServiceGroupMemberDescription,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceGroupDescriptionServiceKindServiceGroupDescription', 'ServiceKindBasicServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceGroupDescription(body []byte) (BasicServiceGroupDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceGroupDescriptionServiceKindStateless): - var ssgd StatelessServiceGroupDescription - err := json.Unmarshal(body, &ssgd) - return ssgd, err - case string(ServiceKindBasicServiceGroupDescriptionServiceKindStateful): - var ssgd StatefulServiceGroupDescription - err := json.Unmarshal(body, &ssgd) - return ssgd, err - default: - var sgd ServiceGroupDescription - err := json.Unmarshal(body, &sgd) - return sgd, err - } -} -func unmarshalBasicServiceGroupDescriptionArray(body []byte) ([]BasicServiceGroupDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sgdArray := make([]BasicServiceGroupDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sgd, err := unmarshalBasicServiceGroupDescription(*rawMessage) - if err != nil { - return nil, err - } - sgdArray[index] = sgd - } - return sgdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceGroupDescription. -func (sgd ServiceGroupDescription) MarshalJSON() ([]byte, error) { - sgd.ServiceKind = ServiceKindBasicServiceGroupDescriptionServiceKindServiceGroupDescription - objectMap := make(map[string]interface{}) - if sgd.ApplicationName != nil { - objectMap["ApplicationName"] = sgd.ApplicationName - } - if sgd.ServiceName != nil { - objectMap["ServiceName"] = sgd.ServiceName - } - if sgd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sgd.ServiceTypeName - } - if sgd.PartitionDescription != nil { - objectMap["PartitionDescription"] = sgd.PartitionDescription - } - if sgd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sgd.PlacementConstraints - } - if sgd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sgd.CorrelationScheme - } - if sgd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = sgd.ServiceLoadMetrics - } - if sgd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sgd.ServicePlacementPolicies - } - if sgd.Flags != nil { - objectMap["Flags"] = sgd.Flags - } - if sgd.ServiceGroupMemberDescription != nil { - objectMap["ServiceGroupMemberDescription"] = sgd.ServiceGroupMemberDescription - } - if sgd.ServiceKind != "" { - objectMap["ServiceKind"] = sgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceGroupDescription is the BasicServiceGroupDescription implementation for ServiceGroupDescription. -func (sgd ServiceGroupDescription) AsStatelessServiceGroupDescription() (*StatelessServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceGroupDescription is the BasicServiceGroupDescription implementation for ServiceGroupDescription. -func (sgd ServiceGroupDescription) AsStatefulServiceGroupDescription() (*StatefulServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceGroupDescription is the BasicServiceGroupDescription implementation for ServiceGroupDescription. -func (sgd ServiceGroupDescription) AsServiceGroupDescription() (*ServiceGroupDescription, bool) { - return &sgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceGroupDescription is the BasicServiceGroupDescription implementation for ServiceGroupDescription. -func (sgd ServiceGroupDescription) AsBasicServiceGroupDescription() (BasicServiceGroupDescription, bool) { - return &sgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupDescriptionModel ... -type ServiceGroupDescriptionModel struct { - autorest.Response `json:"-"` - Value BasicServiceGroupDescription `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceGroupDescriptionModel struct. -func (sgdm *ServiceGroupDescriptionModel) UnmarshalJSON(body []byte) error { - sgd, err := unmarshalBasicServiceGroupDescription(body) - if err != nil { - return err - } - sgdm.Value = sgd - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupMember the member of the service group -type ServiceGroupMember struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - ServiceGroupMemberDescription *[]ServiceGroupMemberDescription `json:"ServiceGroupMemberDescription,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupMemberDescription the description of the service group member -type ServiceGroupMemberDescription struct { - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKind3Invalid', 'ServiceKind3Stateless', 'ServiceKind3Stateful' - ServiceKind ServiceKind3 `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealth the health of the service -type ServiceHealth struct { - autorest.Response `json:"-"` - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState9Invalid', 'AggregatedHealthState9Ok', 'AggregatedHealthState9Warning', 'AggregatedHealthState9Error', 'AggregatedHealthState9Unknown' - AggregatedHealthState AggregatedHealthState9 `json:"AggregatedHealthState,omitempty"` - Name *string `json:"Name,omitempty"` - PartitionHealthStates *[]ServiceHealthPartitionHealthStatesItem `json:"PartitionHealthStates,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthEvaluation the evaluation of the service health -type ServiceHealthEvaluation struct { - ServiceName *string `json:"ServiceName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindService - objectMap := make(map[string]interface{}) - if she.ServiceName != nil { - objectMap["ServiceName"] = she.ServiceName - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthPartitionHealthStatesItem the states of the partition health -type ServiceHealthPartitionHealthStatesItem struct { - PartitionID *string `json:"PartitionId,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState8Invalid', 'AggregatedHealthState8Ok', 'AggregatedHealthState8Warning', 'AggregatedHealthState8Error', 'AggregatedHealthState8Unknown' - AggregatedHealthState AggregatedHealthState8 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthReport the report of the service health -type ServiceHealthReport struct { - SourceID *string `json:"SourceId,omitempty"` - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - Description *string `json:"Description,omitempty"` - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - SequenceNumber *string `json:"SequenceNumber,omitempty"` - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceList the list of the service -type ServiceList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]Service `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceLoadMetricDescription the description of the service load metric -type ServiceLoadMetricDescription struct { - Name *string `json:"Name,omitempty"` - // ServiceLoadMetricWeight - Possible values include: 'ServiceLoadMetricWeightZero', 'ServiceLoadMetricWeightLow', 'ServiceLoadMetricWeightMedium', 'ServiceLoadMetricWeightHigh' - ServiceLoadMetricWeight ServiceLoadMetricWeight `json:"ServiceLoadMetricWeight,omitempty"` - PrimaryDefaultLoad *int32 `json:"PrimaryDefaultLoad,omitempty"` - SecondaryDefaultLoad *int32 `json:"SecondaryDefaultLoad,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceManifest the manifest of the service -type ServiceManifest struct { - autorest.Response `json:"-"` - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPolicyDescription the description of the service placement policy -type ServicePlacementPolicyDescription struct { - Type *string `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicesHealthEvaluation the evaluation of the services health -type ServicesHealthEvaluation struct { - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindServices - objectMap := make(map[string]interface{}) - if she.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = she.ServiceTypeName - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.TotalCount != nil { - objectMap["TotalCount"] = she.TotalCount - } - if she.MaxPercentUnhealthyServices != nil { - objectMap["MaxPercentUnhealthyServices"] = she.MaxPercentUnhealthyServices - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceType the type of the service -type ServiceType struct { - // ServiceTypeDescription - The description of the service type - ServiceTypeDescription *ServiceTypeServiceTypeDescription `json:"ServiceTypeDescription,omitempty"` - ServiceManifestVersion *string `json:"ServiceManifestVersion,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeServiceTypeDescription the description of the service type -type ServiceTypeServiceTypeDescription struct { - IsStateful *bool `json:"IsStateful,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - HasPersistedState *bool `json:"HasPersistedState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgrade the description of the start application upgrade -type StartApplicationUpgrade struct { - Name *string `json:"Name,omitempty"` - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - Parameters *[]StartApplicationUpgradeParametersItem `json:"Parameters,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode2Invalid', 'RollingUpgradeMode2UnmonitoredAuto', 'RollingUpgradeMode2UnmonitoredManual', 'RollingUpgradeMode2Monitored' - RollingUpgradeMode RollingUpgradeMode2 `json:"RollingUpgradeMode,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int32 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - MonitoringPolicy *MonitoringPolicy `json:"MonitoringPolicy,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradeParametersItem the parameters -type StartApplicationUpgradeParametersItem struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgrade the description of the start cluster upgrade -type StartClusterUpgrade struct { - // ConfigVersion - The version of the config - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // CodeVersion - The version of the code - CodeVersion *string `json:"CodeVersion,omitempty"` - // UpgradeKind - The kind of the upgrade - UpgradeKind *string `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - The mode of the rolling upgrade. Possible values include: 'RollingUpgradeModeInvalid', 'RollingUpgradeModeUnmonitoredAuto', 'RollingUpgradeModeUnmonitoredManual', 'RollingUpgradeModeMonitored' - RollingUpgradeMode RollingUpgradeMode `json:"RollingUpgradeMode,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The seconds of the upgrade replica set check timeout - UpgradeReplicaSetCheckTimeoutInSeconds *int32 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // ForceRestart - The flag of the force restart - ForceRestart *bool `json:"ForceRestart,omitempty"` - // EnableDeltaHealthEvaluation - The evaluation of the enable delta health - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - // MonitoringPolicy - The policy of the monitoring - MonitoringPolicy interface{} `json:"MonitoringPolicy,omitempty"` - // ClusterUpgradeHealthPolicy - The policy of the cluster upgrade health - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicy `json:"ClusterUpgradeHealthPolicy,omitempty"` - // ApplicationHealthPolicyMap - The map of the application health policy - ApplicationHealthPolicyMap *ApplicationHealthPolicyMap `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulCreateServiceDescription the description of the stateful create service -type StatefulCreateServiceDescription struct { - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - ReplicaRestartWaitDurationSeconds *int32 `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - QuorumLossWaitDurationSeconds *int32 `json:"QuorumLossWaitDurationSeconds,omitempty"` - StandByReplicaKeepDurationSeconds *int32 `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // DefaultMoveCost - Possible values include: 'DefaultMoveCost3Zero', 'DefaultMoveCost3Low', 'DefaultMoveCost3Medium', 'DefaultMoveCost3High' - DefaultMoveCost DefaultMoveCost3 `json:"DefaultMoveCost,omitempty"` - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindCreateServiceDescription', 'ServiceKindStateless1', 'ServiceKindStateful1' - ServiceKind ServiceKindBasicCreateServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulCreateServiceDescription. -func (scsd StatefulCreateServiceDescription) MarshalJSON() ([]byte, error) { - scsd.ServiceKind = ServiceKindStateful1 - objectMap := make(map[string]interface{}) - if scsd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = scsd.TargetReplicaSetSize - } - if scsd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = scsd.MinReplicaSetSize - } - if scsd.HasPersistedState != nil { - objectMap["HasPersistedState"] = scsd.HasPersistedState - } - if scsd.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = scsd.ReplicaRestartWaitDurationSeconds - } - if scsd.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = scsd.QuorumLossWaitDurationSeconds - } - if scsd.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = scsd.StandByReplicaKeepDurationSeconds - } - if scsd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = scsd.DefaultMoveCost - } - if scsd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = scsd.IsDefaultMoveCostSpecified - } - if scsd.ApplicationName != nil { - objectMap["ApplicationName"] = scsd.ApplicationName - } - if scsd.ServiceName != nil { - objectMap["ServiceName"] = scsd.ServiceName - } - if scsd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = scsd.ServiceTypeName - } - if scsd.PartitionDescription != nil { - objectMap["PartitionDescription"] = scsd.PartitionDescription - } - if scsd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = scsd.PlacementConstraints - } - if scsd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = scsd.CorrelationScheme - } - if scsd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = scsd.ServiceLoadMetrics - } - if scsd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = scsd.ServicePlacementPolicies - } - if scsd.Flags != nil { - objectMap["Flags"] = scsd.Flags - } - if scsd.ServiceKind != "" { - objectMap["ServiceKind"] = scsd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessCreateServiceDescription is the BasicCreateServiceDescription implementation for StatefulCreateServiceDescription. -func (scsd StatefulCreateServiceDescription) AsStatelessCreateServiceDescription() (*StatelessCreateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulCreateServiceDescription is the BasicCreateServiceDescription implementation for StatefulCreateServiceDescription. -func (scsd StatefulCreateServiceDescription) AsStatefulCreateServiceDescription() (*StatefulCreateServiceDescription, bool) { - return &scsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCreateServiceDescription is the BasicCreateServiceDescription implementation for StatefulCreateServiceDescription. -func (scsd StatefulCreateServiceDescription) AsCreateServiceDescription() (*CreateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicCreateServiceDescription is the BasicCreateServiceDescription implementation for StatefulCreateServiceDescription. -func (scsd StatefulCreateServiceDescription) AsBasicCreateServiceDescription() (BasicCreateServiceDescription, bool) { - return &scsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulCreateServiceGroupDescription the description of the stateful create service group -type StatefulCreateServiceGroupDescription struct { - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - ReplicaRestartWaitDurationSeconds *int32 `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - QuorumLossWaitDurationSeconds *int32 `json:"QuorumLossWaitDurationSeconds,omitempty"` - StandByReplicaKeepDurationSeconds *int32 `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // DefaultMoveCost - Possible values include: 'DefaultMoveCost1Zero', 'DefaultMoveCost1Low', 'DefaultMoveCost1Medium', 'DefaultMoveCost1High' - DefaultMoveCost DefaultMoveCost1 `json:"DefaultMoveCost,omitempty"` - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - ServiceGroupMemberDescription *[]ServiceGroupMemberDescription `json:"ServiceGroupMemberDescription,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindCreateServiceGroupDescription', 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicCreateServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulCreateServiceGroupDescription. -func (scsgd StatefulCreateServiceGroupDescription) MarshalJSON() ([]byte, error) { - scsgd.ServiceKind = ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if scsgd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = scsgd.TargetReplicaSetSize - } - if scsgd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = scsgd.MinReplicaSetSize - } - if scsgd.HasPersistedState != nil { - objectMap["HasPersistedState"] = scsgd.HasPersistedState - } - if scsgd.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = scsgd.ReplicaRestartWaitDurationSeconds - } - if scsgd.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = scsgd.QuorumLossWaitDurationSeconds - } - if scsgd.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = scsgd.StandByReplicaKeepDurationSeconds - } - if scsgd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = scsgd.DefaultMoveCost - } - if scsgd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = scsgd.IsDefaultMoveCostSpecified - } - if scsgd.ApplicationName != nil { - objectMap["ApplicationName"] = scsgd.ApplicationName - } - if scsgd.ServiceName != nil { - objectMap["ServiceName"] = scsgd.ServiceName - } - if scsgd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = scsgd.ServiceTypeName - } - if scsgd.PartitionDescription != nil { - objectMap["PartitionDescription"] = scsgd.PartitionDescription - } - if scsgd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = scsgd.PlacementConstraints - } - if scsgd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = scsgd.CorrelationScheme - } - if scsgd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = scsgd.ServiceLoadMetrics - } - if scsgd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = scsgd.ServicePlacementPolicies - } - if scsgd.Flags != nil { - objectMap["Flags"] = scsgd.Flags - } - if scsgd.ServiceGroupMemberDescription != nil { - objectMap["ServiceGroupMemberDescription"] = scsgd.ServiceGroupMemberDescription - } - if scsgd.ServiceKind != "" { - objectMap["ServiceKind"] = scsgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatefulCreateServiceGroupDescription. -func (scsgd StatefulCreateServiceGroupDescription) AsStatelessCreateServiceGroupDescription() (*StatelessCreateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatefulCreateServiceGroupDescription. -func (scsgd StatefulCreateServiceGroupDescription) AsStatefulCreateServiceGroupDescription() (*StatefulCreateServiceGroupDescription, bool) { - return &scsgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatefulCreateServiceGroupDescription. -func (scsgd StatefulCreateServiceGroupDescription) AsCreateServiceGroupDescription() (*CreateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatefulCreateServiceGroupDescription. -func (scsgd StatefulCreateServiceGroupDescription) AsBasicCreateServiceGroupDescription() (BasicCreateServiceGroupDescription, bool) { - return &scsgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceDescription the description of the stateful service -type StatefulServiceDescription struct { - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - ReplicaRestartWaitDurationSeconds *int32 `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - QuorumLossWaitDurationSeconds *int32 `json:"QuorumLossWaitDurationSeconds,omitempty"` - StandByReplicaKeepDurationSeconds *int32 `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // DefaultMoveCost - Possible values include: 'DefaultMoveCost2Zero', 'DefaultMoveCost2Low', 'DefaultMoveCost2Medium', 'DefaultMoveCost2High' - DefaultMoveCost DefaultMoveCost2 `json:"DefaultMoveCost,omitempty"` - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateless', 'ServiceKindBasicServiceDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceDescription. -func (ssd StatefulServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssd.TargetReplicaSetSize - } - if ssd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssd.MinReplicaSetSize - } - if ssd.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssd.HasPersistedState - } - if ssd.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssd.ReplicaRestartWaitDurationSeconds - } - if ssd.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssd.QuorumLossWaitDurationSeconds - } - if ssd.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssd.StandByReplicaKeepDurationSeconds - } - if ssd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssd.DefaultMoveCost - } - if ssd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssd.IsDefaultMoveCostSpecified - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.PartitionDescription != nil { - objectMap["PartitionDescription"] = ssd.PartitionDescription - } - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.Flags != nil { - objectMap["Flags"] = ssd.Flags - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceGroupDescription the description of the stateful service group -type StatefulServiceGroupDescription struct { - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - ReplicaRestartWaitDurationSeconds *int32 `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - QuorumLossWaitDurationSeconds *int32 `json:"QuorumLossWaitDurationSeconds,omitempty"` - StandByReplicaKeepDurationSeconds *int32 `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost DefaultMoveCost `json:"DefaultMoveCost,omitempty"` - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - ServiceGroupMemberDescription *[]ServiceGroupMemberDescription `json:"ServiceGroupMemberDescription,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceGroupDescriptionServiceKindServiceGroupDescription', 'ServiceKindBasicServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceGroupDescription. -func (ssgd StatefulServiceGroupDescription) MarshalJSON() ([]byte, error) { - ssgd.ServiceKind = ServiceKindBasicServiceGroupDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssgd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssgd.TargetReplicaSetSize - } - if ssgd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssgd.MinReplicaSetSize - } - if ssgd.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssgd.HasPersistedState - } - if ssgd.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssgd.ReplicaRestartWaitDurationSeconds - } - if ssgd.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssgd.QuorumLossWaitDurationSeconds - } - if ssgd.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssgd.StandByReplicaKeepDurationSeconds - } - if ssgd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssgd.DefaultMoveCost - } - if ssgd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssgd.IsDefaultMoveCostSpecified - } - if ssgd.ApplicationName != nil { - objectMap["ApplicationName"] = ssgd.ApplicationName - } - if ssgd.ServiceName != nil { - objectMap["ServiceName"] = ssgd.ServiceName - } - if ssgd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssgd.ServiceTypeName - } - if ssgd.PartitionDescription != nil { - objectMap["PartitionDescription"] = ssgd.PartitionDescription - } - if ssgd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssgd.PlacementConstraints - } - if ssgd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssgd.CorrelationScheme - } - if ssgd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssgd.ServiceLoadMetrics - } - if ssgd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssgd.ServicePlacementPolicies - } - if ssgd.Flags != nil { - objectMap["Flags"] = ssgd.Flags - } - if ssgd.ServiceGroupMemberDescription != nil { - objectMap["ServiceGroupMemberDescription"] = ssgd.ServiceGroupMemberDescription - } - if ssgd.ServiceKind != "" { - objectMap["ServiceKind"] = ssgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceGroupDescription is the BasicServiceGroupDescription implementation for StatefulServiceGroupDescription. -func (ssgd StatefulServiceGroupDescription) AsStatelessServiceGroupDescription() (*StatelessServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceGroupDescription is the BasicServiceGroupDescription implementation for StatefulServiceGroupDescription. -func (ssgd StatefulServiceGroupDescription) AsStatefulServiceGroupDescription() (*StatefulServiceGroupDescription, bool) { - return &ssgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceGroupDescription is the BasicServiceGroupDescription implementation for StatefulServiceGroupDescription. -func (ssgd StatefulServiceGroupDescription) AsServiceGroupDescription() (*ServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceGroupDescription is the BasicServiceGroupDescription implementation for StatefulServiceGroupDescription. -func (ssgd StatefulServiceGroupDescription) AsBasicServiceGroupDescription() (BasicServiceGroupDescription, bool) { - return &ssgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulUpdateServiceDescription the description of the stateful update service -type StatefulUpdateServiceDescription struct { - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - ReplicaRestartWaitDurationInMilliseconds *int32 `json:"ReplicaRestartWaitDurationInMilliseconds,omitempty"` - QuorumLossWaitDurationInMilliseconds *int32 `json:"QuorumLossWaitDurationInMilliseconds,omitempty"` - StandByReplicaKeepDurationInMilliseconds *int32 `json:"StandByReplicaKeepDurationInMilliseconds,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicUpdateServiceDescriptionServiceKindUpdateServiceDescription', 'ServiceKindBasicUpdateServiceDescriptionServiceKindStateless', 'ServiceKindBasicUpdateServiceDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicUpdateServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulUpdateServiceDescription. -func (susd StatefulUpdateServiceDescription) MarshalJSON() ([]byte, error) { - susd.ServiceKind = ServiceKindBasicUpdateServiceDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if susd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = susd.TargetReplicaSetSize - } - if susd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = susd.MinReplicaSetSize - } - if susd.ReplicaRestartWaitDurationInMilliseconds != nil { - objectMap["ReplicaRestartWaitDurationInMilliseconds"] = susd.ReplicaRestartWaitDurationInMilliseconds - } - if susd.QuorumLossWaitDurationInMilliseconds != nil { - objectMap["QuorumLossWaitDurationInMilliseconds"] = susd.QuorumLossWaitDurationInMilliseconds - } - if susd.StandByReplicaKeepDurationInMilliseconds != nil { - objectMap["StandByReplicaKeepDurationInMilliseconds"] = susd.StandByReplicaKeepDurationInMilliseconds - } - if susd.Flags != nil { - objectMap["Flags"] = susd.Flags - } - if susd.ServiceKind != "" { - objectMap["ServiceKind"] = susd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatefulUpdateServiceDescription. -func (susd StatefulUpdateServiceDescription) AsStatelessUpdateServiceDescription() (*StatelessUpdateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatefulUpdateServiceDescription. -func (susd StatefulUpdateServiceDescription) AsStatefulUpdateServiceDescription() (*StatefulUpdateServiceDescription, bool) { - return &susd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatefulUpdateServiceDescription. -func (susd StatefulUpdateServiceDescription) AsUpdateServiceDescription() (*UpdateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatefulUpdateServiceDescription. -func (susd StatefulUpdateServiceDescription) AsBasicUpdateServiceDescription() (BasicUpdateServiceDescription, bool) { - return &susd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulUpdateServiceGroupDescription the description of the stateful update service group -type StatefulUpdateServiceGroupDescription struct { - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - ReplicaRestartWaitDurationInMilliseconds *int32 `json:"ReplicaRestartWaitDurationInMilliseconds,omitempty"` - QuorumLossWaitDurationInMilliseconds *int32 `json:"QuorumLossWaitDurationInMilliseconds,omitempty"` - StandByReplicaKeepDurationInMilliseconds *int32 `json:"StandByReplicaKeepDurationInMilliseconds,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindUpdateServiceGroupDescription', 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicUpdateServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulUpdateServiceGroupDescription. -func (susgd StatefulUpdateServiceGroupDescription) MarshalJSON() ([]byte, error) { - susgd.ServiceKind = ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if susgd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = susgd.TargetReplicaSetSize - } - if susgd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = susgd.MinReplicaSetSize - } - if susgd.ReplicaRestartWaitDurationInMilliseconds != nil { - objectMap["ReplicaRestartWaitDurationInMilliseconds"] = susgd.ReplicaRestartWaitDurationInMilliseconds - } - if susgd.QuorumLossWaitDurationInMilliseconds != nil { - objectMap["QuorumLossWaitDurationInMilliseconds"] = susgd.QuorumLossWaitDurationInMilliseconds - } - if susgd.StandByReplicaKeepDurationInMilliseconds != nil { - objectMap["StandByReplicaKeepDurationInMilliseconds"] = susgd.StandByReplicaKeepDurationInMilliseconds - } - if susgd.Flags != nil { - objectMap["Flags"] = susgd.Flags - } - if susgd.ServiceKind != "" { - objectMap["ServiceKind"] = susgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatefulUpdateServiceGroupDescription. -func (susgd StatefulUpdateServiceGroupDescription) AsStatelessUpdateServiceGroupDescription() (*StatelessUpdateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatefulUpdateServiceGroupDescription. -func (susgd StatefulUpdateServiceGroupDescription) AsStatefulUpdateServiceGroupDescription() (*StatefulUpdateServiceGroupDescription, bool) { - return &susgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatefulUpdateServiceGroupDescription. -func (susgd StatefulUpdateServiceGroupDescription) AsUpdateServiceGroupDescription() (*UpdateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatefulUpdateServiceGroupDescription. -func (susgd StatefulUpdateServiceGroupDescription) AsBasicUpdateServiceGroupDescription() (BasicUpdateServiceGroupDescription, bool) { - return &susgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessCreateServiceDescription the description of the stateless create service -type StatelessCreateServiceDescription struct { - InstanceCount *int32 `json:"InstanceCount,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindCreateServiceDescription', 'ServiceKindStateless1', 'ServiceKindStateful1' - ServiceKind ServiceKindBasicCreateServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessCreateServiceDescription. -func (scsd StatelessCreateServiceDescription) MarshalJSON() ([]byte, error) { - scsd.ServiceKind = ServiceKindStateless1 - objectMap := make(map[string]interface{}) - if scsd.InstanceCount != nil { - objectMap["InstanceCount"] = scsd.InstanceCount - } - if scsd.ApplicationName != nil { - objectMap["ApplicationName"] = scsd.ApplicationName - } - if scsd.ServiceName != nil { - objectMap["ServiceName"] = scsd.ServiceName - } - if scsd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = scsd.ServiceTypeName - } - if scsd.PartitionDescription != nil { - objectMap["PartitionDescription"] = scsd.PartitionDescription - } - if scsd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = scsd.PlacementConstraints - } - if scsd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = scsd.CorrelationScheme - } - if scsd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = scsd.ServiceLoadMetrics - } - if scsd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = scsd.ServicePlacementPolicies - } - if scsd.Flags != nil { - objectMap["Flags"] = scsd.Flags - } - if scsd.ServiceKind != "" { - objectMap["ServiceKind"] = scsd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessCreateServiceDescription is the BasicCreateServiceDescription implementation for StatelessCreateServiceDescription. -func (scsd StatelessCreateServiceDescription) AsStatelessCreateServiceDescription() (*StatelessCreateServiceDescription, bool) { - return &scsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulCreateServiceDescription is the BasicCreateServiceDescription implementation for StatelessCreateServiceDescription. -func (scsd StatelessCreateServiceDescription) AsStatefulCreateServiceDescription() (*StatefulCreateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCreateServiceDescription is the BasicCreateServiceDescription implementation for StatelessCreateServiceDescription. -func (scsd StatelessCreateServiceDescription) AsCreateServiceDescription() (*CreateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicCreateServiceDescription is the BasicCreateServiceDescription implementation for StatelessCreateServiceDescription. -func (scsd StatelessCreateServiceDescription) AsBasicCreateServiceDescription() (BasicCreateServiceDescription, bool) { - return &scsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessCreateServiceGroupDescription the description of the stateless create service group -type StatelessCreateServiceGroupDescription struct { - InstanceCount *int32 `json:"InstanceCount,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - ServiceGroupMemberDescription *[]ServiceGroupMemberDescription `json:"ServiceGroupMemberDescription,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindCreateServiceGroupDescription', 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicCreateServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessCreateServiceGroupDescription. -func (scsgd StatelessCreateServiceGroupDescription) MarshalJSON() ([]byte, error) { - scsgd.ServiceKind = ServiceKindBasicCreateServiceGroupDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if scsgd.InstanceCount != nil { - objectMap["InstanceCount"] = scsgd.InstanceCount - } - if scsgd.ApplicationName != nil { - objectMap["ApplicationName"] = scsgd.ApplicationName - } - if scsgd.ServiceName != nil { - objectMap["ServiceName"] = scsgd.ServiceName - } - if scsgd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = scsgd.ServiceTypeName - } - if scsgd.PartitionDescription != nil { - objectMap["PartitionDescription"] = scsgd.PartitionDescription - } - if scsgd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = scsgd.PlacementConstraints - } - if scsgd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = scsgd.CorrelationScheme - } - if scsgd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = scsgd.ServiceLoadMetrics - } - if scsgd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = scsgd.ServicePlacementPolicies - } - if scsgd.Flags != nil { - objectMap["Flags"] = scsgd.Flags - } - if scsgd.ServiceGroupMemberDescription != nil { - objectMap["ServiceGroupMemberDescription"] = scsgd.ServiceGroupMemberDescription - } - if scsgd.ServiceKind != "" { - objectMap["ServiceKind"] = scsgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatelessCreateServiceGroupDescription. -func (scsgd StatelessCreateServiceGroupDescription) AsStatelessCreateServiceGroupDescription() (*StatelessCreateServiceGroupDescription, bool) { - return &scsgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatelessCreateServiceGroupDescription. -func (scsgd StatelessCreateServiceGroupDescription) AsStatefulCreateServiceGroupDescription() (*StatefulCreateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatelessCreateServiceGroupDescription. -func (scsgd StatelessCreateServiceGroupDescription) AsCreateServiceGroupDescription() (*CreateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicCreateServiceGroupDescription is the BasicCreateServiceGroupDescription implementation for StatelessCreateServiceGroupDescription. -func (scsgd StatelessCreateServiceGroupDescription) AsBasicCreateServiceGroupDescription() (BasicCreateServiceGroupDescription, bool) { - return &scsgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceDescription the description of the stateless service -type StatelessServiceDescription struct { - InstanceCount *int32 `json:"InstanceCount,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateless', 'ServiceKindBasicServiceDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceDescription. -func (ssd StatelessServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssd.InstanceCount != nil { - objectMap["InstanceCount"] = ssd.InstanceCount - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.PartitionDescription != nil { - objectMap["PartitionDescription"] = ssd.PartitionDescription - } - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.Flags != nil { - objectMap["Flags"] = ssd.Flags - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceGroupDescription the description of the stateless service group -type StatelessServiceGroupDescription struct { - InstanceCount *int32 `json:"InstanceCount,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - PartitionDescription *PartitionDescription `json:"PartitionDescription,omitempty"` - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *ServiceCorrelationDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *ServiceCorrelationDescription `json:"ServicePlacementPolicies,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - ServiceGroupMemberDescription *[]ServiceGroupMemberDescription `json:"ServiceGroupMemberDescription,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceGroupDescriptionServiceKindServiceGroupDescription', 'ServiceKindBasicServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceGroupDescription. -func (ssgd StatelessServiceGroupDescription) MarshalJSON() ([]byte, error) { - ssgd.ServiceKind = ServiceKindBasicServiceGroupDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssgd.InstanceCount != nil { - objectMap["InstanceCount"] = ssgd.InstanceCount - } - if ssgd.ApplicationName != nil { - objectMap["ApplicationName"] = ssgd.ApplicationName - } - if ssgd.ServiceName != nil { - objectMap["ServiceName"] = ssgd.ServiceName - } - if ssgd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssgd.ServiceTypeName - } - if ssgd.PartitionDescription != nil { - objectMap["PartitionDescription"] = ssgd.PartitionDescription - } - if ssgd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssgd.PlacementConstraints - } - if ssgd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssgd.CorrelationScheme - } - if ssgd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssgd.ServiceLoadMetrics - } - if ssgd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssgd.ServicePlacementPolicies - } - if ssgd.Flags != nil { - objectMap["Flags"] = ssgd.Flags - } - if ssgd.ServiceGroupMemberDescription != nil { - objectMap["ServiceGroupMemberDescription"] = ssgd.ServiceGroupMemberDescription - } - if ssgd.ServiceKind != "" { - objectMap["ServiceKind"] = ssgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceGroupDescription is the BasicServiceGroupDescription implementation for StatelessServiceGroupDescription. -func (ssgd StatelessServiceGroupDescription) AsStatelessServiceGroupDescription() (*StatelessServiceGroupDescription, bool) { - return &ssgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceGroupDescription is the BasicServiceGroupDescription implementation for StatelessServiceGroupDescription. -func (ssgd StatelessServiceGroupDescription) AsStatefulServiceGroupDescription() (*StatefulServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceGroupDescription is the BasicServiceGroupDescription implementation for StatelessServiceGroupDescription. -func (ssgd StatelessServiceGroupDescription) AsServiceGroupDescription() (*ServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceGroupDescription is the BasicServiceGroupDescription implementation for StatelessServiceGroupDescription. -func (ssgd StatelessServiceGroupDescription) AsBasicServiceGroupDescription() (BasicServiceGroupDescription, bool) { - return &ssgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessUpdateServiceDescription the description of the stateless update service -type StatelessUpdateServiceDescription struct { - InstanceCount *int32 `json:"InstanceCount,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicUpdateServiceDescriptionServiceKindUpdateServiceDescription', 'ServiceKindBasicUpdateServiceDescriptionServiceKindStateless', 'ServiceKindBasicUpdateServiceDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicUpdateServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessUpdateServiceDescription. -func (susd StatelessUpdateServiceDescription) MarshalJSON() ([]byte, error) { - susd.ServiceKind = ServiceKindBasicUpdateServiceDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if susd.InstanceCount != nil { - objectMap["InstanceCount"] = susd.InstanceCount - } - if susd.Flags != nil { - objectMap["Flags"] = susd.Flags - } - if susd.ServiceKind != "" { - objectMap["ServiceKind"] = susd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatelessUpdateServiceDescription. -func (susd StatelessUpdateServiceDescription) AsStatelessUpdateServiceDescription() (*StatelessUpdateServiceDescription, bool) { - return &susd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatelessUpdateServiceDescription. -func (susd StatelessUpdateServiceDescription) AsStatefulUpdateServiceDescription() (*StatefulUpdateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatelessUpdateServiceDescription. -func (susd StatelessUpdateServiceDescription) AsUpdateServiceDescription() (*UpdateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicUpdateServiceDescription is the BasicUpdateServiceDescription implementation for StatelessUpdateServiceDescription. -func (susd StatelessUpdateServiceDescription) AsBasicUpdateServiceDescription() (BasicUpdateServiceDescription, bool) { - return &susd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessUpdateServiceGroupDescription the description of the stateless update service group -type StatelessUpdateServiceGroupDescription struct { - InstanceCount *int32 `json:"InstanceCount,omitempty"` - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindUpdateServiceGroupDescription', 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicUpdateServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessUpdateServiceGroupDescription. -func (susgd StatelessUpdateServiceGroupDescription) MarshalJSON() ([]byte, error) { - susgd.ServiceKind = ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if susgd.InstanceCount != nil { - objectMap["InstanceCount"] = susgd.InstanceCount - } - if susgd.Flags != nil { - objectMap["Flags"] = susgd.Flags - } - if susgd.ServiceKind != "" { - objectMap["ServiceKind"] = susgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatelessUpdateServiceGroupDescription. -func (susgd StatelessUpdateServiceGroupDescription) AsStatelessUpdateServiceGroupDescription() (*StatelessUpdateServiceGroupDescription, bool) { - return &susgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatelessUpdateServiceGroupDescription. -func (susgd StatelessUpdateServiceGroupDescription) AsStatefulUpdateServiceGroupDescription() (*StatefulUpdateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatelessUpdateServiceGroupDescription. -func (susgd StatelessUpdateServiceGroupDescription) AsUpdateServiceGroupDescription() (*UpdateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for StatelessUpdateServiceGroupDescription. -func (susgd StatelessUpdateServiceGroupDescription) AsBasicUpdateServiceGroupDescription() (BasicUpdateServiceGroupDescription, bool) { - return &susgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// String ... -type String struct { - autorest.Response `json:"-"` - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SystemApplicationHealthEvaluation the evaluation of the system application health -type SystemApplicationHealthEvaluation struct { - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - sahe.Kind = KindSystemApplication - objectMap := make(map[string]interface{}) - if sahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = sahe.UnhealthyEvaluations - } - if sahe.Description != nil { - objectMap["Description"] = sahe.Description - } - if sahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = sahe.AggregatedHealthState - } - if sahe.Kind != "" { - objectMap["Kind"] = sahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnhealthyEvaluation the evaluation of the unhealthy -type UnhealthyEvaluation struct { - HealthEvaluation BasicHealthEvaluation `json:"HealthEvaluation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for UnhealthyEvaluation struct. -func (ue *UnhealthyEvaluation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HealthEvaluation": - if v != nil { - healthEvaluation, err := unmarshalBasicHealthEvaluation(*v) - if err != nil { - return err - } - ue.HealthEvaluation = healthEvaluation - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterApplicationType the type of the unregister application -type UnregisterApplicationType struct { - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnregisterClusterPackage the package of the unregister cluster -type UnregisterClusterPackage struct { - // CodeVersion - The version of the code - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The version of the config - ConfigVersion *string `json:"ConfigVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgrade the description of the update application upgrade -type UpdateApplicationUpgrade struct { - Name *string `json:"Name,omitempty"` - UpgradeKind *string `json:"UpgradeKind,omitempty"` - UpdateDescription *UpdateDescription `json:"UpdateDescription,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgrade the description of the update cluster upgrade -type UpdateClusterUpgrade struct { - // UpgradeKind - The kind of the upgrade - UpgradeKind *string `json:"UpgradeKind,omitempty"` - // UpdateDescription - The description of the update - UpdateDescription *UpdateDescription `json:"UpdateDescription,omitempty"` - // ClusterHealthPolicy - The policy of the cluster health - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - // EnableDeltaHealthEvaluations - The evaluations of the enable delta health - EnableDeltaHealthEvaluations *bool `json:"EnableDeltaHealthEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateDescription the description of the update -type UpdateDescription struct { - // RollingUpgradeMode - The mode of the rolling upgrade. Possible values include: 'RollingUpgradeMode3Invalid', 'RollingUpgradeMode3UnmonitoredAuto', 'RollingUpgradeMode3UnmonitoredManual', 'RollingUpgradeMode3Monitored' - RollingUpgradeMode RollingUpgradeMode3 `json:"RollingUpgradeMode,omitempty"` - // ForceRestart - The flag of the force restart - ForceRestart *bool `json:"ForceRestart,omitempty"` - // FailureAction - The action of the failure - FailureAction *string `json:"FailureAction,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The seconds of the upgrade replica set check timeout - UpgradeReplicaSetCheckTimeoutInSeconds *int32 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // HealthCheckWaitDurationInMilliseconds - The seconds of the health check wait duration - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - // HealthCheckStableDurationInMilliseconds - The seconds of the health check stable duration - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - // HealthCheckRetryTimeoutInMilliseconds - The milliseconds of the health check retry timeout - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - // UpgradeTimeoutInMilliseconds - The milliseconds of the upgrade timeout - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - // UpgradeDomainTimeoutInMilliseconds - The milliseconds of the upgrade domain timeout - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicUpdateServiceDescription the description of the update service -type BasicUpdateServiceDescription interface { - AsStatelessUpdateServiceDescription() (*StatelessUpdateServiceDescription, bool) - AsStatefulUpdateServiceDescription() (*StatefulUpdateServiceDescription, bool) - AsUpdateServiceDescription() (*UpdateServiceDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceDescription the description of the update service -type UpdateServiceDescription struct { - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicUpdateServiceDescriptionServiceKindUpdateServiceDescription', 'ServiceKindBasicUpdateServiceDescriptionServiceKindStateless', 'ServiceKindBasicUpdateServiceDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicUpdateServiceDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicUpdateServiceDescription(body []byte) (BasicUpdateServiceDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicUpdateServiceDescriptionServiceKindStateless): - var susd StatelessUpdateServiceDescription - err := json.Unmarshal(body, &susd) - return susd, err - case string(ServiceKindBasicUpdateServiceDescriptionServiceKindStateful): - var susd StatefulUpdateServiceDescription - err := json.Unmarshal(body, &susd) - return susd, err - default: - var usd UpdateServiceDescription - err := json.Unmarshal(body, &usd) - return usd, err - } -} -func unmarshalBasicUpdateServiceDescriptionArray(body []byte) ([]BasicUpdateServiceDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - usdArray := make([]BasicUpdateServiceDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - usd, err := unmarshalBasicUpdateServiceDescription(*rawMessage) - if err != nil { - return nil, err - } - usdArray[index] = usd - } - return usdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpdateServiceDescription. -func (usd UpdateServiceDescription) MarshalJSON() ([]byte, error) { - usd.ServiceKind = ServiceKindBasicUpdateServiceDescriptionServiceKindUpdateServiceDescription - objectMap := make(map[string]interface{}) - if usd.Flags != nil { - objectMap["Flags"] = usd.Flags - } - if usd.ServiceKind != "" { - objectMap["ServiceKind"] = usd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessUpdateServiceDescription is the BasicUpdateServiceDescription implementation for UpdateServiceDescription. -func (usd UpdateServiceDescription) AsStatelessUpdateServiceDescription() (*StatelessUpdateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulUpdateServiceDescription is the BasicUpdateServiceDescription implementation for UpdateServiceDescription. -func (usd UpdateServiceDescription) AsStatefulUpdateServiceDescription() (*StatefulUpdateServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpdateServiceDescription is the BasicUpdateServiceDescription implementation for UpdateServiceDescription. -func (usd UpdateServiceDescription) AsUpdateServiceDescription() (*UpdateServiceDescription, bool) { - return &usd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicUpdateServiceDescription is the BasicUpdateServiceDescription implementation for UpdateServiceDescription. -func (usd UpdateServiceDescription) AsBasicUpdateServiceDescription() (BasicUpdateServiceDescription, bool) { - return &usd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicUpdateServiceGroupDescription the description of the update service group -type BasicUpdateServiceGroupDescription interface { - AsStatelessUpdateServiceGroupDescription() (*StatelessUpdateServiceGroupDescription, bool) - AsStatefulUpdateServiceGroupDescription() (*StatefulUpdateServiceGroupDescription, bool) - AsUpdateServiceGroupDescription() (*UpdateServiceGroupDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceGroupDescription the description of the update service group -type UpdateServiceGroupDescription struct { - Flags *int32 `json:"Flags,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindUpdateServiceGroupDescription', 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless', 'ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful' - ServiceKind ServiceKindBasicUpdateServiceGroupDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicUpdateServiceGroupDescription(body []byte) (BasicUpdateServiceGroupDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateless): - var susgd StatelessUpdateServiceGroupDescription - err := json.Unmarshal(body, &susgd) - return susgd, err - case string(ServiceKindBasicUpdateServiceGroupDescriptionServiceKindStateful): - var susgd StatefulUpdateServiceGroupDescription - err := json.Unmarshal(body, &susgd) - return susgd, err - default: - var usgd UpdateServiceGroupDescription - err := json.Unmarshal(body, &usgd) - return usgd, err - } -} -func unmarshalBasicUpdateServiceGroupDescriptionArray(body []byte) ([]BasicUpdateServiceGroupDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - usgdArray := make([]BasicUpdateServiceGroupDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - usgd, err := unmarshalBasicUpdateServiceGroupDescription(*rawMessage) - if err != nil { - return nil, err - } - usgdArray[index] = usgd - } - return usgdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpdateServiceGroupDescription. -func (usgd UpdateServiceGroupDescription) MarshalJSON() ([]byte, error) { - usgd.ServiceKind = ServiceKindBasicUpdateServiceGroupDescriptionServiceKindUpdateServiceGroupDescription - objectMap := make(map[string]interface{}) - if usgd.Flags != nil { - objectMap["Flags"] = usgd.Flags - } - if usgd.ServiceKind != "" { - objectMap["ServiceKind"] = usgd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for UpdateServiceGroupDescription. -func (usgd UpdateServiceGroupDescription) AsStatelessUpdateServiceGroupDescription() (*StatelessUpdateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for UpdateServiceGroupDescription. -func (usgd UpdateServiceGroupDescription) AsStatefulUpdateServiceGroupDescription() (*StatefulUpdateServiceGroupDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for UpdateServiceGroupDescription. -func (usgd UpdateServiceGroupDescription) AsUpdateServiceGroupDescription() (*UpdateServiceGroupDescription, bool) { - return &usgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicUpdateServiceGroupDescription is the BasicUpdateServiceGroupDescription implementation for UpdateServiceGroupDescription. -func (usgd UpdateServiceGroupDescription) AsBasicUpdateServiceGroupDescription() (BasicUpdateServiceGroupDescription, bool) { - return &usgd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainDeltaNodesCheckHealthEvaluation the evaluation of the upgrade domain delta nodes check health -type UpgradeDomainDeltaNodesCheckHealthEvaluation struct { - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - BaselineErrorCount *int32 `json:"BaselineErrorCount,omitempty"` - BaselineTotalCount *int32 `json:"BaselineTotalCount,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"MaxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - uddnche.Kind = KindUpgradeDomainDeltaNodesCheck - objectMap := make(map[string]interface{}) - if uddnche.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = uddnche.UpgradeDomainName - } - if uddnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = uddnche.UnhealthyEvaluations - } - if uddnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = uddnche.BaselineErrorCount - } - if uddnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = uddnche.BaselineTotalCount - } - if uddnche.TotalCount != nil { - objectMap["TotalCount"] = uddnche.TotalCount - } - if uddnche.MaxPercentUpgradeDomainDeltaUnhealthyNodes != nil { - objectMap["MaxPercentUpgradeDomainDeltaUnhealthyNodes"] = uddnche.MaxPercentUpgradeDomainDeltaUnhealthyNodes - } - if uddnche.Description != nil { - objectMap["Description"] = uddnche.Description - } - if uddnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = uddnche.AggregatedHealthState - } - if uddnche.Kind != "" { - objectMap["Kind"] = uddnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainDeployedApplicationsHealthEvaluation the evaluation of the upgrade domain deployed applications -// health -type UpgradeDomainDeployedApplicationsHealthEvaluation struct { - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - uddahe.Kind = KindUpgradeDomainDeployedApplications - objectMap := make(map[string]interface{}) - if uddahe.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = uddahe.UpgradeDomainName - } - if uddahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = uddahe.UnhealthyEvaluations - } - if uddahe.TotalCount != nil { - objectMap["TotalCount"] = uddahe.TotalCount - } - if uddahe.MaxPercentUnhealthyDeployedApplications != nil { - objectMap["MaxPercentUnhealthyDeployedApplications"] = uddahe.MaxPercentUnhealthyDeployedApplications - } - if uddahe.Description != nil { - objectMap["Description"] = uddahe.Description - } - if uddahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = uddahe.AggregatedHealthState - } - if uddahe.Kind != "" { - objectMap["Kind"] = uddahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return &uddahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeployedApplicationsHealthEvaluation. -func (uddahe UpgradeDomainDeployedApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &uddahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainNodesHealthEvaluation the evaluation of the upgrade domain nodes health -type UpgradeDomainNodesHealthEvaluation struct { - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - UnhealthyEvaluations *[]UnhealthyEvaluation `json:"UnhealthyEvaluations,omitempty"` - TotalCount *int32 `json:"TotalCount,omitempty"` - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - Description *string `json:"Description,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindEvent', 'KindPartitions', 'KindReplicas', 'KindDeployedServicePackages', 'KindDeployedApplications', 'KindServices', 'KindNodes', 'KindApplications', 'KindUpgradeDomainNodes', 'KindUpgradeDomainDeployedApplications', 'KindSystemApplication', 'KindPartition', 'KindReplica', 'KindDeployedServicePackage', 'KindDeployedApplication', 'KindService', 'KindNode', 'KindApplication', 'KindDeltaNodesCheck', 'KindUpgradeDomainDeltaNodesCheck', 'KindApplicationType' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) MarshalJSON() ([]byte, error) { - udnhe.Kind = KindUpgradeDomainNodes - objectMap := make(map[string]interface{}) - if udnhe.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = udnhe.UpgradeDomainName - } - if udnhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = udnhe.UnhealthyEvaluations - } - if udnhe.TotalCount != nil { - objectMap["TotalCount"] = udnhe.TotalCount - } - if udnhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = udnhe.MaxPercentUnhealthyNodes - } - if udnhe.Description != nil { - objectMap["Description"] = udnhe.Description - } - if udnhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = udnhe.AggregatedHealthState - } - if udnhe.Kind != "" { - objectMap["Kind"] = udnhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return &udnhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainDeployedApplicationsHealthEvaluation() (*UpgradeDomainDeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationTypeHealthEvaluation() (*ApplicationTypeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &udnhe, true -} diff --git a/services/servicefabric/1.0.0/servicefabric/nodehealths.go b/services/servicefabric/1.0.0/servicefabric/nodehealths.go deleted file mode 100644 index 76fcf30eb799..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/nodehealths.go +++ /dev/null @@ -1,192 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthsClient is the client for the NodeHealths methods of the Servicefabric service. -type NodeHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodeHealthsClient creates an instance of the NodeHealthsClient client. -func NewNodeHealthsClient(timeout *int32) NodeHealthsClient { - return NewNodeHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodeHealthsClientWithBaseURI creates an instance of the NodeHealthsClient client. -func NewNodeHealthsClientWithBaseURI(baseURI string, timeout *int32) NodeHealthsClient { - return NodeHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get node healths -// Parameters: -// nodeName - the name of the node -// eventsHealthStateFilter - the filter of the events health state -func (client NodeHealthsClient) Get(ctx context.Context, nodeName string, eventsHealthStateFilter string) (result NodeHealth, err error) { - req, err := client.GetPreparer(ctx, nodeName, eventsHealthStateFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodeHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client NodeHealthsClient) GetPreparer(ctx context.Context, nodeName string, eventsHealthStateFilter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(eventsHealthStateFilter) > 0 { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", eventsHealthStateFilter) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client NodeHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client NodeHealthsClient) GetResponder(resp *http.Response) (result NodeHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send send node health -// Parameters: -// nodeName - the name of the node -// nodeHealthReport - the report of the node health -func (client NodeHealthsClient) Send(ctx context.Context, nodeName string, nodeHealthReport NodeHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, nodeName, nodeHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodeHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client NodeHealthsClient) SendPreparer(ctx context.Context, nodeName string, nodeHealthReport NodeHealthReport) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/ReportHealth", pathParameters), - autorest.WithJSON(nodeHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client NodeHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client NodeHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/nodeloadinformations.go b/services/servicefabric/1.0.0/servicefabric/nodeloadinformations.go deleted file mode 100644 index 1ae7e4e41c60..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/nodeloadinformations.go +++ /dev/null @@ -1,114 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadInformationsClient is the client for the NodeLoadInformations methods of the Servicefabric service. -type NodeLoadInformationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodeLoadInformationsClient creates an instance of the NodeLoadInformationsClient client. -func NewNodeLoadInformationsClient(timeout *int32) NodeLoadInformationsClient { - return NewNodeLoadInformationsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodeLoadInformationsClientWithBaseURI creates an instance of the NodeLoadInformationsClient client. -func NewNodeLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) NodeLoadInformationsClient { - return NodeLoadInformationsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get node load informations -// Parameters: -// nodeName - the name of the node -func (client NodeLoadInformationsClient) Get(ctx context.Context, nodeName string) (result NodeLoadInformation, err error) { - req, err := client.GetPreparer(ctx, nodeName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeLoadInformationsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodeLoadInformationsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeLoadInformationsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client NodeLoadInformationsClient) GetPreparer(ctx context.Context, nodeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client NodeLoadInformationsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client NodeLoadInformationsClient) GetResponder(resp *http.Response) (result NodeLoadInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/nodes.go b/services/servicefabric/1.0.0/servicefabric/nodes.go deleted file mode 100644 index b65a367ac326..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/nodes.go +++ /dev/null @@ -1,329 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodesClient is the client for the Nodes methods of the Servicefabric service. -type NodesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodesClient creates an instance of the NodesClient client. -func NewNodesClient(timeout *int32) NodesClient { - return NewNodesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodesClientWithBaseURI creates an instance of the NodesClient client. -func NewNodesClientWithBaseURI(baseURI string, timeout *int32) NodesClient { - return NodesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Disable disable nodes -// Parameters: -// nodeName - the name of the node -// disableNode - the node -func (client NodesClient) Disable(ctx context.Context, nodeName string, disableNode DisableNode) (result String, err error) { - req, err := client.DisablePreparer(ctx, nodeName, disableNode) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Disable", nil, "Failure preparing request") - return - } - - resp, err := client.DisableSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Disable", resp, "Failure sending request") - return - } - - result, err = client.DisableResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Disable", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisablePreparer prepares the Disable request. -func (client NodesClient) DisablePreparer(ctx context.Context, nodeName string, disableNode DisableNode) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Deactivate", pathParameters), - autorest.WithJSON(disableNode), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableSender sends the Disable request. The method will close the -// http.Response Body if it receives an error. -func (client NodesClient) DisableSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableResponder handles the response to the Disable request. The method always -// closes the http.Response Body. -func (client NodesClient) DisableResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Enable enable nodes -// Parameters: -// nodeName - the name of the node -func (client NodesClient) Enable(ctx context.Context, nodeName string) (result String, err error) { - req, err := client.EnablePreparer(ctx, nodeName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Enable", nil, "Failure preparing request") - return - } - - resp, err := client.EnableSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Enable", resp, "Failure sending request") - return - } - - result, err = client.EnableResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Enable", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnablePreparer prepares the Enable request. -func (client NodesClient) EnablePreparer(ctx context.Context, nodeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Activate", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableSender sends the Enable request. The method will close the -// http.Response Body if it receives an error. -func (client NodesClient) EnableSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableResponder handles the response to the Enable request. The method always -// closes the http.Response Body. -func (client NodesClient) EnableResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get nodes -// Parameters: -// nodeName - the name of the node -func (client NodesClient) Get(ctx context.Context, nodeName string) (result Node, err error) { - req, err := client.GetPreparer(ctx, nodeName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client NodesClient) GetPreparer(ctx context.Context, nodeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client NodesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client NodesClient) GetResponder(resp *http.Response) (result Node, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// List list nodes -// Parameters: -// continuationToken - the token of the continuation -func (client NodesClient) List(ctx context.Context, continuationToken string) (result NodeList, err error) { - req, err := client.ListPreparer(ctx, continuationToken) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodesClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListPreparer prepares the List request. -func (client NodesClient) ListPreparer(ctx context.Context, continuationToken string) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - if len(continuationToken) > 0 { - queryParameters["continuation-token"] = autorest.Encode("query", continuationToken) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Nodes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client NodesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client NodesClient) ListResponder(resp *http.Response) (result NodeList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/nodestates.go b/services/servicefabric/1.0.0/servicefabric/nodestates.go deleted file mode 100644 index 46d8780cb2eb..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/nodestates.go +++ /dev/null @@ -1,114 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeStatesClient is the client for the NodeStates methods of the Servicefabric service. -type NodeStatesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodeStatesClient creates an instance of the NodeStatesClient client. -func NewNodeStatesClient(timeout *int32) NodeStatesClient { - return NewNodeStatesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewNodeStatesClientWithBaseURI creates an instance of the NodeStatesClient client. -func NewNodeStatesClientWithBaseURI(baseURI string, timeout *int32) NodeStatesClient { - return NodeStatesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Remove remove node states -// Parameters: -// nodeName - the name of the node -func (client NodeStatesClient) Remove(ctx context.Context, nodeName string) (result String, err error) { - req, err := client.RemovePreparer(ctx, nodeName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeStatesClient", "Remove", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.NodeStatesClient", "Remove", resp, "Failure sending request") - return - } - - result, err = client.RemoveResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.NodeStatesClient", "Remove", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemovePreparer prepares the Remove request. -func (client NodeStatesClient) RemovePreparer(ctx context.Context, nodeName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/RemoveNodeState", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveSender sends the Remove request. The method will close the -// http.Response Body if it receives an error. -func (client NodeStatesClient) RemoveSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveResponder handles the response to the Remove request. The method always -// closes the http.Response Body. -func (client NodeStatesClient) RemoveResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/partitionhealths.go b/services/servicefabric/1.0.0/servicefabric/partitionhealths.go deleted file mode 100644 index 5a7deb893648..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/partitionhealths.go +++ /dev/null @@ -1,196 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthsClient is the client for the PartitionHealths methods of the Servicefabric service. -type PartitionHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionHealthsClient creates an instance of the PartitionHealthsClient client. -func NewPartitionHealthsClient(timeout *int32) PartitionHealthsClient { - return NewPartitionHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionHealthsClientWithBaseURI creates an instance of the PartitionHealthsClient client. -func NewPartitionHealthsClientWithBaseURI(baseURI string, timeout *int32) PartitionHealthsClient { - return PartitionHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get partition healths -// Parameters: -// partitionID - the id of the partition -// eventsHealthStateFilter - the filter of the events health state -// replicasHealthStateFilter - the filter of the replicas health state -func (client PartitionHealthsClient) Get(ctx context.Context, partitionID string, eventsHealthStateFilter string, replicasHealthStateFilter string) (result PartitionHealth, err error) { - req, err := client.GetPreparer(ctx, partitionID, eventsHealthStateFilter, replicasHealthStateFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client PartitionHealthsClient) GetPreparer(ctx context.Context, partitionID string, eventsHealthStateFilter string, replicasHealthStateFilter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(eventsHealthStateFilter) > 0 { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", eventsHealthStateFilter) - } - if len(replicasHealthStateFilter) > 0 { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", replicasHealthStateFilter) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PartitionHealthsClient) GetResponder(resp *http.Response) (result PartitionHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send send partition health -// Parameters: -// partitionID - the id of the partition -// partitionHealthReport - the report of the partition health -func (client PartitionHealthsClient) Send(ctx context.Context, partitionID string, partitionHealthReport PartitionHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, partitionID, partitionHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client PartitionHealthsClient) SendPreparer(ctx context.Context, partitionID string, partitionHealthReport PartitionHealthReport) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ReportHealth", pathParameters), - autorest.WithJSON(partitionHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client PartitionHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/partitionlists.go b/services/servicefabric/1.0.0/servicefabric/partitionlists.go deleted file mode 100644 index ed0bcb6ee167..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/partitionlists.go +++ /dev/null @@ -1,114 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionListsClient is the client for the PartitionLists methods of the Servicefabric service. -type PartitionListsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionListsClient creates an instance of the PartitionListsClient client. -func NewPartitionListsClient(timeout *int32) PartitionListsClient { - return NewPartitionListsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionListsClientWithBaseURI creates an instance of the PartitionListsClient client. -func NewPartitionListsClientWithBaseURI(baseURI string, timeout *int32) PartitionListsClient { - return PartitionListsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Repair repair partition lists -// Parameters: -// serviceName - the name of the service -func (client PartitionListsClient) Repair(ctx context.Context, serviceName string) (result String, err error) { - req, err := client.RepairPreparer(ctx, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionListsClient", "Repair", nil, "Failure preparing request") - return - } - - resp, err := client.RepairSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionListsClient", "Repair", resp, "Failure sending request") - return - } - - result, err = client.RepairResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionListsClient", "Repair", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairPreparer prepares the Repair request. -func (client PartitionListsClient) RepairPreparer(ctx context.Context, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/GetPartitions/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairSender sends the Repair request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionListsClient) RepairSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairResponder handles the response to the Repair request. The method always -// closes the http.Response Body. -func (client PartitionListsClient) RepairResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/partitionloadinformations.go b/services/servicefabric/1.0.0/servicefabric/partitionloadinformations.go deleted file mode 100644 index 94e2bf10d184..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/partitionloadinformations.go +++ /dev/null @@ -1,115 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionLoadInformationsClient is the client for the PartitionLoadInformations methods of the Servicefabric -// service. -type PartitionLoadInformationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionLoadInformationsClient creates an instance of the PartitionLoadInformationsClient client. -func NewPartitionLoadInformationsClient(timeout *int32) PartitionLoadInformationsClient { - return NewPartitionLoadInformationsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionLoadInformationsClientWithBaseURI creates an instance of the PartitionLoadInformationsClient client. -func NewPartitionLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) PartitionLoadInformationsClient { - return PartitionLoadInformationsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get partition load informations -// Parameters: -// partitionID - the id of the partition -func (client PartitionLoadInformationsClient) Get(ctx context.Context, partitionID string) (result PartitionLoadInformation, err error) { - req, err := client.GetPreparer(ctx, partitionID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionLoadInformationsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionLoadInformationsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionLoadInformationsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client PartitionLoadInformationsClient) GetPreparer(ctx context.Context, partitionID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionLoadInformationsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PartitionLoadInformationsClient) GetResponder(resp *http.Response) (result PartitionLoadInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/partitionloads.go b/services/servicefabric/1.0.0/servicefabric/partitionloads.go deleted file mode 100644 index 3e9e59d13555..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/partitionloads.go +++ /dev/null @@ -1,114 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionLoadsClient is the client for the PartitionLoads methods of the Servicefabric service. -type PartitionLoadsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionLoadsClient creates an instance of the PartitionLoadsClient client. -func NewPartitionLoadsClient(timeout *int32) PartitionLoadsClient { - return NewPartitionLoadsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionLoadsClientWithBaseURI creates an instance of the PartitionLoadsClient client. -func NewPartitionLoadsClientWithBaseURI(baseURI string, timeout *int32) PartitionLoadsClient { - return PartitionLoadsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Reset reset partition loads -// Parameters: -// partitionID - the id of the partition -func (client PartitionLoadsClient) Reset(ctx context.Context, partitionID string) (result String, err error) { - req, err := client.ResetPreparer(ctx, partitionID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionLoadsClient", "Reset", nil, "Failure preparing request") - return - } - - resp, err := client.ResetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionLoadsClient", "Reset", resp, "Failure sending request") - return - } - - result, err = client.ResetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionLoadsClient", "Reset", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPreparer prepares the Reset request. -func (client PartitionLoadsClient) ResetPreparer(ctx context.Context, partitionID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ResetLoad", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetSender sends the Reset request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionLoadsClient) ResetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetResponder handles the response to the Reset request. The method always -// closes the http.Response Body. -func (client PartitionLoadsClient) ResetResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/partitions.go b/services/servicefabric/1.0.0/servicefabric/partitions.go deleted file mode 100644 index e259ac9cc264..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/partitions.go +++ /dev/null @@ -1,258 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionsClient is the client for the Partitions methods of the Servicefabric service. -type PartitionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionsClient creates an instance of the PartitionsClient client. -func NewPartitionsClient(timeout *int32) PartitionsClient { - return NewPartitionsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewPartitionsClientWithBaseURI creates an instance of the PartitionsClient client. -func NewPartitionsClientWithBaseURI(baseURI string, timeout *int32) PartitionsClient { - return PartitionsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get partitions -// Parameters: -// serviceName - the name of the service -// partitionID - the id of the partition -func (client PartitionsClient) Get(ctx context.Context, serviceName string, partitionID string) (result Partition, err error) { - req, err := client.GetPreparer(ctx, serviceName, partitionID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client PartitionsClient) GetPreparer(ctx context.Context, serviceName string, partitionID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/GetPartitions/{partitionId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client PartitionsClient) GetResponder(resp *http.Response) (result Partition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// List list partitions -// Parameters: -// serviceName - the name of the service -func (client PartitionsClient) List(ctx context.Context, serviceName string) (result PartitionList, err error) { - req, err := client.ListPreparer(ctx, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListPreparer prepares the List request. -func (client PartitionsClient) ListPreparer(ctx context.Context, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/GetPartitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionsClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client PartitionsClient) ListResponder(resp *http.Response) (result PartitionList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Repair repair partitions -// Parameters: -// partitionID - the id of the partition -func (client PartitionsClient) Repair(ctx context.Context, partitionID string) (result String, err error) { - req, err := client.RepairPreparer(ctx, partitionID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "Repair", nil, "Failure preparing request") - return - } - - resp, err := client.RepairSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "Repair", resp, "Failure sending request") - return - } - - result, err = client.RepairResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.PartitionsClient", "Repair", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairPreparer prepares the Repair request. -func (client PartitionsClient) RepairPreparer(ctx context.Context, partitionID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairSender sends the Repair request. The method will close the -// http.Response Body if it receives an error. -func (client PartitionsClient) RepairSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairResponder handles the response to the Repair request. The method always -// closes the http.Response Body. -func (client PartitionsClient) RepairResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/replicahealths.go b/services/servicefabric/1.0.0/servicefabric/replicahealths.go deleted file mode 100644 index 60c06b7899d2..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/replicahealths.go +++ /dev/null @@ -1,196 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthsClient is the client for the ReplicaHealths methods of the Servicefabric service. -type ReplicaHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewReplicaHealthsClient creates an instance of the ReplicaHealthsClient client. -func NewReplicaHealthsClient(timeout *int32) ReplicaHealthsClient { - return NewReplicaHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewReplicaHealthsClientWithBaseURI creates an instance of the ReplicaHealthsClient client. -func NewReplicaHealthsClientWithBaseURI(baseURI string, timeout *int32) ReplicaHealthsClient { - return ReplicaHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get replica healths -// Parameters: -// partitionID - the id of the partition -// replicaID - the id of the replica -// eventsHealthStateFilter - the filter of the events health state -func (client ReplicaHealthsClient) Get(ctx context.Context, partitionID string, replicaID string, eventsHealthStateFilter string) (result ReplicaHealth, err error) { - req, err := client.GetPreparer(ctx, partitionID, replicaID, eventsHealthStateFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ReplicaHealthsClient) GetPreparer(ctx context.Context, partitionID string, replicaID string, eventsHealthStateFilter string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - "replicaId": autorest.Encode("path", replicaID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(eventsHealthStateFilter) > 0 { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", eventsHealthStateFilter) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ReplicaHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ReplicaHealthsClient) GetResponder(resp *http.Response) (result ReplicaHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send send replica healths -// Parameters: -// partitionID - the id of the partition -// replicaID - the id of the replica -// replicaHealthReport - the report of the replica health -func (client ReplicaHealthsClient) Send(ctx context.Context, partitionID string, replicaID string, replicaHealthReport ReplicaHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, partitionID, replicaID, replicaHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client ReplicaHealthsClient) SendPreparer(ctx context.Context, partitionID string, replicaID string, replicaHealthReport ReplicaHealthReport) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - "replicaId": autorest.Encode("path", replicaID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth", pathParameters), - autorest.WithJSON(replicaHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client ReplicaHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client ReplicaHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/replicaloadinformations.go b/services/servicefabric/1.0.0/servicefabric/replicaloadinformations.go deleted file mode 100644 index 6018c5c02679..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/replicaloadinformations.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaLoadInformationsClient is the client for the ReplicaLoadInformations methods of the Servicefabric service. -type ReplicaLoadInformationsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewReplicaLoadInformationsClient creates an instance of the ReplicaLoadInformationsClient client. -func NewReplicaLoadInformationsClient(timeout *int32) ReplicaLoadInformationsClient { - return NewReplicaLoadInformationsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewReplicaLoadInformationsClientWithBaseURI creates an instance of the ReplicaLoadInformationsClient client. -func NewReplicaLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) ReplicaLoadInformationsClient { - return ReplicaLoadInformationsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get replica load informations -// Parameters: -// partitionID - the id of the partition -// replicaID - the id of the replica -func (client ReplicaLoadInformationsClient) Get(ctx context.Context, partitionID string, replicaID string) (result ReplicaLoadInformation, err error) { - req, err := client.GetPreparer(ctx, partitionID, replicaID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaLoadInformationsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaLoadInformationsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicaLoadInformationsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ReplicaLoadInformationsClient) GetPreparer(ctx context.Context, partitionID string, replicaID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - "replicaId": autorest.Encode("path", replicaID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ReplicaLoadInformationsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ReplicaLoadInformationsClient) GetResponder(resp *http.Response) (result ReplicaLoadInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/replicas.go b/services/servicefabric/1.0.0/servicefabric/replicas.go deleted file mode 100644 index 7e2c6b79abf0..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/replicas.go +++ /dev/null @@ -1,187 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicasClient is the client for the Replicas methods of the Servicefabric service. -type ReplicasClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewReplicasClient creates an instance of the ReplicasClient client. -func NewReplicasClient(timeout *int32) ReplicasClient { - return NewReplicasClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewReplicasClientWithBaseURI creates an instance of the ReplicasClient client. -func NewReplicasClientWithBaseURI(baseURI string, timeout *int32) ReplicasClient { - return ReplicasClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get replicas -// Parameters: -// partitionID - the id of the partition -// replicaID - the id of the replica -func (client ReplicasClient) Get(ctx context.Context, partitionID string, replicaID string) (result Replica, err error) { - req, err := client.GetPreparer(ctx, partitionID, replicaID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicasClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ReplicasClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicasClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ReplicasClient) GetPreparer(ctx context.Context, partitionID string, replicaID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - "replicaId": autorest.Encode("path", replicaID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ReplicasClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ReplicasClient) GetResponder(resp *http.Response) (result Replica, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// List list replicas -// Parameters: -// partitionID - the id of the partition -func (client ReplicasClient) List(ctx context.Context, partitionID string) (result ReplicaList, err error) { - req, err := client.ListPreparer(ctx, partitionID) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicasClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ReplicasClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ReplicasClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListPreparer prepares the List request. -func (client ReplicasClient) ListPreparer(ctx context.Context, partitionID string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": autorest.Encode("path", partitionID), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ReplicasClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ReplicasClient) ListResponder(resp *http.Response) (result ReplicaList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicedescriptions.go b/services/servicefabric/1.0.0/servicefabric/servicedescriptions.go deleted file mode 100644 index d7774cf1702c..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicedescriptions.go +++ /dev/null @@ -1,114 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescriptionsClient is the client for the ServiceDescriptions methods of the Servicefabric service. -type ServiceDescriptionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceDescriptionsClient creates an instance of the ServiceDescriptionsClient client. -func NewServiceDescriptionsClient(timeout *int32) ServiceDescriptionsClient { - return NewServiceDescriptionsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceDescriptionsClientWithBaseURI creates an instance of the ServiceDescriptionsClient client. -func NewServiceDescriptionsClientWithBaseURI(baseURI string, timeout *int32) ServiceDescriptionsClient { - return ServiceDescriptionsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get service descriptions -// Parameters: -// serviceName - the name of the service -func (client ServiceDescriptionsClient) Get(ctx context.Context, serviceName string) (result ServiceDescriptionModel, err error) { - req, err := client.GetPreparer(ctx, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceDescriptionsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceDescriptionsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceDescriptionsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ServiceDescriptionsClient) GetPreparer(ctx context.Context, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/GetDescription", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceDescriptionsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServiceDescriptionsClient) GetResponder(resp *http.Response) (result ServiceDescriptionModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicefromtemplates.go b/services/servicefabric/1.0.0/servicefabric/servicefromtemplates.go deleted file mode 100644 index c4d3bcd5e8c2..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicefromtemplates.go +++ /dev/null @@ -1,117 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceFromTemplatesClient is the client for the ServiceFromTemplates methods of the Servicefabric service. -type ServiceFromTemplatesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceFromTemplatesClient creates an instance of the ServiceFromTemplatesClient client. -func NewServiceFromTemplatesClient(timeout *int32) ServiceFromTemplatesClient { - return NewServiceFromTemplatesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceFromTemplatesClientWithBaseURI creates an instance of the ServiceFromTemplatesClient client. -func NewServiceFromTemplatesClientWithBaseURI(baseURI string, timeout *int32) ServiceFromTemplatesClient { - return ServiceFromTemplatesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Create create service from templates -// Parameters: -// applicationName - the name of the application -// serviceDescriptionTemplate - the template of the service description -func (client ServiceFromTemplatesClient) Create(ctx context.Context, applicationName string, serviceDescriptionTemplate ServiceDescriptionTemplate) (result String, err error) { - req, err := client.CreatePreparer(ctx, applicationName, serviceDescriptionTemplate) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceFromTemplatesClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceFromTemplatesClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceFromTemplatesClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreatePreparer prepares the Create request. -func (client ServiceFromTemplatesClient) CreatePreparer(ctx context.Context, applicationName string, serviceDescriptionTemplate ServiceDescriptionTemplate) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices/$/CreateFromTemplate", pathParameters), - autorest.WithJSON(serviceDescriptionTemplate), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceFromTemplatesClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client ServiceFromTemplatesClient) CreateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicegroupdescriptions.go b/services/servicefabric/1.0.0/servicefabric/servicegroupdescriptions.go deleted file mode 100644 index d5b8b87b87dd..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicegroupdescriptions.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupDescriptionsClient is the client for the ServiceGroupDescriptions methods of the Servicefabric service. -type ServiceGroupDescriptionsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupDescriptionsClient creates an instance of the ServiceGroupDescriptionsClient client. -func NewServiceGroupDescriptionsClient(timeout *int32) ServiceGroupDescriptionsClient { - return NewServiceGroupDescriptionsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupDescriptionsClientWithBaseURI creates an instance of the ServiceGroupDescriptionsClient client. -func NewServiceGroupDescriptionsClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupDescriptionsClient { - return ServiceGroupDescriptionsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get service group descriptions -// Parameters: -// applicationName - the name of the application -// serviceName - the name of the service -func (client ServiceGroupDescriptionsClient) Get(ctx context.Context, applicationName string, serviceName string) (result ServiceGroupDescriptionModel, err error) { - req, err := client.GetPreparer(ctx, applicationName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupDescriptionsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupDescriptionsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupDescriptionsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ServiceGroupDescriptionsClient) GetPreparer(ctx context.Context, applicationName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices/{serviceName}/$/GetServiceGroupDescription", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceGroupDescriptionsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServiceGroupDescriptionsClient) GetResponder(resp *http.Response) (result ServiceGroupDescriptionModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicegroupfromtemplates.go b/services/servicefabric/1.0.0/servicefabric/servicegroupfromtemplates.go deleted file mode 100644 index 643eb4ecabaa..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicegroupfromtemplates.go +++ /dev/null @@ -1,118 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupFromTemplatesClient is the client for the ServiceGroupFromTemplates methods of the Servicefabric -// service. -type ServiceGroupFromTemplatesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupFromTemplatesClient creates an instance of the ServiceGroupFromTemplatesClient client. -func NewServiceGroupFromTemplatesClient(timeout *int32) ServiceGroupFromTemplatesClient { - return NewServiceGroupFromTemplatesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupFromTemplatesClientWithBaseURI creates an instance of the ServiceGroupFromTemplatesClient client. -func NewServiceGroupFromTemplatesClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupFromTemplatesClient { - return ServiceGroupFromTemplatesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Create create service group from templates -// Parameters: -// applicationName - the name of the application -// serviceDescriptionTemplate - the template of the service description -func (client ServiceGroupFromTemplatesClient) Create(ctx context.Context, applicationName string, serviceDescriptionTemplate ServiceDescriptionTemplate) (result String, err error) { - req, err := client.CreatePreparer(ctx, applicationName, serviceDescriptionTemplate) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupFromTemplatesClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupFromTemplatesClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupFromTemplatesClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreatePreparer prepares the Create request. -func (client ServiceGroupFromTemplatesClient) CreatePreparer(ctx context.Context, applicationName string, serviceDescriptionTemplate ServiceDescriptionTemplate) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServiceGroups/$/CreateServiceGroupFromTemplate", pathParameters), - autorest.WithJSON(serviceDescriptionTemplate), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceGroupFromTemplatesClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client ServiceGroupFromTemplatesClient) CreateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicegroupmembers.go b/services/servicefabric/1.0.0/servicefabric/servicegroupmembers.go deleted file mode 100644 index 8cea3bc0a866..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicegroupmembers.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupMembersClient is the client for the ServiceGroupMembers methods of the Servicefabric service. -type ServiceGroupMembersClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupMembersClient creates an instance of the ServiceGroupMembersClient client. -func NewServiceGroupMembersClient(timeout *int32) ServiceGroupMembersClient { - return NewServiceGroupMembersClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupMembersClientWithBaseURI creates an instance of the ServiceGroupMembersClient client. -func NewServiceGroupMembersClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupMembersClient { - return ServiceGroupMembersClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get service group members -// Parameters: -// applicationName - the name of the application -// serviceName - the name of the service -func (client ServiceGroupMembersClient) Get(ctx context.Context, applicationName string, serviceName string) (result ServiceGroupMember, err error) { - req, err := client.GetPreparer(ctx, applicationName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupMembersClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupMembersClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupMembersClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ServiceGroupMembersClient) GetPreparer(ctx context.Context, applicationName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices/{serviceName}/$/GetServiceGroupMembers", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceGroupMembersClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServiceGroupMembersClient) GetResponder(resp *http.Response) (result ServiceGroupMember, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicegroups.go b/services/servicefabric/1.0.0/servicefabric/servicegroups.go deleted file mode 100644 index f717197deb52..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicegroups.go +++ /dev/null @@ -1,266 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceGroupsClient is the client for the ServiceGroups methods of the Servicefabric service. -type ServiceGroupsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupsClient creates an instance of the ServiceGroupsClient client. -func NewServiceGroupsClient(timeout *int32) ServiceGroupsClient { - return NewServiceGroupsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceGroupsClientWithBaseURI creates an instance of the ServiceGroupsClient client. -func NewServiceGroupsClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupsClient { - return ServiceGroupsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Create create service groups -// Parameters: -// applicationName - the name of the service group -// createServiceGroupDescription - the description of the service group -func (client ServiceGroupsClient) Create(ctx context.Context, applicationName string, createServiceGroupDescription BasicCreateServiceGroupDescription) (result String, err error) { - req, err := client.CreatePreparer(ctx, applicationName, createServiceGroupDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreatePreparer prepares the Create request. -func (client ServiceGroupsClient) CreatePreparer(ctx context.Context, applicationName string, createServiceGroupDescription BasicCreateServiceGroupDescription) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices/$/CreateServiceGroup", pathParameters), - autorest.WithJSON(createServiceGroupDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceGroupsClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client ServiceGroupsClient) CreateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Remove remove service groups -// Parameters: -// applicationName - the name of the application -// serviceName - the name of the service -func (client ServiceGroupsClient) Remove(ctx context.Context, applicationName string, serviceName string) (result String, err error) { - req, err := client.RemovePreparer(ctx, applicationName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Remove", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Remove", resp, "Failure sending request") - return - } - - result, err = client.RemoveResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Remove", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemovePreparer prepares the Remove request. -func (client ServiceGroupsClient) RemovePreparer(ctx context.Context, applicationName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServiceGroups/{serviceName}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveSender sends the Remove request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceGroupsClient) RemoveSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveResponder handles the response to the Remove request. The method always -// closes the http.Response Body. -func (client ServiceGroupsClient) RemoveResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Update update service groups -// Parameters: -// applicationName - the name of the application -// serviceName - the name of the service -// updateServiceGroupDescription - the description of the service group update -func (client ServiceGroupsClient) Update(ctx context.Context, applicationName string, serviceName string, updateServiceGroupDescription BasicUpdateServiceGroupDescription) (result String, err error) { - req, err := client.UpdatePreparer(ctx, applicationName, serviceName, updateServiceGroupDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceGroupsClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdatePreparer prepares the Update request. -func (client ServiceGroupsClient) UpdatePreparer(ctx context.Context, applicationName string, serviceName string, updateServiceGroupDescription BasicUpdateServiceGroupDescription) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices/{serviceName}/$/UpdateServiceGroup", pathParameters), - autorest.WithJSON(updateServiceGroupDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceGroupsClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client ServiceGroupsClient) UpdateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicehealths.go b/services/servicefabric/1.0.0/servicefabric/servicehealths.go deleted file mode 100644 index 73cf887c9654..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicehealths.go +++ /dev/null @@ -1,188 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthsClient is the client for the ServiceHealths methods of the Servicefabric service. -type ServiceHealthsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceHealthsClient creates an instance of the ServiceHealthsClient client. -func NewServiceHealthsClient(timeout *int32) ServiceHealthsClient { - return NewServiceHealthsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceHealthsClientWithBaseURI creates an instance of the ServiceHealthsClient client. -func NewServiceHealthsClientWithBaseURI(baseURI string, timeout *int32) ServiceHealthsClient { - return ServiceHealthsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get service healths -// Parameters: -// serviceName - the name of the service -func (client ServiceHealthsClient) Get(ctx context.Context, serviceName string) (result ServiceHealth, err error) { - req, err := client.GetPreparer(ctx, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceHealthsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceHealthsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceHealthsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ServiceHealthsClient) GetPreparer(ctx context.Context, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceHealthsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServiceHealthsClient) GetResponder(resp *http.Response) (result ServiceHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Send send service healths -// Parameters: -// serviceName - the name of the service -// serviceHealthReport - the report of the service health -func (client ServiceHealthsClient) Send(ctx context.Context, serviceName string, serviceHealthReport ServiceHealthReport) (result String, err error) { - req, err := client.SendPreparer(ctx, serviceName, serviceHealthReport) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceHealthsClient", "Send", nil, "Failure preparing request") - return - } - - resp, err := client.SendSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceHealthsClient", "Send", resp, "Failure sending request") - return - } - - result, err = client.SendResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceHealthsClient", "Send", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendPreparer prepares the Send request. -func (client ServiceHealthsClient) SendPreparer(ctx context.Context, serviceName string, serviceHealthReport ServiceHealthReport) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/ReportHealth", pathParameters), - autorest.WithJSON(serviceHealthReport), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendSender sends the Send request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceHealthsClient) SendSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SendResponder handles the response to the Send request. The method always -// closes the http.Response Body. -func (client ServiceHealthsClient) SendResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicemanifests.go b/services/servicefabric/1.0.0/servicefabric/servicemanifests.go deleted file mode 100644 index 6133c5c56609..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicemanifests.go +++ /dev/null @@ -1,118 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceManifestsClient is the client for the ServiceManifests methods of the Servicefabric service. -type ServiceManifestsClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceManifestsClient creates an instance of the ServiceManifestsClient client. -func NewServiceManifestsClient(timeout *int32) ServiceManifestsClient { - return NewServiceManifestsClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceManifestsClientWithBaseURI creates an instance of the ServiceManifestsClient client. -func NewServiceManifestsClientWithBaseURI(baseURI string, timeout *int32) ServiceManifestsClient { - return ServiceManifestsClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get service manifests -// Parameters: -// applicationTypeName - the name of the application type -// applicationTypeVersion - the version of the application type -// serviceManifestName - the name of the service manifest -func (client ServiceManifestsClient) Get(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string) (result ServiceManifest, err error) { - req, err := client.GetPreparer(ctx, applicationTypeName, applicationTypeVersion, serviceManifestName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceManifestsClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceManifestsClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceManifestsClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ServiceManifestsClient) GetPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - "ServiceManifestName": autorest.Encode("query", serviceManifestName), - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceManifestsClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServiceManifestsClient) GetResponder(resp *http.Response) (result ServiceManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/services.go b/services/servicefabric/1.0.0/servicefabric/services.go deleted file mode 100644 index 9216f557fed4..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/services.go +++ /dev/null @@ -1,489 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicesClient is the client for the Services methods of the Servicefabric service. -type ServicesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServicesClient creates an instance of the ServicesClient client. -func NewServicesClient(timeout *int32) ServicesClient { - return NewServicesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServicesClientWithBaseURI creates an instance of the ServicesClient client. -func NewServicesClientWithBaseURI(baseURI string, timeout *int32) ServicesClient { - return ServicesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Create create services -// Parameters: -// applicationName - the name of the application -// createServiceDescription - the description of the service -func (client ServicesClient) Create(ctx context.Context, applicationName string, createServiceDescription BasicCreateServiceDescription) (result String, err error) { - req, err := client.CreatePreparer(ctx, applicationName, createServiceDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Create", nil, "Failure preparing request") - return - } - - resp, err := client.CreateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Create", resp, "Failure sending request") - return - } - - result, err = client.CreateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Create", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreatePreparer prepares the Create request. -func (client ServicesClient) CreatePreparer(ctx context.Context, applicationName string, createServiceDescription BasicCreateServiceDescription) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices/$/Create", pathParameters), - autorest.WithJSON(createServiceDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateSender sends the Create request. The method will close the -// http.Response Body if it receives an error. -func (client ServicesClient) CreateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateResponder handles the response to the Create request. The method always -// closes the http.Response Body. -func (client ServicesClient) CreateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get services -// Parameters: -// applicationName - the name of the application -// serviceName - the name of the service -func (client ServicesClient) Get(ctx context.Context, applicationName string, serviceName string) (result Service, err error) { - req, err := client.GetPreparer(ctx, applicationName, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ServicesClient) GetPreparer(ctx context.Context, applicationName string, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices/{serviceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServicesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServicesClient) GetResponder(resp *http.Response) (result Service, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// List list services -// Parameters: -// applicationName - the name of the application -func (client ServicesClient) List(ctx context.Context, applicationName string) (result ServiceList, err error) { - req, err := client.ListPreparer(ctx, applicationName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "List", nil, "Failure preparing request") - return - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "List", resp, "Failure sending request") - return - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "List", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListPreparer prepares the List request. -func (client ServicesClient) ListPreparer(ctx context.Context, applicationName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationName": applicationName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationName}/$/GetServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ServicesClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ServicesClient) ListResponder(resp *http.Response) (result ServiceList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Remove remove services -// Parameters: -// serviceName - the name of the service -func (client ServicesClient) Remove(ctx context.Context, serviceName string) (result String, err error) { - req, err := client.RemovePreparer(ctx, serviceName) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Remove", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Remove", resp, "Failure sending request") - return - } - - result, err = client.RemoveResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Remove", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemovePreparer prepares the Remove request. -func (client ServicesClient) RemovePreparer(ctx context.Context, serviceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveSender sends the Remove request. The method will close the -// http.Response Body if it receives an error. -func (client ServicesClient) RemoveSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveResponder handles the response to the Remove request. The method always -// closes the http.Response Body. -func (client ServicesClient) RemoveResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Resolve resolve services -// Parameters: -// serviceName - the name of the service -// partitionKeyType - the type of the partition key -// partitionKeyValue - the value of the partition key -// previousRspVersion - the version of the previous rsp -func (client ServicesClient) Resolve(ctx context.Context, serviceName string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string) (result ResolvedServicePartition, err error) { - req, err := client.ResolvePreparer(ctx, serviceName, partitionKeyType, partitionKeyValue, previousRspVersion) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Resolve", nil, "Failure preparing request") - return - } - - resp, err := client.ResolveSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Resolve", resp, "Failure sending request") - return - } - - result, err = client.ResolveResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Resolve", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvePreparer prepares the Resolve request. -func (client ServicesClient) ResolvePreparer(ctx context.Context, serviceName string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if partitionKeyType != nil { - queryParameters["PartitionKeyType"] = autorest.Encode("query", *partitionKeyType) - } - if len(partitionKeyValue) > 0 { - queryParameters["PartitionKeyValue"] = autorest.Encode("query", partitionKeyValue) - } - if len(previousRspVersion) > 0 { - queryParameters["PreviousRspVersion"] = autorest.Encode("query", previousRspVersion) - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/ResolvePartition", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveSender sends the Resolve request. The method will close the -// http.Response Body if it receives an error. -func (client ServicesClient) ResolveSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveResponder handles the response to the Resolve request. The method always -// closes the http.Response Body. -func (client ServicesClient) ResolveResponder(resp *http.Response) (result ResolvedServicePartition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Update update services -// Parameters: -// serviceName - the name of the service -// updateServiceDescription - the description of the service update -func (client ServicesClient) Update(ctx context.Context, serviceName string, updateServiceDescription BasicUpdateServiceDescription) (result String, err error) { - req, err := client.UpdatePreparer(ctx, serviceName, updateServiceDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Update", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Update", resp, "Failure sending request") - return - } - - result, err = client.UpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServicesClient", "Update", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdatePreparer prepares the Update request. -func (client ServicesClient) UpdatePreparer(ctx context.Context, serviceName string, updateServiceDescription BasicUpdateServiceDescription) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceName": serviceName, - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceName}/$/Update", pathParameters), - autorest.WithJSON(updateServiceDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateSender sends the Update request. The method will close the -// http.Response Body if it receives an error. -func (client ServicesClient) UpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateResponder handles the response to the Update request. The method always -// closes the http.Response Body. -func (client ServicesClient) UpdateResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/servicetypes.go b/services/servicefabric/1.0.0/servicefabric/servicetypes.go deleted file mode 100644 index 5f2150d7718a..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/servicetypes.go +++ /dev/null @@ -1,116 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypesClient is the client for the ServiceTypes methods of the Servicefabric service. -type ServiceTypesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceTypesClient creates an instance of the ServiceTypesClient client. -func NewServiceTypesClient(timeout *int32) ServiceTypesClient { - return NewServiceTypesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewServiceTypesClientWithBaseURI creates an instance of the ServiceTypesClient client. -func NewServiceTypesClientWithBaseURI(baseURI string, timeout *int32) ServiceTypesClient { - return ServiceTypesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get service types -// Parameters: -// applicationTypeName - the name of the application type -// applicationTypeVersion - the version of the application type -func (client ServiceTypesClient) Get(ctx context.Context, applicationTypeName string, applicationTypeVersion string) (result ListServiceType, err error) { - req, err := client.GetPreparer(ctx, applicationTypeName, applicationTypeVersion) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceTypesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.ServiceTypesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.ServiceTypesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client ServiceTypesClient) GetPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ServiceTypesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ServiceTypesClient) GetResponder(resp *http.Response) (result ListServiceType, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/upgradeprogresses.go b/services/servicefabric/1.0.0/servicefabric/upgradeprogresses.go deleted file mode 100644 index f49ad96c8218..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/upgradeprogresses.go +++ /dev/null @@ -1,108 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "net/http" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeProgressesClient is the client for the UpgradeProgresses methods of the Servicefabric service. -type UpgradeProgressesClient struct { - BaseClient -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewUpgradeProgressesClient creates an instance of the UpgradeProgressesClient client. -func NewUpgradeProgressesClient(timeout *int32) UpgradeProgressesClient { - return NewUpgradeProgressesClientWithBaseURI(DefaultBaseURI, timeout) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewUpgradeProgressesClientWithBaseURI creates an instance of the UpgradeProgressesClient client. -func NewUpgradeProgressesClientWithBaseURI(baseURI string, timeout *int32) UpgradeProgressesClient { - return UpgradeProgressesClient{NewWithBaseURI(baseURI, timeout)} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Get get upgrade progresses -func (client UpgradeProgressesClient) Get(ctx context.Context) (result ClusterUpgradeProgress, err error) { - req, err := client.GetPreparer(ctx) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.UpgradeProgressesClient", "Get", nil, "Failure preparing request") - return - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.UpgradeProgressesClient", "Get", resp, "Failure sending request") - return - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.UpgradeProgressesClient", "Get", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPreparer prepares the Get request. -func (client UpgradeProgressesClient) GetPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "1.0.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if client.Timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *client.Timeout) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetUpgradeProgress"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client UpgradeProgressesClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client UpgradeProgressesClient) GetResponder(resp *http.Response) (result ClusterUpgradeProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} diff --git a/services/servicefabric/1.0.0/servicefabric/version.go b/services/servicefabric/1.0.0/servicefabric/version.go deleted file mode 100644 index 1f4865f98511..000000000000 --- a/services/servicefabric/1.0.0/servicefabric/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package servicefabric - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " servicefabric/1.0.0" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/servicefabric/5.6/servicefabric/client.go b/services/servicefabric/5.6/servicefabric/client.go deleted file mode 100644 index 1ec7c93ceec2..000000000000 --- a/services/servicefabric/5.6/servicefabric/client.go +++ /dev/null @@ -1,11213 +0,0 @@ -// Package servicefabric implements the Azure ARM Servicefabric service API version 5.6.*. -// -// Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services. -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/satori/go.uuid" - "net/http" -) - -const ( - // DefaultBaseURI is the default URI used for the service Servicefabric - DefaultBaseURI = "http://localhost:19080" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BaseClient is the base client for Servicefabric. -type BaseClient struct { - autorest.Client - BaseURI string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// New creates an instance of the BaseClient client. -func New() BaseClient { - return NewWithBaseURI(DefaultBaseURI) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - } -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperation the following is a list of APIs that start fault operations that may be cancelled using -// CancelOperation - -// - StartDataLoss -// - StartQuorumLoss -// - StartPartitionRestart -// - StartNodeTransition -// -// If force is false, then the specified user-induced operation will be gracefully stopped and cleaned up. If force is -// true, the command will be aborted, and some internal state -// may be left behind. Specifying force as true should be used with care. Calling this API with force set to true is -// not allowed until this API has already -// been called on the same test command with force set to false first, or unless the test command already has an -// OperationState of OperationState.RollingBack. -// Clarification: OperationState.RollingBack means that the system will/is be cleaning up internal system state caused -// by executing the command. It will not restore data if the -// test command was to cause data loss. For example, if you call StartDataLoss then call this API, the system will -// only clean up internal state from running the command. -// It will not restore the target partition's data, if the command progressed far enough to cause data loss. -// -// Important note: if this API is invoked with force==true, internal state may be left behind. -// Parameters: -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// force - indicates whether to gracefully rollback and clean up internal system state modified by executing -// the user-induced operation. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.UUID, force bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CancelOperation", err.Error()) - } - - req, err := client.CancelOperationPreparer(ctx, operationID, force, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", nil, "Failure preparing request") - return - } - - resp, err := client.CancelOperationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure sending request") - return - } - - result, err = client.CancelOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationPreparer prepares the CancelOperation request. -func (client BaseClient) CancelOperationPreparer(ctx context.Context, operationID uuid.UUID, force bool, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Force": autorest.Encode("query", force), - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Faults/$/Cancel"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationSender sends the CancelOperation request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CancelOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationResponder handles the response to the CancelOperation request. The method always -// closes the http.Response Body. -func (client BaseClient) CancelOperationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContent copies the image store content from the source image store relative path to the destination -// image store relative path. -// Parameters: -// imageStoreCopyDescription - describes the copy description for the image store. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCopyDescription ImageStoreCopyDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: imageStoreCopyDescription, - Constraints: []validation.Constraint{{Target: "imageStoreCopyDescription.RemoteSource", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "imageStoreCopyDescription.RemoteDestination", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CopyImageStoreContent", err.Error()) - } - - req, err := client.CopyImageStoreContentPreparer(ctx, imageStoreCopyDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.CopyImageStoreContentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.CopyImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentPreparer prepares the CopyImageStoreContent request. -func (client BaseClient) CopyImageStoreContentPreparer(ctx context.Context, imageStoreCopyDescription ImageStoreCopyDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore/$/Copy"), - autorest.WithJSON(imageStoreCopyDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentSender sends the CopyImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CopyImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentResponder handles the response to the CopyImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) CopyImageStoreContentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplication creates a Service Fabric application using the specified description. -// Parameters: -// applicationDescription - describes the application to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateApplication(ctx context.Context, applicationDescription ApplicationDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationDescription, - Constraints: []validation.Constraint{{Target: "applicationDescription.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.TypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.TypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.ApplicationCapacity", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MinimumNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MinimumNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - {Target: "applicationDescription.ApplicationCapacity.MaximumNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MaximumNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateApplication", err.Error()) - } - - req, err := client.CreateApplicationPreparer(ctx, applicationDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", nil, "Failure preparing request") - return - } - - resp, err := client.CreateApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure sending request") - return - } - - result, err = client.CreateApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationPreparer prepares the CreateApplication request. -func (client BaseClient) CreateApplicationPreparer(ctx context.Context, applicationDescription ApplicationDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications/$/Create"), - autorest.WithJSON(applicationDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationSender sends the CreateApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationResponder handles the response to the CreateApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeApplication creates a Service Fabric compose application. -// Parameters: -// createComposeApplicationDescription - describes the compose application that needs to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateComposeApplication(ctx context.Context, createComposeApplicationDescription CreateComposeApplicationDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: createComposeApplicationDescription, - Constraints: []validation.Constraint{{Target: "createComposeApplicationDescription.ApplicationName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "createComposeApplicationDescription.ComposeFileContent", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateComposeApplication", err.Error()) - } - - req, err := client.CreateComposeApplicationPreparer(ctx, createComposeApplicationDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeApplication", nil, "Failure preparing request") - return - } - - resp, err := client.CreateComposeApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeApplication", resp, "Failure sending request") - return - } - - result, err = client.CreateComposeApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeApplicationPreparer prepares the CreateComposeApplication request. -func (client BaseClient) CreateComposeApplicationPreparer(ctx context.Context, createComposeApplicationDescription CreateComposeApplicationDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "4.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ComposeDeployments/$/Create"), - autorest.WithJSON(createComposeApplicationDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeApplicationSender sends the CreateComposeApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateComposeApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeApplicationResponder handles the response to the CreateComposeApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateComposeApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateService creates the specified service. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// serviceDescription - the configuration for the service. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateService(ctx context.Context, applicationID string, serviceDescription BasicServiceDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceDescription, - Constraints: []validation.Constraint{{Target: "serviceDescription.ServiceName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceDescription.ServiceTypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceDescription.PartitionDescription", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateService", err.Error()) - } - - req, err := client.CreateServicePreparer(ctx, applicationID, serviceDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", nil, "Failure preparing request") - return - } - - resp, err := client.CreateServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure sending request") - return - } - - result, err = client.CreateServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServicePreparer prepares the CreateService request. -func (client BaseClient) CreateServicePreparer(ctx context.Context, applicationID string, serviceDescription BasicServiceDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/$/Create", pathParameters), - autorest.WithJSON(serviceDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceSender sends the CreateService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceResponder handles the response to the CreateService request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplate creates a Service Fabric service from the service template defined in the application -// manifest. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// serviceFromTemplateDescription - describes the service that needs to be created from the template defined in -// the application manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicationID string, serviceFromTemplateDescription ServiceFromTemplateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceFromTemplateDescription, - Constraints: []validation.Constraint{{Target: "serviceFromTemplateDescription.ApplicationName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceFromTemplateDescription.ServiceName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceFromTemplateDescription.ServiceTypeName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateServiceFromTemplate", err.Error()) - } - - req, err := client.CreateServiceFromTemplatePreparer(ctx, applicationID, serviceFromTemplateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateServiceFromTemplateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure sending request") - return - } - - result, err = client.CreateServiceFromTemplateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplatePreparer prepares the CreateServiceFromTemplate request. -func (client BaseClient) CreateServiceFromTemplatePreparer(ctx context.Context, applicationID string, serviceFromTemplateDescription ServiceFromTemplateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate", pathParameters), - autorest.WithJSON(serviceFromTemplateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplateSender sends the CreateServiceFromTemplate request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateServiceFromTemplateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplateResponder handles the response to the CreateServiceFromTemplate request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateServiceFromTemplateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplication deletes an existing Service Fabric application. An application must be created before it can be -// deleted. Deleting an application will delete all services that are part of that application. By default Service -// Fabric will try to close service replicas in a graceful manner and then delete the service. However if service is -// having issues closing the replica gracefully, the delete operation may take a long time or get stuck. Use the -// optional ForceRemove flag to skip the graceful close sequence and forcefully delete the application and all of the -// its services. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteApplication(ctx context.Context, applicationID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteApplication", err.Error()) - } - - req, err := client.DeleteApplicationPreparer(ctx, applicationID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure sending request") - return - } - - result, err = client.DeleteApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationPreparer prepares the DeleteApplication request. -func (client BaseClient) DeleteApplicationPreparer(ctx context.Context, applicationID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationSender sends the DeleteApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationResponder handles the response to the DeleteApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContent deletes existing image store content being found within the given image store relative path. -// This can be used to delete uploaded application packages once they are provisioned. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPath string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteImageStoreContent", err.Error()) - } - - req, err := client.DeleteImageStoreContentPreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteImageStoreContentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.DeleteImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentPreparer prepares the DeleteImageStoreContent request. -func (client BaseClient) DeleteImageStoreContentPreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentSender sends the DeleteImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentResponder handles the response to the DeleteImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteImageStoreContentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteService deletes an existing Service Fabric service. A service must be created before it can be deleted. By -// default Service Fabric will try to close service replicas in a graceful manner and then delete the service. However -// if service is having issues closing the replica gracefully, the delete operation may take a long time or get stuck. -// Use the optional ForceRemove flag to skip the graceful close sequence and forcefully delete the service. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteService(ctx context.Context, serviceID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteService", err.Error()) - } - - req, err := client.DeleteServicePreparer(ctx, serviceID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure sending request") - return - } - - result, err = client.DeleteServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServicePreparer prepares the DeleteService request. -func (client BaseClient) DeleteServicePreparer(ctx context.Context, serviceID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServiceSender sends the DeleteService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServiceResponder handles the response to the DeleteService request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNode downloads packages associated with specified service manifest to image cache on -// specified node. -// Parameters: -// nodeName - the name of the node. -// deployServicePackageToNodeDescription - describes information for deploying a service package to a Service -// Fabric node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeployedServicePackageToNode(ctx context.Context, nodeName string, deployServicePackageToNodeDescription DeployServicePackageToNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: deployServicePackageToNodeDescription, - Constraints: []validation.Constraint{{Target: "deployServicePackageToNodeDescription.ServiceManifestName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.ApplicationTypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.ApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.NodeName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeployedServicePackageToNode", err.Error()) - } - - req, err := client.DeployedServicePackageToNodePreparer(ctx, nodeName, deployServicePackageToNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", nil, "Failure preparing request") - return - } - - resp, err := client.DeployedServicePackageToNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", resp, "Failure sending request") - return - } - - result, err = client.DeployedServicePackageToNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodePreparer prepares the DeployedServicePackageToNode request. -func (client BaseClient) DeployedServicePackageToNodePreparer(ctx context.Context, nodeName string, deployServicePackageToNodeDescription DeployServicePackageToNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/DeployServicePackage", pathParameters), - autorest.WithJSON(deployServicePackageToNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodeSender sends the DeployedServicePackageToNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeployedServicePackageToNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodeResponder handles the response to the DeployedServicePackageToNode request. The method always -// closes the http.Response Body. -func (client BaseClient) DeployedServicePackageToNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNode deactivate a Service Fabric cluster node with the specified deactivation intent. Once the deactivation -// is in progress, the deactivation intent can be increased, but not decreased (for example, a node which is was -// deactivated with the Pause intent can be deactivated further with Restart, but not the other way around. Nodes may -// be reactivated using the Activate a node operation any time after they are deactivated. If the deactivation is not -// complete this will cancel the deactivation. A node which goes down and comes back up while deactivated will still -// need to be reactivated before services will be placed on that node. -// Parameters: -// nodeName - the name of the node. -// deactivationIntentDescription - describes the intent or reason for deactivating the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deactivationIntentDescription DeactivationIntentDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DisableNode", err.Error()) - } - - req, err := client.DisableNodePreparer(ctx, nodeName, deactivationIntentDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", nil, "Failure preparing request") - return - } - - resp, err := client.DisableNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure sending request") - return - } - - result, err = client.DisableNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodePreparer prepares the DisableNode request. -func (client BaseClient) DisableNodePreparer(ctx context.Context, nodeName string, deactivationIntentDescription DeactivationIntentDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Deactivate", pathParameters), - autorest.WithJSON(deactivationIntentDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodeSender sends the DisableNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DisableNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodeResponder handles the response to the DisableNode request. The method always -// closes the http.Response Body. -func (client BaseClient) DisableNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNode activates a Service Fabric cluster node which is currently deactivated. Once activated, the node will -// again become a viable target for placing new replicas, and any deactivated replicas remaining on the node will be -// reactivated. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "EnableNode", err.Error()) - } - - req, err := client.EnableNodePreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", nil, "Failure preparing request") - return - } - - resp, err := client.EnableNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure sending request") - return - } - - result, err = client.EnableNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodePreparer prepares the EnableNode request. -func (client BaseClient) EnableNodePreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Activate", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodeSender sends the EnableNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) EnableNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodeResponder handles the response to the EnableNode request. The method always -// closes the http.Response Body. -func (client BaseClient) EnableNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadata gets the Azure Active Directory metadata used for secured connection to cluster. -// This API is not supposed to be called separately. It provides information needed to set up an Azure Active Directory -// secured connection with a Service Fabric cluster. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (result AadMetadataObject, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetAadMetadata", err.Error()) - } - - req, err := client.GetAadMetadataPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", nil, "Failure preparing request") - return - } - - resp, err := client.GetAadMetadataSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure sending request") - return - } - - result, err = client.GetAadMetadataResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataPreparer prepares the GetAadMetadata request. -func (client BaseClient) GetAadMetadataPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "1.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetAadMetadata"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataSender sends the GetAadMetadata request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetAadMetadataSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataResponder handles the response to the GetAadMetadata request. The method always -// closes the http.Response Body. -func (client BaseClient) GetAadMetadataResponder(resp *http.Response) (result AadMetadataObject, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealth returns the heath state of the service fabric application. The response reports either Ok, -// Error or Warning health state. If the entity is not found in the helath store, it will return Error. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedApplicationsHealthStateFilter - allows filtering of the deployed applications health state objects -// returned in the result of application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. Only -// deployed applications that match the filter will be returned.\ -// All deployed applications are used to evaluate the aggregated health state. If not specified, all entries -// are returned. -// The state values are flag based enumeration, so the value could be a combination of these value obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of deployed applications with HealthState value of -// OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// servicesHealthStateFilter - allows filtering of the services health state objects returned in the result of -// services health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only services that match the filter are returned. All services are used to evaluate the aggregated health -// state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of services -// with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn�t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, timeout *int64) (result ApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationHealth", err.Error()) - } - - req, err := client.GetApplicationHealthPreparer(ctx, applicationID, eventsHealthStateFilter, deployedApplicationsHealthStateFilter, servicesHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthPreparer prepares the GetApplicationHealth request. -func (client BaseClient) GetApplicationHealthPreparer(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedApplicationsHealthStateFilter != nil { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", *deployedApplicationsHealthStateFilter) - } else { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if servicesHealthStateFilter != nil { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", *servicesHealthStateFilter) - } else { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthSender sends the GetApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthResponder handles the response to the GetApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationHealthResponder(resp *http.Response) (result ApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicy gets the health of a Service Fabric application. Use EventsHealthStateFilter to -// filter the collection of health events reported on the node based on the health state. Use ClusterHealthPolicies to -// override the health policies used to evaluate the health. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedApplicationsHealthStateFilter - allows filtering of the deployed applications health state objects -// returned in the result of application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. Only -// deployed applications that match the filter will be returned.\ -// All deployed applications are used to evaluate the aggregated health state. If not specified, all entries -// are returned. -// The state values are flag based enumeration, so the value could be a combination of these value obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of deployed applications with HealthState value of -// OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// servicesHealthStateFilter - allows filtering of the services health state objects returned in the result of -// services health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only services that match the filter are returned. All services are used to evaluate the aggregated health -// state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of services -// with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn�t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result ApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", err.Error()) - } - - req, err := client.GetApplicationHealthUsingPolicyPreparer(ctx, applicationID, eventsHealthStateFilter, deployedApplicationsHealthStateFilter, servicesHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicyPreparer prepares the GetApplicationHealthUsingPolicy request. -func (client BaseClient) GetApplicationHealthUsingPolicyPreparer(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedApplicationsHealthStateFilter != nil { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", *deployedApplicationsHealthStateFilter) - } else { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if servicesHealthStateFilter != nil { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", *servicesHealthStateFilter) - } else { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicySender sends the GetApplicationHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicyResponder handles the response to the GetApplicationHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationHealthUsingPolicyResponder(resp *http.Response) (result ApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfo returns the information about the application that was created or in the process of being created -// in the Service Fabric cluster and whose name matches the one specified as the parameter. The response includes the -// name, type, status, parameters and other details about the application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID string, excludeApplicationParameters *bool, timeout *int64) (result ApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationInfo", err.Error()) - } - - req, err := client.GetApplicationInfoPreparer(ctx, applicationID, excludeApplicationParameters, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoPreparer prepares the GetApplicationInfo request. -func (client BaseClient) GetApplicationInfoPreparer(ctx context.Context, applicationID string, excludeApplicationParameters *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoSender sends the GetApplicationInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoResponder handles the response to the GetApplicationInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationInfoResponder(resp *http.Response) (result ApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoList gets the information about the applications that were created or in the process of being -// created in the Service Fabric cluster and match filters specified as the parameter. The response includes the name, -// type, status, parameters and other details about the application. If the applications do not fit in a page, one page -// of results is returned as well as a continuation token which can be used to get the next page. -// Parameters: -// applicationTypeName - the application type name used to filter the applications to query for. This value -// should not contain the application type version. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationInfoList(ctx context.Context, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, timeout *int64) (result PagedApplicationInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationInfoList", err.Error()) - } - - req, err := client.GetApplicationInfoListPreparer(ctx, applicationTypeName, excludeApplicationParameters, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListPreparer prepares the GetApplicationInfoList request. -func (client BaseClient) GetApplicationInfoListPreparer(ctx context.Context, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(applicationTypeName) > 0 { - queryParameters["ApplicationTypeName"] = autorest.Encode("query", applicationTypeName) - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListSender sends the GetApplicationInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListResponder handles the response to the GetApplicationInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationInfoListResponder(resp *http.Response) (result PagedApplicationInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifest gets the manifest describing an application type. The response contains the application -// manifest XML as a string. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationManifest(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (result ApplicationTypeManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationManifest", err.Error()) - } - - req, err := client.GetApplicationManifestPreparer(ctx, applicationTypeName, applicationTypeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestPreparer prepares the GetApplicationManifest request. -func (client BaseClient) GetApplicationManifestPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestSender sends the GetApplicationManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestResponder handles the response to the GetApplicationManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationManifestResponder(resp *http.Response) (result ApplicationTypeManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfo the GetApplicationName endpoint returns the name of the application for the specified -// service. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID string, timeout *int64) (result ApplicationNameInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationNameInfo", err.Error()) - } - - req, err := client.GetApplicationNameInfoPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationNameInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationNameInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoPreparer prepares the GetApplicationNameInfo request. -func (client BaseClient) GetApplicationNameInfoPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetApplicationName", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoSender sends the GetApplicationNameInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationNameInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoResponder handles the response to the GetApplicationNameInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationNameInfoResponder(resp *http.Response) (result ApplicationNameInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoList returns the information about the application types that are provisioned or in the -// process of being provisioned in the Service Fabric cluster. Each version of an application type is returned as one -// application type. The response includes the name, version, status and other details about the application type. This -// is a paged query, meaning that if not all of the application types fit in a page, one page of results is returned as -// well as a continuation token which can be used to get the next page. For example, if there are 10 application types -// but a page only fits the first 3 application types, or if max results is set to 3, then 3 is returned. To access the -// rest of the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty -// continuation token is returned if there are no subsequent pages. -// Parameters: -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (result PagedApplicationTypeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationTypeInfoList", err.Error()) - } - - req, err := client.GetApplicationTypeInfoListPreparer(ctx, excludeApplicationParameters, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListPreparer prepares the GetApplicationTypeInfoList request. -func (client BaseClient) GetApplicationTypeInfoListPreparer(ctx context.Context, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - const APIVersion = "4.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListSender sends the GetApplicationTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListResponder handles the response to the GetApplicationTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationTypeInfoListResponder(resp *http.Response) (result PagedApplicationTypeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByName returns the information about the application types that are provisioned or in the -// process of being provisioned in the Service Fabric cluster. These results are of application types whose name match -// exactly the one specified as the parameter, and which comply with the given query parameters. All versions of the -// application type matching the application type name are returned, with each version returned as one application -// type. The response includes the name, version, status and other details about the application type. This is a paged -// query, meaning that if not all of the application types fit in a page, one page of results is returned as well as a -// continuation token which can be used to get the next page. For example, if there are 10 application types but a page -// only fits the first 3 application types, or if max results is set to 3, then 3 is returned. To access the rest of -// the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty -// continuation token is returned if there are no subsequent pages. -// Parameters: -// applicationTypeName - the name of the application type. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (result PagedApplicationTypeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationTypeInfoListByName", err.Error()) - } - - req, err := client.GetApplicationTypeInfoListByNamePreparer(ctx, applicationTypeName, excludeApplicationParameters, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationTypeInfoListByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationTypeInfoListByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNamePreparer prepares the GetApplicationTypeInfoListByName request. -func (client BaseClient) GetApplicationTypeInfoListByNamePreparer(ctx context.Context, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "4.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNameSender sends the GetApplicationTypeInfoListByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationTypeInfoListByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNameResponder handles the response to the GetApplicationTypeInfoListByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationTypeInfoListByNameResponder(resp *http.Response) (result PagedApplicationTypeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgrade returns information about the state of the latest application upgrade along with details to -// aid debugging application health issues. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationID string, timeout *int64) (result ApplicationUpgradeProgressInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationUpgrade", err.Error()) - } - - req, err := client.GetApplicationUpgradePreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationUpgradeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradePreparer prepares the GetApplicationUpgrade request. -func (client BaseClient) GetApplicationUpgradePreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetUpgradeProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradeSender sends the GetApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradeResponder handles the response to the GetApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationUpgradeResponder(resp *http.Response) (result ApplicationUpgradeProgressInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReport you can either specify the ContinuationToken to get the next segment of the Chaos report or you can -// specify the time-range -// through StartTimeUtc and EndTimeUtc, but you cannot specify both the ContinuationToken and the time-range in the -// same call. -// When there are more than 100 Chaos events, the Chaos report is returned in segments where a segment contains no more -// than 100 Chaos events. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// startTimeUtc - the count of ticks representing the start time of the time range for which a Chaos report is -// to be generated. Please consult [DateTime.Ticks -// Property](https://msdn.microsoft.com/en-us/library/system.datetime.ticks%28v=vs.110%29) for details about -// tick. -// endTimeUtc - the count of ticks representing the end time of the time range for which a Chaos report is to -// be generated. Please consult [DateTime.Ticks -// Property](https://msdn.microsoft.com/en-us/library/system.datetime.ticks%28v=vs.110%29) for details about -// tick. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetChaosReport(ctx context.Context, continuationToken string, startTimeUtc string, endTimeUtc string, timeout *int64) (result ChaosReport, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetChaosReport", err.Error()) - } - - req, err := client.GetChaosReportPreparer(ctx, continuationToken, startTimeUtc, endTimeUtc, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", nil, "Failure preparing request") - return - } - - resp, err := client.GetChaosReportSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", resp, "Failure sending request") - return - } - - result, err = client.GetChaosReportResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportPreparer prepares the GetChaosReport request. -func (client BaseClient) GetChaosReportPreparer(ctx context.Context, continuationToken string, startTimeUtc string, endTimeUtc string, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if len(startTimeUtc) > 0 { - queryParameters["StartTimeUtc"] = autorest.Encode("query", startTimeUtc) - } - if len(endTimeUtc) > 0 { - queryParameters["EndTimeUtc"] = autorest.Encode("query", endTimeUtc) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Report"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportSender sends the GetChaosReport request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetChaosReportSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportResponder handles the response to the GetChaosReport request. The method always -// closes the http.Response Body. -func (client BaseClient) GetChaosReportResponder(resp *http.Response) (result ChaosReport, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealth gets the health of a Service Fabric cluster. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes and -// applications returned based on their aggregated health state. -// Parameters: -// nodesHealthStateFilter - allows filtering of the node health state objects returned in the result of cluster -// health query -// based on their health state. The possible values for this parameter include integer value of one of the -// following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the -// aggregated health state. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of nodes with HealthState value of OK (2) and -// Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationsHealthStateFilter - allows filtering of the application health state objects returned in the -// result of cluster health -// query based on their health state. -// The possible values for this parameter include integer value obtained from members or bitwise operations -// on members of HealthStateFilter enumeration. Only applications that match the filter are returned. -// All applications are used to evaluate the aggregated health state. If not specified, all entries are -// returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of applications with HealthState value of OK (2) -// and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, timeout *int64) (result ClusterHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealth", err.Error()) - } - - req, err := client.GetClusterHealthPreparer(ctx, nodesHealthStateFilter, applicationsHealthStateFilter, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthPreparer prepares the GetClusterHealth request. -func (client BaseClient) GetClusterHealthPreparer(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if nodesHealthStateFilter != nil { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", *nodesHealthStateFilter) - } else { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", 0) - } - if applicationsHealthStateFilter != nil { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", *applicationsHealthStateFilter) - } else { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealth"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthSender sends the GetClusterHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthResponder handles the response to the GetClusterHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthResponder(resp *http.Response) (result ClusterHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunk gets the health of a Service Fabric cluster using health chunks. Includes the aggregated -// health state of the cluster, but none of the cluster entities. -// To expand the cluster health and get the health state of all or some of the entities, use the POST URI and specify -// the cluster health chunk query description. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int64) (result ClusterHealthChunk, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthChunk", err.Error()) - } - - req, err := client.GetClusterHealthChunkPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthChunkSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthChunkResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkPreparer prepares the GetClusterHealthChunk request. -func (client BaseClient) GetClusterHealthChunkPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealthChunk"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkSender sends the GetClusterHealthChunk request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthChunkSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkResponder handles the response to the GetClusterHealthChunk request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthChunkResponder(resp *http.Response) (result ClusterHealthChunk, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFilters gets the health of a Service Fabric cluster using health chunks. -// The health evaluation is done based on the input cluster health chunk query description. -// The query description allows users to specify health policies for evaluating the cluster and its children. -// Users can specify very flexible filters to select which cluster entities to return. The selection can be done based -// on the entities health state and based on the hierarchy. -// The query can return multi-level children of the entities based on the specified filters. For example, it can return -// one application with a specified name, and for this application, return -// only services that are in Error or Warning, and all partitions and replicas for one of these services. -// Parameters: -// clusterHealthChunkQueryDescription - describes the cluster and application health policies used to evaluate -// the cluster health and the filters to select which cluster entities to be returned. -// If the cluster health policy is present, it is used to evaluate the cluster events and the cluster nodes. If -// not present, the health evaluation uses the cluster health policy defined in the cluster manifest or the -// default cluster health policy. -// By default, each application is evaluated using its specific application health policy, defined in the -// application manifest, or the default health policy, if no policy is defined in manifest. -// If the application health policy map is specified, and it has an entry for an application, the specified -// application health policy -// is used to evaluate the application health. -// Users can specify very flexible filters to select which cluster entities to include in response. The -// selection can be done based on the entities health state and based on the hierarchy. -// The query can return multi-level children of the entities based on the specified filters. For example, it -// can return one application with a specified name, and for this application, return -// only services that are in Error or Warning, and all partitions and replicas for one of these services. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx context.Context, clusterHealthChunkQueryDescription *ClusterHealthChunkQueryDescription, timeout *int64) (result ClusterHealthChunk, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", err.Error()) - } - - req, err := client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer(ctx, clusterHealthChunkQueryDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer prepares the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer(ctx context.Context, clusterHealthChunkQueryDescription *ClusterHealthChunkQueryDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealthChunk"), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthChunkQueryDescription != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthChunkQueryDescription)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender sends the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder handles the response to the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp *http.Response) (result ClusterHealthChunk, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicy gets the health of a Service Fabric cluster. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes and -// applications returned based on their aggregated health state. -// Use ClusterHealthPolicies to override the health policies used to evaluate the health. -// Parameters: -// nodesHealthStateFilter - allows filtering of the node health state objects returned in the result of cluster -// health query -// based on their health state. The possible values for this parameter include integer value of one of the -// following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the -// aggregated health state. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of nodes with HealthState value of OK (2) and -// Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationsHealthStateFilter - allows filtering of the application health state objects returned in the -// result of cluster health -// query based on their health state. -// The possible values for this parameter include integer value obtained from members or bitwise operations -// on members of HealthStateFilter enumeration. Only applications that match the filter are returned. -// All applications are used to evaluate the aggregated health state. If not specified, all entries are -// returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of applications with HealthState value of OK (2) -// and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// clusterHealthPolicies - describes the health policies used to evaluate the cluster health. -// If not present, the health evaluation uses the cluster health policy defined in the cluster manifest or the -// default cluster health policy. -// By default, each application is evaluated using its specific application health policy, defined in the -// application manifest, or the default health policy, if no policy is defined in manifest. -// If the application health policy map is specified, and it has an entry for an application, the specified -// application health policy -// is used to evaluate the application health. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, clusterHealthPolicies *ClusterHealthPolicies, timeout *int64) (result ClusterHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthUsingPolicy", err.Error()) - } - - req, err := client.GetClusterHealthUsingPolicyPreparer(ctx, nodesHealthStateFilter, applicationsHealthStateFilter, eventsHealthStateFilter, clusterHealthPolicies, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicyPreparer prepares the GetClusterHealthUsingPolicy request. -func (client BaseClient) GetClusterHealthUsingPolicyPreparer(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, clusterHealthPolicies *ClusterHealthPolicies, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if nodesHealthStateFilter != nil { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", *nodesHealthStateFilter) - } else { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", 0) - } - if applicationsHealthStateFilter != nil { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", *applicationsHealthStateFilter) - } else { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealth"), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthPolicies != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthPolicies)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicySender sends the GetClusterHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicyResponder handles the response to the GetClusterHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthUsingPolicyResponder(resp *http.Response) (result ClusterHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifest get the Service Fabric cluster manifest. The cluster manifest contains properties of the cluster -// that include different node types on the cluster, -// security configurations, fault and upgrade domain topologies etc. -// -// These properties are specified as part of the ClusterConfig.JSON file while deploying a stand alone cluster. -// However, most of the information in the cluster manifest -// is generated internally by service fabric during cluster deployment in other deployment scenarios (for e.g when -// using azuer portal). -// -// The contents of the cluster manifest are for informational purposes only and users are not expected to take a -// dependency on the format of the file contents or its interpretation. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) (result ClusterManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterManifest", err.Error()) - } - - req, err := client.GetClusterManifestPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure sending request") - return - } - - result, err = client.GetClusterManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestPreparer prepares the GetClusterManifest request. -func (client BaseClient) GetClusterManifestPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterManifest"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestSender sends the GetClusterManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestResponder handles the response to the GetClusterManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterManifestResponder(resp *http.Response) (result ClusterManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgress gets the current progress of the ongoing cluster upgrade. If no upgrade is currently in -// progress, gets the last state of the previous cluster upgrade. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout *int64) (result ClusterUpgradeProgressObject, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterUpgradeProgress", err.Error()) - } - - req, err := client.GetClusterUpgradeProgressPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterUpgradeProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure sending request") - return - } - - result, err = client.GetClusterUpgradeProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressPreparer prepares the GetClusterUpgradeProgress request. -func (client BaseClient) GetClusterUpgradeProgressPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetUpgradeProgress"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressSender sends the GetClusterUpgradeProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterUpgradeProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressResponder handles the response to the GetClusterUpgradeProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterUpgradeProgressResponder(resp *http.Response) (result ClusterUpgradeProgressObject, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatus returns the status of compose application that was created or in the process of being -// created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response -// includes the name, status and other details about the application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeApplicationStatus(ctx context.Context, applicationID string, timeout *int64) (result ComposeApplicationStatusInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeApplicationStatus", err.Error()) - } - - req, err := client.GetComposeApplicationStatusPreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeApplicationStatus", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeApplicationStatusSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeApplicationStatus", resp, "Failure sending request") - return - } - - result, err = client.GetComposeApplicationStatusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeApplicationStatus", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatusPreparer prepares the GetComposeApplicationStatus request. -func (client BaseClient) GetComposeApplicationStatusPreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "4.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{applicationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatusSender sends the GetComposeApplicationStatus request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeApplicationStatusSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatusResponder handles the response to the GetComposeApplicationStatus request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeApplicationStatusResponder(resp *http.Response) (result ComposeApplicationStatusInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatusList gets the status about the compose applications that were created or in the process -// of being created in the Service Fabric cluster. The response includes the name, status and other details about the -// compose application. If the applications do not fit in a page, one page of results is returned as well as a -// continuation token which can be used to get the next page. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeApplicationStatusList(ctx context.Context, continuationToken string, maxResults *int64, timeout *int64) (result PagedComposeApplicationStatusInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeApplicationStatusList", err.Error()) - } - - req, err := client.GetComposeApplicationStatusListPreparer(ctx, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeApplicationStatusList", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeApplicationStatusListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeApplicationStatusList", resp, "Failure sending request") - return - } - - result, err = client.GetComposeApplicationStatusListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeApplicationStatusList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatusListPreparer prepares the GetComposeApplicationStatusList request. -func (client BaseClient) GetComposeApplicationStatusListPreparer(ctx context.Context, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - const APIVersion = "4.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ComposeDeployments"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatusListSender sends the GetComposeApplicationStatusList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeApplicationStatusListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeApplicationStatusListResponder handles the response to the GetComposeApplicationStatusList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeApplicationStatusListResponder(resp *http.Response) (result PagedComposeApplicationStatusInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgress gets the progress of a data loss operation started with StartDataLoss, using the OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionDataLossProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDataLossProgress", err.Error()) - } - - req, err := client.GetDataLossProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetDataLossProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure sending request") - return - } - - result, err = client.GetDataLossProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressPreparer prepares the GetDataLossProgress request. -func (client BaseClient) GetDataLossProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressSender sends the GetDataLossProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDataLossProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressResponder handles the response to the GetDataLossProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDataLossProgressResponder(resp *http.Response) (result PartitionDataLossProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealth gets the information about health of an application deployed on a Service Fabric node. -// Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent objects reported on the deployed -// application based on health state. Use DeployedServicePackagesHealthStateFilter to optionally filter for -// DeployedServicePackageHealth children based on health state. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedServicePackagesHealthStateFilter - allows filtering of the deployed service package health state -// objects returned in the result of deployed application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only deployed service packages that match the filter are returned. All deployed service packages are used to -// evaluate the aggregated health state of the deployed application. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value can be a combination of these value obtained using -// bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of service packages with HealthState value of OK -// (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, timeout *int64) (result DeployedApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationHealth", err.Error()) - } - - req, err := client.GetDeployedApplicationHealthPreparer(ctx, nodeName, applicationID, eventsHealthStateFilter, deployedServicePackagesHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthPreparer prepares the GetDeployedApplicationHealth request. -func (client BaseClient) GetDeployedApplicationHealthPreparer(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedServicePackagesHealthStateFilter != nil { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", *deployedServicePackagesHealthStateFilter) - } else { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthSender sends the GetDeployedApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthResponder handles the response to the GetDeployedApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationHealthResponder(resp *http.Response) (result DeployedApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicy gets the information about health of an application deployed on a Service -// Fabric node using the specified policy. Use EventsHealthStateFilter to optionally filter for the collection of -// HealthEvent objects reported on the deployed application based on health state. Use -// DeployedServicePackagesHealthStateFilter to optionally filter for DeployedServicePackageHealth children based on -// health state. Use ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. -// This API only uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored -// while evaluating the health of the deployed application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedServicePackagesHealthStateFilter - allows filtering of the deployed service package health state -// objects returned in the result of deployed application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only deployed service packages that match the filter are returned. All deployed service packages are used to -// evaluate the aggregated health state of the deployed application. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value can be a combination of these value obtained using -// bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of service packages with HealthState value of OK -// (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result DeployedApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", err.Error()) - } - - req, err := client.GetDeployedApplicationHealthUsingPolicyPreparer(ctx, nodeName, applicationID, eventsHealthStateFilter, deployedServicePackagesHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicyPreparer prepares the GetDeployedApplicationHealthUsingPolicy request. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicyPreparer(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedServicePackagesHealthStateFilter != nil { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", *deployedServicePackagesHealthStateFilter) - } else { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicySender sends the GetDeployedApplicationHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicyResponder handles the response to the GetDeployedApplicationHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicyResponder(resp *http.Response) (result DeployedApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfo gets the information about an application deployed on a Service Fabric node. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeName string, applicationID string, timeout *int64) (result DeployedApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationInfo", err.Error()) - } - - req, err := client.GetDeployedApplicationInfoPreparer(ctx, nodeName, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoPreparer prepares the GetDeployedApplicationInfo request. -func (client BaseClient) GetDeployedApplicationInfoPreparer(ctx context.Context, nodeName string, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoSender sends the GetDeployedApplicationInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoResponder handles the response to the GetDeployedApplicationInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationInfoResponder(resp *http.Response) (result DeployedApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoList gets the list of applications deployed on a Service Fabric node. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nodeName string, timeout *int64) (result ListDeployedApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationInfoList", err.Error()) - } - - req, err := client.GetDeployedApplicationInfoListPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListPreparer prepares the GetDeployedApplicationInfoList request. -func (client BaseClient) GetDeployedApplicationInfoListPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListSender sends the GetDeployedApplicationInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListResponder handles the response to the GetDeployedApplicationInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationInfoListResponder(resp *http.Response) (result ListDeployedApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoList gets the list of code packages deployed on a Service Fabric node for the given -// application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// codePackageName - the name of code package specified in service manifest registered as part of an -// application type in a Service Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, timeout *int64) (result ListDeployedCodePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedCodePackageInfoList", err.Error()) - } - - req, err := client.GetDeployedCodePackageInfoListPreparer(ctx, nodeName, applicationID, serviceManifestName, codePackageName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedCodePackageInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedCodePackageInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListPreparer prepares the GetDeployedCodePackageInfoList request. -func (client BaseClient) GetDeployedCodePackageInfoListPreparer(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if len(codePackageName) > 0 { - queryParameters["CodePackageName"] = autorest.Encode("query", codePackageName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListSender sends the GetDeployedCodePackageInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedCodePackageInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListResponder handles the response to the GetDeployedCodePackageInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedCodePackageInfoListResponder(resp *http.Response) (result ListDeployedCodePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealth gets the information about health of service package for a specific application -// deployed on a Service Fabric node. Use EventsHealthStateFilter to optionally filter for the collection of -// HealthEvent objects reported on the deployed service package based on health state. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// servicePackageName - the name of the service package. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, timeout *int64) (result DeployedServicePackageHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageHealth", err.Error()) - } - - req, err := client.GetDeployedServicePackageHealthPreparer(ctx, nodeName, applicationID, servicePackageName, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthPreparer prepares the GetDeployedServicePackageHealth request. -func (client BaseClient) GetDeployedServicePackageHealthPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthSender sends the GetDeployedServicePackageHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthResponder handles the response to the GetDeployedServicePackageHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageHealthResponder(resp *http.Response) (result DeployedServicePackageHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicy gets the information about health of an service package for a specific -// application deployed on a Service Fabric node. using the specified policy. Use EventsHealthStateFilter to optionally -// filter for the collection of HealthEvent objects reported on the deployed service package based on health state. Use -// ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. This API only uses -// 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while evaluating -// the health of the deployed service package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// servicePackageName - the name of the service package. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result DeployedServicePackageHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", err.Error()) - } - - req, err := client.GetDeployedServicePackageHealthUsingPolicyPreparer(ctx, nodeName, applicationID, servicePackageName, eventsHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicyPreparer prepares the GetDeployedServicePackageHealthUsingPolicy request. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicyPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicySender sends the GetDeployedServicePackageHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicyResponder handles the response to the GetDeployedServicePackageHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicyResponder(resp *http.Response) (result DeployedServicePackageHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoList returns the information about the service packages deployed on a Service Fabric -// node for the given application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, nodeName string, applicationID string, timeout *int64) (result ListDeployedServicePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageInfoList", err.Error()) - } - - req, err := client.GetDeployedServicePackageInfoListPreparer(ctx, nodeName, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListPreparer prepares the GetDeployedServicePackageInfoList request. -func (client BaseClient) GetDeployedServicePackageInfoListPreparer(ctx context.Context, nodeName string, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListSender sends the GetDeployedServicePackageInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListResponder handles the response to the GetDeployedServicePackageInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageInfoListResponder(resp *http.Response) (result ListDeployedServicePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByName returns the information about the service packages deployed on a Service -// Fabric node for the given application. These results are of service packages whose name match exactly the service -// package name specified as the parameter. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// servicePackageName - the name of the service package. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Context, nodeName string, applicationID string, servicePackageName string, timeout *int64) (result ListDeployedServicePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", err.Error()) - } - - req, err := client.GetDeployedServicePackageInfoListByNamePreparer(ctx, nodeName, applicationID, servicePackageName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageInfoListByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNamePreparer prepares the GetDeployedServicePackageInfoListByName request. -func (client BaseClient) GetDeployedServicePackageInfoListByNamePreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNameSender sends the GetDeployedServicePackageInfoListByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageInfoListByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNameResponder handles the response to the GetDeployedServicePackageInfoListByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageInfoListByNameResponder(resp *http.Response) (result ListDeployedServicePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfo gets the details of the replica deployed on a Service Fabric node. The -// information include service kind, service name, current service operation, current service operation start date -// time, partition id, replica/instance id, reported load and other information. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (result DeployedServiceReplicaDetailInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaDetailInfoPreparer(ctx, nodeName, partitionID, replicaID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaDetailInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoPreparer prepares the GetDeployedServiceReplicaDetailInfo request. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoSender sends the GetDeployedServiceReplicaDetailInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoResponder handles the response to the GetDeployedServiceReplicaDetailInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoResponder(resp *http.Response) (result DeployedServiceReplicaDetailInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoList gets the list containing the information about replicas deployed on a Service -// Fabric node. The information include partition id, replica id, status of the replica, name of the service, name of -// the service type and other information. Use PartitionId or ServiceManifestName query parameters to return -// information about the deployed replicas matching the specified values for those parameters. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// partitionID - the identity of the partition. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, nodeName string, applicationID string, partitionID *uuid.UUID, serviceManifestName string, timeout *int64) (result ListDeployedServiceReplicaInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaInfoListPreparer(ctx, nodeName, applicationID, partitionID, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListPreparer prepares the GetDeployedServiceReplicaInfoList request. -func (client BaseClient) GetDeployedServiceReplicaInfoListPreparer(ctx context.Context, nodeName string, applicationID string, partitionID *uuid.UUID, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if partitionID != nil { - queryParameters["PartitionId"] = autorest.Encode("query", *partitionID) - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListSender sends the GetDeployedServiceReplicaInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListResponder handles the response to the GetDeployedServiceReplicaInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaInfoListResponder(resp *http.Response) (result ListDeployedServiceReplicaInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByName gets the information about a specified service type of the application deployed on -// a node in a Service Fabric cluster. The response includes the name of the service type, its registration status, the -// code package that registered it and activation id of the service package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// serviceTypeName - specifies the name of a Service Fabric service type. -// serviceManifestName - the name of the service manifest to filter the list of deployed service type -// information. If specified, the response will only contain the information about service types that are -// defined in this service manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, nodeName string, applicationID string, serviceTypeName string, serviceManifestName string, timeout *int64) (result DeployedServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", err.Error()) - } - - req, err := client.GetDeployedServiceTypeInfoByNamePreparer(ctx, nodeName, applicationID, serviceTypeName, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceTypeInfoByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNamePreparer prepares the GetDeployedServiceTypeInfoByName request. -func (client BaseClient) GetDeployedServiceTypeInfoByNamePreparer(ctx context.Context, nodeName string, applicationID string, serviceTypeName string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "serviceTypeName": serviceTypeName, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNameSender sends the GetDeployedServiceTypeInfoByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceTypeInfoByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNameResponder handles the response to the GetDeployedServiceTypeInfoByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceTypeInfoByNameResponder(resp *http.Response) (result DeployedServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoList gets the list containing the information about service types from the applications -// deployed on a node in a Service Fabric cluster. The response includes the name of the service type, its registration -// status, the code package that registered it and activation id of the service package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// serviceManifestName - the name of the service manifest to filter the list of deployed service type -// information. If specified, the response will only contain the information about service types that are -// defined in this service manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, timeout *int64) (result ListDeployedServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", err.Error()) - } - - req, err := client.GetDeployedServiceTypeInfoListPreparer(ctx, nodeName, applicationID, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListPreparer prepares the GetDeployedServiceTypeInfoList request. -func (client BaseClient) GetDeployedServiceTypeInfoListPreparer(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListSender sends the GetDeployedServiceTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListResponder handles the response to the GetDeployedServiceTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceTypeInfoListResponder(resp *http.Response) (result ListDeployedServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationList gets the a list of user-induced fault operations filtered by provided input. -// Parameters: -// typeFilter - used to filter on OperationType for user-induced operations. -// 65535 - select all -// 1 - select PartitionDataLoss. -// 2 - select PartitionQuorumLoss. -// 4 - select PartitionRestart. -// 8 - select NodeTransition. -// stateFilter - used to filter on OperationState's for user-induced operations. -// 65535 - select All -// 1 - select Running -// 2 - select RollingBack -// 8 - select Completed -// 16 - select Faulted -// 32 - select Cancelled -// 64 - select ForceCancelled -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter int32, stateFilter int32, timeout *int64) (result ListOperationStatus, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetFaultOperationList", err.Error()) - } - - req, err := client.GetFaultOperationListPreparer(ctx, typeFilter, stateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", nil, "Failure preparing request") - return - } - - resp, err := client.GetFaultOperationListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure sending request") - return - } - - result, err = client.GetFaultOperationListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListPreparer prepares the GetFaultOperationList request. -func (client BaseClient) GetFaultOperationListPreparer(ctx context.Context, typeFilter int32, stateFilter int32, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "StateFilter": autorest.Encode("query", stateFilter), - "TypeFilter": autorest.Encode("query", typeFilter), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Faults/"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListSender sends the GetFaultOperationList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetFaultOperationListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListResponder handles the response to the GetFaultOperationList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetFaultOperationListResponder(resp *http.Response) (result ListOperationStatus, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContent returns the information about the image store content at the specified contentPath relative to -// the root of the image store. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath string, timeout *int64) (result ImageStoreContent, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreContent", err.Error()) - } - - req, err := client.GetImageStoreContentPreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreContentSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentPreparer prepares the GetImageStoreContent request. -func (client BaseClient) GetImageStoreContentPreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentSender sends the GetImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentResponder handles the response to the GetImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreContentResponder(resp *http.Response) (result ImageStoreContent, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContent returns the information about the image store content at the root of the image store. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout *int64) (result ImageStoreContent, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreRootContent", err.Error()) - } - - req, err := client.GetImageStoreRootContentPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreRootContentSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreRootContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentPreparer prepares the GetImageStoreRootContent request. -func (client BaseClient) GetImageStoreRootContentPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentSender sends the GetImageStoreRootContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreRootContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentResponder handles the response to the GetImageStoreRootContent request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreRootContentResponder(resp *http.Response) (result ImageStoreContent, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealth gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the collection of -// health events reported on the node based on the health state. If the node that you specify by name does not exist in -// the health store, this returns an error. -// Parameters: -// nodeName - the name of the node. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, timeout *int64) (result NodeHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeHealth", err.Error()) - } - - req, err := client.GetNodeHealthPreparer(ctx, nodeName, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure sending request") - return - } - - result, err = client.GetNodeHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthPreparer prepares the GetNodeHealth request. -func (client BaseClient) GetNodeHealthPreparer(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthSender sends the GetNodeHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthResponder handles the response to the GetNodeHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeHealthResponder(resp *http.Response) (result NodeHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicy gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the -// collection of health events reported on the node based on the health state. Use ClusterHealthPolicy in the POST body -// to override the health policies used to evaluate the health. If the node that you specify by name does not exist in -// the health store, this returns an error. -// Parameters: -// nodeName - the name of the node. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// clusterHealthPolicy - describes the health policies used to evaluate the health of a cluster or node. If not -// present, the health evaluation uses the health policy from cluster manifest or the default health policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, clusterHealthPolicy *ClusterHealthPolicy, timeout *int64) (result NodeHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeHealthUsingPolicy", err.Error()) - } - - req, err := client.GetNodeHealthUsingPolicyPreparer(ctx, nodeName, eventsHealthStateFilter, clusterHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetNodeHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicyPreparer prepares the GetNodeHealthUsingPolicy request. -func (client BaseClient) GetNodeHealthUsingPolicyPreparer(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, clusterHealthPolicy *ClusterHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicySender sends the GetNodeHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicyResponder handles the response to the GetNodeHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeHealthUsingPolicyResponder(resp *http.Response) (result NodeHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfo gets the information about a specific node in the Service Fabric Cluster.The respons include the name, -// status, id, health, uptime and other details about the node. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeout *int64) (result NodeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeInfo", err.Error()) - } - - req, err := client.GetNodeInfoPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNodeInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoPreparer prepares the GetNodeInfo request. -func (client BaseClient) GetNodeInfoPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoSender sends the GetNodeInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoResponder handles the response to the GetNodeInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeInfoResponder(resp *http.Response) (result NodeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoList the Nodes endpoint returns information about the nodes in the Service Fabric Cluster. The respons -// include the name, status, id, health, uptime and other details about the node. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// nodeStatusFilter - allows filtering the nodes based on the NodeStatus. Only the nodes that are matching the -// specified filter value will be returned. The filter value can be one of the following. -// -// - default - This filter value will match all of the nodes excepts the ones with with status as Unknown or -// Removed. -// - all - This filter value will match all of the nodes. -// - up - This filter value will match nodes that are Up. -// - down - This filter value will match nodes that are Down. -// - enabling - This filter value will match nodes that are in the process of being enabled with status as -// Enabling. -// - disabling - This filter value will match nodes that are in the process of being disabled with status as -// Disabling. -// - disabled - This filter value will match nodes that are Disabled. -// - unknown - This filter value will match nodes whose status is Unknown. A node would be in Unknown state if -// Service Fabric does not have authoritative information about that node. This can happen if the system learns -// about a node at runtime. -// - removed - This filter value will match nodes whose status is Removed. These are the nodes that are removed -// from the cluster using the RemoveNodeState API. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken string, nodeStatusFilter string, timeout *int64) (result PagedNodeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeInfoList", err.Error()) - } - - req, err := client.GetNodeInfoListPreparer(ctx, continuationToken, nodeStatusFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetNodeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListPreparer prepares the GetNodeInfoList request. -func (client BaseClient) GetNodeInfoListPreparer(ctx context.Context, continuationToken string, nodeStatusFilter string, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if len(string(nodeStatusFilter)) > 0 { - queryParameters["NodeStatusFilter"] = autorest.Encode("query", nodeStatusFilter) - } else { - queryParameters["NodeStatusFilter"] = autorest.Encode("query", "default") - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Nodes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListSender sends the GetNodeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListResponder handles the response to the GetNodeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeInfoListResponder(resp *http.Response) (result PagedNodeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfo gets the load information of a Service Fabric node. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, timeout *int64) (result NodeLoadInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeLoadInfo", err.Error()) - } - - req, err := client.GetNodeLoadInfoPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeLoadInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNodeLoadInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoPreparer prepares the GetNodeLoadInfo request. -func (client BaseClient) GetNodeLoadInfoPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoSender sends the GetNodeLoadInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeLoadInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoResponder handles the response to the GetNodeLoadInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeLoadInfoResponder(resp *http.Response) (result NodeLoadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgress gets the progress of an operation started with StartNodeTransition using the provided -// OperationId. -// Parameters: -// nodeName - the name of the node. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName string, operationID uuid.UUID, timeout *int64) (result NodeTransitionProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeTransitionProgress", err.Error()) - } - - req, err := client.GetNodeTransitionProgressPreparer(ctx, nodeName, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeTransitionProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure sending request") - return - } - - result, err = client.GetNodeTransitionProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressPreparer prepares the GetNodeTransitionProgress request. -func (client BaseClient) GetNodeTransitionProgressPreparer(ctx context.Context, nodeName string, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Nodes/{nodeName}/$/GetTransitionProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressSender sends the GetNodeTransitionProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeTransitionProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressResponder handles the response to the GetNodeTransitionProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeTransitionProgressResponder(resp *http.Response) (result NodeTransitionProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealth gets the health information of the specified partition. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use ReplicasHealthStateFilter to filter the collection of ReplicaHealthState objects on the partition. -// If you specify a partition that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// partitionID - the identity of the partition. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// replicasHealthStateFilter - allows filtering the collection of ReplicaHealthState objects on the partition. -// The value can be obtained from members or bitwise operations on members of HealthStateFilter. Only replicas -// that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. -// If not specified, all entries will be returned.The state values are flag based enumeration, so the value -// could be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided -// value is 6 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The -// possible values for this parameter include integer value of one of the following health states. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, timeout *int64) (result PartitionHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionHealth", err.Error()) - } - - req, err := client.GetPartitionHealthPreparer(ctx, partitionID, eventsHealthStateFilter, replicasHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthPreparer prepares the GetPartitionHealth request. -func (client BaseClient) GetPartitionHealthPreparer(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if replicasHealthStateFilter != nil { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", *replicasHealthStateFilter) - } else { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthSender sends the GetPartitionHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthResponder handles the response to the GetPartitionHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionHealthResponder(resp *http.Response) (result PartitionHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicy gets the health information of the specified partition. -// If the application health policy is specified, the health evaluation uses it to get the aggregated health state. -// If the policy is not specified, the health evaluation uses the application health policy defined in the application -// manifest, or the default health policy, if no policy is defined in the manifest. -// Use EventsHealthStateFilter to filter the collection of health events reported on the partition based on the health -// state. -// Use ReplicasHealthStateFilter to filter the collection of ReplicaHealthState objects on the partition. Use -// ApplicationHealthPolicy in the POST body to override the health policies used to evaluate the health. -// If you specify a partition that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// partitionID - the identity of the partition. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// replicasHealthStateFilter - allows filtering the collection of ReplicaHealthState objects on the partition. -// The value can be obtained from members or bitwise operations on members of HealthStateFilter. Only replicas -// that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. -// If not specified, all entries will be returned.The state values are flag based enumeration, so the value -// could be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided -// value is 6 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The -// possible values for this parameter include integer value of one of the following health states. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result PartitionHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", err.Error()) - } - - req, err := client.GetPartitionHealthUsingPolicyPreparer(ctx, partitionID, eventsHealthStateFilter, replicasHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicyPreparer prepares the GetPartitionHealthUsingPolicy request. -func (client BaseClient) GetPartitionHealthUsingPolicyPreparer(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if replicasHealthStateFilter != nil { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", *replicasHealthStateFilter) - } else { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicySender sends the GetPartitionHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicyResponder handles the response to the GetPartitionHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionHealthUsingPolicyResponder(resp *http.Response) (result PartitionHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfo the Partitions endpoint returns information about the specified partition. The response include the -// partition id, partitioning scheme information, keys supported by the partition, status, health and other details -// about the partition. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result ServicePartitionInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionInfo", err.Error()) - } - - req, err := client.GetPartitionInfoPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoPreparer prepares the GetPartitionInfo request. -func (client BaseClient) GetPartitionInfoPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoSender sends the GetPartitionInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoResponder handles the response to the GetPartitionInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionInfoResponder(resp *http.Response) (result ServicePartitionInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoList gets the list of partitions of a Service Fabric service. The response include the partition id, -// partitioning scheme information, keys supported by the partition, status, health and other details about the -// partition. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID string, continuationToken string, timeout *int64) (result PagedServicePartitionInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionInfoList", err.Error()) - } - - req, err := client.GetPartitionInfoListPreparer(ctx, serviceID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListPreparer prepares the GetPartitionInfoList request. -func (client BaseClient) GetPartitionInfoListPreparer(ctx context.Context, serviceID string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetPartitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListSender sends the GetPartitionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListResponder handles the response to the GetPartitionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionInfoListResponder(resp *http.Response) (result PagedServicePartitionInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformation returns information about the specified partition. -// The response includes a list of load information. -// Each information includes load metric name, value and last reported time in UTC. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result PartitionLoadInformation, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionLoadInformation", err.Error()) - } - - req, err := client.GetPartitionLoadInformationPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionLoadInformationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionLoadInformationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationPreparer prepares the GetPartitionLoadInformation request. -func (client BaseClient) GetPartitionLoadInformationPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationSender sends the GetPartitionLoadInformation request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionLoadInformationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationResponder handles the response to the GetPartitionLoadInformation request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionLoadInformationResponder(resp *http.Response) (result PartitionLoadInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgress gets the progress of a PartitionRestart started with StartPartitionRestart using the -// provided OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionRestartProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionRestartProgress", err.Error()) - } - - req, err := client.GetPartitionRestartProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionRestartProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionRestartProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressPreparer prepares the GetPartitionRestartProgress request. -func (client BaseClient) GetPartitionRestartProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressSender sends the GetPartitionRestartProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionRestartProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressResponder handles the response to the GetPartitionRestartProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionRestartProgressResponder(resp *http.Response) (result PartitionRestartProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoList gets a list of information about fabric code versions that are provisioned -// in the cluster. The parameter CodeVersion can be used to optionally filter the output to only that particular -// version. -// Parameters: -// codeVersion - the product version of Service Fabric. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Context, codeVersion string, timeout *int64) (result ListFabricCodeVersionInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", err.Error()) - } - - req, err := client.GetProvisionedFabricCodeVersionInfoListPreparer(ctx, codeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetProvisionedFabricCodeVersionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListPreparer prepares the GetProvisionedFabricCodeVersionInfoList request. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListPreparer(ctx context.Context, codeVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(codeVersion) > 0 { - queryParameters["CodeVersion"] = autorest.Encode("query", codeVersion) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetProvisionedCodeVersions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListSender sends the GetProvisionedFabricCodeVersionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListResponder handles the response to the GetProvisionedFabricCodeVersionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListResponder(resp *http.Response) (result ListFabricCodeVersionInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoList gets a list of information about fabric config versions that are -// provisioned in the cluster. The parameter ConfigVersion can be used to optionally filter the output to only that -// particular version. -// Parameters: -// configVersion - the config version of Service Fabric. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.Context, configVersion string, timeout *int64) (result ListFabricConfigVersionInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", err.Error()) - } - - req, err := client.GetProvisionedFabricConfigVersionInfoListPreparer(ctx, configVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetProvisionedFabricConfigVersionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListPreparer prepares the GetProvisionedFabricConfigVersionInfoList request. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListPreparer(ctx context.Context, configVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(configVersion) > 0 { - queryParameters["ConfigVersion"] = autorest.Encode("query", configVersion) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetProvisionedConfigVersions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListSender sends the GetProvisionedFabricConfigVersionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListResponder handles the response to the GetProvisionedFabricConfigVersionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListResponder(resp *http.Response) (result ListFabricConfigVersionInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgress gets the progress of a quorum loss operation started with StartQuorumLoss, using the provided -// OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionQuorumLossProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetQuorumLossProgress", err.Error()) - } - - req, err := client.GetQuorumLossProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetQuorumLossProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure sending request") - return - } - - result, err = client.GetQuorumLossProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressPreparer prepares the GetQuorumLossProgress request. -func (client BaseClient) GetQuorumLossProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressSender sends the GetQuorumLossProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetQuorumLossProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressResponder handles the response to the GetQuorumLossProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetQuorumLossProgressResponder(resp *http.Response) (result PartitionQuorumLossProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealth gets the health of a Service Fabric replica. -// Use EventsHealthStateFilter to filter the collection of health events reported on the replica based on the health -// state. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, timeout *int64) (result ReplicaHealthModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaHealth", err.Error()) - } - - req, err := client.GetReplicaHealthPreparer(ctx, partitionID, replicaID, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthPreparer prepares the GetReplicaHealth request. -func (client BaseClient) GetReplicaHealthPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthSender sends the GetReplicaHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthResponder handles the response to the GetReplicaHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaHealthResponder(resp *http.Response) (result ReplicaHealthModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicy gets the health of a Service Fabric stateful service replica or stateless service -// instance. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Use ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. This API only -// uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while -// evaluating the health of the replica. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result ReplicaHealthModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", err.Error()) - } - - req, err := client.GetReplicaHealthUsingPolicyPreparer(ctx, partitionID, replicaID, eventsHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicyPreparer prepares the GetReplicaHealthUsingPolicy request. -func (client BaseClient) GetReplicaHealthUsingPolicyPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicySender sends the GetReplicaHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicyResponder handles the response to the GetReplicaHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaHealthUsingPolicyResponder(resp *http.Response) (result ReplicaHealthModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfo the respons include the id, role, status, health, node name, uptime, and other details about the -// replica. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UUID, replicaID string, continuationToken string, timeout *int64) (result ReplicaInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaInfo", err.Error()) - } - - req, err := client.GetReplicaInfoPreparer(ctx, partitionID, replicaID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoPreparer prepares the GetReplicaInfo request. -func (client BaseClient) GetReplicaInfoPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoSender sends the GetReplicaInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoResponder handles the response to the GetReplicaInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaInfoResponder(resp *http.Response) (result ReplicaInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoList the GetReplicas endpoint returns information about the replicas of the specified partition. The -// respons include the id, role, status, health, node name, uptime, and other details about the replica. -// Parameters: -// partitionID - the identity of the partition. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uuid.UUID, continuationToken string, timeout *int64) (result PagedReplicaInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaInfoList", err.Error()) - } - - req, err := client.GetReplicaInfoListPreparer(ctx, partitionID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListPreparer prepares the GetReplicaInfoList request. -func (client BaseClient) GetReplicaInfoListPreparer(ctx context.Context, partitionID uuid.UUID, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListSender sends the GetReplicaInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListResponder handles the response to the GetReplicaInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaInfoListResponder(resp *http.Response) (result PagedReplicaInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescription gets the description of an existing Service Fabric service. A service must be created before -// its description can be obtained. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID string, timeout *int64) (result ServiceDescriptionModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceDescription", err.Error()) - } - - req, err := client.GetServiceDescriptionPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceDescriptionSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure sending request") - return - } - - result, err = client.GetServiceDescriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionPreparer prepares the GetServiceDescription request. -func (client BaseClient) GetServiceDescriptionPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetDescription", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionSender sends the GetServiceDescription request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceDescriptionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionResponder handles the response to the GetServiceDescription request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceDescriptionResponder(resp *http.Response) (result ServiceDescriptionModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealth gets the health information of the specified service. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use PartitionsHealthStateFilter to filter the collection of partitions returned. -// If you specify a service that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// partitionsHealthStateFilter - allows filtering of the partitions health state objects returned in the result -// of service health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated -// health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of -// partitions with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, timeout *int64) (result ServiceHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceHealth", err.Error()) - } - - req, err := client.GetServiceHealthPreparer(ctx, serviceID, eventsHealthStateFilter, partitionsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure sending request") - return - } - - result, err = client.GetServiceHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthPreparer prepares the GetServiceHealth request. -func (client BaseClient) GetServiceHealthPreparer(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if partitionsHealthStateFilter != nil { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", *partitionsHealthStateFilter) - } else { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthSender sends the GetServiceHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthResponder handles the response to the GetServiceHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceHealthResponder(resp *http.Response) (result ServiceHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicy gets the health information of the specified service. -// If the application health policy is specified, the health evaluation uses it to get the aggregated health state. -// If the policy is not specified, the health evaluation uses the application health policy defined in the application -// manifest, or the default health policy, if no policy is defined in the manifest. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use PartitionsHealthStateFilter to filter the collection of partitions returned. -// If you specify a service that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// partitionsHealthStateFilter - allows filtering of the partitions health state objects returned in the result -// of service health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated -// health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of -// partitions with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result ServiceHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceHealthUsingPolicy", err.Error()) - } - - req, err := client.GetServiceHealthUsingPolicyPreparer(ctx, serviceID, eventsHealthStateFilter, partitionsHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetServiceHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicyPreparer prepares the GetServiceHealthUsingPolicy request. -func (client BaseClient) GetServiceHealthUsingPolicyPreparer(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if partitionsHealthStateFilter != nil { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", *partitionsHealthStateFilter) - } else { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicySender sends the GetServiceHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicyResponder handles the response to the GetServiceHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceHealthUsingPolicyResponder(resp *http.Response) (result ServiceHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfo returns the information about specified service belonging to the specified Service Fabric -// application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID string, serviceID string, timeout *int64) (result ServiceInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceInfo", err.Error()) - } - - req, err := client.GetServiceInfoPreparer(ctx, applicationID, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure sending request") - return - } - - result, err = client.GetServiceInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoPreparer prepares the GetServiceInfo request. -func (client BaseClient) GetServiceInfoPreparer(ctx context.Context, applicationID string, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/{serviceId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoSender sends the GetServiceInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoResponder handles the response to the GetServiceInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceInfoResponder(resp *http.Response) (result ServiceInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoList returns the information about all services belonging to the application specified by the -// application id. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// serviceTypeName - the service type name used to filter the services to query for. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID string, serviceTypeName string, continuationToken string, timeout *int64) (result PagedServiceInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceInfoList", err.Error()) - } - - req, err := client.GetServiceInfoListPreparer(ctx, applicationID, serviceTypeName, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetServiceInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListPreparer prepares the GetServiceInfoList request. -func (client BaseClient) GetServiceInfoListPreparer(ctx context.Context, applicationID string, serviceTypeName string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceTypeName) > 0 { - queryParameters["ServiceTypeName"] = autorest.Encode("query", serviceTypeName) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListSender sends the GetServiceInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListResponder handles the response to the GetServiceInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceInfoListResponder(resp *http.Response) (result PagedServiceInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifest gets the manifest describing a service type. The response contains the service manifest XML as a -// string. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceManifest(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string, timeout *int64) (result ServiceTypeManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceManifest", err.Error()) - } - - req, err := client.GetServiceManifestPreparer(ctx, applicationTypeName, applicationTypeVersion, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure sending request") - return - } - - result, err = client.GetServiceManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestPreparer prepares the GetServiceManifest request. -func (client BaseClient) GetServiceManifestPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - "ServiceManifestName": autorest.Encode("query", serviceManifestName), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestSender sends the GetServiceManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestResponder handles the response to the GetServiceManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceManifestResponder(resp *http.Response) (result ServiceTypeManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfo the GetServiceName endpoint returns the name of the service for the specified partition. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result ServiceNameInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceNameInfo", err.Error()) - } - - req, err := client.GetServiceNameInfoPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceNameInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure sending request") - return - } - - result, err = client.GetServiceNameInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoPreparer prepares the GetServiceNameInfo request. -func (client BaseClient) GetServiceNameInfoPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetServiceName", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoSender sends the GetServiceNameInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceNameInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoResponder handles the response to the GetServiceNameInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceNameInfoResponder(resp *http.Response) (result ServiceNameInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoList gets the list containing the information about service types that are supported by a -// provisioned application type in a Service Fabric cluster. The response includes the name of the service type, the -// name and version of the service manifest the type is defined in, kind (stateless or stateless) of the service type -// and other information about it. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (result ListServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceTypeInfoList", err.Error()) - } - - req, err := client.GetServiceTypeInfoListPreparer(ctx, applicationTypeName, applicationTypeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetServiceTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListPreparer prepares the GetServiceTypeInfoList request. -func (client BaseClient) GetServiceTypeInfoListPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListSender sends the GetServiceTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListResponder handles the response to the GetServiceTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceTypeInfoListResponder(resp *http.Response) (result ListServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommand for clusters that have one or more instances of the Infrastructure Service configured, -// this API provides a way to send infrastructure-specific commands to a particular -// instance of the Infrastructure Service. -// -// Available commands and their corresponding response formats vary depending upon -// the infrastructure on which the cluster is running. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// command - the text of the command to be invoked. The content of the command is infrastructure-specific. -// serviceID - the identity of the infrastructure service. This is the full name of the infrastructure service -// without the 'fabric:' URI scheme. This parameter required only for the cluster that have more than one -// instance of infrastructure service running. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, command string, serviceID string, timeout *int64) (result ReadCloser, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "InvokeInfrastructureCommand", err.Error()) - } - - req, err := client.InvokeInfrastructureCommandPreparer(ctx, command, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", nil, "Failure preparing request") - return - } - - resp, err := client.InvokeInfrastructureCommandSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure sending request") - return - } - - result, err = client.InvokeInfrastructureCommandResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandPreparer prepares the InvokeInfrastructureCommand request. -func (client BaseClient) InvokeInfrastructureCommandPreparer(ctx context.Context, command string, serviceID string, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Command": autorest.Encode("query", command), - } - if len(serviceID) > 0 { - queryParameters["ServiceId"] = autorest.Encode("query", serviceID) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/InvokeInfrastructureCommand"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandSender sends the InvokeInfrastructureCommand request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) InvokeInfrastructureCommandSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandResponder handles the response to the InvokeInfrastructureCommand request. The method always -// closes the http.Response Body. -func (client BaseClient) InvokeInfrastructureCommandResponder(resp *http.Response) (result ReadCloser, err error) { - result.Value = &resp.Body - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK)) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQuery for clusters that have one or more instances of the Infrastructure Service configured, -// this API provides a way to send infrastructure-specific queries to a particular -// instance of the Infrastructure Service. -// -// Available commands and their corresponding response formats vary depending upon -// the infrastructure on which the cluster is running. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// command - the text of the command to be invoked. The content of the command is infrastructure-specific. -// serviceID - the identity of the infrastructure service. This is the full name of the infrastructure service -// without the 'fabric:' URI scheme. This parameter required only for the cluster that have more than one -// instance of infrastructure service running. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command string, serviceID string, timeout *int64) (result ReadCloser, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "InvokeInfrastructureQuery", err.Error()) - } - - req, err := client.InvokeInfrastructureQueryPreparer(ctx, command, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", nil, "Failure preparing request") - return - } - - resp, err := client.InvokeInfrastructureQuerySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure sending request") - return - } - - result, err = client.InvokeInfrastructureQueryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQueryPreparer prepares the InvokeInfrastructureQuery request. -func (client BaseClient) InvokeInfrastructureQueryPreparer(ctx context.Context, command string, serviceID string, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Command": autorest.Encode("query", command), - } - if len(serviceID) > 0 { - queryParameters["ServiceId"] = autorest.Encode("query", serviceID) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/InvokeInfrastructureQuery"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQuerySender sends the InvokeInfrastructureQuery request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) InvokeInfrastructureQuerySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQueryResponder handles the response to the InvokeInfrastructureQuery request. The method always -// closes the http.Response Body. -func (client BaseClient) InvokeInfrastructureQueryResponder(resp *http.Response) (result ReadCloser, err error) { - result.Value = &resp.Body - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK)) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationType provisions or registers a Service Fabric application type with the cluster. This is -// required before any new applications can be instantiated. -// Parameters: -// applicationTypeImageStorePath - the relative path for the application package in the image store specified -// during the prior copy operation. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ProvisionApplicationType(ctx context.Context, applicationTypeImageStorePath ApplicationTypeImageStorePath, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationTypeImageStorePath, - Constraints: []validation.Constraint{{Target: "applicationTypeImageStorePath.ApplicationTypeBuildPath", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ProvisionApplicationType", err.Error()) - } - - req, err := client.ProvisionApplicationTypePreparer(ctx, applicationTypeImageStorePath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", nil, "Failure preparing request") - return - } - - resp, err := client.ProvisionApplicationTypeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure sending request") - return - } - - result, err = client.ProvisionApplicationTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypePreparer prepares the ProvisionApplicationType request. -func (client BaseClient) ProvisionApplicationTypePreparer(ctx context.Context, applicationTypeImageStorePath ApplicationTypeImageStorePath, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes/$/Provision"), - autorest.WithJSON(applicationTypeImageStorePath), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeSender sends the ProvisionApplicationType request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ProvisionApplicationTypeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeResponder handles the response to the ProvisionApplicationType request. The method always -// closes the http.Response Body. -func (client BaseClient) ProvisionApplicationTypeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitions indicates to the Service Fabric cluster that it should attempt to recover any services -// (including system services) which are currently stuck in quorum loss. This operation should only be performed if it -// is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data -// loss. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverAllPartitions", err.Error()) - } - - req, err := client.RecoverAllPartitionsPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverAllPartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverAllPartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsPreparer prepares the RecoverAllPartitions request. -func (client BaseClient) RecoverAllPartitionsPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RecoverAllPartitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsSender sends the RecoverAllPartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverAllPartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsResponder handles the response to the RecoverAllPartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverAllPartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartition indicates to the Service Fabric cluster that it should attempt to recover a specific partition -// which is currently stuck in quorum loss. This operation should only be performed if it is known that the replicas -// that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverPartition", err.Error()) - } - - req, err := client.RecoverPartitionPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverPartitionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure sending request") - return - } - - result, err = client.RecoverPartitionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionPreparer prepares the RecoverPartition request. -func (client BaseClient) RecoverPartitionPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionSender sends the RecoverPartition request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverPartitionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionResponder handles the response to the RecoverPartition request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverPartitionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitions indicates to the Service Fabric cluster that it should attempt to recover the specified -// service which is currently stuck in quorum loss. This operation should only be performed if it is known that the -// replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverServicePartitions", err.Error()) - } - - req, err := client.RecoverServicePartitionsPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverServicePartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverServicePartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsPreparer prepares the RecoverServicePartitions request. -func (client BaseClient) RecoverServicePartitionsPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/$/{serviceId}/$/GetPartitions/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsSender sends the RecoverServicePartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverServicePartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsResponder handles the response to the RecoverServicePartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverServicePartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitions indicates to the Service Fabric cluster that it should attempt to recover the system -// services which are currently stuck in quorum loss. This operation should only be performed if it is known that the -// replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverSystemPartitions", err.Error()) - } - - req, err := client.RecoverSystemPartitionsPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverSystemPartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverSystemPartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsPreparer prepares the RecoverSystemPartitions request. -func (client BaseClient) RecoverSystemPartitionsPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RecoverSystemPartitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsSender sends the RecoverSystemPartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverSystemPartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsResponder handles the response to the RecoverSystemPartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverSystemPartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeApplication deletes an existing Service Fabric compose application. An application must be created -// before it can be deleted. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveComposeApplication(ctx context.Context, applicationID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveComposeApplication", err.Error()) - } - - req, err := client.RemoveComposeApplicationPreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeApplication", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveComposeApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeApplication", resp, "Failure sending request") - return - } - - result, err = client.RemoveComposeApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeApplicationPreparer prepares the RemoveComposeApplication request. -func (client BaseClient) RemoveComposeApplicationPreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "4.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{applicationId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeApplicationSender sends the RemoveComposeApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveComposeApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeApplicationResponder handles the response to the RemoveComposeApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveComposeApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeState notifies Service Fabric that the persisted state on a node has been permanently removed or lost. -// This implies that it is not possible to recover the persisted state of that node. This generally happens if a hard -// disk has been wiped clean, or if a hard disk crashes. The node has to be down for this operation to be successful. -// This operation lets Service Fabric know that the replicas on that node no longer exist, and that Service Fabric -// should stop waiting for those replicas to come back up. Do not run this cmdlet if the state on the node has not been -// removed and the node can comes back up with its state intact. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveNodeState", err.Error()) - } - - req, err := client.RemoveNodeStatePreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveNodeStateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure sending request") - return - } - - result, err = client.RemoveNodeStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStatePreparer prepares the RemoveNodeState request. -func (client BaseClient) RemoveNodeStatePreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/RemoveNodeState", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStateSender sends the RemoveNodeState request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveNodeStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStateResponder handles the response to the RemoveNodeState request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveNodeStateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplica this API simulates a Service Fabric replica failure by removing a replica from a Service Fabric -// cluster. The removal closes the replica, transitions the replica to the role None, and then removes all of the state -// information of the replica from the cluster. This API tests the replica state removal path, and simulates the report -// fault permanent path through client APIs. Warning - There are no safety checks performed when this API is used. -// Incorrect use of this API can lead to data loss for stateful services.In addition, the forceRemove flag impacts all -// other replicas hosted in the same process. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveReplica", err.Error()) - } - - req, err := client.RemoveReplicaPreparer(ctx, nodeName, partitionID, replicaID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveReplicaSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure sending request") - return - } - - result, err = client.RemoveReplicaResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaPreparer prepares the RemoveReplica request. -func (client BaseClient) RemoveReplicaPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaSender sends the RemoveReplica request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveReplicaSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaResponder handles the response to the RemoveReplica request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveReplicaResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealth reports health state of the specified Service Fabric application. The report must contain -// the information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Application, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetApplicationHealth and check that the report -// appears in the HealthEvents section. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicationID string, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportApplicationHealth", err.Error()) - } - - req, err := client.ReportApplicationHealthPreparer(ctx, applicationID, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportApplicationHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthPreparer prepares the ReportApplicationHealth request. -func (client BaseClient) ReportApplicationHealthPreparer(ctx context.Context, applicationID string, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthSender sends the ReportApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthResponder handles the response to the ReportApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportApplicationHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealth sends a health report on a Service Fabric cluster. The report must contain the information about -// the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway node, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetClusterHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportClusterHealth", err.Error()) - } - - req, err := client.ReportClusterHealthPreparer(ctx, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportClusterHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportClusterHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthPreparer prepares the ReportClusterHealth request. -func (client BaseClient) ReportClusterHealthPreparer(ctx context.Context, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/ReportClusterHealth"), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthSender sends the ReportClusterHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportClusterHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthResponder handles the response to the ReportClusterHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportClusterHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealth reports health state of the application deployed on a Service Fabric node. The -// report must contain the information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get deployed application health and check that the report -// appears in the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, nodeName string, applicationID string, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportDeployedApplicationHealth", err.Error()) - } - - req, err := client.ReportDeployedApplicationHealthPreparer(ctx, nodeName, applicationID, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportDeployedApplicationHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportDeployedApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthPreparer prepares the ReportDeployedApplicationHealth request. -func (client BaseClient) ReportDeployedApplicationHealthPreparer(ctx context.Context, nodeName string, applicationID string, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthSender sends the ReportDeployedApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportDeployedApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthResponder handles the response to the ReportDeployedApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportDeployedApplicationHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealth reports health state of the service package of the application deployed on a -// Service Fabric node. The report must contain the information about the source of the health report and property on -// which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get deployed service package health and check that the -// report appears in the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// servicePackageName - the name of the service package. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, nodeName string, applicationID string, servicePackageName string, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportDeployedServicePackageHealth", err.Error()) - } - - req, err := client.ReportDeployedServicePackageHealthPreparer(ctx, nodeName, applicationID, servicePackageName, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportDeployedServicePackageHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportDeployedServicePackageHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthPreparer prepares the ReportDeployedServicePackageHealth request. -func (client BaseClient) ReportDeployedServicePackageHealthPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthSender sends the ReportDeployedServicePackageHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportDeployedServicePackageHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthResponder handles the response to the ReportDeployedServicePackageHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportDeployedServicePackageHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealth reports health state of the specified Service Fabric node. The report must contain the information -// about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway node, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetNodeHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportNodeHealth", err.Error()) - } - - req, err := client.ReportNodeHealthPreparer(ctx, nodeName, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportNodeHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportNodeHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthPreparer prepares the ReportNodeHealth request. -func (client BaseClient) ReportNodeHealthPreparer(ctx context.Context, nodeName string, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthSender sends the ReportNodeHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportNodeHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthResponder handles the response to the ReportNodeHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportNodeHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealth reports health state of the specified Service Fabric partition. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Partition, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetPartitionHealth and check that the report appears -// in the HealthEvents section. -// Parameters: -// partitionID - the identity of the partition. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID uuid.UUID, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportPartitionHealth", err.Error()) - } - - req, err := client.ReportPartitionHealthPreparer(ctx, partitionID, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportPartitionHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportPartitionHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthPreparer prepares the ReportPartitionHealth request. -func (client BaseClient) ReportPartitionHealthPreparer(ctx context.Context, partitionID uuid.UUID, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthSender sends the ReportPartitionHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportPartitionHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthResponder handles the response to the ReportPartitionHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportPartitionHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealth reports health state of the specified Service Fabric replica. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Replica, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetReplicaHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// serviceKind - the kind of service replica (Stateless or Stateful) for which the health is being reported. -// Following are the possible values. -// - Stateless - Does not use Service Fabric to make its state highly available or reliable. The value is 1 -// - Stateful - Uses Service Fabric to make its state or part of its state highly available and reliable. The -// value is 2. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uuid.UUID, replicaID string, serviceKind string, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportReplicaHealth", err.Error()) - } - - req, err := client.ReportReplicaHealthPreparer(ctx, partitionID, replicaID, serviceKind, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportReplicaHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportReplicaHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthPreparer prepares the ReportReplicaHealth request. -func (client BaseClient) ReportReplicaHealthPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, serviceKind string, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ServiceKind": autorest.Encode("query", serviceKind), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthSender sends the ReportReplicaHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportReplicaHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthResponder handles the response to the ReportReplicaHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportReplicaHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealth reports health state of the specified Service Fabric service. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetServiceHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID string, healthInformation HealthInformation, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportServiceHealth", err.Error()) - } - - req, err := client.ReportServiceHealthPreparer(ctx, serviceID, healthInformation, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportServiceHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportServiceHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthPreparer prepares the ReportServiceHealth request. -func (client BaseClient) ReportServiceHealthPreparer(ctx context.Context, serviceID string, healthInformation HealthInformation, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthSender sends the ReportServiceHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportServiceHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthResponder handles the response to the ReportServiceHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportServiceHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoad resets the current load of a Service Fabric partition to the default load for the service. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResetPartitionLoad", err.Error()) - } - - req, err := client.ResetPartitionLoadPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", nil, "Failure preparing request") - return - } - - resp, err := client.ResetPartitionLoadSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure sending request") - return - } - - result, err = client.ResetPartitionLoadResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadPreparer prepares the ResetPartitionLoad request. -func (client BaseClient) ResetPartitionLoadPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ResetLoad", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadSender sends the ResetPartitionLoad request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResetPartitionLoadSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadResponder handles the response to the ResetPartitionLoad request. The method always -// closes the http.Response Body. -func (client BaseClient) ResetPartitionLoadResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveService resolve a Service Fabric service partition, to get the endpoints of the service replicas. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// partitionKeyType - key type for the partition. This parameter is required if the partition scheme for the -// service is Int64Range or Named. The possible values are following. -// - None (1) - Indicates that the the PartitionKeyValue parameter is not specified. This is valid for the -// partitions with partitioning scheme as Singleton. This is the default value. The value is 1. -// - Int64Range (2) - Indicates that the the PartitionKeyValue parameter is an int64 partition key. This is -// valid for the partitions with partitioning scheme as Int64Range. The value is 2. -// - Named (3) - Indicates that the the PartitionKeyValue parameter is a name of the partition. This is valid -// for the partitions with partitioning scheme as Named. The value is 3. -// partitionKeyValue - partition key. This is required if the partition scheme for the service is Int64Range or -// Named. -// previousRspVersion - the value in the Version field of the response that was received previously. This is -// required if the user knows that the result that was got previously is stale. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResolveService(ctx context.Context, serviceID string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string, timeout *int64) (result ResolvedServicePartition, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResolveService", err.Error()) - } - - req, err := client.ResolveServicePreparer(ctx, serviceID, partitionKeyType, partitionKeyValue, previousRspVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", nil, "Failure preparing request") - return - } - - resp, err := client.ResolveServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure sending request") - return - } - - result, err = client.ResolveServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServicePreparer prepares the ResolveService request. -func (client BaseClient) ResolveServicePreparer(ctx context.Context, serviceID string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if partitionKeyType != nil { - queryParameters["PartitionKeyType"] = autorest.Encode("query", *partitionKeyType) - } - if len(partitionKeyValue) > 0 { - queryParameters["PartitionKeyValue"] = partitionKeyValue - } - if len(previousRspVersion) > 0 { - queryParameters["PreviousRspVersion"] = previousRspVersion - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/ResolvePartition", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServiceSender sends the ResolveService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResolveServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServiceResponder handles the response to the ResolveService request. The method always -// closes the http.Response Body. -func (client BaseClient) ResolveServiceResponder(resp *http.Response) (result ResolvedServicePartition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackage restarts a code package deployed on a Service Fabric node in a cluster. This aborts the -// code package process, which will restart all the user service replicas hosted in that process. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// restartDeployedCodePackageDescription - describes the deployed code package on Service Fabric node to -// restart. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeName string, applicationID string, restartDeployedCodePackageDescription RestartDeployedCodePackageDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartDeployedCodePackage", err.Error()) - } - - req, err := client.RestartDeployedCodePackagePreparer(ctx, nodeName, applicationID, restartDeployedCodePackageDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", nil, "Failure preparing request") - return - } - - resp, err := client.RestartDeployedCodePackageSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure sending request") - return - } - - result, err = client.RestartDeployedCodePackageResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackagePreparer prepares the RestartDeployedCodePackage request. -func (client BaseClient) RestartDeployedCodePackagePreparer(ctx context.Context, nodeName string, applicationID string, restartDeployedCodePackageDescription RestartDeployedCodePackageDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart", pathParameters), - autorest.WithJSON(restartDeployedCodePackageDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageSender sends the RestartDeployedCodePackage request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartDeployedCodePackageSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageResponder handles the response to the RestartDeployedCodePackage request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartDeployedCodePackageResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNode restarts a Service Fabric cluster node that is already started. -// Parameters: -// nodeName - the name of the node. -// restartNodeDescription - the instance of the node to be restarted and a flag indicating the need to take -// dump of the fabric process. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartNode(ctx context.Context, nodeName string, restartNodeDescription RestartNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: restartNodeDescription, - Constraints: []validation.Constraint{{Target: "restartNodeDescription.NodeInstanceID", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartNode", err.Error()) - } - - req, err := client.RestartNodePreparer(ctx, nodeName, restartNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", nil, "Failure preparing request") - return - } - - resp, err := client.RestartNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure sending request") - return - } - - result, err = client.RestartNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodePreparer prepares the RestartNode request. -func (client BaseClient) RestartNodePreparer(ctx context.Context, nodeName string, restartNodeDescription RestartNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Restart", pathParameters), - autorest.WithJSON(restartNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeSender sends the RestartNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeResponder handles the response to the RestartNode request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplica restarts a service replica of a persisted service running on a node. Warning - There are no safety -// checks performed when this API is used. Incorrect use of this API can lead to availability loss for stateful -// services. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartReplica", err.Error()) - } - - req, err := client.RestartReplicaPreparer(ctx, nodeName, partitionID, replicaID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", nil, "Failure preparing request") - return - } - - resp, err := client.RestartReplicaSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure sending request") - return - } - - result, err = client.RestartReplicaResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaPreparer prepares the RestartReplica request. -func (client BaseClient) RestartReplicaPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaSender sends the RestartReplica request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartReplicaSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaResponder handles the response to the RestartReplica request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartReplicaResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgrade resumes an unmonitored manual Service Fabric application upgrade. Service Fabric upgrades -// one upgrade domain at a time. For unmonitored manual upgrades, after Service Fabric finishes an upgrade domain, it -// waits for you to call this API before proceeding to the next upgrade domain. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// resumeApplicationUpgradeDescription - describes the parameters for resuming an application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicationID string, resumeApplicationUpgradeDescription ResumeApplicationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: resumeApplicationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "resumeApplicationUpgradeDescription.UpgradeDomainName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResumeApplicationUpgrade", err.Error()) - } - - req, err := client.ResumeApplicationUpgradePreparer(ctx, applicationID, resumeApplicationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.ResumeApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.ResumeApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradePreparer prepares the ResumeApplicationUpgrade request. -func (client BaseClient) ResumeApplicationUpgradePreparer(ctx context.Context, applicationID string, resumeApplicationUpgradeDescription ResumeApplicationUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/MoveToNextUpgradeDomain", pathParameters), - autorest.WithJSON(resumeApplicationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeSender sends the ResumeApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResumeApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeResponder handles the response to the ResumeApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) ResumeApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgrade starts rolling back the current application upgrade to the previous version. This API can -// only be used to rollback the current in-progress upgrade that is rolling forward to new version. If the application -// is not currently being upgraded use StartApplicationUpgrade API to upgrade it to desired version including rolling -// back to a previous version. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applicationID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RollbackApplicationUpgrade", err.Error()) - } - - req, err := client.RollbackApplicationUpgradePreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.RollbackApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.RollbackApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradePreparer prepares the RollbackApplicationUpgrade request. -func (client BaseClient) RollbackApplicationUpgradePreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/RollbackUpgrade", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradeSender sends the RollbackApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RollbackApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradeResponder handles the response to the RollbackApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) RollbackApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgrade validates the supplied application upgrade parameters and starts upgrading the application -// if the parameters are valid. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// applicationUpgradeDescription - describes the parameters for an application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicationID string, applicationUpgradeDescription ApplicationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "applicationUpgradeDescription.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationUpgradeDescription.TargetApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationUpgradeDescription.Parameters", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartApplicationUpgrade", err.Error()) - } - - req, err := client.StartApplicationUpgradePreparer(ctx, applicationID, applicationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradePreparer prepares the StartApplicationUpgrade request. -func (client BaseClient) StartApplicationUpgradePreparer(ctx context.Context, applicationID string, applicationUpgradeDescription ApplicationUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/Upgrade", pathParameters), - autorest.WithJSON(applicationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradeSender sends the StartApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradeResponder handles the response to the StartApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaos if Chaos is not already running in the cluster, it starts Chaos with the passed in Chaos parameters. -// If Chaos is already running when this call is made, the call fails with the error code -// FABRIC_E_CHAOS_ALREADY_RUNNING. -// Please refer to the article [Induce controlled Chaos in Service Fabric -// clusters](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-controlled-chaos) for more details. -// Parameters: -// chaosParameters - describes all the parameters to configure a Chaos run. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosParameters, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: chaosParameters, - Constraints: []validation.Constraint{{Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.MaxConcurrentFaults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.MaxConcurrentFaults", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.MaxConcurrentFaults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartChaos", err.Error()) - } - - req, err := client.StartChaosPreparer(ctx, chaosParameters, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", nil, "Failure preparing request") - return - } - - resp, err := client.StartChaosSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure sending request") - return - } - - result, err = client.StartChaosResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosPreparer prepares the StartChaos request. -func (client BaseClient) StartChaosPreparer(ctx context.Context, chaosParameters ChaosParameters, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Start"), - autorest.WithJSON(chaosParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosSender sends the StartChaos request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartChaosSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosResponder handles the response to the StartChaos request. The method always -// closes the http.Response Body. -func (client BaseClient) StartChaosResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLoss this API will induce data loss for the specified partition. It will trigger a call to the OnDataLoss -// API of the partition. -// Actual data loss will depend on the specified DataLossMode -// PartialDataLoss - Only a quorum of replicas are removed and OnDataLoss is triggered for the partition but actual -// data loss depends on the presence of in-flight replication. -// FullDataLoss - All replicas are removed hence all data is lost and OnDataLoss is triggered. -// -// This API should only be called with a stateful service as the target. -// -// Calling this API with a system service as the target is not advised. -// -// Note: Once this API has been called, it cannot be reversed. Calling CancelOperation will only stop execution and -// clean up internal system state. -// It will not restore data if the command has progressed far enough to cause data loss. -// -// Call the GetDataLossProgress API with the same OperationId to return information on the operation started with this -// API. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// dataLossMode - this enum is passed to the StartDataLoss API to indicate what type of data loss to induce. -// - Invalid - Reserved. Do not pass into API. -// - PartialDataLoss - PartialDataLoss option will cause a quorum of replicas to go down, triggering an -// OnDataLoss event in the system for the given partition. -// - FullDataLoss - FullDataLoss option will drop all the replicas which means that all the data will be lost. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, dataLossMode string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartDataLoss", err.Error()) - } - - req, err := client.StartDataLossPreparer(ctx, serviceID, partitionID, operationID, dataLossMode, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", nil, "Failure preparing request") - return - } - - resp, err := client.StartDataLossSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure sending request") - return - } - - result, err = client.StartDataLossResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossPreparer prepares the StartDataLoss request. -func (client BaseClient) StartDataLossPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, dataLossMode string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "DataLossMode": autorest.Encode("query", dataLossMode), - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossSender sends the StartDataLoss request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartDataLossSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossResponder handles the response to the StartDataLoss request. The method always -// closes the http.Response Body. -func (client BaseClient) StartDataLossResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNode starts a Service Fabric cluster node that is already stopped. -// Parameters: -// nodeName - the name of the node. -// startNodeDescription - the instance id of the stopped node that needs to be started. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartNode(ctx context.Context, nodeName string, startNodeDescription StartNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: startNodeDescription, - Constraints: []validation.Constraint{{Target: "startNodeDescription.NodeInstanceID", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartNode", err.Error()) - } - - req, err := client.StartNodePreparer(ctx, nodeName, startNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNode", nil, "Failure preparing request") - return - } - - resp, err := client.StartNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNode", resp, "Failure sending request") - return - } - - result, err = client.StartNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodePreparer prepares the StartNode request. -func (client BaseClient) StartNodePreparer(ctx context.Context, nodeName string, startNodeDescription StartNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Start", pathParameters), - autorest.WithJSON(startNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeSender sends the StartNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeResponder handles the response to the StartNode request. The method always -// closes the http.Response Body. -func (client BaseClient) StartNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransition starts or stops a cluster node. A cluster node is a process, not the OS instance itself. To -// start a node, pass in "Start" for the NodeTransitionType parameter. -// To stop a node, pass in "Stop" for the NodeTransitionType parameter. This API starts the operation - when the API -// returns the node may not have finished transitioning yet. -// Call GetNodeTransitionProgress with the same OperationId to get the progress of the operation. -// Parameters: -// nodeName - the name of the node. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// nodeTransitionType - indicates the type of transition to perform. NodeTransitionType.Start will start a -// stopped node. NodeTransitionType.Stop will stop a node that is up. -// - Invalid - Reserved. Do not pass into API. -// - Start - Transition a stopped node to up. -// - Stop - Transition an up node to stopped. -// nodeInstanceID - the node instance ID of the target node. This can be determined through GetNodeInfo API. -// stopDurationInSeconds - the duration, in seconds, to keep the node stopped. The minimum value is 600, the -// maximum is 14400. After this time expires, the node will automatically come back up. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName string, operationID uuid.UUID, nodeTransitionType string, nodeInstanceID string, stopDurationInSeconds int32, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: stopDurationInSeconds, - Constraints: []validation.Constraint{{Target: "stopDurationInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartNodeTransition", err.Error()) - } - - req, err := client.StartNodeTransitionPreparer(ctx, nodeName, operationID, nodeTransitionType, nodeInstanceID, stopDurationInSeconds, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", nil, "Failure preparing request") - return - } - - resp, err := client.StartNodeTransitionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure sending request") - return - } - - result, err = client.StartNodeTransitionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionPreparer prepares the StartNodeTransition request. -func (client BaseClient) StartNodeTransitionPreparer(ctx context.Context, nodeName string, operationID uuid.UUID, nodeTransitionType string, nodeInstanceID string, stopDurationInSeconds int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "NodeInstanceId": autorest.Encode("query", nodeInstanceID), - "NodeTransitionType": autorest.Encode("query", nodeTransitionType), - "OperationId": autorest.Encode("query", operationID), - "StopDurationInSeconds": autorest.Encode("query", stopDurationInSeconds), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Nodes/{nodeName}/$/StartTransition/", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionSender sends the StartNodeTransition request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartNodeTransitionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionResponder handles the response to the StartNodeTransition request. The method always -// closes the http.Response Body. -func (client BaseClient) StartNodeTransitionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestart this API is useful for testing failover. -// -// If used to target a stateless service partition, RestartPartitionMode must be AllReplicasOrInstances. -// -// Call the GetPartitionRestartProgress API using the same OperationId to get the progress. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// restartPartitionMode - - Invalid - Reserved. Do not pass into API. -// - AllReplicasOrInstances - All replicas or instances in the partition are restarted at once. -// - OnlyActiveSecondaries - Only the secondary replicas are restarted. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, restartPartitionMode string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartPartitionRestart", err.Error()) - } - - req, err := client.StartPartitionRestartPreparer(ctx, serviceID, partitionID, operationID, restartPartitionMode, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", nil, "Failure preparing request") - return - } - - resp, err := client.StartPartitionRestartSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure sending request") - return - } - - result, err = client.StartPartitionRestartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartPreparer prepares the StartPartitionRestart request. -func (client BaseClient) StartPartitionRestartPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, restartPartitionMode string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - "RestartPartitionMode": autorest.Encode("query", restartPartitionMode), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartSender sends the StartPartitionRestart request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartPartitionRestartSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartResponder handles the response to the StartPartitionRestart request. The method always -// closes the http.Response Body. -func (client BaseClient) StartPartitionRestartResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLoss induces quorum loss for a given stateful service partition. This API is useful for a temporary -// quorum loss situation on your service. -// -// Call the GetQuorumLossProgress API with the same OperationId to return information on the operation started with -// this API. -// -// This can only be called on stateful persisted (HasPersistedState==true) services. Do not use this API on stateless -// services or stateful in-memory only services. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// quorumLossMode - this enum is passed to the StartQuorumLoss API to indicate what type of quorum loss to -// induce. -// - Invalid - Reserved. Do not pass into API. -// - QuorumReplicas - Partial Quorum loss mode : Minimum number of replicas for a partition will be down that -// will cause a quorum loss. -// - AllReplicas- Full Quorum loss mode : All replicas for a partition will be down that will cause a quorum -// loss. -// quorumLossDuration - the amount of time for which the partition will be kept in quorum loss. This must be -// specified in seconds. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, quorumLossMode string, quorumLossDuration int32, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartQuorumLoss", err.Error()) - } - - req, err := client.StartQuorumLossPreparer(ctx, serviceID, partitionID, operationID, quorumLossMode, quorumLossDuration, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", nil, "Failure preparing request") - return - } - - resp, err := client.StartQuorumLossSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure sending request") - return - } - - result, err = client.StartQuorumLossResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossPreparer prepares the StartQuorumLoss request. -func (client BaseClient) StartQuorumLossPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, quorumLossMode string, quorumLossDuration int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - "QuorumLossDuration": autorest.Encode("query", quorumLossDuration), - "QuorumLossMode": autorest.Encode("query", quorumLossMode), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossSender sends the StartQuorumLoss request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartQuorumLossSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossResponder handles the response to the StartQuorumLoss request. The method always -// closes the http.Response Body. -func (client BaseClient) StartQuorumLossResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaos stops Chaos from scheduling further faults; but, the in-flight faults are not affected. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StopChaos", err.Error()) - } - - req, err := client.StopChaosPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", nil, "Failure preparing request") - return - } - - resp, err := client.StopChaosSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure sending request") - return - } - - result, err = client.StopChaosResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosPreparer prepares the StopChaos request. -func (client BaseClient) StopChaosPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Stop"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosSender sends the StopChaos request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StopChaosSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosResponder handles the response to the StopChaos request. The method always -// closes the http.Response Body. -func (client BaseClient) StopChaosResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopNode stops a Service Fabric cluster node that is in a started state. The node will stay down until start node is -// called. -// Parameters: -// nodeName - the name of the node. -// stopNodeDescription - the instance id of the stopped node that needs to be stopped. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StopNode(ctx context.Context, nodeName string, stopNodeDescription StopNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: stopNodeDescription, - Constraints: []validation.Constraint{{Target: "stopNodeDescription.NodeInstanceID", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StopNode", err.Error()) - } - - req, err := client.StopNodePreparer(ctx, nodeName, stopNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopNode", nil, "Failure preparing request") - return - } - - resp, err := client.StopNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopNode", resp, "Failure sending request") - return - } - - result, err = client.StopNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopNodePreparer prepares the StopNode request. -func (client BaseClient) StopNodePreparer(ctx context.Context, nodeName string, stopNodeDescription StopNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Stop", pathParameters), - autorest.WithJSON(stopNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopNodeSender sends the StopNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StopNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopNodeResponder handles the response to the StopNode request. The method always -// closes the http.Response Body. -func (client BaseClient) StopNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationType removes or unregisters a Service Fabric application type from the cluster. This operation -// can only be performed if all application instance of the application type has been deleted. Once the application -// type is unregistered, no new application instance can be created for this particular application type. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeImageStoreVersion - the version of the application type in the image store. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applicationTypeName string, applicationTypeImageStoreVersion ApplicationTypeImageStoreVersion, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationTypeImageStoreVersion, - Constraints: []validation.Constraint{{Target: "applicationTypeImageStoreVersion.ApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UnprovisionApplicationType", err.Error()) - } - - req, err := client.UnprovisionApplicationTypePreparer(ctx, applicationTypeName, applicationTypeImageStoreVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", nil, "Failure preparing request") - return - } - - resp, err := client.UnprovisionApplicationTypeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure sending request") - return - } - - result, err = client.UnprovisionApplicationTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypePreparer prepares the UnprovisionApplicationType request. -func (client BaseClient) UnprovisionApplicationTypePreparer(ctx context.Context, applicationTypeName string, applicationTypeImageStoreVersion ApplicationTypeImageStoreVersion, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/Unprovision", pathParameters), - autorest.WithJSON(applicationTypeImageStoreVersion), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypeSender sends the UnprovisionApplicationType request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UnprovisionApplicationTypeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypeResponder handles the response to the UnprovisionApplicationType request. The method always -// closes the http.Response Body. -func (client BaseClient) UnprovisionApplicationTypeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgrade updates the parameters of an ongoing application upgrade from the ones specified at the -// time of starting the application upgrade. This may be required to mitigate stuck application upgrades due to -// incorrect parameters or issues in the application to make progress. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// applicationUpgradeUpdateDescription - describes the parameters for updating an existing application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicationID string, applicationUpgradeUpdateDescription ApplicationUpgradeUpdateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationUpgradeUpdateDescription, - Constraints: []validation.Constraint{{Target: "applicationUpgradeUpdateDescription.Name", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateApplicationUpgrade", err.Error()) - } - - req, err := client.UpdateApplicationUpgradePreparer(ctx, applicationID, applicationUpgradeUpdateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.UpdateApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradePreparer prepares the UpdateApplicationUpgrade request. -func (client BaseClient) UpdateApplicationUpgradePreparer(ctx context.Context, applicationID string, applicationUpgradeUpdateDescription ApplicationUpgradeUpdateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/UpdateUpgrade", pathParameters), - autorest.WithJSON(applicationUpgradeUpdateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradeSender sends the UpdateApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradeResponder handles the response to the UpdateApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateService updates the specified service using the given update description. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// serviceUpdateDescription - the updated configuration for the service. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateService(ctx context.Context, serviceID string, serviceUpdateDescription BasicServiceUpdateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateService", err.Error()) - } - - req, err := client.UpdateServicePreparer(ctx, serviceID, serviceUpdateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure sending request") - return - } - - result, err = client.UpdateServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServicePreparer prepares the UpdateService request. -func (client BaseClient) UpdateServicePreparer(ctx context.Context, serviceID string, serviceUpdateDescription BasicServiceUpdateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/Update", pathParameters), - autorest.WithJSON(serviceUpdateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceSender sends the UpdateService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceResponder handles the response to the UpdateService request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFile uploads contents of the file to the image store. Use this API if the file is small enough to upload again -// if the connection fails. The file's data needs to be added to the request body. The contents will be uploaded to the -// specified path. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UploadFile(ctx context.Context, contentPath string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UploadFile", err.Error()) - } - - req, err := client.UploadFilePreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", nil, "Failure preparing request") - return - } - - resp, err := client.UploadFileSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure sending request") - return - } - - result, err = client.UploadFileResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFilePreparer prepares the UploadFile request. -func (client BaseClient) UploadFilePreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "3.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileSender sends the UploadFile request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UploadFileSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileResponder handles the response to the UploadFile request. The method always -// closes the http.Response Body. -func (client BaseClient) UploadFileResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/servicefabric/5.6/servicefabric/models.go b/services/servicefabric/5.6/servicefabric/models.go deleted file mode 100644 index 1195040e32af..000000000000 --- a/services/servicefabric/5.6/servicefabric/models.go +++ /dev/null @@ -1,16012 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/date" - "github.com/satori/go.uuid" - "io" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState enumerates the values for aggregated health state. -type AggregatedHealthState string - -const ( - // Error ... - Error AggregatedHealthState = "Error" - // Invalid ... - Invalid AggregatedHealthState = "Invalid" - // Ok ... - Ok AggregatedHealthState = "Ok" - // Unknown ... - Unknown AggregatedHealthState = "Unknown" - // Warning ... - Warning AggregatedHealthState = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthStateValues returns an array of possible values for the AggregatedHealthState const type. -func PossibleAggregatedHealthStateValues() []AggregatedHealthState { - return []AggregatedHealthState{Error, Invalid, Ok, Unknown, Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState1 enumerates the values for aggregated health state 1. -type AggregatedHealthState1 string - -const ( - // AggregatedHealthState1Error ... - AggregatedHealthState1Error AggregatedHealthState1 = "Error" - // AggregatedHealthState1Invalid ... - AggregatedHealthState1Invalid AggregatedHealthState1 = "Invalid" - // AggregatedHealthState1Ok ... - AggregatedHealthState1Ok AggregatedHealthState1 = "Ok" - // AggregatedHealthState1Unknown ... - AggregatedHealthState1Unknown AggregatedHealthState1 = "Unknown" - // AggregatedHealthState1Warning ... - AggregatedHealthState1Warning AggregatedHealthState1 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState1Values returns an array of possible values for the AggregatedHealthState1 const type. -func PossibleAggregatedHealthState1Values() []AggregatedHealthState1 { - return []AggregatedHealthState1{AggregatedHealthState1Error, AggregatedHealthState1Invalid, AggregatedHealthState1Ok, AggregatedHealthState1Unknown, AggregatedHealthState1Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState2 enumerates the values for aggregated health state 2. -type AggregatedHealthState2 string - -const ( - // AggregatedHealthState2Error ... - AggregatedHealthState2Error AggregatedHealthState2 = "Error" - // AggregatedHealthState2Invalid ... - AggregatedHealthState2Invalid AggregatedHealthState2 = "Invalid" - // AggregatedHealthState2Ok ... - AggregatedHealthState2Ok AggregatedHealthState2 = "Ok" - // AggregatedHealthState2Unknown ... - AggregatedHealthState2Unknown AggregatedHealthState2 = "Unknown" - // AggregatedHealthState2Warning ... - AggregatedHealthState2Warning AggregatedHealthState2 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState2Values returns an array of possible values for the AggregatedHealthState2 const type. -func PossibleAggregatedHealthState2Values() []AggregatedHealthState2 { - return []AggregatedHealthState2{AggregatedHealthState2Error, AggregatedHealthState2Invalid, AggregatedHealthState2Ok, AggregatedHealthState2Unknown, AggregatedHealthState2Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Code enumerates the values for code. -type Code string - -const ( - // EABORT ... - EABORT Code = "E_ABORT" - // FABRICEAPPLICATIONALREADYEXISTS ... - FABRICEAPPLICATIONALREADYEXISTS Code = "FABRIC_E_APPLICATION_ALREADY_EXISTS" - // FABRICEAPPLICATIONALREADYINTARGETVERSION ... - FABRICEAPPLICATIONALREADYINTARGETVERSION Code = "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" - // FABRICEAPPLICATIONNOTFOUND ... - FABRICEAPPLICATIONNOTFOUND Code = "FABRIC_E_APPLICATION_NOT_FOUND" - // FABRICEAPPLICATIONNOTUPGRADING ... - FABRICEAPPLICATIONNOTUPGRADING Code = "FABRIC_E_APPLICATION_NOT_UPGRADING" - // FABRICEAPPLICATIONTYPEALREADYEXISTS ... - FABRICEAPPLICATIONTYPEALREADYEXISTS Code = "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - // FABRICEAPPLICATIONTYPEINUSE ... - FABRICEAPPLICATIONTYPEINUSE Code = "FABRIC_E_APPLICATION_TYPE_IN_USE" - // FABRICEAPPLICATIONTYPENOTFOUND ... - FABRICEAPPLICATIONTYPENOTFOUND Code = "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" - // FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS ... - FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS Code = "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" - // FABRICEAPPLICATIONUPGRADEINPROGRESS ... - FABRICEAPPLICATIONUPGRADEINPROGRESS Code = "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" - // FABRICEAPPLICATIONUPGRADEVALIDATIONERROR ... - FABRICEAPPLICATIONUPGRADEVALIDATIONERROR Code = "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" - // FABRICECOMMUNICATIONERROR ... - FABRICECOMMUNICATIONERROR Code = "FABRIC_E_COMMUNICATION_ERROR" - // FABRICECONFIGURATIONPARAMETERNOTFOUND ... - FABRICECONFIGURATIONPARAMETERNOTFOUND Code = "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" - // FABRICECONFIGURATIONSECTIONNOTFOUND ... - FABRICECONFIGURATIONSECTIONNOTFOUND Code = "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" - // FABRICEDIRECTORYNOTFOUND ... - FABRICEDIRECTORYNOTFOUND Code = "FABRIC_E_DIRECTORY_NOT_FOUND" - // FABRICEENUMERATIONCOMPLETED ... - FABRICEENUMERATIONCOMPLETED Code = "FABRIC_E_ENUMERATION_COMPLETED" - // FABRICEFABRICALREADYINTARGETVERSION ... - FABRICEFABRICALREADYINTARGETVERSION Code = "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" - // FABRICEFABRICNOTUPGRADING ... - FABRICEFABRICNOTUPGRADING Code = "FABRIC_E_FABRIC_NOT_UPGRADING" - // FABRICEFABRICUPGRADEINPROGRESS ... - FABRICEFABRICUPGRADEINPROGRESS Code = "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" - // FABRICEFABRICUPGRADEVALIDATIONERROR ... - FABRICEFABRICUPGRADEVALIDATIONERROR Code = "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" - // FABRICEFABRICVERSIONALREADYEXISTS ... - FABRICEFABRICVERSIONALREADYEXISTS Code = "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" - // FABRICEFABRICVERSIONINUSE ... - FABRICEFABRICVERSIONINUSE Code = "FABRIC_E_FABRIC_VERSION_IN_USE" - // FABRICEFABRICVERSIONNOTFOUND ... - FABRICEFABRICVERSIONNOTFOUND Code = "FABRIC_E_FABRIC_VERSION_NOT_FOUND" - // FABRICEFILENOTFOUND ... - FABRICEFILENOTFOUND Code = "FABRIC_E_FILE_NOT_FOUND" - // FABRICEHEALTHENTITYNOTFOUND ... - FABRICEHEALTHENTITYNOTFOUND Code = "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" - // FABRICEHEALTHSTALEREPORT ... - FABRICEHEALTHSTALEREPORT Code = "FABRIC_E_HEALTH_STALE_REPORT" - // FABRICEIMAGEBUILDERVALIDATIONERROR ... - FABRICEIMAGEBUILDERVALIDATIONERROR Code = "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" - // FABRICEINSTANCEIDMISMATCH ... - FABRICEINSTANCEIDMISMATCH Code = "FABRIC_E_INSTANCE_ID_MISMATCH" - // FABRICEINVALIDADDRESS ... - FABRICEINVALIDADDRESS Code = "FABRIC_E_INVALID_ADDRESS" - // FABRICEINVALIDATOMICGROUP ... - FABRICEINVALIDATOMICGROUP Code = "FABRIC_E_INVALID_ATOMIC_GROUP" - // FABRICEINVALIDCONFIGURATION ... - FABRICEINVALIDCONFIGURATION Code = "FABRIC_E_INVALID_CONFIGURATION" - // FABRICEINVALIDNAMEURI ... - FABRICEINVALIDNAMEURI Code = "FABRIC_E_INVALID_NAME_URI" - // FABRICEINVALIDPARTITIONKEY ... - FABRICEINVALIDPARTITIONKEY Code = "FABRIC_E_INVALID_PARTITION_KEY" - // FABRICEKEYNOTFOUND ... - FABRICEKEYNOTFOUND Code = "FABRIC_E_KEY_NOT_FOUND" - // FABRICEKEYTOOLARGE ... - FABRICEKEYTOOLARGE Code = "FABRIC_E_KEY_TOO_LARGE" - // FABRICENAMEALREADYEXISTS ... - FABRICENAMEALREADYEXISTS Code = "FABRIC_E_NAME_ALREADY_EXISTS" - // FABRICENAMEDOESNOTEXIST ... - FABRICENAMEDOESNOTEXIST Code = "FABRIC_E_NAME_DOES_NOT_EXIST" - // FABRICENAMENOTEMPTY ... - FABRICENAMENOTEMPTY Code = "FABRIC_E_NAME_NOT_EMPTY" - // FABRICENODEHASNOTSTOPPEDYET ... - FABRICENODEHASNOTSTOPPEDYET Code = "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" - // FABRICENODEISUP ... - FABRICENODEISUP Code = "FABRIC_E_NODE_IS_UP" - // FABRICENODENOTFOUND ... - FABRICENODENOTFOUND Code = "FABRIC_E_NODE_NOT_FOUND" - // FABRICENOTPRIMARY ... - FABRICENOTPRIMARY Code = "FABRIC_E_NOT_PRIMARY" - // FABRICENOTREADY ... - FABRICENOTREADY Code = "FABRIC_E_NOT_READY" - // FABRICENOWRITEQUORUM ... - FABRICENOWRITEQUORUM Code = "FABRIC_E_NO_WRITE_QUORUM" - // FABRICEOPERATIONNOTCOMPLETE ... - FABRICEOPERATIONNOTCOMPLETE Code = "FABRIC_E_OPERATION_NOT_COMPLETE" - // FABRICEPARTITIONNOTFOUND ... - FABRICEPARTITIONNOTFOUND Code = "FABRIC_E_PARTITION_NOT_FOUND" - // FABRICEPATHTOOLONG ... - FABRICEPATHTOOLONG Code = "FABRIC_E_PATH_TOO_LONG" - // FABRICEPROPERTYCHECKFAILED ... - FABRICEPROPERTYCHECKFAILED Code = "FABRIC_E_PROPERTY_CHECK_FAILED" - // FABRICEPROPERTYDOESNOTEXIST ... - FABRICEPROPERTYDOESNOTEXIST Code = "FABRIC_E_PROPERTY_DOES_NOT_EXIST" - // FABRICERECONFIGURATIONPENDING ... - FABRICERECONFIGURATIONPENDING Code = "FABRIC_E_RECONFIGURATION_PENDING" - // FABRICEREPLICADOESNOTEXIST ... - FABRICEREPLICADOESNOTEXIST Code = "FABRIC_E_REPLICA_DOES_NOT_EXIST" - // FABRICESEQUENCENUMBERCHECKFAILED ... - FABRICESEQUENCENUMBERCHECKFAILED Code = "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" - // FABRICESERVICEAFFINITYCHAINNOTSUPPORTED ... - FABRICESERVICEAFFINITYCHAINNOTSUPPORTED Code = "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" - // FABRICESERVICEALREADYEXISTS ... - FABRICESERVICEALREADYEXISTS Code = "FABRIC_E_SERVICE_ALREADY_EXISTS" - // FABRICESERVICEDOESNOTEXIST ... - FABRICESERVICEDOESNOTEXIST Code = "FABRIC_E_SERVICE_DOES_NOT_EXIST" - // FABRICESERVICEGROUPALREADYEXISTS ... - FABRICESERVICEGROUPALREADYEXISTS Code = "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" - // FABRICESERVICEGROUPDOESNOTEXIST ... - FABRICESERVICEGROUPDOESNOTEXIST Code = "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" - // FABRICESERVICEMANIFESTNOTFOUND ... - FABRICESERVICEMANIFESTNOTFOUND Code = "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" - // FABRICESERVICEMETADATAMISMATCH ... - FABRICESERVICEMETADATAMISMATCH Code = "FABRIC_E_SERVICE_METADATA_MISMATCH" - // FABRICESERVICEOFFLINE ... - FABRICESERVICEOFFLINE Code = "FABRIC_E_SERVICE_OFFLINE" - // FABRICESERVICETYPEMISMATCH ... - FABRICESERVICETYPEMISMATCH Code = "FABRIC_E_SERVICE_TYPE_MISMATCH" - // FABRICESERVICETYPENOTFOUND ... - FABRICESERVICETYPENOTFOUND Code = "FABRIC_E_SERVICE_TYPE_NOT_FOUND" - // FABRICESERVICETYPETEMPLATENOTFOUND ... - FABRICESERVICETYPETEMPLATENOTFOUND Code = "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" - // FABRICETIMEOUT ... - FABRICETIMEOUT Code = "FABRIC_E_TIMEOUT" - // FABRICEVALUEEMPTY ... - FABRICEVALUEEMPTY Code = "FABRIC_E_VALUE_EMPTY" - // FABRICEVALUETOOLARGE ... - FABRICEVALUETOOLARGE Code = "FABRIC_E_VALUE_TOO_LARGE" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCodeValues returns an array of possible values for the Code const type. -func PossibleCodeValues() []Code { - return []Code{EABORT, FABRICEAPPLICATIONALREADYEXISTS, FABRICEAPPLICATIONALREADYINTARGETVERSION, FABRICEAPPLICATIONNOTFOUND, FABRICEAPPLICATIONNOTUPGRADING, FABRICEAPPLICATIONTYPEALREADYEXISTS, FABRICEAPPLICATIONTYPEINUSE, FABRICEAPPLICATIONTYPENOTFOUND, FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS, FABRICEAPPLICATIONUPGRADEINPROGRESS, FABRICEAPPLICATIONUPGRADEVALIDATIONERROR, FABRICECOMMUNICATIONERROR, FABRICECONFIGURATIONPARAMETERNOTFOUND, FABRICECONFIGURATIONSECTIONNOTFOUND, FABRICEDIRECTORYNOTFOUND, FABRICEENUMERATIONCOMPLETED, FABRICEFABRICALREADYINTARGETVERSION, FABRICEFABRICNOTUPGRADING, FABRICEFABRICUPGRADEINPROGRESS, FABRICEFABRICUPGRADEVALIDATIONERROR, FABRICEFABRICVERSIONALREADYEXISTS, FABRICEFABRICVERSIONINUSE, FABRICEFABRICVERSIONNOTFOUND, FABRICEFILENOTFOUND, FABRICEHEALTHENTITYNOTFOUND, FABRICEHEALTHSTALEREPORT, FABRICEIMAGEBUILDERVALIDATIONERROR, FABRICEINSTANCEIDMISMATCH, FABRICEINVALIDADDRESS, FABRICEINVALIDATOMICGROUP, FABRICEINVALIDCONFIGURATION, FABRICEINVALIDNAMEURI, FABRICEINVALIDPARTITIONKEY, FABRICEKEYNOTFOUND, FABRICEKEYTOOLARGE, FABRICENAMEALREADYEXISTS, FABRICENAMEDOESNOTEXIST, FABRICENAMENOTEMPTY, FABRICENODEHASNOTSTOPPEDYET, FABRICENODEISUP, FABRICENODENOTFOUND, FABRICENOTPRIMARY, FABRICENOTREADY, FABRICENOWRITEQUORUM, FABRICEOPERATIONNOTCOMPLETE, FABRICEPARTITIONNOTFOUND, FABRICEPATHTOOLONG, FABRICEPROPERTYCHECKFAILED, FABRICEPROPERTYDOESNOTEXIST, FABRICERECONFIGURATIONPENDING, FABRICEREPLICADOESNOTEXIST, FABRICESEQUENCENUMBERCHECKFAILED, FABRICESERVICEAFFINITYCHAINNOTSUPPORTED, FABRICESERVICEALREADYEXISTS, FABRICESERVICEDOESNOTEXIST, FABRICESERVICEGROUPALREADYEXISTS, FABRICESERVICEGROUPDOESNOTEXIST, FABRICESERVICEMANIFESTNOTFOUND, FABRICESERVICEMETADATAMISMATCH, FABRICESERVICEOFFLINE, FABRICESERVICETYPEMISMATCH, FABRICESERVICETYPENOTFOUND, FABRICESERVICETYPETEMPLATENOTFOUND, FABRICETIMEOUT, FABRICEVALUEEMPTY, FABRICEVALUETOOLARGE} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateFabricDump enumerates the values for create fabric dump. -type CreateFabricDump string - -const ( - // False ... - False CreateFabricDump = "False" - // True ... - True CreateFabricDump = "True" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCreateFabricDumpValues returns an array of possible values for the CreateFabricDump const type. -func PossibleCreateFabricDumpValues() []CreateFabricDump { - return []CreateFabricDump{False, True} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CurrentReplicatorOperation enumerates the values for current replicator operation. -type CurrentReplicatorOperation string - -const ( - // CurrentReplicatorOperationAbort ... - CurrentReplicatorOperationAbort CurrentReplicatorOperation = "Abort" - // CurrentReplicatorOperationBuild ... - CurrentReplicatorOperationBuild CurrentReplicatorOperation = "Build" - // CurrentReplicatorOperationChangeRole ... - CurrentReplicatorOperationChangeRole CurrentReplicatorOperation = "ChangeRole" - // CurrentReplicatorOperationClose ... - CurrentReplicatorOperationClose CurrentReplicatorOperation = "Close" - // CurrentReplicatorOperationInvalid ... - CurrentReplicatorOperationInvalid CurrentReplicatorOperation = "Invalid" - // CurrentReplicatorOperationNone ... - CurrentReplicatorOperationNone CurrentReplicatorOperation = "None" - // CurrentReplicatorOperationOnDataLoss ... - CurrentReplicatorOperationOnDataLoss CurrentReplicatorOperation = "OnDataLoss" - // CurrentReplicatorOperationOpen ... - CurrentReplicatorOperationOpen CurrentReplicatorOperation = "Open" - // CurrentReplicatorOperationUpdateEpoch ... - CurrentReplicatorOperationUpdateEpoch CurrentReplicatorOperation = "UpdateEpoch" - // CurrentReplicatorOperationWaitForCatchup ... - CurrentReplicatorOperationWaitForCatchup CurrentReplicatorOperation = "WaitForCatchup" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCurrentReplicatorOperationValues returns an array of possible values for the CurrentReplicatorOperation const type. -func PossibleCurrentReplicatorOperationValues() []CurrentReplicatorOperation { - return []CurrentReplicatorOperation{CurrentReplicatorOperationAbort, CurrentReplicatorOperationBuild, CurrentReplicatorOperationChangeRole, CurrentReplicatorOperationClose, CurrentReplicatorOperationInvalid, CurrentReplicatorOperationNone, CurrentReplicatorOperationOnDataLoss, CurrentReplicatorOperationOpen, CurrentReplicatorOperationUpdateEpoch, CurrentReplicatorOperationWaitForCatchup} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CurrentServiceOperation enumerates the values for current service operation. -type CurrentServiceOperation string - -const ( - // CurrentServiceOperationAbort ... - CurrentServiceOperationAbort CurrentServiceOperation = "Abort" - // CurrentServiceOperationChangeRole ... - CurrentServiceOperationChangeRole CurrentServiceOperation = "ChangeRole" - // CurrentServiceOperationClose ... - CurrentServiceOperationClose CurrentServiceOperation = "Close" - // CurrentServiceOperationNone ... - CurrentServiceOperationNone CurrentServiceOperation = "None" - // CurrentServiceOperationOpen ... - CurrentServiceOperationOpen CurrentServiceOperation = "Open" - // CurrentServiceOperationUnknown ... - CurrentServiceOperationUnknown CurrentServiceOperation = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCurrentServiceOperationValues returns an array of possible values for the CurrentServiceOperation const type. -func PossibleCurrentServiceOperationValues() []CurrentServiceOperation { - return []CurrentServiceOperation{CurrentServiceOperationAbort, CurrentServiceOperationChangeRole, CurrentServiceOperationClose, CurrentServiceOperationNone, CurrentServiceOperationOpen, CurrentServiceOperationUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeactivationIntent enumerates the values for deactivation intent. -type DeactivationIntent string - -const ( - // Pause ... - Pause DeactivationIntent = "Pause" - // RemoveData ... - RemoveData DeactivationIntent = "RemoveData" - // Restart ... - Restart DeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDeactivationIntentValues returns an array of possible values for the DeactivationIntent const type. -func PossibleDeactivationIntentValues() []DeactivationIntent { - return []DeactivationIntent{Pause, RemoveData, Restart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost enumerates the values for default move cost. -type DefaultMoveCost string - -const ( - // High ... - High DefaultMoveCost = "High" - // Low ... - Low DefaultMoveCost = "Low" - // Medium ... - Medium DefaultMoveCost = "Medium" - // Zero ... - Zero DefaultMoveCost = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCostValues returns an array of possible values for the DefaultMoveCost const type. -func PossibleDefaultMoveCostValues() []DefaultMoveCost { - return []DefaultMoveCost{High, Low, Medium, Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost1 enumerates the values for default move cost 1. -type DefaultMoveCost1 string - -const ( - // DefaultMoveCost1High ... - DefaultMoveCost1High DefaultMoveCost1 = "High" - // DefaultMoveCost1Low ... - DefaultMoveCost1Low DefaultMoveCost1 = "Low" - // DefaultMoveCost1Medium ... - DefaultMoveCost1Medium DefaultMoveCost1 = "Medium" - // DefaultMoveCost1Zero ... - DefaultMoveCost1Zero DefaultMoveCost1 = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCost1Values returns an array of possible values for the DefaultMoveCost1 const type. -func PossibleDefaultMoveCost1Values() []DefaultMoveCost1 { - return []DefaultMoveCost1{DefaultMoveCost1High, DefaultMoveCost1Low, DefaultMoveCost1Medium, DefaultMoveCost1Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureAction enumerates the values for failure action. -type FailureAction string - -const ( - // FailureActionInvalid ... - FailureActionInvalid FailureAction = "Invalid" - // FailureActionManual ... - FailureActionManual FailureAction = "Manual" - // FailureActionRollback ... - FailureActionRollback FailureAction = "Rollback" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureActionValues returns an array of possible values for the FailureAction const type. -func PossibleFailureActionValues() []FailureAction { - return []FailureAction{FailureActionInvalid, FailureActionManual, FailureActionRollback} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureAction1 enumerates the values for failure action 1. -type FailureAction1 string - -const ( - // FailureAction1Invalid ... - FailureAction1Invalid FailureAction1 = "Invalid" - // FailureAction1Manual ... - FailureAction1Manual FailureAction1 = "Manual" - // FailureAction1Rollback ... - FailureAction1Rollback FailureAction1 = "Rollback" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureAction1Values returns an array of possible values for the FailureAction1 const type. -func PossibleFailureAction1Values() []FailureAction1 { - return []FailureAction1{FailureAction1Invalid, FailureAction1Manual, FailureAction1Rollback} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason enumerates the values for failure reason. -type FailureReason string - -const ( - // HealthCheck ... - HealthCheck FailureReason = "HealthCheck" - // Interrupted ... - Interrupted FailureReason = "Interrupted" - // None ... - None FailureReason = "None" - // UpgradeDomainTimeout ... - UpgradeDomainTimeout FailureReason = "UpgradeDomainTimeout" - // UpgradeTimeout ... - UpgradeTimeout FailureReason = "UpgradeTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReasonValues returns an array of possible values for the FailureReason const type. -func PossibleFailureReasonValues() []FailureReason { - return []FailureReason{HealthCheck, Interrupted, None, UpgradeDomainTimeout, UpgradeTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason1 enumerates the values for failure reason 1. -type FailureReason1 string - -const ( - // FailureReason1HealthCheck ... - FailureReason1HealthCheck FailureReason1 = "HealthCheck" - // FailureReason1Interrupted ... - FailureReason1Interrupted FailureReason1 = "Interrupted" - // FailureReason1None ... - FailureReason1None FailureReason1 = "None" - // FailureReason1UpgradeDomainTimeout ... - FailureReason1UpgradeDomainTimeout FailureReason1 = "UpgradeDomainTimeout" - // FailureReason1UpgradeTimeout ... - FailureReason1UpgradeTimeout FailureReason1 = "UpgradeTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReason1Values returns an array of possible values for the FailureReason1 const type. -func PossibleFailureReason1Values() []FailureReason1 { - return []FailureReason1{FailureReason1HealthCheck, FailureReason1Interrupted, FailureReason1None, FailureReason1UpgradeDomainTimeout, FailureReason1UpgradeTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState enumerates the values for health state. -type HealthState string - -const ( - // HealthStateError ... - HealthStateError HealthState = "Error" - // HealthStateInvalid ... - HealthStateInvalid HealthState = "Invalid" - // HealthStateOk ... - HealthStateOk HealthState = "Ok" - // HealthStateUnknown ... - HealthStateUnknown HealthState = "Unknown" - // HealthStateWarning ... - HealthStateWarning HealthState = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthStateValues returns an array of possible values for the HealthState const type. -func PossibleHealthStateValues() []HealthState { - return []HealthState{HealthStateError, HealthStateInvalid, HealthStateOk, HealthStateUnknown, HealthStateWarning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState1 enumerates the values for health state 1. -type HealthState1 string - -const ( - // HealthState1Error ... - HealthState1Error HealthState1 = "Error" - // HealthState1Invalid ... - HealthState1Invalid HealthState1 = "Invalid" - // HealthState1Ok ... - HealthState1Ok HealthState1 = "Ok" - // HealthState1Unknown ... - HealthState1Unknown HealthState1 = "Unknown" - // HealthState1Warning ... - HealthState1Warning HealthState1 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState1Values returns an array of possible values for the HealthState1 const type. -func PossibleHealthState1Values() []HealthState1 { - return []HealthState1{HealthState1Error, HealthState1Invalid, HealthState1Ok, HealthState1Unknown, HealthState1Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState2 enumerates the values for health state 2. -type HealthState2 string - -const ( - // HealthState2Error ... - HealthState2Error HealthState2 = "Error" - // HealthState2Invalid ... - HealthState2Invalid HealthState2 = "Invalid" - // HealthState2Ok ... - HealthState2Ok HealthState2 = "Ok" - // HealthState2Unknown ... - HealthState2Unknown HealthState2 = "Unknown" - // HealthState2Warning ... - HealthState2Warning HealthState2 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState2Values returns an array of possible values for the HealthState2 const type. -func PossibleHealthState2Values() []HealthState2 { - return []HealthState2{HealthState2Error, HealthState2Invalid, HealthState2Ok, HealthState2Unknown, HealthState2Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState3 enumerates the values for health state 3. -type HealthState3 string - -const ( - // HealthState3Error ... - HealthState3Error HealthState3 = "Error" - // HealthState3Invalid ... - HealthState3Invalid HealthState3 = "Invalid" - // HealthState3Ok ... - HealthState3Ok HealthState3 = "Ok" - // HealthState3Unknown ... - HealthState3Unknown HealthState3 = "Unknown" - // HealthState3Warning ... - HealthState3Warning HealthState3 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState3Values returns an array of possible values for the HealthState3 const type. -func PossibleHealthState3Values() []HealthState3 { - return []HealthState3{HealthState3Error, HealthState3Invalid, HealthState3Ok, HealthState3Unknown, HealthState3Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState4 enumerates the values for health state 4. -type HealthState4 string - -const ( - // HealthState4Error ... - HealthState4Error HealthState4 = "Error" - // HealthState4Invalid ... - HealthState4Invalid HealthState4 = "Invalid" - // HealthState4Ok ... - HealthState4Ok HealthState4 = "Ok" - // HealthState4Unknown ... - HealthState4Unknown HealthState4 = "Unknown" - // HealthState4Warning ... - HealthState4Warning HealthState4 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState4Values returns an array of possible values for the HealthState4 const type. -func PossibleHealthState4Values() []HealthState4 { - return []HealthState4{HealthState4Error, HealthState4Invalid, HealthState4Ok, HealthState4Unknown, HealthState4Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState5 enumerates the values for health state 5. -type HealthState5 string - -const ( - // HealthState5Error ... - HealthState5Error HealthState5 = "Error" - // HealthState5Invalid ... - HealthState5Invalid HealthState5 = "Invalid" - // HealthState5Ok ... - HealthState5Ok HealthState5 = "Ok" - // HealthState5Unknown ... - HealthState5Unknown HealthState5 = "Unknown" - // HealthState5Warning ... - HealthState5Warning HealthState5 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState5Values returns an array of possible values for the HealthState5 const type. -func PossibleHealthState5Values() []HealthState5 { - return []HealthState5{HealthState5Error, HealthState5Invalid, HealthState5Ok, HealthState5Unknown, HealthState5Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState6 enumerates the values for health state 6. -type HealthState6 string - -const ( - // HealthState6Error ... - HealthState6Error HealthState6 = "Error" - // HealthState6Invalid ... - HealthState6Invalid HealthState6 = "Invalid" - // HealthState6Ok ... - HealthState6Ok HealthState6 = "Ok" - // HealthState6Unknown ... - HealthState6Unknown HealthState6 = "Unknown" - // HealthState6Warning ... - HealthState6Warning HealthState6 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState6Values returns an array of possible values for the HealthState6 const type. -func PossibleHealthState6Values() []HealthState6 { - return []HealthState6{HealthState6Error, HealthState6Invalid, HealthState6Ok, HealthState6Unknown, HealthState6Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState7 enumerates the values for health state 7. -type HealthState7 string - -const ( - // HealthState7Error ... - HealthState7Error HealthState7 = "Error" - // HealthState7Invalid ... - HealthState7Invalid HealthState7 = "Invalid" - // HealthState7Ok ... - HealthState7Ok HealthState7 = "Ok" - // HealthState7Unknown ... - HealthState7Unknown HealthState7 = "Unknown" - // HealthState7Warning ... - HealthState7Warning HealthState7 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState7Values returns an array of possible values for the HealthState7 const type. -func PossibleHealthState7Values() []HealthState7 { - return []HealthState7{HealthState7Error, HealthState7Invalid, HealthState7Ok, HealthState7Unknown, HealthState7Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HostIsolationMode enumerates the values for host isolation mode. -type HostIsolationMode string - -const ( - // HostIsolationModeHyperV ... - HostIsolationModeHyperV HostIsolationMode = "HyperV" - // HostIsolationModeNone ... - HostIsolationModeNone HostIsolationMode = "None" - // HostIsolationModeProcess ... - HostIsolationModeProcess HostIsolationMode = "Process" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHostIsolationModeValues returns an array of possible values for the HostIsolationMode const type. -func PossibleHostIsolationModeValues() []HostIsolationMode { - return []HostIsolationMode{HostIsolationModeHyperV, HostIsolationModeNone, HostIsolationModeProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HostType enumerates the values for host type. -type HostType string - -const ( - // HostTypeContainerHost ... - HostTypeContainerHost HostType = "ContainerHost" - // HostTypeExeHost ... - HostTypeExeHost HostType = "ExeHost" - // HostTypeInvalid ... - HostTypeInvalid HostType = "Invalid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHostTypeValues returns an array of possible values for the HostType const type. -func PossibleHostTypeValues() []HostType { - return []HostType{HostTypeContainerHost, HostTypeExeHost, HostTypeInvalid} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Kind enumerates the values for kind. -type Kind string - -const ( - // KindInvalid ... - KindInvalid Kind = "Invalid" - // KindStatefulPrimary ... - KindStatefulPrimary Kind = "StatefulPrimary" - // KindStatefulSecondary ... - KindStatefulSecondary Kind = "StatefulSecondary" - // KindStateless ... - KindStateless Kind = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindValues returns an array of possible values for the Kind const type. -func PossibleKindValues() []Kind { - return []Kind{KindInvalid, KindStatefulPrimary, KindStatefulSecondary, KindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicChaosEvent enumerates the values for kind basic chaos event. -type KindBasicChaosEvent string - -const ( - // KindChaosEvent ... - KindChaosEvent KindBasicChaosEvent = "ChaosEvent" - // KindExecutingFaults ... - KindExecutingFaults KindBasicChaosEvent = "ExecutingFaults" - // KindStarted ... - KindStarted KindBasicChaosEvent = "Started" - // KindStopped ... - KindStopped KindBasicChaosEvent = "Stopped" - // KindTestError ... - KindTestError KindBasicChaosEvent = "TestError" - // KindValidationFailed ... - KindValidationFailed KindBasicChaosEvent = "ValidationFailed" - // KindWaiting ... - KindWaiting KindBasicChaosEvent = "Waiting" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicChaosEventValues returns an array of possible values for the KindBasicChaosEvent const type. -func PossibleKindBasicChaosEventValues() []KindBasicChaosEvent { - return []KindBasicChaosEvent{KindChaosEvent, KindExecutingFaults, KindStarted, KindStopped, KindTestError, KindValidationFailed, KindWaiting} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicHealthEvaluation enumerates the values for kind basic health evaluation. -type KindBasicHealthEvaluation string - -const ( - // KindApplication ... - KindApplication KindBasicHealthEvaluation = "Application" - // KindApplications ... - KindApplications KindBasicHealthEvaluation = "Applications" - // KindApplicationTypeApplications ... - KindApplicationTypeApplications KindBasicHealthEvaluation = "ApplicationTypeApplications" - // KindDeltaNodesCheck ... - KindDeltaNodesCheck KindBasicHealthEvaluation = "DeltaNodesCheck" - // KindDeployedApplication ... - KindDeployedApplication KindBasicHealthEvaluation = "DeployedApplication" - // KindDeployedApplications ... - KindDeployedApplications KindBasicHealthEvaluation = "DeployedApplications" - // KindDeployedServicePackage ... - KindDeployedServicePackage KindBasicHealthEvaluation = "DeployedServicePackage" - // KindDeployedServicePackages ... - KindDeployedServicePackages KindBasicHealthEvaluation = "DeployedServicePackages" - // KindEvent ... - KindEvent KindBasicHealthEvaluation = "Event" - // KindHealthEvaluation ... - KindHealthEvaluation KindBasicHealthEvaluation = "HealthEvaluation" - // KindNode ... - KindNode KindBasicHealthEvaluation = "Node" - // KindNodes ... - KindNodes KindBasicHealthEvaluation = "Nodes" - // KindPartition ... - KindPartition KindBasicHealthEvaluation = "Partition" - // KindPartitions ... - KindPartitions KindBasicHealthEvaluation = "Partitions" - // KindReplica ... - KindReplica KindBasicHealthEvaluation = "Replica" - // KindReplicas ... - KindReplicas KindBasicHealthEvaluation = "Replicas" - // KindService ... - KindService KindBasicHealthEvaluation = "Service" - // KindServices ... - KindServices KindBasicHealthEvaluation = "Services" - // KindSystemApplication ... - KindSystemApplication KindBasicHealthEvaluation = "SystemApplication" - // KindUpgradeDomainDeltaNodesCheck ... - KindUpgradeDomainDeltaNodesCheck KindBasicHealthEvaluation = "UpgradeDomainDeltaNodesCheck" - // KindUpgradeDomainNodes ... - KindUpgradeDomainNodes KindBasicHealthEvaluation = "UpgradeDomainNodes" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicHealthEvaluationValues returns an array of possible values for the KindBasicHealthEvaluation const type. -func PossibleKindBasicHealthEvaluationValues() []KindBasicHealthEvaluation { - return []KindBasicHealthEvaluation{KindApplication, KindApplications, KindApplicationTypeApplications, KindDeltaNodesCheck, KindDeployedApplication, KindDeployedApplications, KindDeployedServicePackage, KindDeployedServicePackages, KindEvent, KindHealthEvaluation, KindNode, KindNodes, KindPartition, KindPartitions, KindReplica, KindReplicas, KindService, KindServices, KindSystemApplication, KindUpgradeDomainDeltaNodesCheck, KindUpgradeDomainNodes} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicReplicaStatusBase enumerates the values for kind basic replica status base. -type KindBasicReplicaStatusBase string - -const ( - // KindKeyValueStore ... - KindKeyValueStore KindBasicReplicaStatusBase = "KeyValueStore" - // KindReplicaStatusBase ... - KindReplicaStatusBase KindBasicReplicaStatusBase = "ReplicaStatusBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicReplicaStatusBaseValues returns an array of possible values for the KindBasicReplicaStatusBase const type. -func PossibleKindBasicReplicaStatusBaseValues() []KindBasicReplicaStatusBase { - return []KindBasicReplicaStatusBase{KindKeyValueStore, KindReplicaStatusBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicReplicatorStatus enumerates the values for kind basic replicator status. -type KindBasicReplicatorStatus string - -const ( - // KindActiveSecondary ... - KindActiveSecondary KindBasicReplicatorStatus = "ActiveSecondary" - // KindIdleSecondary ... - KindIdleSecondary KindBasicReplicatorStatus = "IdleSecondary" - // KindPrimary ... - KindPrimary KindBasicReplicatorStatus = "Primary" - // KindReplicatorStatus ... - KindReplicatorStatus KindBasicReplicatorStatus = "ReplicatorStatus" - // KindSecondaryReplicatorStatus ... - KindSecondaryReplicatorStatus KindBasicReplicatorStatus = "SecondaryReplicatorStatus" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicReplicatorStatusValues returns an array of possible values for the KindBasicReplicatorStatus const type. -func PossibleKindBasicReplicatorStatusValues() []KindBasicReplicatorStatus { - return []KindBasicReplicatorStatus{KindActiveSecondary, KindIdleSecondary, KindPrimary, KindReplicatorStatus, KindSecondaryReplicatorStatus} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicSafetyCheck enumerates the values for kind basic safety check. -type KindBasicSafetyCheck string - -const ( - // KindEnsureAvailability ... - KindEnsureAvailability KindBasicSafetyCheck = "EnsureAvailability" - // KindEnsurePartitionQuorum ... - KindEnsurePartitionQuorum KindBasicSafetyCheck = "EnsurePartitionQuorum" - // KindEnsureSeedNodeQuorum ... - KindEnsureSeedNodeQuorum KindBasicSafetyCheck = "EnsureSeedNodeQuorum" - // KindPartitionSafetyCheck ... - KindPartitionSafetyCheck KindBasicSafetyCheck = "PartitionSafetyCheck" - // KindSafetyCheck ... - KindSafetyCheck KindBasicSafetyCheck = "SafetyCheck" - // KindWaitForInbuildReplica ... - KindWaitForInbuildReplica KindBasicSafetyCheck = "WaitForInbuildReplica" - // KindWaitForPrimaryPlacement ... - KindWaitForPrimaryPlacement KindBasicSafetyCheck = "WaitForPrimaryPlacement" - // KindWaitForPrimarySwap ... - KindWaitForPrimarySwap KindBasicSafetyCheck = "WaitForPrimarySwap" - // KindWaitForReconfiguration ... - KindWaitForReconfiguration KindBasicSafetyCheck = "WaitForReconfiguration" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicSafetyCheckValues returns an array of possible values for the KindBasicSafetyCheck const type. -func PossibleKindBasicSafetyCheckValues() []KindBasicSafetyCheck { - return []KindBasicSafetyCheck{KindEnsureAvailability, KindEnsurePartitionQuorum, KindEnsureSeedNodeQuorum, KindPartitionSafetyCheck, KindSafetyCheck, KindWaitForInbuildReplica, KindWaitForPrimaryPlacement, KindWaitForPrimarySwap, KindWaitForReconfiguration} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicServiceTypeDescription enumerates the values for kind basic service type description. -type KindBasicServiceTypeDescription string - -const ( - // KindServiceTypeDescription ... - KindServiceTypeDescription KindBasicServiceTypeDescription = "ServiceTypeDescription" - // KindStateful ... - KindStateful KindBasicServiceTypeDescription = "Stateful" - // KindStateless1 ... - KindStateless1 KindBasicServiceTypeDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicServiceTypeDescriptionValues returns an array of possible values for the KindBasicServiceTypeDescription const type. -func PossibleKindBasicServiceTypeDescriptionValues() []KindBasicServiceTypeDescription { - return []KindBasicServiceTypeDescription{KindServiceTypeDescription, KindStateful, KindStateless1} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationIntent enumerates the values for node deactivation intent. -type NodeDeactivationIntent string - -const ( - // NodeDeactivationIntentInvalid ... - NodeDeactivationIntentInvalid NodeDeactivationIntent = "Invalid" - // NodeDeactivationIntentPause ... - NodeDeactivationIntentPause NodeDeactivationIntent = "Pause" - // NodeDeactivationIntentRemoveData ... - NodeDeactivationIntentRemoveData NodeDeactivationIntent = "RemoveData" - // NodeDeactivationIntentRemoveNode ... - NodeDeactivationIntentRemoveNode NodeDeactivationIntent = "RemoveNode" - // NodeDeactivationIntentRestart ... - NodeDeactivationIntentRestart NodeDeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationIntentValues returns an array of possible values for the NodeDeactivationIntent const type. -func PossibleNodeDeactivationIntentValues() []NodeDeactivationIntent { - return []NodeDeactivationIntent{NodeDeactivationIntentInvalid, NodeDeactivationIntentPause, NodeDeactivationIntentRemoveData, NodeDeactivationIntentRemoveNode, NodeDeactivationIntentRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationIntent1 enumerates the values for node deactivation intent 1. -type NodeDeactivationIntent1 string - -const ( - // NodeDeactivationIntent1Invalid ... - NodeDeactivationIntent1Invalid NodeDeactivationIntent1 = "Invalid" - // NodeDeactivationIntent1Pause ... - NodeDeactivationIntent1Pause NodeDeactivationIntent1 = "Pause" - // NodeDeactivationIntent1RemoveData ... - NodeDeactivationIntent1RemoveData NodeDeactivationIntent1 = "RemoveData" - // NodeDeactivationIntent1RemoveNode ... - NodeDeactivationIntent1RemoveNode NodeDeactivationIntent1 = "RemoveNode" - // NodeDeactivationIntent1Restart ... - NodeDeactivationIntent1Restart NodeDeactivationIntent1 = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationIntent1Values returns an array of possible values for the NodeDeactivationIntent1 const type. -func PossibleNodeDeactivationIntent1Values() []NodeDeactivationIntent1 { - return []NodeDeactivationIntent1{NodeDeactivationIntent1Invalid, NodeDeactivationIntent1Pause, NodeDeactivationIntent1RemoveData, NodeDeactivationIntent1RemoveNode, NodeDeactivationIntent1Restart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationStatus enumerates the values for node deactivation status. -type NodeDeactivationStatus string - -const ( - // NodeDeactivationStatusCompleted ... - NodeDeactivationStatusCompleted NodeDeactivationStatus = "Completed" - // NodeDeactivationStatusNone ... - NodeDeactivationStatusNone NodeDeactivationStatus = "None" - // NodeDeactivationStatusSafetyCheckComplete ... - NodeDeactivationStatusSafetyCheckComplete NodeDeactivationStatus = "SafetyCheckComplete" - // NodeDeactivationStatusSafetyCheckInProgress ... - NodeDeactivationStatusSafetyCheckInProgress NodeDeactivationStatus = "SafetyCheckInProgress" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationStatusValues returns an array of possible values for the NodeDeactivationStatus const type. -func PossibleNodeDeactivationStatusValues() []NodeDeactivationStatus { - return []NodeDeactivationStatus{NodeDeactivationStatusCompleted, NodeDeactivationStatusNone, NodeDeactivationStatusSafetyCheckComplete, NodeDeactivationStatusSafetyCheckInProgress} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTaskType enumerates the values for node deactivation task type. -type NodeDeactivationTaskType string - -const ( - // NodeDeactivationTaskTypeClient ... - NodeDeactivationTaskTypeClient NodeDeactivationTaskType = "Client" - // NodeDeactivationTaskTypeInfrastructure ... - NodeDeactivationTaskTypeInfrastructure NodeDeactivationTaskType = "Infrastructure" - // NodeDeactivationTaskTypeInvalid ... - NodeDeactivationTaskTypeInvalid NodeDeactivationTaskType = "Invalid" - // NodeDeactivationTaskTypeRepair ... - NodeDeactivationTaskTypeRepair NodeDeactivationTaskType = "Repair" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationTaskTypeValues returns an array of possible values for the NodeDeactivationTaskType const type. -func PossibleNodeDeactivationTaskTypeValues() []NodeDeactivationTaskType { - return []NodeDeactivationTaskType{NodeDeactivationTaskTypeClient, NodeDeactivationTaskTypeInfrastructure, NodeDeactivationTaskTypeInvalid, NodeDeactivationTaskTypeRepair} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeStatus enumerates the values for node status. -type NodeStatus string - -const ( - // NodeStatusDisabled ... - NodeStatusDisabled NodeStatus = "Disabled" - // NodeStatusDisabling ... - NodeStatusDisabling NodeStatus = "Disabling" - // NodeStatusDown ... - NodeStatusDown NodeStatus = "Down" - // NodeStatusEnabling ... - NodeStatusEnabling NodeStatus = "Enabling" - // NodeStatusInvalid ... - NodeStatusInvalid NodeStatus = "Invalid" - // NodeStatusRemoved ... - NodeStatusRemoved NodeStatus = "Removed" - // NodeStatusUnknown ... - NodeStatusUnknown NodeStatus = "Unknown" - // NodeStatusUp ... - NodeStatusUp NodeStatus = "Up" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type. -func PossibleNodeStatusValues() []NodeStatus { - return []NodeStatus{NodeStatusDisabled, NodeStatusDisabling, NodeStatusDown, NodeStatusEnabling, NodeStatusInvalid, NodeStatusRemoved, NodeStatusUnknown, NodeStatusUp} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PackageSharingScope enumerates the values for package sharing scope. -type PackageSharingScope string - -const ( - // PackageSharingScopeAll ... - PackageSharingScopeAll PackageSharingScope = "All" - // PackageSharingScopeCode ... - PackageSharingScopeCode PackageSharingScope = "Code" - // PackageSharingScopeConfig ... - PackageSharingScopeConfig PackageSharingScope = "Config" - // PackageSharingScopeData ... - PackageSharingScopeData PackageSharingScope = "Data" - // PackageSharingScopeNone ... - PackageSharingScopeNone PackageSharingScope = "None" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePackageSharingScopeValues returns an array of possible values for the PackageSharingScope const type. -func PossiblePackageSharingScopeValues() []PackageSharingScope { - return []PackageSharingScope{PackageSharingScopeAll, PackageSharingScopeCode, PackageSharingScopeConfig, PackageSharingScopeData, PackageSharingScopeNone} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionScheme enumerates the values for partition scheme. -type PartitionScheme string - -const ( - // PartitionSchemeNamed ... - PartitionSchemeNamed PartitionScheme = "Named" - // PartitionSchemePartitionSchemeDescription ... - PartitionSchemePartitionSchemeDescription PartitionScheme = "PartitionSchemeDescription" - // PartitionSchemeSingleton ... - PartitionSchemeSingleton PartitionScheme = "Singleton" - // PartitionSchemeUniformInt64Range ... - PartitionSchemeUniformInt64Range PartitionScheme = "UniformInt64Range" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type. -func PossiblePartitionSchemeValues() []PartitionScheme { - return []PartitionScheme{PartitionSchemeNamed, PartitionSchemePartitionSchemeDescription, PartitionSchemeSingleton, PartitionSchemeUniformInt64Range} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionStatus enumerates the values for partition status. -type PartitionStatus string - -const ( - // PartitionStatusDeleting ... - PartitionStatusDeleting PartitionStatus = "Deleting" - // PartitionStatusInQuorumLoss ... - PartitionStatusInQuorumLoss PartitionStatus = "InQuorumLoss" - // PartitionStatusInvalid ... - PartitionStatusInvalid PartitionStatus = "Invalid" - // PartitionStatusNotReady ... - PartitionStatusNotReady PartitionStatus = "NotReady" - // PartitionStatusReady ... - PartitionStatusReady PartitionStatus = "Ready" - // PartitionStatusReconfiguring ... - PartitionStatusReconfiguring PartitionStatus = "Reconfiguring" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionStatusValues returns an array of possible values for the PartitionStatus const type. -func PossiblePartitionStatusValues() []PartitionStatus { - return []PartitionStatus{PartitionStatusDeleting, PartitionStatusInQuorumLoss, PartitionStatusInvalid, PartitionStatusNotReady, PartitionStatusReady, PartitionStatusReconfiguring} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReadStatus enumerates the values for read status. -type ReadStatus string - -const ( - // ReadStatusGranted ... - ReadStatusGranted ReadStatus = "Granted" - // ReadStatusInvalid ... - ReadStatusInvalid ReadStatus = "Invalid" - // ReadStatusNotPrimary ... - ReadStatusNotPrimary ReadStatus = "NotPrimary" - // ReadStatusNoWriteQuorum ... - ReadStatusNoWriteQuorum ReadStatus = "NoWriteQuorum" - // ReadStatusReconfigurationPending ... - ReadStatusReconfigurationPending ReadStatus = "ReconfigurationPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReadStatusValues returns an array of possible values for the ReadStatus const type. -func PossibleReadStatusValues() []ReadStatus { - return []ReadStatus{ReadStatusGranted, ReadStatusInvalid, ReadStatusNotPrimary, ReadStatusNoWriteQuorum, ReadStatusReconfigurationPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaRole enumerates the values for replica role. -type ReplicaRole string - -const ( - // ReplicaRoleActiveSecondary ... - ReplicaRoleActiveSecondary ReplicaRole = "ActiveSecondary" - // ReplicaRoleIdleSecondary ... - ReplicaRoleIdleSecondary ReplicaRole = "IdleSecondary" - // ReplicaRoleNone ... - ReplicaRoleNone ReplicaRole = "None" - // ReplicaRolePrimary ... - ReplicaRolePrimary ReplicaRole = "Primary" - // ReplicaRoleUnknown ... - ReplicaRoleUnknown ReplicaRole = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaRoleValues returns an array of possible values for the ReplicaRole const type. -func PossibleReplicaRoleValues() []ReplicaRole { - return []ReplicaRole{ReplicaRoleActiveSecondary, ReplicaRoleIdleSecondary, ReplicaRoleNone, ReplicaRolePrimary, ReplicaRoleUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaRole1 enumerates the values for replica role 1. -type ReplicaRole1 string - -const ( - // ReplicaRole1ActiveSecondary ... - ReplicaRole1ActiveSecondary ReplicaRole1 = "ActiveSecondary" - // ReplicaRole1IdleSecondary ... - ReplicaRole1IdleSecondary ReplicaRole1 = "IdleSecondary" - // ReplicaRole1None ... - ReplicaRole1None ReplicaRole1 = "None" - // ReplicaRole1Primary ... - ReplicaRole1Primary ReplicaRole1 = "Primary" - // ReplicaRole1Unknown ... - ReplicaRole1Unknown ReplicaRole1 = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaRole1Values returns an array of possible values for the ReplicaRole1 const type. -func PossibleReplicaRole1Values() []ReplicaRole1 { - return []ReplicaRole1{ReplicaRole1ActiveSecondary, ReplicaRole1IdleSecondary, ReplicaRole1None, ReplicaRole1Primary, ReplicaRole1Unknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus enumerates the values for replica status. -type ReplicaStatus string - -const ( - // ReplicaStatusDown ... - ReplicaStatusDown ReplicaStatus = "Down" - // ReplicaStatusDropped ... - ReplicaStatusDropped ReplicaStatus = "Dropped" - // ReplicaStatusInBuild ... - ReplicaStatusInBuild ReplicaStatus = "InBuild" - // ReplicaStatusInvalid ... - ReplicaStatusInvalid ReplicaStatus = "Invalid" - // ReplicaStatusReady ... - ReplicaStatusReady ReplicaStatus = "Ready" - // ReplicaStatusStandby ... - ReplicaStatusStandby ReplicaStatus = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatusValues returns an array of possible values for the ReplicaStatus const type. -func PossibleReplicaStatusValues() []ReplicaStatus { - return []ReplicaStatus{ReplicaStatusDown, ReplicaStatusDropped, ReplicaStatusInBuild, ReplicaStatusInvalid, ReplicaStatusReady, ReplicaStatusStandby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus1 enumerates the values for replica status 1. -type ReplicaStatus1 string - -const ( - // ReplicaStatus1Down ... - ReplicaStatus1Down ReplicaStatus1 = "Down" - // ReplicaStatus1Dropped ... - ReplicaStatus1Dropped ReplicaStatus1 = "Dropped" - // ReplicaStatus1InBuild ... - ReplicaStatus1InBuild ReplicaStatus1 = "InBuild" - // ReplicaStatus1Invalid ... - ReplicaStatus1Invalid ReplicaStatus1 = "Invalid" - // ReplicaStatus1Ready ... - ReplicaStatus1Ready ReplicaStatus1 = "Ready" - // ReplicaStatus1Standby ... - ReplicaStatus1Standby ReplicaStatus1 = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatus1Values returns an array of possible values for the ReplicaStatus1 const type. -func PossibleReplicaStatus1Values() []ReplicaStatus1 { - return []ReplicaStatus1{ReplicaStatus1Down, ReplicaStatus1Dropped, ReplicaStatus1InBuild, ReplicaStatus1Invalid, ReplicaStatus1Ready, ReplicaStatus1Standby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode enumerates the values for rolling upgrade mode. -type RollingUpgradeMode string - -const ( - // RollingUpgradeModeInvalid ... - RollingUpgradeModeInvalid RollingUpgradeMode = "Invalid" - // RollingUpgradeModeMonitored ... - RollingUpgradeModeMonitored RollingUpgradeMode = "Monitored" - // RollingUpgradeModeUnmonitoredAuto ... - RollingUpgradeModeUnmonitoredAuto RollingUpgradeMode = "UnmonitoredAuto" - // RollingUpgradeModeUnmonitoredManual ... - RollingUpgradeModeUnmonitoredManual RollingUpgradeMode = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeModeValues returns an array of possible values for the RollingUpgradeMode const type. -func PossibleRollingUpgradeModeValues() []RollingUpgradeMode { - return []RollingUpgradeMode{RollingUpgradeModeInvalid, RollingUpgradeModeMonitored, RollingUpgradeModeUnmonitoredAuto, RollingUpgradeModeUnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode1 enumerates the values for rolling upgrade mode 1. -type RollingUpgradeMode1 string - -const ( - // RollingUpgradeMode1Invalid ... - RollingUpgradeMode1Invalid RollingUpgradeMode1 = "Invalid" - // RollingUpgradeMode1Monitored ... - RollingUpgradeMode1Monitored RollingUpgradeMode1 = "Monitored" - // RollingUpgradeMode1UnmonitoredAuto ... - RollingUpgradeMode1UnmonitoredAuto RollingUpgradeMode1 = "UnmonitoredAuto" - // RollingUpgradeMode1UnmonitoredManual ... - RollingUpgradeMode1UnmonitoredManual RollingUpgradeMode1 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode1Values returns an array of possible values for the RollingUpgradeMode1 const type. -func PossibleRollingUpgradeMode1Values() []RollingUpgradeMode1 { - return []RollingUpgradeMode1{RollingUpgradeMode1Invalid, RollingUpgradeMode1Monitored, RollingUpgradeMode1UnmonitoredAuto, RollingUpgradeMode1UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode2 enumerates the values for rolling upgrade mode 2. -type RollingUpgradeMode2 string - -const ( - // RollingUpgradeMode2Invalid ... - RollingUpgradeMode2Invalid RollingUpgradeMode2 = "Invalid" - // RollingUpgradeMode2Monitored ... - RollingUpgradeMode2Monitored RollingUpgradeMode2 = "Monitored" - // RollingUpgradeMode2UnmonitoredAuto ... - RollingUpgradeMode2UnmonitoredAuto RollingUpgradeMode2 = "UnmonitoredAuto" - // RollingUpgradeMode2UnmonitoredManual ... - RollingUpgradeMode2UnmonitoredManual RollingUpgradeMode2 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode2Values returns an array of possible values for the RollingUpgradeMode2 const type. -func PossibleRollingUpgradeMode2Values() []RollingUpgradeMode2 { - return []RollingUpgradeMode2{RollingUpgradeMode2Invalid, RollingUpgradeMode2Monitored, RollingUpgradeMode2UnmonitoredAuto, RollingUpgradeMode2UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode3 enumerates the values for rolling upgrade mode 3. -type RollingUpgradeMode3 string - -const ( - // RollingUpgradeMode3Invalid ... - RollingUpgradeMode3Invalid RollingUpgradeMode3 = "Invalid" - // RollingUpgradeMode3Monitored ... - RollingUpgradeMode3Monitored RollingUpgradeMode3 = "Monitored" - // RollingUpgradeMode3UnmonitoredAuto ... - RollingUpgradeMode3UnmonitoredAuto RollingUpgradeMode3 = "UnmonitoredAuto" - // RollingUpgradeMode3UnmonitoredManual ... - RollingUpgradeMode3UnmonitoredManual RollingUpgradeMode3 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode3Values returns an array of possible values for the RollingUpgradeMode3 const type. -func PossibleRollingUpgradeMode3Values() []RollingUpgradeMode3 { - return []RollingUpgradeMode3{RollingUpgradeMode3Invalid, RollingUpgradeMode3Monitored, RollingUpgradeMode3UnmonitoredAuto, RollingUpgradeMode3UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode4 enumerates the values for rolling upgrade mode 4. -type RollingUpgradeMode4 string - -const ( - // RollingUpgradeMode4Invalid ... - RollingUpgradeMode4Invalid RollingUpgradeMode4 = "Invalid" - // RollingUpgradeMode4Monitored ... - RollingUpgradeMode4Monitored RollingUpgradeMode4 = "Monitored" - // RollingUpgradeMode4UnmonitoredAuto ... - RollingUpgradeMode4UnmonitoredAuto RollingUpgradeMode4 = "UnmonitoredAuto" - // RollingUpgradeMode4UnmonitoredManual ... - RollingUpgradeMode4UnmonitoredManual RollingUpgradeMode4 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode4Values returns an array of possible values for the RollingUpgradeMode4 const type. -func PossibleRollingUpgradeMode4Values() []RollingUpgradeMode4 { - return []RollingUpgradeMode4{RollingUpgradeMode4Invalid, RollingUpgradeMode4Monitored, RollingUpgradeMode4UnmonitoredAuto, RollingUpgradeMode4UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Scheme enumerates the values for scheme. -type Scheme string - -const ( - // SchemeAffinity ... - SchemeAffinity Scheme = "Affinity" - // SchemeAlignedAffinity ... - SchemeAlignedAffinity Scheme = "AlignedAffinity" - // SchemeInvalid ... - SchemeInvalid Scheme = "Invalid" - // SchemeNonAlignedAffinity ... - SchemeNonAlignedAffinity Scheme = "NonAlignedAffinity" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleSchemeValues returns an array of possible values for the Scheme const type. -func PossibleSchemeValues() []Scheme { - return []Scheme{SchemeAffinity, SchemeAlignedAffinity, SchemeInvalid, SchemeNonAlignedAffinity} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind enumerates the values for service kind. -type ServiceKind string - -const ( - // ServiceKindDeployedServiceReplicaInfo ... - ServiceKindDeployedServiceReplicaInfo ServiceKind = "DeployedServiceReplicaInfo" - // ServiceKindStateful ... - ServiceKindStateful ServiceKind = "Stateful" - // ServiceKindStateless ... - ServiceKindStateless ServiceKind = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. -func PossibleServiceKindValues() []ServiceKind { - return []ServiceKind{ServiceKindDeployedServiceReplicaInfo, ServiceKindStateful, ServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicDeployedServiceReplicaDetailInfo enumerates the values for service kind basic deployed -// service replica detail info. -type ServiceKindBasicDeployedServiceReplicaDetailInfo string - -const ( - // ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo ... - ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo ServiceKindBasicDeployedServiceReplicaDetailInfo = "DeployedServiceReplicaDetailInfo" - // ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful ... - ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateful" - // ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless ... - ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues returns an array of possible values for the ServiceKindBasicDeployedServiceReplicaDetailInfo const type. -func PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues() []ServiceKindBasicDeployedServiceReplicaDetailInfo { - return []ServiceKindBasicDeployedServiceReplicaDetailInfo{ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo, ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful, ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaHealth enumerates the values for service kind basic replica health. -type ServiceKindBasicReplicaHealth string - -const ( - // ServiceKindBasicReplicaHealthServiceKindReplicaHealth ... - ServiceKindBasicReplicaHealthServiceKindReplicaHealth ServiceKindBasicReplicaHealth = "ReplicaHealth" - // ServiceKindBasicReplicaHealthServiceKindStateful ... - ServiceKindBasicReplicaHealthServiceKindStateful ServiceKindBasicReplicaHealth = "Stateful" - // ServiceKindBasicReplicaHealthServiceKindStateless ... - ServiceKindBasicReplicaHealthServiceKindStateless ServiceKindBasicReplicaHealth = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaHealthValues returns an array of possible values for the ServiceKindBasicReplicaHealth const type. -func PossibleServiceKindBasicReplicaHealthValues() []ServiceKindBasicReplicaHealth { - return []ServiceKindBasicReplicaHealth{ServiceKindBasicReplicaHealthServiceKindReplicaHealth, ServiceKindBasicReplicaHealthServiceKindStateful, ServiceKindBasicReplicaHealthServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaHealthState enumerates the values for service kind basic replica health state. -type ServiceKindBasicReplicaHealthState string - -const ( - // ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ... - ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ServiceKindBasicReplicaHealthState = "ReplicaHealthState" - // ServiceKindBasicReplicaHealthStateServiceKindStateful ... - ServiceKindBasicReplicaHealthStateServiceKindStateful ServiceKindBasicReplicaHealthState = "Stateful" - // ServiceKindBasicReplicaHealthStateServiceKindStateless ... - ServiceKindBasicReplicaHealthStateServiceKindStateless ServiceKindBasicReplicaHealthState = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaHealthStateValues returns an array of possible values for the ServiceKindBasicReplicaHealthState const type. -func PossibleServiceKindBasicReplicaHealthStateValues() []ServiceKindBasicReplicaHealthState { - return []ServiceKindBasicReplicaHealthState{ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState, ServiceKindBasicReplicaHealthStateServiceKindStateful, ServiceKindBasicReplicaHealthStateServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaInfo enumerates the values for service kind basic replica info. -type ServiceKindBasicReplicaInfo string - -const ( - // ServiceKindBasicReplicaInfoServiceKindReplicaInfo ... - ServiceKindBasicReplicaInfoServiceKindReplicaInfo ServiceKindBasicReplicaInfo = "ReplicaInfo" - // ServiceKindBasicReplicaInfoServiceKindStateful ... - ServiceKindBasicReplicaInfoServiceKindStateful ServiceKindBasicReplicaInfo = "Stateful" - // ServiceKindBasicReplicaInfoServiceKindStateless ... - ServiceKindBasicReplicaInfoServiceKindStateless ServiceKindBasicReplicaInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaInfoValues returns an array of possible values for the ServiceKindBasicReplicaInfo const type. -func PossibleServiceKindBasicReplicaInfoValues() []ServiceKindBasicReplicaInfo { - return []ServiceKindBasicReplicaInfo{ServiceKindBasicReplicaInfoServiceKindReplicaInfo, ServiceKindBasicReplicaInfoServiceKindStateful, ServiceKindBasicReplicaInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceDescription enumerates the values for service kind basic service description. -type ServiceKindBasicServiceDescription string - -const ( - // ServiceKindBasicServiceDescriptionServiceKindServiceDescription ... - ServiceKindBasicServiceDescriptionServiceKindServiceDescription ServiceKindBasicServiceDescription = "ServiceDescription" - // ServiceKindBasicServiceDescriptionServiceKindStateful ... - ServiceKindBasicServiceDescriptionServiceKindStateful ServiceKindBasicServiceDescription = "Stateful" - // ServiceKindBasicServiceDescriptionServiceKindStateless ... - ServiceKindBasicServiceDescriptionServiceKindStateless ServiceKindBasicServiceDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceDescriptionValues returns an array of possible values for the ServiceKindBasicServiceDescription const type. -func PossibleServiceKindBasicServiceDescriptionValues() []ServiceKindBasicServiceDescription { - return []ServiceKindBasicServiceDescription{ServiceKindBasicServiceDescriptionServiceKindServiceDescription, ServiceKindBasicServiceDescriptionServiceKindStateful, ServiceKindBasicServiceDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceInfo enumerates the values for service kind basic service info. -type ServiceKindBasicServiceInfo string - -const ( - // ServiceKindBasicServiceInfoServiceKindServiceInfo ... - ServiceKindBasicServiceInfoServiceKindServiceInfo ServiceKindBasicServiceInfo = "ServiceInfo" - // ServiceKindBasicServiceInfoServiceKindStateful ... - ServiceKindBasicServiceInfoServiceKindStateful ServiceKindBasicServiceInfo = "Stateful" - // ServiceKindBasicServiceInfoServiceKindStateless ... - ServiceKindBasicServiceInfoServiceKindStateless ServiceKindBasicServiceInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceInfoValues returns an array of possible values for the ServiceKindBasicServiceInfo const type. -func PossibleServiceKindBasicServiceInfoValues() []ServiceKindBasicServiceInfo { - return []ServiceKindBasicServiceInfo{ServiceKindBasicServiceInfoServiceKindServiceInfo, ServiceKindBasicServiceInfoServiceKindStateful, ServiceKindBasicServiceInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServicePartitionInfo enumerates the values for service kind basic service partition info. -type ServiceKindBasicServicePartitionInfo string - -const ( - // ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ... - ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ServiceKindBasicServicePartitionInfo = "ServicePartitionInfo" - // ServiceKindBasicServicePartitionInfoServiceKindStateful ... - ServiceKindBasicServicePartitionInfoServiceKindStateful ServiceKindBasicServicePartitionInfo = "Stateful" - // ServiceKindBasicServicePartitionInfoServiceKindStateless ... - ServiceKindBasicServicePartitionInfoServiceKindStateless ServiceKindBasicServicePartitionInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServicePartitionInfoValues returns an array of possible values for the ServiceKindBasicServicePartitionInfo const type. -func PossibleServiceKindBasicServicePartitionInfoValues() []ServiceKindBasicServicePartitionInfo { - return []ServiceKindBasicServicePartitionInfo{ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo, ServiceKindBasicServicePartitionInfoServiceKindStateful, ServiceKindBasicServicePartitionInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceUpdateDescription enumerates the values for service kind basic service update -// description. -type ServiceKindBasicServiceUpdateDescription string - -const ( - // ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ... - ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ServiceKindBasicServiceUpdateDescription = "ServiceUpdateDescription" - // ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ... - ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ServiceKindBasicServiceUpdateDescription = "Stateful" - // ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ... - ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ServiceKindBasicServiceUpdateDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceUpdateDescriptionValues returns an array of possible values for the ServiceKindBasicServiceUpdateDescription const type. -func PossibleServiceKindBasicServiceUpdateDescriptionValues() []ServiceKindBasicServiceUpdateDescription { - return []ServiceKindBasicServiceUpdateDescription{ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription, ServiceKindBasicServiceUpdateDescriptionServiceKindStateful, ServiceKindBasicServiceUpdateDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePackageActivationMode enumerates the values for service package activation mode. -type ServicePackageActivationMode string - -const ( - // ExclusiveProcess ... - ExclusiveProcess ServicePackageActivationMode = "ExclusiveProcess" - // SharedProcess ... - SharedProcess ServicePackageActivationMode = "SharedProcess" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePackageActivationModeValues returns an array of possible values for the ServicePackageActivationMode const type. -func PossibleServicePackageActivationModeValues() []ServicePackageActivationMode { - return []ServicePackageActivationMode{ExclusiveProcess, SharedProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePackageActivationMode1 enumerates the values for service package activation mode 1. -type ServicePackageActivationMode1 string - -const ( - // ServicePackageActivationMode1ExclusiveProcess ... - ServicePackageActivationMode1ExclusiveProcess ServicePackageActivationMode1 = "ExclusiveProcess" - // ServicePackageActivationMode1SharedProcess ... - ServicePackageActivationMode1SharedProcess ServicePackageActivationMode1 = "SharedProcess" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePackageActivationMode1Values returns an array of possible values for the ServicePackageActivationMode1 const type. -func PossibleServicePackageActivationMode1Values() []ServicePackageActivationMode1 { - return []ServicePackageActivationMode1{ServicePackageActivationMode1ExclusiveProcess, ServicePackageActivationMode1SharedProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionKind enumerates the values for service partition kind. -type ServicePartitionKind string - -const ( - // ServicePartitionKindInt64Range ... - ServicePartitionKindInt64Range ServicePartitionKind = "Int64Range" - // ServicePartitionKindNamed ... - ServicePartitionKindNamed ServicePartitionKind = "Named" - // ServicePartitionKindPartitionInformation ... - ServicePartitionKindPartitionInformation ServicePartitionKind = "PartitionInformation" - // ServicePartitionKindSingleton ... - ServicePartitionKindSingleton ServicePartitionKind = "Singleton" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePartitionKindValues returns an array of possible values for the ServicePartitionKind const type. -func PossibleServicePartitionKindValues() []ServicePartitionKind { - return []ServicePartitionKind{ServicePartitionKindInt64Range, ServicePartitionKindNamed, ServicePartitionKindPartitionInformation, ServicePartitionKindSingleton} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceStatus enumerates the values for service status. -type ServiceStatus string - -const ( - // ServiceStatusActive ... - ServiceStatusActive ServiceStatus = "Active" - // ServiceStatusCreating ... - ServiceStatusCreating ServiceStatus = "Creating" - // ServiceStatusDeleting ... - ServiceStatusDeleting ServiceStatus = "Deleting" - // ServiceStatusFailed ... - ServiceStatusFailed ServiceStatus = "Failed" - // ServiceStatusUnknown ... - ServiceStatusUnknown ServiceStatus = "Unknown" - // ServiceStatusUpgrading ... - ServiceStatusUpgrading ServiceStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceStatusValues returns an array of possible values for the ServiceStatus const type. -func PossibleServiceStatusValues() []ServiceStatus { - return []ServiceStatus{ServiceStatusActive, ServiceStatusCreating, ServiceStatusDeleting, ServiceStatusFailed, ServiceStatusUnknown, ServiceStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State enumerates the values for state. -type State string - -const ( - // StateCompleted ... - StateCompleted State = "Completed" - // StateInProgress ... - StateInProgress State = "InProgress" - // StateInvalid ... - StateInvalid State = "Invalid" - // StatePending ... - StatePending State = "Pending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStateValues returns an array of possible values for the State const type. -func PossibleStateValues() []State { - return []State{StateCompleted, StateInProgress, StateInvalid, StatePending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State1 enumerates the values for state 1. -type State1 string - -const ( - // State1Cancelled ... - State1Cancelled State1 = "Cancelled" - // State1Completed ... - State1Completed State1 = "Completed" - // State1Faulted ... - State1Faulted State1 = "Faulted" - // State1ForceCancelled ... - State1ForceCancelled State1 = "ForceCancelled" - // State1Invalid ... - State1Invalid State1 = "Invalid" - // State1RollingBack ... - State1RollingBack State1 = "RollingBack" - // State1Running ... - State1Running State1 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState1Values returns an array of possible values for the State1 const type. -func PossibleState1Values() []State1 { - return []State1{State1Cancelled, State1Completed, State1Faulted, State1ForceCancelled, State1Invalid, State1RollingBack, State1Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State2 enumerates the values for state 2. -type State2 string - -const ( - // State2Cancelled ... - State2Cancelled State2 = "Cancelled" - // State2Completed ... - State2Completed State2 = "Completed" - // State2Faulted ... - State2Faulted State2 = "Faulted" - // State2ForceCancelled ... - State2ForceCancelled State2 = "ForceCancelled" - // State2Invalid ... - State2Invalid State2 = "Invalid" - // State2RollingBack ... - State2RollingBack State2 = "RollingBack" - // State2Running ... - State2Running State2 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState2Values returns an array of possible values for the State2 const type. -func PossibleState2Values() []State2 { - return []State2{State2Cancelled, State2Completed, State2Faulted, State2ForceCancelled, State2Invalid, State2RollingBack, State2Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State3 enumerates the values for state 3. -type State3 string - -const ( - // State3Cancelled ... - State3Cancelled State3 = "Cancelled" - // State3Completed ... - State3Completed State3 = "Completed" - // State3Faulted ... - State3Faulted State3 = "Faulted" - // State3ForceCancelled ... - State3ForceCancelled State3 = "ForceCancelled" - // State3Invalid ... - State3Invalid State3 = "Invalid" - // State3RollingBack ... - State3RollingBack State3 = "RollingBack" - // State3Running ... - State3Running State3 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState3Values returns an array of possible values for the State3 const type. -func PossibleState3Values() []State3 { - return []State3{State3Cancelled, State3Completed, State3Faulted, State3ForceCancelled, State3Invalid, State3RollingBack, State3Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State4 enumerates the values for state 4. -type State4 string - -const ( - // State4Cancelled ... - State4Cancelled State4 = "Cancelled" - // State4Completed ... - State4Completed State4 = "Completed" - // State4Faulted ... - State4Faulted State4 = "Faulted" - // State4ForceCancelled ... - State4ForceCancelled State4 = "ForceCancelled" - // State4Invalid ... - State4Invalid State4 = "Invalid" - // State4RollingBack ... - State4RollingBack State4 = "RollingBack" - // State4Running ... - State4Running State4 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState4Values returns an array of possible values for the State4 const type. -func PossibleState4Values() []State4 { - return []State4{State4Cancelled, State4Completed, State4Faulted, State4ForceCancelled, State4Invalid, State4RollingBack, State4Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State5 enumerates the values for state 5. -type State5 string - -const ( - // State5Cancelled ... - State5Cancelled State5 = "Cancelled" - // State5Completed ... - State5Completed State5 = "Completed" - // State5Faulted ... - State5Faulted State5 = "Faulted" - // State5ForceCancelled ... - State5ForceCancelled State5 = "ForceCancelled" - // State5Invalid ... - State5Invalid State5 = "Invalid" - // State5RollingBack ... - State5RollingBack State5 = "RollingBack" - // State5Running ... - State5Running State5 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState5Values returns an array of possible values for the State5 const type. -func PossibleState5Values() []State5 { - return []State5{State5Cancelled, State5Completed, State5Faulted, State5ForceCancelled, State5Invalid, State5RollingBack, State5Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status enumerates the values for status. -type Status string - -const ( - // StatusCreating ... - StatusCreating Status = "Creating" - // StatusDeleting ... - StatusDeleting Status = "Deleting" - // StatusFailed ... - StatusFailed Status = "Failed" - // StatusInvalid ... - StatusInvalid Status = "Invalid" - // StatusReady ... - StatusReady Status = "Ready" - // StatusUpgrading ... - StatusUpgrading Status = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatusValues returns an array of possible values for the Status const type. -func PossibleStatusValues() []Status { - return []Status{StatusCreating, StatusDeleting, StatusFailed, StatusInvalid, StatusReady, StatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status1 enumerates the values for status 1. -type Status1 string - -const ( - // Status1Available ... - Status1Available Status1 = "Available" - // Status1Failed ... - Status1Failed Status1 = "Failed" - // Status1Invalid ... - Status1Invalid Status1 = "Invalid" - // Status1Provisioning ... - Status1Provisioning Status1 = "Provisioning" - // Status1Unprovisioning ... - Status1Unprovisioning Status1 = "Unprovisioning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus1Values returns an array of possible values for the Status1 const type. -func PossibleStatus1Values() []Status1 { - return []Status1{Status1Available, Status1Failed, Status1Invalid, Status1Provisioning, Status1Unprovisioning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status2 enumerates the values for status 2. -type Status2 string - -const ( - // Status2Activating ... - Status2Activating Status2 = "Activating" - // Status2Active ... - Status2Active Status2 = "Active" - // Status2Deactivating ... - Status2Deactivating Status2 = "Deactivating" - // Status2Downloading ... - Status2Downloading Status2 = "Downloading" - // Status2Invalid ... - Status2Invalid Status2 = "Invalid" - // Status2Upgrading ... - Status2Upgrading Status2 = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus2Values returns an array of possible values for the Status2 const type. -func PossibleStatus2Values() []Status2 { - return []Status2{Status2Activating, Status2Active, Status2Deactivating, Status2Downloading, Status2Invalid, Status2Upgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status3 enumerates the values for status 3. -type Status3 string - -const ( - // Status3Invalid ... - Status3Invalid Status3 = "Invalid" - // Status3Pending ... - Status3Pending Status3 = "Pending" - // Status3Started ... - Status3Started Status3 = "Started" - // Status3Starting ... - Status3Starting Status3 = "Starting" - // Status3Stopped ... - Status3Stopped Status3 = "Stopped" - // Status3Stopping ... - Status3Stopping Status3 = "Stopping" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus3Values returns an array of possible values for the Status3 const type. -func PossibleStatus3Values() []Status3 { - return []Status3{Status3Invalid, Status3Pending, Status3Started, Status3Starting, Status3Stopped, Status3Stopping} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status4 enumerates the values for status 4. -type Status4 string - -const ( - // Status4Activating ... - Status4Activating Status4 = "Activating" - // Status4Active ... - Status4Active Status4 = "Active" - // Status4Deactivating ... - Status4Deactivating Status4 = "Deactivating" - // Status4Downloading ... - Status4Downloading Status4 = "Downloading" - // Status4Invalid ... - Status4Invalid Status4 = "Invalid" - // Status4Upgrading ... - Status4Upgrading Status4 = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus4Values returns an array of possible values for the Status4 const type. -func PossibleStatus4Values() []Status4 { - return []Status4{Status4Activating, Status4Active, Status4Deactivating, Status4Downloading, Status4Invalid, Status4Upgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status5 enumerates the values for status 5. -type Status5 string - -const ( - // Status5Invalid ... - Status5Invalid Status5 = "Invalid" - // Status5Running ... - Status5Running Status5 = "Running" - // Status5Stopped ... - Status5Stopped Status5 = "Stopped" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus5Values returns an array of possible values for the Status5 const type. -func PossibleStatus5Values() []Status5 { - return []Status5{Status5Invalid, Status5Running, Status5Stopped} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status6 enumerates the values for status 6. -type Status6 string - -const ( - // Status6Created ... - Status6Created Status6 = "Created" - // Status6Creating ... - Status6Creating Status6 = "Creating" - // Status6Deleting ... - Status6Deleting Status6 = "Deleting" - // Status6Failed ... - Status6Failed Status6 = "Failed" - // Status6Invalid ... - Status6Invalid Status6 = "Invalid" - // Status6Provisioning ... - Status6Provisioning Status6 = "Provisioning" - // Status6Unprovisioning ... - Status6Unprovisioning Status6 = "Unprovisioning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus6Values returns an array of possible values for the Status6 const type. -func PossibleStatus6Values() []Status6 { - return []Status6{Status6Created, Status6Creating, Status6Deleting, Status6Failed, Status6Invalid, Status6Provisioning, Status6Unprovisioning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status7 enumerates the values for status 7. -type Status7 string - -const ( - // Status7Activating ... - Status7Activating Status7 = "Activating" - // Status7Active ... - Status7Active Status7 = "Active" - // Status7Deactivating ... - Status7Deactivating Status7 = "Deactivating" - // Status7Downloading ... - Status7Downloading Status7 = "Downloading" - // Status7Invalid ... - Status7Invalid Status7 = "Invalid" - // Status7Upgrading ... - Status7Upgrading Status7 = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus7Values returns an array of possible values for the Status7 const type. -func PossibleStatus7Values() []Status7 { - return []Status7{Status7Activating, Status7Active, Status7Deactivating, Status7Downloading, Status7Invalid, Status7Upgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status8 enumerates the values for status 8. -type Status8 string - -const ( - // Status8Disabled ... - Status8Disabled Status8 = "Disabled" - // Status8Enabled ... - Status8Enabled Status8 = "Enabled" - // Status8Invalid ... - Status8Invalid Status8 = "Invalid" - // Status8Registered ... - Status8Registered Status8 = "Registered" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus8Values returns an array of possible values for the Status8 const type. -func PossibleStatus8Values() []Status8 { - return []Status8{Status8Disabled, Status8Enabled, Status8Invalid, Status8Registered} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Type enumerates the values for type. -type Type string - -const ( - // TypeInvalid ... - TypeInvalid Type = "Invalid" - // TypeNodeTransition ... - TypeNodeTransition Type = "NodeTransition" - // TypePartitionDataLoss ... - TypePartitionDataLoss Type = "PartitionDataLoss" - // TypePartitionQuorumLoss ... - TypePartitionQuorumLoss Type = "PartitionQuorumLoss" - // TypePartitionRestart ... - TypePartitionRestart Type = "PartitionRestart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeInvalid, TypeNodeTransition, TypePartitionDataLoss, TypePartitionQuorumLoss, TypePartitionRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// TypeBasicServicePlacementPolicyDescription enumerates the values for type basic service placement policy -// description. -type TypeBasicServicePlacementPolicyDescription string - -const ( - // TypeInvalidDomain ... - TypeInvalidDomain TypeBasicServicePlacementPolicyDescription = "InvalidDomain" - // TypeNonPartiallyPlaceService ... - TypeNonPartiallyPlaceService TypeBasicServicePlacementPolicyDescription = "NonPartiallyPlaceService" - // TypePreferPrimaryDomain ... - TypePreferPrimaryDomain TypeBasicServicePlacementPolicyDescription = "PreferPrimaryDomain" - // TypeRequireDomain ... - TypeRequireDomain TypeBasicServicePlacementPolicyDescription = "RequireDomain" - // TypeRequireDomainDistribution ... - TypeRequireDomainDistribution TypeBasicServicePlacementPolicyDescription = "RequireDomainDistribution" - // TypeServicePlacementPolicyDescription ... - TypeServicePlacementPolicyDescription TypeBasicServicePlacementPolicyDescription = "ServicePlacementPolicyDescription" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleTypeBasicServicePlacementPolicyDescriptionValues returns an array of possible values for the TypeBasicServicePlacementPolicyDescription const type. -func PossibleTypeBasicServicePlacementPolicyDescriptionValues() []TypeBasicServicePlacementPolicyDescription { - return []TypeBasicServicePlacementPolicyDescription{TypeInvalidDomain, TypeNonPartiallyPlaceService, TypePreferPrimaryDomain, TypeRequireDomain, TypeRequireDomainDistribution, TypeServicePlacementPolicyDescription} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind enumerates the values for upgrade kind. -type UpgradeKind string - -const ( - // UpgradeKindInvalid ... - UpgradeKindInvalid UpgradeKind = "Invalid" - // UpgradeKindRolling ... - UpgradeKindRolling UpgradeKind = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKindValues returns an array of possible values for the UpgradeKind const type. -func PossibleUpgradeKindValues() []UpgradeKind { - return []UpgradeKind{UpgradeKindInvalid, UpgradeKindRolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind1 enumerates the values for upgrade kind 1. -type UpgradeKind1 string - -const ( - // UpgradeKind1Invalid ... - UpgradeKind1Invalid UpgradeKind1 = "Invalid" - // UpgradeKind1Rolling ... - UpgradeKind1Rolling UpgradeKind1 = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind1Values returns an array of possible values for the UpgradeKind1 const type. -func PossibleUpgradeKind1Values() []UpgradeKind1 { - return []UpgradeKind1{UpgradeKind1Invalid, UpgradeKind1Rolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind2 enumerates the values for upgrade kind 2. -type UpgradeKind2 string - -const ( - // UpgradeKind2Invalid ... - UpgradeKind2Invalid UpgradeKind2 = "Invalid" - // UpgradeKind2Rolling ... - UpgradeKind2Rolling UpgradeKind2 = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind2Values returns an array of possible values for the UpgradeKind2 const type. -func PossibleUpgradeKind2Values() []UpgradeKind2 { - return []UpgradeKind2{UpgradeKind2Invalid, UpgradeKind2Rolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradePhase enumerates the values for upgrade phase. -type UpgradePhase string - -const ( - // UpgradePhaseInvalid ... - UpgradePhaseInvalid UpgradePhase = "Invalid" - // UpgradePhasePostUpgradeSafetyCheck ... - UpgradePhasePostUpgradeSafetyCheck UpgradePhase = "PostUpgradeSafetyCheck" - // UpgradePhasePreUpgradeSafetyCheck ... - UpgradePhasePreUpgradeSafetyCheck UpgradePhase = "PreUpgradeSafetyCheck" - // UpgradePhaseUpgrading ... - UpgradePhaseUpgrading UpgradePhase = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradePhaseValues returns an array of possible values for the UpgradePhase const type. -func PossibleUpgradePhaseValues() []UpgradePhase { - return []UpgradePhase{UpgradePhaseInvalid, UpgradePhasePostUpgradeSafetyCheck, UpgradePhasePreUpgradeSafetyCheck, UpgradePhaseUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState enumerates the values for upgrade state. -type UpgradeState string - -const ( - // UpgradeStateFailed ... - UpgradeStateFailed UpgradeState = "Failed" - // UpgradeStateInvalid ... - UpgradeStateInvalid UpgradeState = "Invalid" - // UpgradeStateRollingBackCompleted ... - UpgradeStateRollingBackCompleted UpgradeState = "RollingBackCompleted" - // UpgradeStateRollingBackInProgress ... - UpgradeStateRollingBackInProgress UpgradeState = "RollingBackInProgress" - // UpgradeStateRollingForwardCompleted ... - UpgradeStateRollingForwardCompleted UpgradeState = "RollingForwardCompleted" - // UpgradeStateRollingForwardInProgress ... - UpgradeStateRollingForwardInProgress UpgradeState = "RollingForwardInProgress" - // UpgradeStateRollingForwardPending ... - UpgradeStateRollingForwardPending UpgradeState = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeStateValues returns an array of possible values for the UpgradeState const type. -func PossibleUpgradeStateValues() []UpgradeState { - return []UpgradeState{UpgradeStateFailed, UpgradeStateInvalid, UpgradeStateRollingBackCompleted, UpgradeStateRollingBackInProgress, UpgradeStateRollingForwardCompleted, UpgradeStateRollingForwardInProgress, UpgradeStateRollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState1 enumerates the values for upgrade state 1. -type UpgradeState1 string - -const ( - // UpgradeState1Failed ... - UpgradeState1Failed UpgradeState1 = "Failed" - // UpgradeState1Invalid ... - UpgradeState1Invalid UpgradeState1 = "Invalid" - // UpgradeState1RollingBackCompleted ... - UpgradeState1RollingBackCompleted UpgradeState1 = "RollingBackCompleted" - // UpgradeState1RollingBackInProgress ... - UpgradeState1RollingBackInProgress UpgradeState1 = "RollingBackInProgress" - // UpgradeState1RollingForwardCompleted ... - UpgradeState1RollingForwardCompleted UpgradeState1 = "RollingForwardCompleted" - // UpgradeState1RollingForwardInProgress ... - UpgradeState1RollingForwardInProgress UpgradeState1 = "RollingForwardInProgress" - // UpgradeState1RollingForwardPending ... - UpgradeState1RollingForwardPending UpgradeState1 = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeState1Values returns an array of possible values for the UpgradeState1 const type. -func PossibleUpgradeState1Values() []UpgradeState1 { - return []UpgradeState1{UpgradeState1Failed, UpgradeState1Invalid, UpgradeState1RollingBackCompleted, UpgradeState1RollingBackInProgress, UpgradeState1RollingForwardCompleted, UpgradeState1RollingForwardInProgress, UpgradeState1RollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Weight enumerates the values for weight. -type Weight string - -const ( - // WeightHigh ... - WeightHigh Weight = "High" - // WeightLow ... - WeightLow Weight = "Low" - // WeightMedium ... - WeightMedium Weight = "Medium" - // WeightZero ... - WeightZero Weight = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleWeightValues returns an array of possible values for the Weight const type. -func PossibleWeightValues() []Weight { - return []Weight{WeightHigh, WeightLow, WeightMedium, WeightZero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WriteStatus enumerates the values for write status. -type WriteStatus string - -const ( - // WriteStatusGranted ... - WriteStatusGranted WriteStatus = "Granted" - // WriteStatusInvalid ... - WriteStatusInvalid WriteStatus = "Invalid" - // WriteStatusNotPrimary ... - WriteStatusNotPrimary WriteStatus = "NotPrimary" - // WriteStatusNoWriteQuorum ... - WriteStatusNoWriteQuorum WriteStatus = "NoWriteQuorum" - // WriteStatusReconfigurationPending ... - WriteStatusReconfigurationPending WriteStatus = "ReconfigurationPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleWriteStatusValues returns an array of possible values for the WriteStatus const type. -func PossibleWriteStatusValues() []WriteStatus { - return []WriteStatus{WriteStatusGranted, WriteStatusInvalid, WriteStatusNotPrimary, WriteStatusNoWriteQuorum, WriteStatusReconfigurationPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AadMetadata azure Active Directory metadata used for secured connection to cluster. -type AadMetadata struct { - // Authority - The AAD authority url. - Authority *string `json:"authority,omitempty"` - // Client - The AAD client application Id. - Client *string `json:"client,omitempty"` - // Cluster - The AAD cluster application Id. - Cluster *string `json:"cluster,omitempty"` - // Login - The AAD login url. - Login *string `json:"login,omitempty"` - // Redirect - The client application redirect address. - Redirect *string `json:"redirect,omitempty"` - // Tenant - The AAD tenant Id. - Tenant *string `json:"tenant,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AadMetadataObject azure Active Directory metadata object used for secured connection to cluster. -type AadMetadataObject struct { - autorest.Response `json:"-"` - // Type - The client authentication method. - Type *string `json:"type,omitempty"` - Metadata *AadMetadata `json:"metadata,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationCapacityDescription describes capacity information for services of this application. This description -// can be used for describing the following. -// - Reserving the capacity for the services on the nodes -// - Limiting the total number of nodes that services of this application can run on -// - Limiting the custom capacity metrics to limit the total consumption of this metric by the services of this -// application -type ApplicationCapacityDescription struct { - // MinimumNodes - The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property. - MinimumNodes *int64 `json:"MinimumNodes,omitempty"` - // MaximumNodes - The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. - MaximumNodes *int64 `json:"MaximumNodes,omitempty"` - ApplicationMetrics *[]ApplicationMetricDescription `json:"ApplicationMetrics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationDescription describes a Service Fabric application. -type ApplicationDescription struct { - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TypeVersion *string `json:"TypeVersion,omitempty"` - ParameterList *[]ApplicationParameter `json:"ParameterList,omitempty"` - ApplicationCapacity *ApplicationCapacityDescription `json:"ApplicationCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealth represents the health of the application. Contains the application aggregated health state and -// the service and deployed application health states. -type ApplicationHealth struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - // ServiceHealthStates - Service health states as found in the health store. - ServiceHealthStates *[]ServiceHealthState `json:"ServiceHealthStates,omitempty"` - // DeployedApplicationHealthStates - Deployed application health states as found in the health store. - DeployedApplicationHealthStates *[]DeployedApplicationHealthState `json:"DeployedApplicationHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthEvaluation represents health evaluation for an application, containing information about the -// data and the algorithm used by the health store to evaluate health. -type ApplicationHealthEvaluation struct { - // ApplicationName - Full name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the application. The types of the unhealthy evaluations can be DeployedApplicationsHealthEvaluation, ServicesHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplication - objectMap := make(map[string]interface{}) - if ahe.ApplicationName != nil { - objectMap["ApplicationName"] = ahe.ApplicationName - } - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicies defines the application health policy map used to evaluate the health of an -// application or one of its children entities. -type ApplicationHealthPolicies struct { - // ApplicationHealthPolicyMap - The wrapper that contains the map with application health policies used to evaluate specific applications in the cluster. - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of its -// children entities. -type ApplicationHealthPolicy struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // MaxPercentUnhealthyDeployedApplications - The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. - // This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. - // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - // DefaultServiceTypeHealthPolicy - The health policy used by default to evaluate the health of a service type. - DefaultServiceTypeHealthPolicy *ServiceTypeHealthPolicy `json:"DefaultServiceTypeHealthPolicy,omitempty"` - // ServiceTypeHealthPolicyMap - The map with service type health policy per service type name. The map is empty be default. - ServiceTypeHealthPolicyMap *[]ServiceTypeHealthPolicyMapItem `json:"ServiceTypeHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicyMapItem defines an item in ApplicationHealthPolicyMap. -type ApplicationHealthPolicyMapItem struct { - // Key - The key of the application health policy map item. This is the name of the application. - Key *string `json:"Key,omitempty"` - // Value - The value of the application health policy map item. This is the ApplicationHealthPolicy for this application. - Value *ApplicationHealthPolicy `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthState represents the health state of an application, which contains the application identifier -// and the aggregated health state. -type ApplicationHealthState struct { - // Name - Full name of the application. - Name *string `json:"Name,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateChunk represents the health state chunk of a application. -// The application health state chunk contains the application name, its aggregated health state and any children -// services and deployed applications that respect the filters in cluster health chunk query description. -type ApplicationHealthStateChunk struct { - // ApplicationName - The name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ApplicationTypeName - The application type name for the application. - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - // ServiceHealthStateChunks - The list of service health state chunks in the cluster that respect the filters in the cluster health chunk query description. - ServiceHealthStateChunks *ServiceHealthStateChunkList `json:"ServiceHealthStateChunks,omitempty"` - // DeployedApplicationHealthStateChunks - The list of deployed application health state chunks in the cluster that respect the filters in the cluster health chunk query description. - DeployedApplicationHealthStateChunks *DeployedApplicationHealthStateChunkList `json:"DeployedApplicationHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateChunkList the list of application health state chunks in the cluster that respect the -// input filters in the chunk query. Returned by get cluster health state chunks query. -type ApplicationHealthStateChunkList struct { - // Items - The list of application health state chunks that respect the input filters in the chunk query. - Items *[]ApplicationHealthStateChunk `json:"Items,omitempty"` - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateFilter defines matching criteria to determine whether a application should be included in -// the cluster health chunk. -// One filter can match zero, one or multiple applications, depending on its properties. -type ApplicationHealthStateFilter struct { - // ApplicationNameFilter - The name of the application that matches the filter, as a fabric uri. The filter is applied only to the specified application, if it exists. - // If the application doesn't exist, no application is returned in the cluster health chunk based on this filter. - // If the application exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all applications are matched against the other filter members, like health state filter. - ApplicationNameFilter *string `json:"ApplicationNameFilter,omitempty"` - // ApplicationTypeNameFilter - The name of the application type that matches the filter. - // If specified, the filter is applied only to applications of the selected application type, if any exists. - // If no applications of the specified application type exists, no application is returned in the cluster health chunk based on this filter. - // Each application of the specified application type is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all applications are matched against the other filter members, like health state filter. - ApplicationTypeNameFilter *string `json:"ApplicationTypeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the applications. It allows selecting applications if they match the desired health states. - // The possible values are integer value of one of the following health states. Only applications that match the filter are returned. All applications are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the application name or the application type name are specified. If the filter has default value and application name is specified, the matching application is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches applications with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // ServiceFilters - Defines a list of filters that specify which services to be included in the returned cluster health chunk as children of the application. The services are returned only if the parent application matches a filter. - // If the list is empty, no services are returned. All the services are used to evaluate the parent application aggregated health state, regardless of the input filters. - // The application filter may specify multiple service filters. - // For example, it can specify a filter to return all services with health state Error and another filter to always include a service identified by its service name. - ServiceFilters *[]ServiceHealthStateFilter `json:"ServiceFilters,omitempty"` - // DeployedApplicationFilters - Defines a list of filters that specify which deployed applications to be included in the returned cluster health chunk as children of the application. The deployed applications are returned only if the parent application matches a filter. - // If the list is empty, no deployed applications are returned. All the deployed applications are used to evaluate the parent application aggregated health state, regardless of the input filters. - // The application filter may specify multiple deployed application filters. - // For example, it can specify a filter to return all deployed applications with health state Error and another filter to always include a deployed application on a specified node. - DeployedApplicationFilters *[]DeployedApplicationHealthStateFilter `json:"DeployedApplicationFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationInfo information about a Service Fabric application. -type ApplicationInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - // Name - The Uniform Resource Identifier(URI) of the application. - Name *string `json:"Name,omitempty"` - // TypeName - The Name of the application type as specified in the Application Manifest. - TypeName *string `json:"TypeName,omitempty"` - // TypeVersion - The version of the application type as specified in the Application Manifest. - TypeVersion *string `json:"TypeVersion,omitempty"` - // Status - Possible values include: 'StatusInvalid', 'StatusReady', 'StatusUpgrading', 'StatusCreating', 'StatusDeleting', 'StatusFailed' - Status Status `json:"Status,omitempty"` - Parameters *[]ApplicationParameter `json:"Parameters,omitempty"` - // HealthState - Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationMetricDescription describes capacity information for a custom resource balancing metric. This can be -// used to limit the total consumption of this metric by the services of this application. -type ApplicationMetricDescription struct { - // Name - The name of the metric. - Name *string `json:"Name,omitempty"` - // MaximumCapacity - The maximum node capacity for Service Fabric application. - // This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value. - // If set to zero, capacity for this metric is unlimited on each node. - // When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. - // When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. - MaximumCapacity *int64 `json:"MaximumCapacity,omitempty"` - // ReservationCapacity - The node reservation capacity for Service Fabric application. - // This is the amount of load which is reserved on nodes which have instances of this application. - // If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application. - // If set to zero, no capacity is reserved for this metric. - // When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric. - ReservationCapacity *int64 `json:"ReservationCapacity,omitempty"` - // TotalApplicationCapacity - The total metric capacity for Service Fabric application. - // This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value. - // When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value. - TotalApplicationCapacity *int64 `json:"TotalApplicationCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationNameInfo information about the application name. -type ApplicationNameInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationParameter describes an application parameter override to be applied when creating or upgrading an -// application. -type ApplicationParameter struct { - // Key - The name of the parameter. - Key *string `json:"Key,omitempty"` - // Value - The value of the parameter. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationsHealthEvaluation represents health evaluation for applications, containing health evaluations for -// each unhealthy application that impacted current aggregated health state. -type ApplicationsHealthEvaluation struct { - // MaxPercentUnhealthyApplications - Maximum allowed percentage of unhealthy applications from the ClusterHealthPolicy. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // TotalCount - Total number of applications from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ApplicationHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplications - objectMap := make(map[string]interface{}) - if ahe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = ahe.MaxPercentUnhealthyApplications - } - if ahe.TotalCount != nil { - objectMap["TotalCount"] = ahe.TotalCount - } - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeApplicationsHealthEvaluation represents health evaluation for applications of a particular -// application type. The application type applications evaluation can be returned when cluster health evaluation -// returns unhealthy aggregated health state, either Error or Warning. It contains health evaluations for each -// unhealthy application of the included application type that impacted current aggregated health state. -type ApplicationTypeApplicationsHealthEvaluation struct { - // ApplicationTypeName - Name of the application type. - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - // MaxPercentUnhealthyApplications - Maximum allowed percentage of unhealthy applications for the application type, specified as an entry in ApplicationTypeHealthPolicyMap. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // TotalCount - Total number of applications of the application type found in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ApplicationHealthEvaluation of this application type that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - atahe.Kind = KindApplicationTypeApplications - objectMap := make(map[string]interface{}) - if atahe.ApplicationTypeName != nil { - objectMap["ApplicationTypeName"] = atahe.ApplicationTypeName - } - if atahe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = atahe.MaxPercentUnhealthyApplications - } - if atahe.TotalCount != nil { - objectMap["TotalCount"] = atahe.TotalCount - } - if atahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = atahe.UnhealthyEvaluations - } - if atahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = atahe.AggregatedHealthState - } - if atahe.Description != nil { - objectMap["Description"] = atahe.Description - } - if atahe.Kind != "" { - objectMap["Kind"] = atahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return &atahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &atahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeHealthPolicyMapItem defines an item in ApplicationTypeHealthPolicyMap. -type ApplicationTypeHealthPolicyMapItem struct { - // Key - The key of the application type health policy map item. This is the name of the application type. - Key *string `json:"Key,omitempty"` - // Value - The value of the application type health policy map item. - // The max percent unhealthy applications allowed for the application type. Must be between zero and 100. - Value *int32 `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeImageStorePath path description for the application package in the image store specified during -// the prior copy operation. -type ApplicationTypeImageStorePath struct { - // ApplicationTypeBuildPath - The relative image store path to the application package. - ApplicationTypeBuildPath *string `json:"ApplicationTypeBuildPath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeImageStoreVersion a version description for the application type -type ApplicationTypeImageStoreVersion struct { - // ApplicationTypeVersion - The application type version. - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeInfo information about an application type. -type ApplicationTypeInfo struct { - // Name - The name of the application type. - Name *string `json:"Name,omitempty"` - // Version - The version of the application type. - Version *string `json:"Version,omitempty"` - // Status - Possible values include: 'Status1Invalid', 'Status1Provisioning', 'Status1Available', 'Status1Unprovisioning', 'Status1Failed' - Status Status1 `json:"Status,omitempty"` - DefaultParameterList *[]ApplicationParameter `json:"DefaultParameterList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeManifest contains the manifest describing an application type registered in a Service Fabric -// cluster. -type ApplicationTypeManifest struct { - autorest.Response `json:"-"` - // Manifest - The XML manifest as a string. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeDescription describes the parameters for an application upgrade. Please note that upgrade -// description replaces the existing application description. This means that if the parameters are not specified, -// the existing parameters on the applications will be overwritten with the empty parameters list. This would -// results in application using the default value of the parameters from the application manifest. If you do not -// want to change any existing parameter values, please get the application parameters first using the -// GetApplicationInfo query and then supply those values as Parameters in this ApplicationUpgradeDescription. -type ApplicationUpgradeDescription struct { - Name *string `json:"Name,omitempty"` - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - Parameters *[]ApplicationParameter `json:"Parameters,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeModeInvalid', 'RollingUpgradeModeUnmonitoredAuto', 'RollingUpgradeModeUnmonitoredManual', 'RollingUpgradeModeMonitored' - RollingUpgradeMode RollingUpgradeMode `json:"RollingUpgradeMode,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeProgressInfo describes the parameters for an application upgrade. -type ApplicationUpgradeProgressInfo struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - UpgradeDomains *[]UpgradeDomainInfo `json:"UpgradeDomains,omitempty"` - // UpgradeState - Possible values include: 'UpgradeStateInvalid', 'UpgradeStateRollingBackInProgress', 'UpgradeStateRollingBackCompleted', 'UpgradeStateRollingForwardPending', 'UpgradeStateRollingForwardInProgress', 'UpgradeStateRollingForwardCompleted', 'UpgradeStateFailed' - UpgradeState UpgradeState `json:"UpgradeState,omitempty"` - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode1Invalid', 'RollingUpgradeMode1UnmonitoredAuto', 'RollingUpgradeMode1UnmonitoredManual', 'RollingUpgradeMode1Monitored' - RollingUpgradeMode RollingUpgradeMode1 `json:"RollingUpgradeMode,omitempty"` - UpgradeDescription *ApplicationUpgradeDescription `json:"UpgradeDescription,omitempty"` - // UpgradeDurationInMilliseconds - The estimated total amount of time spent processing the overall upgrade. - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - // UpgradeDomainDurationInMilliseconds - The estimated total amount of time spent processing the current upgrade domain. - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - // StartTimestampUtc - The estimated UTC datetime when the upgrade started. - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - // FailureTimestampUtc - The estimated UTC datetime when the upgrade failed and FailureAction was executed. - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - Possible values include: 'None', 'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout', 'UpgradeTimeout' - FailureReason FailureReason `json:"FailureReason,omitempty"` - UpgradeDomainProgressAtFailure *FailureUpgradeDomainProgressInfo `json:"UpgradeDomainProgressAtFailure,omitempty"` - // UpgradeStatusDetails - Additional detailed information about the status of the pending upgrade. - UpgradeStatusDetails *string `json:"UpgradeStatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeUpdateDescription describes the parameters for updating an ongoing application upgrade. -type ApplicationUpgradeUpdateDescription struct { - Name *string `json:"Name,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKind2Invalid', 'UpgradeKind2Rolling' - UpgradeKind UpgradeKind2 `json:"UpgradeKind,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` - UpdateDescription *RollingUpgradeUpdateDescription `json:"UpdateDescription,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosContext describes a map, which is a collection of (string, string) type key-value pairs. The map can be -// used to record information about -// the Chaos run. There cannot be more than 100 such pairs and each string (key or value) can be at most 4095 -// characters long. -// This map is set by the starter of the Chaos run to optionally store the context about the specific run. -type ChaosContext struct { - Map interface{} `json:"Map,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosContextMapItem describes an item in the ChaosContextMap in ChaosParameters. -type ChaosContextMapItem struct { - // Key - The key for a ChaosContextMapItem. - Key *string `json:"Key,omitempty"` - // Value - The value for a ChaosContextMapItem. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicChaosEvent represents an event generated during a Chaos run. -type BasicChaosEvent interface { - AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) - AsStartedChaosEvent() (*StartedChaosEvent, bool) - AsStoppedChaosEvent() (*StoppedChaosEvent, bool) - AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) - AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) - AsWaitingChaosEvent() (*WaitingChaosEvent, bool) - AsChaosEvent() (*ChaosEvent, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosEvent represents an event generated during a Chaos run. -type ChaosEvent struct { - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -func unmarshalBasicChaosEvent(body []byte) (BasicChaosEvent, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindExecutingFaults): - var efce ExecutingFaultsChaosEvent - err := json.Unmarshal(body, &efce) - return efce, err - case string(KindStarted): - var sce StartedChaosEvent - err := json.Unmarshal(body, &sce) - return sce, err - case string(KindStopped): - var sce StoppedChaosEvent - err := json.Unmarshal(body, &sce) - return sce, err - case string(KindTestError): - var tece TestErrorChaosEvent - err := json.Unmarshal(body, &tece) - return tece, err - case string(KindValidationFailed): - var vfce ValidationFailedChaosEvent - err := json.Unmarshal(body, &vfce) - return vfce, err - case string(KindWaiting): - var wce WaitingChaosEvent - err := json.Unmarshal(body, &wce) - return wce, err - default: - var ce ChaosEvent - err := json.Unmarshal(body, &ce) - return ce, err - } -} -func unmarshalBasicChaosEventArray(body []byte) ([]BasicChaosEvent, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - ceArray := make([]BasicChaosEvent, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ce, err := unmarshalBasicChaosEvent(*rawMessage) - if err != nil { - return nil, err - } - ceArray[index] = ce - } - return ceArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ChaosEvent. -func (ce ChaosEvent) MarshalJSON() ([]byte, error) { - ce.Kind = KindChaosEvent - objectMap := make(map[string]interface{}) - if ce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = ce.TimeStampUtc - } - if ce.Kind != "" { - objectMap["Kind"] = ce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return &ce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &ce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosEventWrapper wrapper object for Chaos event. -type ChaosEventWrapper struct { - ChaosEvent BasicChaosEvent `json:"ChaosEvent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ChaosEventWrapper struct. -func (cew *ChaosEventWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ChaosEvent": - if v != nil { - chaosEvent, err := unmarshalBasicChaosEvent(*v) - if err != nil { - return err - } - cew.ChaosEvent = chaosEvent - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosParameters defines all the parameters to configure a Chaos run. -type ChaosParameters struct { - // TimeToRunInSeconds - Total time (in seconds) for which Chaos will run before automatically stopping. The maximum allowed value is 4,294,967,295 (System.UInt32.MaxValue). - // Depending on other time settings, the actual running time of Chaos can be larger than the TimeToRunInSeconds. - // To be conservative, we should expect Chaos to automatically stop after - // (MaxClusterStabilizationTimeoutInSeconds + MaxConcurrentFaults * WaitTimeBetweenFaultsInSeconds + WaitTimeBetweenIterationsInSeconds) seconds. - TimeToRunInSeconds *string `json:"TimeToRunInSeconds,omitempty"` - // MaxClusterStabilizationTimeoutInSeconds - The maximum amount of time to wait for all cluster entities to become stable and healthy. Chaos executes in iterations and at the start of each iteration it validates the health of cluster entities. - // During validation if a cluster entity is not stable and healthy within MaxClusterStabilizationTimeoutInSeconds, Chaos generates a validation failed event. - MaxClusterStabilizationTimeoutInSeconds *int64 `json:"MaxClusterStabilizationTimeoutInSeconds,omitempty"` - // MaxConcurrentFaults - MaxConcurrentFaults is the maximum number of concurrent faults induced per iteration. - // Chaos executes in iterations and two consecutive iterations are separated by a validation phase. - // The higher the concurrency, the more aggressive the injection of faults -- inducing more complex series of states to uncover bugs. - // The recommendation is to start with a value of 2 or 3 and to exercise caution while moving up. - MaxConcurrentFaults *int64 `json:"MaxConcurrentFaults,omitempty"` - // EnableMoveReplicaFaults - Enables or disables the move primary and move secondary faults. - EnableMoveReplicaFaults *bool `json:"EnableMoveReplicaFaults,omitempty"` - // WaitTimeBetweenFaultsInSeconds - Wait time (in seconds) between consecutive faults within a single iteration. - // The larger the value, the lower the overlapping between faults and the simpler the sequence of state transitions that the cluster goes through. - // The recommendation is to start with a value between 1 and 5 and exercise caution while moving up. - WaitTimeBetweenFaultsInSeconds *int64 `json:"WaitTimeBetweenFaultsInSeconds,omitempty"` - // WaitTimeBetweenIterationsInSeconds - Time-separation (in seconds) between two consecutive iterations of Chaos. - // The larger the value, the lower the fault injection rate. - WaitTimeBetweenIterationsInSeconds *int64 `json:"WaitTimeBetweenIterationsInSeconds,omitempty"` - // ClusterHealthPolicy - Passed-in cluster health policy is used to validate health of the cluster in between Chaos iterations. If the cluster health is in error or if an unexpected exception happens during fault execution--to provide the cluster with some time to recuperate--Chaos will wait for 30 minutes before the next health-check. - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - Context *ChaosContext `json:"Context,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosReport contains detailed Chaos report. -type ChaosReport struct { - autorest.Response `json:"-"` - ChaosParameters *ChaosParameters `json:"ChaosParameters,omitempty"` - // Status - Current status of the Chaos run. - // - Invalid - Indicates an invalid Chaos status. All Service Fabric enumerations have the invalid type. - // The valus is zero. - // - Running - Indicates that Chaos is not stopped. - // - Stopped - Indicates that Chaos is not scheduling futher faults. Possible values include: 'Status5Invalid', 'Status5Running', 'Status5Stopped' - Status Status5 `json:"Status,omitempty"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // History - List of ChaosEvent's that meet the user-supplied criteria. - History *[]ChaosEventWrapper `json:"History,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealth represents the health of the cluster. -// Contains the cluster aggregated health state, the cluster application and node health states as well as the -// health events and the unhealthy evaluations. -type ClusterHealth struct { - autorest.Response `json:"-"` - // NodeHealthStates - Cluster node health states as found in the health store. - NodeHealthStates *[]NodeHealthState `json:"NodeHealthStates,omitempty"` - // ApplicationHealthStates - Cluster application health states as found in the health store. - ApplicationHealthStates *[]ApplicationHealthState `json:"ApplicationHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthChunk represents the health chunk of the cluster. -// Contains the cluster aggregated health state, and the cluster entities that respect the input filter. -type ClusterHealthChunk struct { - autorest.Response `json:"-"` - // HealthState - The HealthState representing the aggregated health state of the cluster computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired cluster health policy and the application health policies. - // . Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - // NodeHealthStateChunks - The list of node health state chunks in the cluster that respect the filters in the cluster health chunk query description. - NodeHealthStateChunks *NodeHealthStateChunkList `json:"NodeHealthStateChunks,omitempty"` - // ApplicationHealthStateChunks - The list of application health state chunks in the cluster that respect the filters in the cluster health chunk query description. - ApplicationHealthStateChunks *ApplicationHealthStateChunkList `json:"ApplicationHealthStateChunks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthChunkQueryDescription the cluster health chunk query description, which can specify the health -// policies to evaluate cluster health and very expressive filters to select which cluster entities to include in -// response. -type ClusterHealthChunkQueryDescription struct { - // NodeFilters - Defines a list of filters that specify which nodes to be included in the returned cluster health chunk. - // If no filters are specified, no nodes are returned. All the nodes are used to evaluate the cluster's aggregated health state, regardless of the input filters. - // The cluster health chunk query may specify multiple node filters. - // For example, it can specify a filter to return all nodes with health state Error and another filter to always include a node identified by its NodeName. - NodeFilters *[]NodeHealthStateFilter `json:"NodeFilters,omitempty"` - // ApplicationFilters - Defines a list of filters that specify which applications to be included in the returned cluster health chunk. - // If no filters are specified, no applications are returned. All the applications are used to evaluate the cluster's aggregated health state, regardless of the input filters. - // The cluster health chunk query may specify multiple application filters. - // For example, it can specify a filter to return all applications with health state Error and another filter to always include applications of a specified application type. - ApplicationFilters *[]ApplicationHealthStateFilter `json:"ApplicationFilters,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - ApplicationHealthPolicies *ApplicationHealthPolicies `json:"ApplicationHealthPolicies,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthPolicies health policies to evaluate cluster health. -type ClusterHealthPolicies struct { - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthPolicy defines a health policy used to evaluate the health of the cluster or of a cluster node. -type ClusterHealthPolicy struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // MaxPercentUnhealthyNodes - The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10. - // The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error. - // If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster. - // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. - // In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // MaxPercentUnhealthyApplications - The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10. - // The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error. - // If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning. - // This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap. - // The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - ApplicationTypeHealthPolicyMap *[]ApplicationTypeHealthPolicyMapItem `json:"ApplicationTypeHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterManifest information about the cluster manifest. -type ClusterManifest struct { - autorest.Response `json:"-"` - // Manifest - The contents of the cluster manifest file. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeDescriptionObject represents a ServiceFabric cluster upgrade -type ClusterUpgradeDescriptionObject struct { - ConfigVersion *string `json:"ConfigVersion,omitempty"` - CodeVersion *string `json:"CodeVersion,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKind1Invalid', 'UpgradeKind1Rolling' - UpgradeKind UpgradeKind1 `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode2Invalid', 'RollingUpgradeMode2UnmonitoredAuto', 'RollingUpgradeMode2UnmonitoredManual', 'RollingUpgradeMode2Monitored' - RollingUpgradeMode RollingUpgradeMode2 `json:"RollingUpgradeMode,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicyObject `json:"ClusterUpgradeHealthPolicy,omitempty"` - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeHealthPolicyObject defines a health policy used to evaluate the health of the cluster during a -// cluster upgrade. -type ClusterUpgradeHealthPolicyObject struct { - // MaxPercentDeltaUnhealthyNodes - The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. The default value is 10%. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits. The default value is 15%. - MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"MaxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeProgressObject information about a cluster upgrade. -type ClusterUpgradeProgressObject struct { - autorest.Response `json:"-"` - CodeVersion *string `json:"CodeVersion,omitempty"` - ConfigVersion *string `json:"ConfigVersion,omitempty"` - UpgradeDomains *[]UpgradeDomainInfo `json:"UpgradeDomains,omitempty"` - // UpgradeState - Possible values include: 'UpgradeState1Invalid', 'UpgradeState1RollingBackInProgress', 'UpgradeState1RollingBackCompleted', 'UpgradeState1RollingForwardPending', 'UpgradeState1RollingForwardInProgress', 'UpgradeState1RollingForwardCompleted', 'UpgradeState1Failed' - UpgradeState UpgradeState1 `json:"UpgradeState,omitempty"` - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode3Invalid', 'RollingUpgradeMode3UnmonitoredAuto', 'RollingUpgradeMode3UnmonitoredManual', 'RollingUpgradeMode3Monitored' - RollingUpgradeMode RollingUpgradeMode3 `json:"RollingUpgradeMode,omitempty"` - UpgradeDescription *ClusterUpgradeDescriptionObject `json:"UpgradeDescription,omitempty"` - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - Possible values include: 'FailureReason1None', 'FailureReason1Interrupted', 'FailureReason1HealthCheck', 'FailureReason1UpgradeDomainTimeout', 'FailureReason1UpgradeTimeout' - FailureReason FailureReason1 `json:"FailureReason,omitempty"` - UpgradeDomainProgressAtFailure *FailedUpgradeDomainProgressObject `json:"UpgradeDomainProgressAtFailure,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CodePackageEntryPoint information about setup or main entry point of a code package deployed on a Service Fabric -// node. -type CodePackageEntryPoint struct { - // EntryPointLocation - The location of entry point executable on the node. - EntryPointLocation *string `json:"EntryPointLocation,omitempty"` - // ProcessID - The process id of the entry point. - ProcessID *string `json:"ProcessId,omitempty"` - // RunAsUserName - The user name under which entry point executable is run on the node. - RunAsUserName *string `json:"RunAsUserName,omitempty"` - CodePackageEntryPointStatistics *CodePackageEntryPointStatistics `json:"CodePackageEntryPointStatistics,omitempty"` - // Status - Possible values include: 'Status3Invalid', 'Status3Pending', 'Status3Starting', 'Status3Started', 'Status3Stopping', 'Status3Stopped' - Status Status3 `json:"Status,omitempty"` - // NextActivationTime - The time (in UTC) when the entry point executable will be run next. - NextActivationTime *date.Time `json:"NextActivationTime,omitempty"` - InstanceID *string `json:"InstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CodePackageEntryPointStatistics statistics about setup or main entry point of a code package deployed on a -// Service Fabric node. -type CodePackageEntryPointStatistics struct { - // LastExitCode - The last exit code of the entry point. - LastExitCode *string `json:"LastExitCode,omitempty"` - // LastActivationTime - The last time (in UTC) when Service Fabric attempted to run the entry point. - LastActivationTime *date.Time `json:"LastActivationTime,omitempty"` - // LastExitTime - The last time (in UTC) when the entry point finished running. - LastExitTime *date.Time `json:"LastExitTime,omitempty"` - // LastSuccessfulActivationTime - The last time (in UTC) when the entry point ran successfully. - LastSuccessfulActivationTime *date.Time `json:"LastSuccessfulActivationTime,omitempty"` - // LastSuccessfulExitTime - The last time (in UTC) when the entry point finished running gracefully. - LastSuccessfulExitTime *date.Time `json:"LastSuccessfulExitTime,omitempty"` - // ActivationCount - Number of times the entry point has run. - ActivationCount *string `json:"ActivationCount,omitempty"` - // ActivationFailureCount - Number of times the entry point failed to run. - ActivationFailureCount *string `json:"ActivationFailureCount,omitempty"` - // ContinuousActivationFailureCount - Number of times the entry point continuously failed to run. - ContinuousActivationFailureCount *string `json:"ContinuousActivationFailureCount,omitempty"` - // ExitCount - Number of times the entry point finished running. - ExitCount *string `json:"ExitCount,omitempty"` - // ExitFailureCount - Number of times the entry point failed to exit gracefully. - ExitFailureCount *string `json:"ExitFailureCount,omitempty"` - // ContinuousExitFailureCount - Number of times the entry point continuously failed to exit gracefully. - ContinuousExitFailureCount *string `json:"ContinuousExitFailureCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeApplicationStatusInfo information about a Service Fabric compose application. -type ComposeApplicationStatusInfo struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - // Status - Possible values include: 'Status6Invalid', 'Status6Provisioning', 'Status6Creating', 'Status6Created', 'Status6Unprovisioning', 'Status6Deleting', 'Status6Failed' - Status Status6 `json:"Status,omitempty"` - // StatusDetails - The status details of compose application including failure message. - StatusDetails *string `json:"StatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeApplicationDescription defines description for creating a Service Fabric compose application. -type CreateComposeApplicationDescription struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - // ComposeFileContent - The content of the compose file that describes application to create. - ComposeFileContent *string `json:"ComposeFileContent,omitempty"` - RepositoryCredential *RepositoryCredential `json:"RepositoryCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CurrentUpgradeDomainProgressInfo information about the current in-progress upgrade domain. -type CurrentUpgradeDomainProgressInfo struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeactivationIntentDescription describes the intent or reason for deactivating the node. -type DeactivationIntentDescription struct { - // DeactivationIntent - Describes the intent or reason for deactivating the node. The possible values are following. - // - Pause - Indicates that the node should be paused. The value is 1. - // - Restart - Indicates that the intent is for the node to be restarted after a short period of time. The value is 2. - // - RemoveData - Indicates the intent is for the node to remove data. The value is 3. - // . Possible values include: 'Pause', 'Restart', 'RemoveData' - DeactivationIntent DeactivationIntent `json:"DeactivationIntent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeltaNodesCheckHealthEvaluation represents health evaluation for delta nodes, containing health evaluations for -// each unhealthy node that impacted current aggregated health state. -// Can be returned during cluster upgrade when the aggregated health state of the cluster is Warning or Error. -type DeltaNodesCheckHealthEvaluation struct { - // BaselineErrorCount - Number of nodes with aggregated heath state Error in the health store at the beginning of the cluster upgrade. - BaselineErrorCount *int64 `json:"BaselineErrorCount,omitempty"` - // BaselineTotalCount - Total number of nodes in the health store at the beginning of the cluster upgrade. - BaselineTotalCount *int64 `json:"BaselineTotalCount,omitempty"` - // MaxPercentDeltaUnhealthyNodes - Maximum allowed percentage of delta unhealthy nodes from the ClusterUpgradeHealthPolicy. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. - // Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - dnche.Kind = KindDeltaNodesCheck - objectMap := make(map[string]interface{}) - if dnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = dnche.BaselineErrorCount - } - if dnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = dnche.BaselineTotalCount - } - if dnche.MaxPercentDeltaUnhealthyNodes != nil { - objectMap["MaxPercentDeltaUnhealthyNodes"] = dnche.MaxPercentDeltaUnhealthyNodes - } - if dnche.TotalCount != nil { - objectMap["TotalCount"] = dnche.TotalCount - } - if dnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dnche.UnhealthyEvaluations - } - if dnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dnche.AggregatedHealthState - } - if dnche.Description != nil { - objectMap["Description"] = dnche.Description - } - if dnche.Kind != "" { - objectMap["Kind"] = dnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealth information about the health of an application deployed on a Service Fabric node. -type DeployedApplicationHealth struct { - autorest.Response `json:"-"` - // Name - Name of the application deployed on the node whose health information is described by this object. - Name *string `json:"Name,omitempty"` - // NodeName - Name of the node where this application is deployed. - NodeName *string `json:"NodeName,omitempty"` - // DeployedServicePackageHealthStates - Deployed service package health states for the current deployed application as found in the health store. - DeployedServicePackageHealthStates *[]DeployedServicePackageHealthState `json:"DeployedServicePackageHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthEvaluation represents health evaluation for a deployed application, containing -// information about the data and the algorithm used by the health store to evaluate health. -type DeployedApplicationHealthEvaluation struct { - // NodeName - Name of the node where the application is deployed to. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - Full name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the deployed application. - // The types of the unhealthy evaluations can be DeployedServicePackagesHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplication - objectMap := make(map[string]interface{}) - if dahe.NodeName != nil { - objectMap["NodeName"] = dahe.NodeName - } - if dahe.ApplicationName != nil { - objectMap["ApplicationName"] = dahe.ApplicationName - } - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthState represents the health state of a deployed application, which contains the entity -// identifier and the aggregated health state. -type DeployedApplicationHealthState struct { - // NodeName - Name of the node on which the service package is deployed. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - Full name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateChunk represents the health state chunk of a deployed application, which contains -// the node where the application is deployed, the aggregated health state and any deployed service packages that -// respect the chunk query description filters. -type DeployedApplicationHealthStateChunk struct { - // NodeName - The name of node where the application is deployed. - NodeName *string `json:"NodeName,omitempty"` - // DeployedServicePackageHealthStateChunks - The list of deployed service oackage health state chunks belonging to the deployed application that respect the filters in the cluster health chunk query description. - DeployedServicePackageHealthStateChunks *DeployedServicePackageHealthStateChunkList `json:"DeployedServicePackageHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateChunkList the list of deployed application health state chunks that respect the -// input filters in the chunk query. Returned by get cluster health state chunks query. -type DeployedApplicationHealthStateChunkList struct { - // Items - The list of deployed application health state chunks that respect the input filters in the chunk query. - Items *[]DeployedApplicationHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateFilter defines matching criteria to determine whether a deployed application -// should be included as a child of an application in the cluster health chunk. -// The deployed applications are only returned if the parent application matches a filter specified in the cluster -// health chunk query description. -// One filter can match zero, one or multiple deployed applications, depending on its properties. -type DeployedApplicationHealthStateFilter struct { - // NodeNameFilter - The name of the node where the application is deployed in order to match the filter. - // If specified, the filter is applied only to the application deployed on the specified node. - // If the application is not deployed on the node with the specified name, no deployed application is returned in the cluster health chunk based on this filter. - // Otherwise, the deployed application is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all deployed applications that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - NodeNameFilter *string `json:"NodeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the deployed applications. It allows selecting deployed applications if they match the desired health states. - // The possible values are integer value of one of the following health states. Only deployed applications that match the filter are returned. All deployed applications are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the node name is specified. If the filter has default value and node name is specified, the matching deployed application is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches deployed applications with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // DeployedServicePackageFilters - Defines a list of filters that specify which deployed service packages to be included in the returned cluster health chunk as children of the parent deployed application. The deployed service packages are returned only if the parent deployed application matches a filter. - // If the list is empty, no deployed service packages are returned. All the deployed service packages are used to evaluate the parent deployed application aggregated health state, regardless of the input filters. - // The deployed application filter may specify multiple deployed service package filters. - // For example, it can specify a filter to return all deployed service packages with health state Error and another filter to always include a deployed service package on a node. - DeployedServicePackageFilters *[]DeployedServicePackageHealthStateFilter `json:"DeployedServicePackageFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationInfo information about application deployed on the node. -type DeployedApplicationInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - // Name - The name of the application. - Name *string `json:"Name,omitempty"` - // TypeName - The name of the application type. - TypeName *string `json:"TypeName,omitempty"` - // Status - Possible values include: 'Status2Invalid', 'Status2Downloading', 'Status2Activating', 'Status2Active', 'Status2Upgrading', 'Status2Deactivating' - Status Status2 `json:"Status,omitempty"` - // WorkDirectory - The work directory of the application on the node. The work directory can be used to store application data. - WorkDirectory *string `json:"WorkDirectory,omitempty"` - // LogDirectory - The log directory of the application on the node. The log directory can be used to store application logs. - LogDirectory *string `json:"LogDirectory,omitempty"` - // TempDirectory - The temp directory of the application on the node. The code packages belonging to the application are forked with this directory set as their temporary directory. - TempDirectory *string `json:"TempDirectory,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationsHealthEvaluation represents health evaluation for deployed applications, containing health -// evaluations for each unhealthy deployed application that impacted current aggregated health state. -// Can be returned when evaluating application health and the aggregated health state is either Error or Warning. -type DeployedApplicationsHealthEvaluation struct { - // MaxPercentUnhealthyDeployedApplications - Maximum allowed percentage of unhealthy deployed applications from the ApplicationHealthPolicy. - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - // TotalCount - Total number of deployed applications of the application in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy DeployedApplicationHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplications - objectMap := make(map[string]interface{}) - if dahe.MaxPercentUnhealthyDeployedApplications != nil { - objectMap["MaxPercentUnhealthyDeployedApplications"] = dahe.MaxPercentUnhealthyDeployedApplications - } - if dahe.TotalCount != nil { - objectMap["TotalCount"] = dahe.TotalCount - } - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedCodePackageInfo information about code package deployed on a Service Fabric node. -type DeployedCodePackageInfo struct { - // Name - The name of the code package. - Name *string `json:"Name,omitempty"` - // Version - The version of the code package specified in service manifest. - Version *string `json:"Version,omitempty"` - // ServiceManifestName - The name of service manifest that specified this code package. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostType - Possible values include: 'HostTypeInvalid', 'HostTypeExeHost', 'HostTypeContainerHost' - HostType HostType `json:"HostType,omitempty"` - // HostIsolationMode - Possible values include: 'HostIsolationModeNone', 'HostIsolationModeProcess', 'HostIsolationModeHyperV' - HostIsolationMode HostIsolationMode `json:"HostIsolationMode,omitempty"` - // Status - Possible values include: 'Status4Invalid', 'Status4Downloading', 'Status4Activating', 'Status4Active', 'Status4Upgrading', 'Status4Deactivating' - Status Status4 `json:"Status,omitempty"` - // RunFrequencyInterval - The interval at which code package is run. This is used for periodic code package. - RunFrequencyInterval *string `json:"RunFrequencyInterval,omitempty"` - SetupEntryPoint *CodePackageEntryPoint `json:"SetupEntryPoint,omitempty"` - MainEntryPoint *CodePackageEntryPoint `json:"MainEntryPoint,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealth information about the health of a service package for a specific application -// deployed on a Service Fabric node. -type DeployedServicePackageHealth struct { - autorest.Response `json:"-"` - // ApplicationName - Name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceManifestName - Name of the service manifest. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // NodeName - Name of the node where this service package is deployed. - NodeName *string `json:"NodeName,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthEvaluation represents health evaluation for a deployed service package, containing -// information about the data and the algorithm used by health store to evaluate health. The evaluation is returned -// only when the aggregated health state is either Error or Warning. -type DeployedServicePackageHealthEvaluation struct { - // NodeName - Name of the node. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - Full name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceManifestName - Name of the service manifest. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state. The type of the unhealthy evaluations can be EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackage - objectMap := make(map[string]interface{}) - if dsphe.NodeName != nil { - objectMap["NodeName"] = dsphe.NodeName - } - if dsphe.ApplicationName != nil { - objectMap["ApplicationName"] = dsphe.ApplicationName - } - if dsphe.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dsphe.ServiceManifestName - } - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthState represents the health state of a deployed service package, containing the -// entity identifier and the aggregated health state. -type DeployedServicePackageHealthState struct { - // NodeName - Name of the node on which the service package is deployed. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - Full name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceManifestName - Name of the manifest describing the service package. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateChunk represents the health state chunk of a deployed service package, which -// contains the service manifest name and the service package aggregated health state. -type DeployedServicePackageHealthStateChunk struct { - // ServiceManifestName - The name of the service manifest. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateChunkList the list of deployed service package health state chunks that respect -// the input filters in the chunk query. Returned by get cluster health state chunks query. -type DeployedServicePackageHealthStateChunkList struct { - // Items - The list of deployed service package health state chunks that respect the input filters in the chunk query. - Items *[]DeployedServicePackageHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateFilter defines matching criteria to determine whether a deployed service -// package should be included as a child of a deployed application in the cluster health chunk. -// The deployed service packages are only returned if the parent entities match a filter specified in the cluster -// health chunk query description. The parent deployed application and its parent application must be included in -// the cluster health chunk. -// One filter can match zero, one or multiple deployed service packages, depending on its properties. -type DeployedServicePackageHealthStateFilter struct { - // ServiceManifestNameFilter - The name of the service manifest which identifies the deployed service packages that matches the filter. - // If specified, the filter is applied only to the specified deployed service packages, if any. - // If no deployed service packages with specified manifest name exist, nothing is returned in the cluster health chunk based on this filter. - // If any deployed service package exists, they are included in the cluster health chunk if it respects the other filter properties. - // If not specified, all deployed service packages that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ServiceManifestNameFilter *string `json:"ServiceManifestNameFilter,omitempty"` - // ServicePackageActivationIDFilter - The activation ID of a deployed service package that matches the filter. - // If not specified, the filter applies to all deployed service packages that match the other parameters. - // If specified, the filter matches only the deployed service package with the specified activation ID. - ServicePackageActivationIDFilter *string `json:"ServicePackageActivationIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the deployed service packages. It allows selecting deployed service packages if they match the desired health states. - // The possible values are integer value of one of the following health states. Only deployed service packages that match the filter are returned. All deployed service packages are used to evaluate the parent deployed application aggregated health state. - // If not specified, default value is None, unless the deployed service package id is specified. If the filter has default value and deployed service package id is specified, the matching deployed service package is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches deployed service packages with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageInfo information about service package deployed on a Service Fabric node. -type DeployedServicePackageInfo struct { - // Name - The name of the service package. - Name *string `json:"Name,omitempty"` - // Version - The version of the service package specified in service manifest. - Version *string `json:"Version,omitempty"` - // Status - Possible values include: 'Status7Invalid', 'Status7Downloading', 'Status7Activating', 'Status7Active', 'Status7Upgrading', 'Status7Deactivating' - Status Status7 `json:"Status,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackagesHealthEvaluation represents health evaluation for deployed service packages, containing -// health evaluations for each unhealthy deployed service package that impacted current aggregated health state. -// Can be returned when evaluating deployed application health and the aggregated health state is either Error or -// Warning. -type DeployedServicePackagesHealthEvaluation struct { - // TotalCount - Total number of deployed service packages of the deployed application in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy DeployedServicePackageHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackages - objectMap := make(map[string]interface{}) - if dsphe.TotalCount != nil { - objectMap["TotalCount"] = dsphe.TotalCount - } - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicDeployedServiceReplicaDetailInfo information about a Service Fabric service replica deployed on a node. -type BasicDeployedServiceReplicaDetailInfo interface { - AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) - AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) - AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaDetailInfo information about a Service Fabric service replica deployed on a node. -type DeployedServiceReplicaDetailInfo struct { - autorest.Response `json:"-"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Possible values include: 'CurrentServiceOperationUnknown', 'CurrentServiceOperationNone', 'CurrentServiceOperationOpen', 'CurrentServiceOperationChangeRole', 'CurrentServiceOperationClose', 'CurrentServiceOperationAbort' - CurrentServiceOperation CurrentServiceOperation `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicDeployedServiceReplicaDetailInfo(body []byte) (BasicDeployedServiceReplicaDetailInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful): - var dssrdi DeployedStatefulServiceReplicaDetailInfo - err := json.Unmarshal(body, &dssrdi) - return dssrdi, err - case string(ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless): - var dssidi DeployedStatelessServiceInstanceDetailInfo - err := json.Unmarshal(body, &dssidi) - return dssidi, err - default: - var dsrdi DeployedServiceReplicaDetailInfo - err := json.Unmarshal(body, &dsrdi) - return dsrdi, err - } -} -func unmarshalBasicDeployedServiceReplicaDetailInfoArray(body []byte) ([]BasicDeployedServiceReplicaDetailInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsrdiArray := make([]BasicDeployedServiceReplicaDetailInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsrdi, err := unmarshalBasicDeployedServiceReplicaDetailInfo(*rawMessage) - if err != nil { - return nil, err - } - dsrdiArray[index] = dsrdi - } - return dsrdiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) MarshalJSON() ([]byte, error) { - dsrdi.ServiceKind = ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo - objectMap := make(map[string]interface{}) - if dsrdi.ServiceName != nil { - objectMap["ServiceName"] = dsrdi.ServiceName - } - if dsrdi.PartitionID != nil { - objectMap["PartitionId"] = dsrdi.PartitionID - } - if dsrdi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dsrdi.CurrentServiceOperation - } - if dsrdi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dsrdi.CurrentServiceOperationStartTimeUtc - } - if dsrdi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dsrdi.ReportedLoad - } - if dsrdi.ServiceKind != "" { - objectMap["ServiceKind"] = dsrdi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return &dsrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dsrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaDetailInfoModel ... -type DeployedServiceReplicaDetailInfoModel struct { - autorest.Response `json:"-"` - Value BasicDeployedServiceReplicaDetailInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for DeployedServiceReplicaDetailInfoModel struct. -func (dsrdim *DeployedServiceReplicaDetailInfoModel) UnmarshalJSON(body []byte) error { - dsrdi, err := unmarshalBasicDeployedServiceReplicaDetailInfo(body) - if err != nil { - return err - } - dsrdim.Value = dsrdi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicDeployedServiceReplicaInfo information about a Service Fabric service replica deployed on a node. -type BasicDeployedServiceReplicaInfo interface { - AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) - AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) - AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaInfo information about a Service Fabric service replica deployed on a node. -type DeployedServiceReplicaInfo struct { - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that hosts this replica. - CodePackageName *string `json:"CodePackageName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionID,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaInfo', 'ServiceKindStateful', 'ServiceKindStateless' - ServiceKind ServiceKind `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicDeployedServiceReplicaInfo(body []byte) (BasicDeployedServiceReplicaInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindStateful): - var dssri DeployedStatefulServiceReplicaInfo - err := json.Unmarshal(body, &dssri) - return dssri, err - case string(ServiceKindStateless): - var dssii DeployedStatelessServiceInstanceInfo - err := json.Unmarshal(body, &dssii) - return dssii, err - default: - var dsri DeployedServiceReplicaInfo - err := json.Unmarshal(body, &dsri) - return dsri, err - } -} -func unmarshalBasicDeployedServiceReplicaInfoArray(body []byte) ([]BasicDeployedServiceReplicaInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsriArray := make([]BasicDeployedServiceReplicaInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsri, err := unmarshalBasicDeployedServiceReplicaInfo(*rawMessage) - if err != nil { - return nil, err - } - dsriArray[index] = dsri - } - return dsriArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) MarshalJSON() ([]byte, error) { - dsri.ServiceKind = ServiceKindDeployedServiceReplicaInfo - objectMap := make(map[string]interface{}) - if dsri.ServiceName != nil { - objectMap["ServiceName"] = dsri.ServiceName - } - if dsri.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dsri.ServiceTypeName - } - if dsri.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dsri.ServiceManifestName - } - if dsri.CodePackageName != nil { - objectMap["CodePackageName"] = dsri.CodePackageName - } - if dsri.PartitionID != nil { - objectMap["PartitionID"] = dsri.PartitionID - } - if dsri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dsri.ReplicaStatus - } - if dsri.Address != nil { - objectMap["Address"] = dsri.Address - } - if dsri.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dsri.ServicePackageActivationID - } - if dsri.ServiceKind != "" { - objectMap["ServiceKind"] = dsri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return &dsri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dsri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceTypeInfo information about service type deployed on a node, information such as the status of the -// service type registration on a node. -type DeployedServiceTypeInfo struct { - autorest.Response `json:"-"` - // ServiceTypeName - The name of the service type defined in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that registered the service type. - CodePackageName *string `json:"CodePackageName,omitempty"` - // Status - Possible values include: 'Status8Invalid', 'Status8Disabled', 'Status8Enabled', 'Status8Registered' - Status Status8 `json:"Status,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatefulServiceReplicaDetailInfo information about a stateful replica running in a code package. -type DeployedStatefulServiceReplicaDetailInfo struct { - // ReplicaID - Id of the stateful service replica. - ReplicaID *string `json:"ReplicaId,omitempty"` - // CurrentReplicatorOperation - Possible values include: 'CurrentReplicatorOperationInvalid', 'CurrentReplicatorOperationNone', 'CurrentReplicatorOperationOpen', 'CurrentReplicatorOperationChangeRole', 'CurrentReplicatorOperationUpdateEpoch', 'CurrentReplicatorOperationClose', 'CurrentReplicatorOperationAbort', 'CurrentReplicatorOperationOnDataLoss', 'CurrentReplicatorOperationWaitForCatchup', 'CurrentReplicatorOperationBuild' - CurrentReplicatorOperation CurrentReplicatorOperation `json:"CurrentReplicatorOperation,omitempty"` - // ReadStatus - Possible values include: 'ReadStatusInvalid', 'ReadStatusGranted', 'ReadStatusReconfigurationPending', 'ReadStatusNotPrimary', 'ReadStatusNoWriteQuorum' - ReadStatus ReadStatus `json:"ReadStatus,omitempty"` - // WriteStatus - Possible values include: 'WriteStatusInvalid', 'WriteStatusGranted', 'WriteStatusReconfigurationPending', 'WriteStatusNotPrimary', 'WriteStatusNoWriteQuorum' - WriteStatus WriteStatus `json:"WriteStatus,omitempty"` - ReplicatorStatus BasicReplicatorStatus `json:"ReplicatorStatus,omitempty"` - ReplicaStatus *KeyValueStoreReplicaStatus `json:"ReplicaStatus,omitempty"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Possible values include: 'CurrentServiceOperationUnknown', 'CurrentServiceOperationNone', 'CurrentServiceOperationOpen', 'CurrentServiceOperationChangeRole', 'CurrentServiceOperationClose', 'CurrentServiceOperationAbort' - CurrentServiceOperation CurrentServiceOperation `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) MarshalJSON() ([]byte, error) { - dssrdi.ServiceKind = ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if dssrdi.ReplicaID != nil { - objectMap["ReplicaId"] = dssrdi.ReplicaID - } - if dssrdi.CurrentReplicatorOperation != "" { - objectMap["CurrentReplicatorOperation"] = dssrdi.CurrentReplicatorOperation - } - if dssrdi.ReadStatus != "" { - objectMap["ReadStatus"] = dssrdi.ReadStatus - } - if dssrdi.WriteStatus != "" { - objectMap["WriteStatus"] = dssrdi.WriteStatus - } - objectMap["ReplicatorStatus"] = dssrdi.ReplicatorStatus - if dssrdi.ReplicaStatus != nil { - objectMap["ReplicaStatus"] = dssrdi.ReplicaStatus - } - if dssrdi.ServiceName != nil { - objectMap["ServiceName"] = dssrdi.ServiceName - } - if dssrdi.PartitionID != nil { - objectMap["PartitionId"] = dssrdi.PartitionID - } - if dssrdi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dssrdi.CurrentServiceOperation - } - if dssrdi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dssrdi.CurrentServiceOperationStartTimeUtc - } - if dssrdi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dssrdi.ReportedLoad - } - if dssrdi.ServiceKind != "" { - objectMap["ServiceKind"] = dssrdi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return &dssrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dssrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for DeployedStatefulServiceReplicaDetailInfo struct. -func (dssrdi *DeployedStatefulServiceReplicaDetailInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ReplicaId": - if v != nil { - var replicaID string - err = json.Unmarshal(*v, &replicaID) - if err != nil { - return err - } - dssrdi.ReplicaID = &replicaID - } - case "CurrentReplicatorOperation": - if v != nil { - var currentReplicatorOperation CurrentReplicatorOperation - err = json.Unmarshal(*v, ¤tReplicatorOperation) - if err != nil { - return err - } - dssrdi.CurrentReplicatorOperation = currentReplicatorOperation - } - case "ReadStatus": - if v != nil { - var readStatus ReadStatus - err = json.Unmarshal(*v, &readStatus) - if err != nil { - return err - } - dssrdi.ReadStatus = readStatus - } - case "WriteStatus": - if v != nil { - var writeStatus WriteStatus - err = json.Unmarshal(*v, &writeStatus) - if err != nil { - return err - } - dssrdi.WriteStatus = writeStatus - } - case "ReplicatorStatus": - if v != nil { - replicatorStatus, err := unmarshalBasicReplicatorStatus(*v) - if err != nil { - return err - } - dssrdi.ReplicatorStatus = replicatorStatus - } - case "ReplicaStatus": - if v != nil { - var replicaStatus KeyValueStoreReplicaStatus - err = json.Unmarshal(*v, &replicaStatus) - if err != nil { - return err - } - dssrdi.ReplicaStatus = &replicaStatus - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - dssrdi.ServiceName = &serviceName - } - case "PartitionId": - if v != nil { - var partitionID uuid.UUID - err = json.Unmarshal(*v, &partitionID) - if err != nil { - return err - } - dssrdi.PartitionID = &partitionID - } - case "CurrentServiceOperation": - if v != nil { - var currentServiceOperation CurrentServiceOperation - err = json.Unmarshal(*v, ¤tServiceOperation) - if err != nil { - return err - } - dssrdi.CurrentServiceOperation = currentServiceOperation - } - case "CurrentServiceOperationStartTimeUtc": - if v != nil { - var currentServiceOperationStartTimeUtc date.Time - err = json.Unmarshal(*v, ¤tServiceOperationStartTimeUtc) - if err != nil { - return err - } - dssrdi.CurrentServiceOperationStartTimeUtc = ¤tServiceOperationStartTimeUtc - } - case "ReportedLoad": - if v != nil { - var reportedLoad []LoadMetricReportInfo - err = json.Unmarshal(*v, &reportedLoad) - if err != nil { - return err - } - dssrdi.ReportedLoad = &reportedLoad - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicDeployedServiceReplicaDetailInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - dssrdi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatefulServiceReplicaInfo information about a stateful service replica deployed on a node. -type DeployedStatefulServiceReplicaInfo struct { - // ReplicaID - Id of the stateful service replica. - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaRole - Possible values include: 'ReplicaRoleUnknown', 'ReplicaRoleNone', 'ReplicaRolePrimary', 'ReplicaRoleIdleSecondary', 'ReplicaRoleActiveSecondary' - ReplicaRole ReplicaRole `json:"ReplicaRole,omitempty"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that hosts this replica. - CodePackageName *string `json:"CodePackageName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionID,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaInfo', 'ServiceKindStateful', 'ServiceKindStateless' - ServiceKind ServiceKind `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) MarshalJSON() ([]byte, error) { - dssri.ServiceKind = ServiceKindStateful - objectMap := make(map[string]interface{}) - if dssri.ReplicaID != nil { - objectMap["ReplicaId"] = dssri.ReplicaID - } - if dssri.ReplicaRole != "" { - objectMap["ReplicaRole"] = dssri.ReplicaRole - } - if dssri.ServiceName != nil { - objectMap["ServiceName"] = dssri.ServiceName - } - if dssri.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dssri.ServiceTypeName - } - if dssri.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dssri.ServiceManifestName - } - if dssri.CodePackageName != nil { - objectMap["CodePackageName"] = dssri.CodePackageName - } - if dssri.PartitionID != nil { - objectMap["PartitionID"] = dssri.PartitionID - } - if dssri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dssri.ReplicaStatus - } - if dssri.Address != nil { - objectMap["Address"] = dssri.Address - } - if dssri.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dssri.ServicePackageActivationID - } - if dssri.ServiceKind != "" { - objectMap["ServiceKind"] = dssri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return &dssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatelessServiceInstanceDetailInfo information about a stateless instance running in a code package. -type DeployedStatelessServiceInstanceDetailInfo struct { - // InstanceID - Id of the stateless service instance. - InstanceID *string `json:"InstanceId,omitempty"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Possible values include: 'CurrentServiceOperationUnknown', 'CurrentServiceOperationNone', 'CurrentServiceOperationOpen', 'CurrentServiceOperationChangeRole', 'CurrentServiceOperationClose', 'CurrentServiceOperationAbort' - CurrentServiceOperation CurrentServiceOperation `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) MarshalJSON() ([]byte, error) { - dssidi.ServiceKind = ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if dssidi.InstanceID != nil { - objectMap["InstanceId"] = dssidi.InstanceID - } - if dssidi.ServiceName != nil { - objectMap["ServiceName"] = dssidi.ServiceName - } - if dssidi.PartitionID != nil { - objectMap["PartitionId"] = dssidi.PartitionID - } - if dssidi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dssidi.CurrentServiceOperation - } - if dssidi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dssidi.CurrentServiceOperationStartTimeUtc - } - if dssidi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dssidi.ReportedLoad - } - if dssidi.ServiceKind != "" { - objectMap["ServiceKind"] = dssidi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return &dssidi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dssidi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatelessServiceInstanceInfo information about a stateless service instance deployed on a node. -type DeployedStatelessServiceInstanceInfo struct { - // InstanceID - Id of the stateless service instance. - InstanceID *string `json:"InstanceId,omitempty"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that hosts this replica. - CodePackageName *string `json:"CodePackageName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionID,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaInfo', 'ServiceKindStateful', 'ServiceKindStateless' - ServiceKind ServiceKind `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) MarshalJSON() ([]byte, error) { - dssii.ServiceKind = ServiceKindStateless - objectMap := make(map[string]interface{}) - if dssii.InstanceID != nil { - objectMap["InstanceId"] = dssii.InstanceID - } - if dssii.ServiceName != nil { - objectMap["ServiceName"] = dssii.ServiceName - } - if dssii.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dssii.ServiceTypeName - } - if dssii.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dssii.ServiceManifestName - } - if dssii.CodePackageName != nil { - objectMap["CodePackageName"] = dssii.CodePackageName - } - if dssii.PartitionID != nil { - objectMap["PartitionID"] = dssii.PartitionID - } - if dssii.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dssii.ReplicaStatus - } - if dssii.Address != nil { - objectMap["Address"] = dssii.Address - } - if dssii.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dssii.ServicePackageActivationID - } - if dssii.ServiceKind != "" { - objectMap["ServiceKind"] = dssii.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return &dssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployServicePackageToNodeDescription defines description for downloading packages associated with a service -// manifest to image cache on a Service Fabric node. -type DeployServicePackageToNodeDescription struct { - // ServiceManifestName - The name of service manifest whose packages need to be downloaded. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - PackageSharingPolicy *[]PackageSharingPolicyInfo `json:"PackageSharingPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnsureAvailabilitySafetyCheck safety check that waits for ensures the avaiability of the partition. It waits -// until there are replicas avaiabile such that bring down this replica will not cause avaiability loss for the -// partition. -type EnsureAvailabilitySafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) MarshalJSON() ([]byte, error) { - easc.Kind = KindEnsureAvailability - objectMap := make(map[string]interface{}) - if easc.PartitionID != nil { - objectMap["PartitionId"] = easc.PartitionID - } - if easc.Kind != "" { - objectMap["Kind"] = easc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnsurePartitionQurumSafetyCheck safety check that ensures that a quorum of replicas are not lost for a -// partition. -type EnsurePartitionQurumSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) MarshalJSON() ([]byte, error) { - epqsc.Kind = KindEnsurePartitionQuorum - objectMap := make(map[string]interface{}) - if epqsc.PartitionID != nil { - objectMap["PartitionId"] = epqsc.PartitionID - } - if epqsc.Kind != "" { - objectMap["Kind"] = epqsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealth health information common to all entities in the cluster. It contains the aggregated health state, -// health events and unhealthy evaluation. -type EntityHealth struct { - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthState a base type for the health state of various entities in the cluster. It contains the -// aggregated health state. -type EntityHealthState struct { - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthStateChunk a base type for the health state chunk of various entities in the cluster. It contains -// the aggregated health state. -type EntityHealthStateChunk struct { - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthStateChunkList a base type for the list of health state chunks found in the cluster. It contains the -// total number of health states that match the input filters. -type EntityHealthStateChunkList struct { - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Epoch an Epoch is a configuration number for the partition as a whole. When the configuration of the replica set -// changes, for example when the Primary replica changes, the operations that are replicated from the new Primary -// replica are said to be a new Epoch from the ones which were sent by the old Primary replica. -type Epoch struct { - // ConfigurationVersion - The current configuration number of this Epoch. The configuration number is an increasing value that is updated whenever the configuration of this replica set changes. - ConfigurationVersion *string `json:"ConfigurationVersion,omitempty"` - // DataLossVersion - The current dataloss number of this Epoch. The data loss number property is an increasing value which is updated whenever data loss is suspected, as when loss of a quorum of replicas in the replica set that includes the Primary replica. - DataLossVersion *string `json:"DataLossVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EventHealthEvaluation represents health evaluation of a HealthEvent that was reported on the entity. -// The health evaluation is returned when evaluating health of an entity results in Error or Warning. -type EventHealthEvaluation struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. The field is specified in the health policy used to evaluate the entity. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - UnhealthyEvent *HealthEvent `json:"UnhealthyEvent,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EventHealthEvaluation. -func (ehe EventHealthEvaluation) MarshalJSON() ([]byte, error) { - ehe.Kind = KindEvent - objectMap := make(map[string]interface{}) - if ehe.ConsiderWarningAsError != nil { - objectMap["ConsiderWarningAsError"] = ehe.ConsiderWarningAsError - } - if ehe.UnhealthyEvent != nil { - objectMap["UnhealthyEvent"] = ehe.UnhealthyEvent - } - if ehe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ehe.AggregatedHealthState - } - if ehe.Description != nil { - objectMap["Description"] = ehe.Description - } - if ehe.Kind != "" { - objectMap["Kind"] = ehe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ExecutingFaultsChaosEvent describes a Chaos event that gets generated when Chaos has decided on the faults for -// an iteration. This Chaos event contains the details of the faults as a list of strings. -type ExecutingFaultsChaosEvent struct { - Faults *[]string `json:"Faults,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) MarshalJSON() ([]byte, error) { - efce.Kind = KindExecutingFaults - objectMap := make(map[string]interface{}) - if efce.Faults != nil { - objectMap["Faults"] = efce.Faults - } - if efce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = efce.TimeStampUtc - } - if efce.Kind != "" { - objectMap["Kind"] = efce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return &efce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &efce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricCodeVersionInfo information about a Service Fabric code version. -type FabricCodeVersionInfo struct { - // CodeVersion - The product version of Service Fabric. - CodeVersion *string `json:"CodeVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricConfigVersionInfo information about a Service Fabric config version. -type FabricConfigVersionInfo struct { - // ConfigVersion - The config version of Service Fabric. - ConfigVersion *string `json:"ConfigVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricError the REST API operations for Service Fabric return standard HTTP status codes. This type defines the -// additional information returned from the Service Fabric API operations that are not successful. -type FabricError struct { - Error *FabricErrorError `json:"Error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricErrorError error object containing error code and error message. -type FabricErrorError struct { - // Code - Possible values include: 'FABRICEINVALIDPARTITIONKEY', 'FABRICEIMAGEBUILDERVALIDATIONERROR', 'FABRICEINVALIDADDRESS', 'FABRICEAPPLICATIONNOTUPGRADING', 'FABRICEAPPLICATIONUPGRADEVALIDATIONERROR', 'FABRICEFABRICNOTUPGRADING', 'FABRICEFABRICUPGRADEVALIDATIONERROR', 'FABRICEINVALIDCONFIGURATION', 'FABRICEINVALIDNAMEURI', 'FABRICEPATHTOOLONG', 'FABRICEKEYTOOLARGE', 'FABRICESERVICEAFFINITYCHAINNOTSUPPORTED', 'FABRICEINVALIDATOMICGROUP', 'FABRICEVALUEEMPTY', 'FABRICENODENOTFOUND', 'FABRICEAPPLICATIONTYPENOTFOUND', 'FABRICEAPPLICATIONNOTFOUND', 'FABRICESERVICETYPENOTFOUND', 'FABRICESERVICEDOESNOTEXIST', 'FABRICESERVICETYPETEMPLATENOTFOUND', 'FABRICECONFIGURATIONSECTIONNOTFOUND', 'FABRICEPARTITIONNOTFOUND', 'FABRICEREPLICADOESNOTEXIST', 'FABRICESERVICEGROUPDOESNOTEXIST', 'FABRICECONFIGURATIONPARAMETERNOTFOUND', 'FABRICEDIRECTORYNOTFOUND', 'FABRICEFABRICVERSIONNOTFOUND', 'FABRICEFILENOTFOUND', 'FABRICENAMEDOESNOTEXIST', 'FABRICEPROPERTYDOESNOTEXIST', 'FABRICEENUMERATIONCOMPLETED', 'FABRICESERVICEMANIFESTNOTFOUND', 'FABRICEKEYNOTFOUND', 'FABRICEHEALTHENTITYNOTFOUND', 'FABRICEAPPLICATIONTYPEALREADYEXISTS', 'FABRICEAPPLICATIONALREADYEXISTS', 'FABRICEAPPLICATIONALREADYINTARGETVERSION', 'FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS', 'FABRICEAPPLICATIONUPGRADEINPROGRESS', 'FABRICESERVICEALREADYEXISTS', 'FABRICESERVICEGROUPALREADYEXISTS', 'FABRICEAPPLICATIONTYPEINUSE', 'FABRICEFABRICALREADYINTARGETVERSION', 'FABRICEFABRICVERSIONALREADYEXISTS', 'FABRICEFABRICVERSIONINUSE', 'FABRICEFABRICUPGRADEINPROGRESS', 'FABRICENAMEALREADYEXISTS', 'FABRICENAMENOTEMPTY', 'FABRICEPROPERTYCHECKFAILED', 'FABRICESERVICEMETADATAMISMATCH', 'FABRICESERVICETYPEMISMATCH', 'FABRICEHEALTHSTALEREPORT', 'FABRICESEQUENCENUMBERCHECKFAILED', 'FABRICENODEHASNOTSTOPPEDYET', 'FABRICEINSTANCEIDMISMATCH', 'FABRICEVALUETOOLARGE', 'FABRICENOWRITEQUORUM', 'FABRICENOTPRIMARY', 'FABRICENOTREADY', 'FABRICERECONFIGURATIONPENDING', 'FABRICESERVICEOFFLINE', 'EABORT', 'FABRICECOMMUNICATIONERROR', 'FABRICEOPERATIONNOTCOMPLETE', 'FABRICETIMEOUT', 'FABRICENODEISUP' - Code Code `json:"Code,omitempty"` - // Message - Error message. - Message *string `json:"Message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailedUpgradeDomainProgressObject the detailed upgrade progress for nodes in the current upgrade domain at the -// point of failure. -type FailedUpgradeDomainProgressObject struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureUpgradeDomainProgressInfo information about the upgrade domain progress at the time of upgrade failure. -type FailureUpgradeDomainProgressInfo struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FileInfo information about a image store file. -type FileInfo struct { - // FileSize - The size of file in bytes. - FileSize *string `json:"FileSize,omitempty"` - FileVersion *FileVersion `json:"FileVersion,omitempty"` - // ModifiedDate - The date and time when the image store file was last modified. - ModifiedDate *date.Time `json:"ModifiedDate,omitempty"` - // StoreRelativePath - The file path relative to the image store root path. - StoreRelativePath *string `json:"StoreRelativePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FileVersion information about the version of image store file. -type FileVersion struct { - // VersionNumber - The current iamge store version number for the file is used in image store for checking whether it need to be updated. - VersionNumber *string `json:"VersionNumber,omitempty"` - // EpochDataLossNumber - The epoch data loss number of image store file is used to indicate the status of data loss. - EpochDataLossNumber *string `json:"EpochDataLossNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FolderInfo information about a image store folder. It inclues how many files this folder contains and its image -// store relative path. -type FolderInfo struct { - StoreRelativePath *string `json:"StoreRelativePath,omitempty"` - // FileCount - The number of files from within the image store folder. - FileCount *uuid.UUID `json:"FileCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicHealthEvaluation represents a health evaluation which describes the data and the algorithm used by health -// manager to evaluate the health of an entity. -type BasicHealthEvaluation interface { - AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) - AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) - AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) - AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) - AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) - AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) - AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) - AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) - AsEventHealthEvaluation() (*EventHealthEvaluation, bool) - AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) - AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) - AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) - AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) - AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) - AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) - AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) - AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) - AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) - AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) - AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) - AsHealthEvaluation() (*HealthEvaluation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluation represents a health evaluation which describes the data and the algorithm used by health -// manager to evaluate the health of an entity. -type HealthEvaluation struct { - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -func unmarshalBasicHealthEvaluation(body []byte) (BasicHealthEvaluation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindApplication): - var ahe ApplicationHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindApplications): - var ahe ApplicationsHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindApplicationTypeApplications): - var atahe ApplicationTypeApplicationsHealthEvaluation - err := json.Unmarshal(body, &atahe) - return atahe, err - case string(KindDeltaNodesCheck): - var dnche DeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &dnche) - return dnche, err - case string(KindDeployedApplication): - var dahe DeployedApplicationHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindDeployedApplications): - var dahe DeployedApplicationsHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindDeployedServicePackage): - var dsphe DeployedServicePackageHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindDeployedServicePackages): - var dsphe DeployedServicePackagesHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindEvent): - var ehe EventHealthEvaluation - err := json.Unmarshal(body, &ehe) - return ehe, err - case string(KindNode): - var nhe NodeHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindNodes): - var nhe NodesHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindPartition): - var phe PartitionHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindPartitions): - var phe PartitionsHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindReplica): - var rhe ReplicaHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindReplicas): - var rhe ReplicasHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindService): - var she ServiceHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindServices): - var she ServicesHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindSystemApplication): - var sahe SystemApplicationHealthEvaluation - err := json.Unmarshal(body, &sahe) - return sahe, err - case string(KindUpgradeDomainDeltaNodesCheck): - var uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &uddnche) - return uddnche, err - case string(KindUpgradeDomainNodes): - var udnhe UpgradeDomainNodesHealthEvaluation - err := json.Unmarshal(body, &udnhe) - return udnhe, err - default: - var he HealthEvaluation - err := json.Unmarshal(body, &he) - return he, err - } -} -func unmarshalBasicHealthEvaluationArray(body []byte) ([]BasicHealthEvaluation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - heArray := make([]BasicHealthEvaluation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - he, err := unmarshalBasicHealthEvaluation(*rawMessage) - if err != nil { - return nil, err - } - heArray[index] = he - } - return heArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for HealthEvaluation. -func (he HealthEvaluation) MarshalJSON() ([]byte, error) { - he.Kind = KindHealthEvaluation - objectMap := make(map[string]interface{}) - if he.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = he.AggregatedHealthState - } - if he.Description != nil { - objectMap["Description"] = he.Description - } - if he.Kind != "" { - objectMap["Kind"] = he.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluationWrapper wrapper object for health evaluation. -type HealthEvaluationWrapper struct { - HealthEvaluation BasicHealthEvaluation `json:"HealthEvaluation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for HealthEvaluationWrapper struct. -func (hew *HealthEvaluationWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HealthEvaluation": - if v != nil { - healthEvaluation, err := unmarshalBasicHealthEvaluation(*v) - if err != nil { - return err - } - hew.HealthEvaluation = healthEvaluation - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvent represents health information reported on a health entity, such as cluster, application or node, -// with additional metadata added by the Health Manager. -type HealthEvent struct { - // IsExpired - Returns true if the health event is expired, otherwise false. - IsExpired *bool `json:"IsExpired,omitempty"` - // SourceUtcTimestamp - The date and time when the health report was sent by the source. - SourceUtcTimestamp *date.Time `json:"SourceUtcTimestamp,omitempty"` - // LastModifiedUtcTimestamp - The date and time when the health report was last modified by the health store. - LastModifiedUtcTimestamp *date.Time `json:"LastModifiedUtcTimestamp,omitempty"` - // LastOkTransitionAt - If the current health state is 'Ok', this property returns the time at which the health report was first reported with 'Ok'. - // For periodic reporting, many reports with the same state may have been generated. - // This property returns the date and time when the first 'Ok' health report was received. - // If the current health state is 'Error' or 'Warning', returns the date and time at which the health state was last in 'Ok', before transitioning to a different state. - // If the health state was never 'Ok', the value will be zero date-time. - LastOkTransitionAt *date.Time `json:"LastOkTransitionAt,omitempty"` - // LastWarningTransitionAt - If the current health state is 'Warning', this property returns the time at which the health report was first reported with 'Warning'. For periodic reporting, many reports with the same state may have been generated however, this property returns only the date and time at the first 'Warning' health report was received. - // If the current health state is 'Ok' or 'Error', returns the date and time at which the health state was last in 'Warning', before transitioning to a different state. - // If the health state was never 'Warning', the value will be zero date-time. - LastWarningTransitionAt *date.Time `json:"LastWarningTransitionAt,omitempty"` - // LastErrorTransitionAt - If the current health state is 'Error', this property returns the time at which the health report was first reported with 'Error'. For periodic reporting, many reports with the same state may have been generated however, this property returns only the date and time at the first 'Error' health report was received. - // If the current health state is 'Ok' or 'Warning', returns the date and time at which the health state was last in 'Error', before transitioning to a different state. - // If the health state was never 'Error', the value will be zero date-time. - LastErrorTransitionAt *date.Time `json:"LastErrorTransitionAt,omitempty"` - // SourceID - The source name which identifies the client/watchdog/system component which generated the health information. - SourceID *string `json:"SourceId,omitempty"` - // Property - The property of the health information. An entity can have health reports for different properties. - // The property is a string and not a fixed enumeration to allow the reporter flexibility to categorize the state condition that triggers the report. - // For example, a reporter with SourceId "LocalWatchdog" can monitor the state of the available disk on a node, - // so it can report "AvailableDisk" property on that node. - // The same reporter can monitor the node connectivity, so it can report a property "Connectivity" on the same node. - // In the health store, these reports are treated as separate health events for the specified node. - // Together with the SourceId, the property uniquely identifies the health information. - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState3Invalid', 'HealthState3Ok', 'HealthState3Warning', 'HealthState3Error', 'HealthState3Unknown' - HealthState HealthState3 `json:"HealthState,omitempty"` - // TimeToLiveInMilliSeconds - The duration for which this health report is valid. This field is using ISO8601 format for specifying the duration. - // When clients report periodically, they should send reports with higher frequency than time to live. - // If clients report on transition, they can set the time to live to infinite. - // When time to live expires, the health event that contains the health information - // is either removed from health store, if RemoveWhenExpired is true, or evaluated at error, if RemoveWhenExpired false. - // If not specified, time to live defaults to infinite value. - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - // Description - The description of the health information. It represents free text used to add human readable information about the report. - // The maximum string length for the description is 4096 characters. - // If the provided string is longer, it will be automatically truncated. - // When truncated, the last characters of the description contain a marker "[Truncated]", and total string size is 4096 characters. - // The presence of the marker indicates to users that truncation occurred. - // Note that when truncated, the description has less than 4096 characters from the original string. - Description *string `json:"Description,omitempty"` - // SequenceNumber - The sequence number for this health report as a numeric string. - // The report sequence number is used by the health store to detect stale reports. - // If not specified, a sequence number is auto-generated by the health client when a report is added. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - // RemoveWhenExpired - Value that indicates whether the report is removed from health store when it expires. - // If set to true, the report is remopved from the health store after it expires. - // If set to false, the report is treated as an error when expired. The value of this property is false by default. - // When clients report periodically, they should set RemoveWhenExpired false (default). - // This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires. - // This flags the entity as being in Error health state. - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthInformation represents common health report information. It is included in all health reports sent to -// health store and in all health events returned by health queries. -type HealthInformation struct { - // SourceID - The source name which identifies the client/watchdog/system component which generated the health information. - SourceID *string `json:"SourceId,omitempty"` - // Property - The property of the health information. An entity can have health reports for different properties. - // The property is a string and not a fixed enumeration to allow the reporter flexibility to categorize the state condition that triggers the report. - // For example, a reporter with SourceId "LocalWatchdog" can monitor the state of the available disk on a node, - // so it can report "AvailableDisk" property on that node. - // The same reporter can monitor the node connectivity, so it can report a property "Connectivity" on the same node. - // In the health store, these reports are treated as separate health events for the specified node. - // Together with the SourceId, the property uniquely identifies the health information. - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState3Invalid', 'HealthState3Ok', 'HealthState3Warning', 'HealthState3Error', 'HealthState3Unknown' - HealthState HealthState3 `json:"HealthState,omitempty"` - // TimeToLiveInMilliSeconds - The duration for which this health report is valid. This field is using ISO8601 format for specifying the duration. - // When clients report periodically, they should send reports with higher frequency than time to live. - // If clients report on transition, they can set the time to live to infinite. - // When time to live expires, the health event that contains the health information - // is either removed from health store, if RemoveWhenExpired is true, or evaluated at error, if RemoveWhenExpired false. - // If not specified, time to live defaults to infinite value. - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - // Description - The description of the health information. It represents free text used to add human readable information about the report. - // The maximum string length for the description is 4096 characters. - // If the provided string is longer, it will be automatically truncated. - // When truncated, the last characters of the description contain a marker "[Truncated]", and total string size is 4096 characters. - // The presence of the marker indicates to users that truncation occurred. - // Note that when truncated, the description has less than 4096 characters from the original string. - Description *string `json:"Description,omitempty"` - // SequenceNumber - The sequence number for this health report as a numeric string. - // The report sequence number is used by the health store to detect stale reports. - // If not specified, a sequence number is auto-generated by the health client when a report is added. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - // RemoveWhenExpired - Value that indicates whether the report is removed from health store when it expires. - // If set to true, the report is remopved from the health store after it expires. - // If set to false, the report is treated as an error when expired. The value of this property is false by default. - // When clients report periodically, they should set RemoveWhenExpired false (default). - // This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires. - // This flags the entity as being in Error health state. - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImageStoreContent information about the image store content. -type ImageStoreContent struct { - autorest.Response `json:"-"` - // StoreFiles - The list of image store file info objects represents files found under the given image store relative path. - StoreFiles *[]FileInfo `json:"StoreFiles,omitempty"` - // StoreFolders - The list of image store folder info objectes represents subfolders found under the given image store relative path. - StoreFolders *[]FolderInfo `json:"StoreFolders,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImageStoreCopyDescription information about how to copy image store content from one image store relative path -// to another image store relative path. -type ImageStoreCopyDescription struct { - // RemoteSource - The relative path of source image store content to be copied from. - RemoteSource *string `json:"RemoteSource,omitempty"` - // RemoteDestination - The relative path of destination image store content to be copied to. - RemoteDestination *string `json:"RemoteDestination,omitempty"` - // SkipFiles - The list of the file names to be skipped for copying. - SkipFiles *[]string `json:"SkipFiles,omitempty"` - // CheckMarkFile - Indicates whether to check mark file during copying. The property is true if checking mark file is required, false otherwise. The mark file is used to check whether the folder is well constructed. If the property is true and mark file does not exist, the copy is skipped. - CheckMarkFile *bool `json:"CheckMarkFile,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Int64RangePartitionInformation describes the partition information for the integer range that is based on -// partition schemes. -type Int64RangePartitionInformation struct { - // LowKey - Specifies the minimum key value handled by this partition. - LowKey *string `json:"LowKey,omitempty"` - // HighKey - Specifies the maximum key value handled by this partition. - HighKey *string `json:"HighKey,omitempty"` - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) MarshalJSON() ([]byte, error) { - i6rpi.ServicePartitionKind = ServicePartitionKindInt64Range - objectMap := make(map[string]interface{}) - if i6rpi.LowKey != nil { - objectMap["LowKey"] = i6rpi.LowKey - } - if i6rpi.HighKey != nil { - objectMap["HighKey"] = i6rpi.HighKey - } - if i6rpi.ID != nil { - objectMap["Id"] = i6rpi.ID - } - if i6rpi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = i6rpi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return &i6rpi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &i6rpi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeDataLossResult represents information about an operation in a terminal state (Completed or Faulted). -type InvokeDataLossResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeQuorumLossResult represents information about an operation in a terminal state (Completed or Faulted). -type InvokeQuorumLossResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KeyValueStoreReplicaStatus key value store related information for the replica. -type KeyValueStoreReplicaStatus struct { - // DatabaseRowCountEstimate - Value indicating the estimated number of rows in the underlying database. - DatabaseRowCountEstimate *string `json:"DatabaseRowCountEstimate,omitempty"` - // DatabaseLogicalSizeEstimate - Value indicating the estimated size of the underlying database. - DatabaseLogicalSizeEstimate *string `json:"DatabaseLogicalSizeEstimate,omitempty"` - // CopyNotificationCurrentKeyFilter - Value indicating the latest key-prefix filter applied to enumeration during the callback. Null if there is no pending callback. - CopyNotificationCurrentKeyFilter *string `json:"CopyNotificationCurrentKeyFilter,omitempty"` - // CopyNotificationCurrentProgress - Value indicating the latest number of keys enumerated during the callback. 0 if there is no pending callback. - CopyNotificationCurrentProgress *string `json:"CopyNotificationCurrentProgress,omitempty"` - // StatusDetails - Value indicating the current status details of the replica. - StatusDetails *string `json:"StatusDetails,omitempty"` - // Kind - Possible values include: 'KindReplicaStatusBase', 'KindKeyValueStore' - Kind KindBasicReplicaStatusBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) MarshalJSON() ([]byte, error) { - kvsrs.Kind = KindKeyValueStore - objectMap := make(map[string]interface{}) - if kvsrs.DatabaseRowCountEstimate != nil { - objectMap["DatabaseRowCountEstimate"] = kvsrs.DatabaseRowCountEstimate - } - if kvsrs.DatabaseLogicalSizeEstimate != nil { - objectMap["DatabaseLogicalSizeEstimate"] = kvsrs.DatabaseLogicalSizeEstimate - } - if kvsrs.CopyNotificationCurrentKeyFilter != nil { - objectMap["CopyNotificationCurrentKeyFilter"] = kvsrs.CopyNotificationCurrentKeyFilter - } - if kvsrs.CopyNotificationCurrentProgress != nil { - objectMap["CopyNotificationCurrentProgress"] = kvsrs.CopyNotificationCurrentProgress - } - if kvsrs.StatusDetails != nil { - objectMap["StatusDetails"] = kvsrs.StatusDetails - } - if kvsrs.Kind != "" { - objectMap["Kind"] = kvsrs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsKeyValueStoreReplicaStatus is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) { - return &kvsrs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaStatusBase is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsReplicaStatusBase() (*ReplicaStatusBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaStatusBase is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsBasicReplicaStatusBase() (BasicReplicaStatusBase, bool) { - return &kvsrs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedApplicationInfo ... -type ListDeployedApplicationInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedApplicationInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedCodePackageInfo ... -type ListDeployedCodePackageInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedCodePackageInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServicePackageInfo ... -type ListDeployedServicePackageInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedServicePackageInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServiceReplicaInfo ... -type ListDeployedServiceReplicaInfo struct { - autorest.Response `json:"-"` - Value *[]BasicDeployedServiceReplicaInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ListDeployedServiceReplicaInfo struct. -func (ldsri *ListDeployedServiceReplicaInfo) UnmarshalJSON(body []byte) error { - dsri, err := unmarshalBasicDeployedServiceReplicaInfoArray(body) - if err != nil { - return err - } - ldsri.Value = &dsri - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServiceTypeInfo ... -type ListDeployedServiceTypeInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedServiceTypeInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListFabricCodeVersionInfo ... -type ListFabricCodeVersionInfo struct { - autorest.Response `json:"-"` - Value *[]FabricCodeVersionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListFabricConfigVersionInfo ... -type ListFabricConfigVersionInfo struct { - autorest.Response `json:"-"` - Value *[]FabricConfigVersionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListOperationStatus ... -type ListOperationStatus struct { - autorest.Response `json:"-"` - Value *[]OperationStatus `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListServiceTypeInfo ... -type ListServiceTypeInfo struct { - autorest.Response `json:"-"` - Value *[]ServiceTypeInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricReport represents the load metric report which contains the time metric was reported, its name and -// value. -type LoadMetricReport struct { - // LastReportedUtc - Gets the UTC time when the load was reported. - LastReportedUtc *date.Time `json:"LastReportedUtc,omitempty"` - // Name - The name of the load metric. - Name *string `json:"Name,omitempty"` - // Value - The value of the load metric. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricReportInfo information about load reported by replica. -type LoadMetricReportInfo struct { - // Name - The name of the metric. - Name *string `json:"Name,omitempty"` - // Value - The value of the load for the metric.. - Value *int32 `json:"Value,omitempty"` - // LastReportedUtc - The UTC time when the load is reported. - LastReportedUtc *date.Time `json:"LastReportedUtc,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MonitoringPolicyDescription describes the parameters for monitoring an upgrade in Monitored mode. -type MonitoringPolicyDescription struct { - // FailureAction - Possible values include: 'FailureActionInvalid', 'FailureActionRollback', 'FailureActionManual' - FailureAction FailureAction `json:"FailureAction,omitempty"` - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NamedPartitionInformation describes the partition information for the name as a string that is based on -// partition schemes. -type NamedPartitionInformation struct { - // Name - Name of the partition. - Name *string `json:"Name,omitempty"` - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NamedPartitionInformation. -func (npi NamedPartitionInformation) MarshalJSON() ([]byte, error) { - npi.ServicePartitionKind = ServicePartitionKindNamed - objectMap := make(map[string]interface{}) - if npi.Name != nil { - objectMap["Name"] = npi.Name - } - if npi.ID != nil { - objectMap["Id"] = npi.ID - } - if npi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = npi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return &npi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &npi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NamedPartitionSchemeDescription describes the named partition scheme of the service. -type NamedPartitionSchemeDescription struct { - // Count - The number of partitions. - Count *int32 `json:"Count,omitempty"` - // Names - Array of size specified by the ‘Count’ parameter, for the names of the partitions. - Names *[]string `json:"Names,omitempty"` - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) MarshalJSON() ([]byte, error) { - npsd.PartitionScheme = PartitionSchemeNamed - objectMap := make(map[string]interface{}) - if npsd.Count != nil { - objectMap["Count"] = npsd.Count - } - if npsd.Names != nil { - objectMap["Names"] = npsd.Names - } - if npsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = npsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return &npsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &npsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationInfo information about the node deactivation. This information is valid for a node that is -// undergoing deactivation or has already been deactivated. -type NodeDeactivationInfo struct { - // NodeDeactivationIntent - Possible values include: 'NodeDeactivationIntent1Invalid', 'NodeDeactivationIntent1Pause', 'NodeDeactivationIntent1Restart', 'NodeDeactivationIntent1RemoveData', 'NodeDeactivationIntent1RemoveNode' - NodeDeactivationIntent NodeDeactivationIntent1 `json:"NodeDeactivationIntent,omitempty"` - // NodeDeactivationStatus - Possible values include: 'NodeDeactivationStatusNone', 'NodeDeactivationStatusSafetyCheckInProgress', 'NodeDeactivationStatusSafetyCheckComplete', 'NodeDeactivationStatusCompleted' - NodeDeactivationStatus NodeDeactivationStatus `json:"NodeDeactivationStatus,omitempty"` - NodeDeactivationTask *[]NodeDeactivationTask `json:"NodeDeactivationTask,omitempty"` - PendingSafetyChecks *[]SafetyCheckWrapper `json:"PendingSafetyChecks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTask the task representing the deactivation operation on the node. -type NodeDeactivationTask struct { - NodeDeactivationTaskID *NodeDeactivationTaskID `json:"NodeDeactivationTaskId,omitempty"` - // NodeDeactivationIntent - Possible values include: 'NodeDeactivationIntentInvalid', 'NodeDeactivationIntentPause', 'NodeDeactivationIntentRestart', 'NodeDeactivationIntentRemoveData', 'NodeDeactivationIntentRemoveNode' - NodeDeactivationIntent NodeDeactivationIntent `json:"NodeDeactivationIntent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTaskID identity of the task related to deactivation operation on the node. -type NodeDeactivationTaskID struct { - // ID - Value of the task id. - ID *string `json:"Id,omitempty"` - // NodeDeactivationTaskType - Possible values include: 'NodeDeactivationTaskTypeInvalid', 'NodeDeactivationTaskTypeInfrastructure', 'NodeDeactivationTaskTypeRepair', 'NodeDeactivationTaskTypeClient' - NodeDeactivationTaskType NodeDeactivationTaskType `json:"NodeDeactivationTaskType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealth information about the health of a Service Fabric node. -type NodeHealth struct { - autorest.Response `json:"-"` - // Name - Name of the node whose health information is described by this object. - Name *string `json:"Name,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthEvaluation represents health evaluation for a node, containing information about the data and the -// algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated health -// state is either Error or Warning. -type NodeHealthEvaluation struct { - // NodeName - Name of the node. - NodeName *string `json:"NodeName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the node. The types of the unhealthy evaluations can be EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNode - objectMap := make(map[string]interface{}) - if nhe.NodeName != nil { - objectMap["NodeName"] = nhe.NodeName - } - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthState represents the health state of a node, which contains the node identifier and its aggregated -// health state. -type NodeHealthState struct { - // Name - The name of the node. - Name *string `json:"Name,omitempty"` - ID *NodeID `json:"Id,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateChunk represents the health state chunk of a node, which contains the node name and its -// aggregated health state. -type NodeHealthStateChunk struct { - // NodeName - The name of the node. - NodeName *string `json:"NodeName,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateChunkList the list of node health state chunks in the cluster that respect the input filters in -// the chunk query. Returned by get cluster health state chunks query. -type NodeHealthStateChunkList struct { - // Items - The list of node health state chunks that respect the input filters in the chunk query. - Items *[]NodeHealthStateChunk `json:"Items,omitempty"` - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateFilter defines matching criteria to determine whether a node should be included in the returned -// cluster health chunk. -// One filter can match zero, one or multiple nodes, depending on its properties. -// Can be specified in the cluster health chunk query description. -type NodeHealthStateFilter struct { - // NodeNameFilter - Name of the node that matches the filter. The filter is applied only to the specified node, if it exists. - // If the node doesn't exist, no node is returned in the cluster health chunk based on this filter. - // If the node exists, it is included in the cluster health chunk if the health state matches the other filter properties. - // If not specified, all nodes that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - NodeNameFilter *string `json:"NodeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the nodes. It allows selecting nodes if they match the desired health states. - // The possible values are integer value of one of the following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the node name is specified. If the filter has default value and node name is specified, the matching node is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches nodes with HealthState value of OK (2) and Warning (4). - // - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeID an internal ID used by Service Fabric to uniquely identify a node. Node Id is deterministically generated -// from node name. -type NodeID struct { - // ID - Value of the node Id. This is a 128 bit integer. - ID *string `json:"Id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeInfo information about a node in Service Fabric cluster. -type NodeInfo struct { - autorest.Response `json:"-"` - // Name - The name of the node. - Name *string `json:"Name,omitempty"` - // IPAddressOrFQDN - The IP address or fully qualified domain name of the node. - IPAddressOrFQDN *string `json:"IpAddressOrFQDN,omitempty"` - // Type - The type of the node. - Type *string `json:"Type,omitempty"` - // CodeVersion - The version of Service Fabric binaries that the node is running. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The version of Service Fabric cluster manifest that the node is using. - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // NodeStatus - Possible values include: 'NodeStatusInvalid', 'NodeStatusUp', 'NodeStatusDown', 'NodeStatusEnabling', 'NodeStatusDisabling', 'NodeStatusDisabled', 'NodeStatusUnknown', 'NodeStatusRemoved' - NodeStatus NodeStatus `json:"NodeStatus,omitempty"` - // NodeUpTimeInSeconds - Time in seconds since the node has been in NodeStatus Up. Value ero indicates that the node is not Up. - NodeUpTimeInSeconds *string `json:"NodeUpTimeInSeconds,omitempty"` - // HealthState - Possible values include: 'HealthState4Invalid', 'HealthState4Ok', 'HealthState4Warning', 'HealthState4Error', 'HealthState4Unknown' - HealthState HealthState4 `json:"HealthState,omitempty"` - // IsSeedNode - Indicates if the node is a seed node or not. Returns true if the node is a seed node, otherwise false. A quorum of seed nodes are required for proper operation of Service Fabric cluster. - IsSeedNode *bool `json:"IsSeedNode,omitempty"` - // UpgradeDomain - The upgrade domain of the node. - UpgradeDomain *string `json:"UpgradeDomain,omitempty"` - // FaultDomain - The fault domain of the node. - FaultDomain *string `json:"FaultDomain,omitempty"` - ID *NodeID `json:"Id,omitempty"` - // InstanceID - The id representing the node instance. While the Id of the node is deterministically generated from the node name and remains same across restarts, the InstanceId changes every time node restarts. - InstanceID *string `json:"InstanceId,omitempty"` - NodeDeactivationInfo *NodeDeactivationInfo `json:"NodeDeactivationInfo,omitempty"` - // IsStopped - Indicates if the node is stopped by calling stop node API or not. Returns true if the node is stopped, otherwise false. - IsStopped *bool `json:"IsStopped,omitempty"` - // NodeDownTimeInSeconds - Time in seconds since the node has been in NodeStatus Down. Value zero indicates node is not NodeStatus Down. - NodeDownTimeInSeconds *string `json:"NodeDownTimeInSeconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadInfo information about load on a Service Fabric node. It holds a summary of all metrics and their load -// on a node. -type NodeLoadInfo struct { - autorest.Response `json:"-"` - // NodeName - Name of the node for which the load information is provided by this object. - NodeName *string `json:"NodeName,omitempty"` - // NodeLoadMetricInformation - List that contains metrics and their load information on this node. - NodeLoadMetricInformation *[]NodeLoadMetricInformation `json:"NodeLoadMetricInformation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadMetricInformation represents data structure that contains load information for a certain metric on a -// node. -type NodeLoadMetricInformation struct { - // Name - Name of the metric for which this load information is provided. - Name *string `json:"Name,omitempty"` - // NodeCapacity - Total capacity on the node for this metric. - NodeCapacity *string `json:"NodeCapacity,omitempty"` - // NodeLoad - Current load on the node for this metric. - NodeLoad *string `json:"NodeLoad,omitempty"` - // NodeRemainingCapacity - The remaining capacity on the node for this metric. - NodeRemainingCapacity *string `json:"NodeRemainingCapacity,omitempty"` - // IsCapacityViolation - Indicates if there is a capacity violation for this metric on the node. - IsCapacityViolation *bool `json:"IsCapacityViolation,omitempty"` - // NodeBufferedCapacity - The value that indicates the reserved capacity for this metric on the node. - NodeBufferedCapacity *string `json:"NodeBufferedCapacity,omitempty"` - // NodeRemainingBufferedCapacity - The remaining reserved capacity for this metric on the node. - NodeRemainingBufferedCapacity *string `json:"NodeRemainingBufferedCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeResult contains information about a node that was targeted by a user-induced operation. -type NodeResult struct { - // NodeName - The node name - NodeName *string `json:"NodeName,omitempty"` - // NodeInstanceID - The node instance id. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodesHealthEvaluation represents health evaluation for nodes, containing health evaluations for each unhealthy -// node that impacted current aggregated health state. Can be returned when evaluating cluster health and the -// aggregated health state is either Error or Warning. -type NodesHealthEvaluation struct { - // MaxPercentUnhealthyNodes - Maximum allowed percentage of unhealthy nodes from the ClusterHealthPolicy. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes found in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNodes - objectMap := make(map[string]interface{}) - if nhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = nhe.MaxPercentUnhealthyNodes - } - if nhe.TotalCount != nil { - objectMap["TotalCount"] = nhe.TotalCount - } - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeTransitionProgress information about an NodeTransition operation. This class contains an OperationState and -// a NodeTransitionResult. The NodeTransitionResult is not valid until OperationState -// is Completed or Faulted. -type NodeTransitionProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State1Invalid', 'State1Running', 'State1RollingBack', 'State1Completed', 'State1Faulted', 'State1Cancelled', 'State1ForceCancelled' - State State1 `json:"State,omitempty"` - NodeTransitionResult *NodeTransitionResult `json:"NodeTransitionResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeTransitionResult represents information about an operation in a terminal state (Completed or Faulted). -type NodeTransitionResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - NodeResult *NodeResult `json:"NodeResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeUpgradeProgressInfo information about the upgrading node and its status -type NodeUpgradeProgressInfo struct { - NodeName *string `json:"NodeName,omitempty"` - // UpgradePhase - Possible values include: 'UpgradePhaseInvalid', 'UpgradePhasePreUpgradeSafetyCheck', 'UpgradePhaseUpgrading', 'UpgradePhasePostUpgradeSafetyCheck' - UpgradePhase UpgradePhase `json:"UpgradePhase,omitempty"` - PendingSafetyChecks *[]SafetyCheckWrapper `json:"PendingSafetyChecks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// OperationStatus contains the OperationId, OperationState, and OperationType for user-induced operations. -type OperationStatus struct { - OperationID *uuid.UUID `json:"OperationId,omitempty"` - // State - Possible values include: 'State2Invalid', 'State2Running', 'State2RollingBack', 'State2Completed', 'State2Faulted', 'State2Cancelled', 'State2ForceCancelled' - State State2 `json:"State,omitempty"` - // Type - Possible values include: 'TypeInvalid', 'TypePartitionDataLoss', 'TypePartitionQuorumLoss', 'TypePartitionRestart', 'TypeNodeTransition' - Type Type `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PackageSharingPolicyInfo represents a policy for the package sharing. -type PackageSharingPolicyInfo struct { - // SharedPackageName - The name of code, configuration or data package that should be shared. - SharedPackageName *string `json:"SharedPackageName,omitempty"` - // PackageSharingScope - Possible values include: 'PackageSharingScopeNone', 'PackageSharingScopeAll', 'PackageSharingScopeCode', 'PackageSharingScopeConfig', 'PackageSharingScopeData' - PackageSharingScope PackageSharingScope `json:"PackageSharingScope,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedApplicationInfoList the list of applications in the cluster. The list is paged when all of the results -// cannot fit in a single message. The next set of results can be obtained by executing the same query with the -// continuation token provided in this list. -type PagedApplicationInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]ApplicationInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedApplicationTypeInfoList the list of application types that are provisioned or being provisioned in the -// cluster. The list is paged when all of the results cannot fit in a single message. The next set of results can -// be obtained by executing the same query with the continuation token provided in this list. -type PagedApplicationTypeInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]ApplicationTypeInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedComposeApplicationStatusInfoList the list of compose applications in the cluster. The list is paged when -// all of the results cannot fit in a single message. The next set of results can be obtained by executing the same -// query with the continuation token provided in this list. -type PagedComposeApplicationStatusInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]ComposeApplicationStatusInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedNodeInfoList the list of nodes in the cluster. The list is paged when all of the results cannot fit in a -// single message. The next set of results can be obtained by executing the same query with the continuation token -// provided in this list. -type PagedNodeInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]NodeInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedReplicaInfoList the list of replicas in the cluster for a given partition. The list is paged when all of -// the results cannot fit in a single message. The next set of results can be obtained by executing the same query -// with the continuation token provided in this list. -type PagedReplicaInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]BasicReplicaInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedReplicaInfoList struct. -func (pril *PagedReplicaInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - pril.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicReplicaInfoArray(*v) - if err != nil { - return err - } - pril.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedServiceInfoList the list of services in the cluster for an application. The list is paged when all of the -// results cannot fit in a single message. The next set of results can be obtained by executing the same query with -// the continuation token provided in this list. -type PagedServiceInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]BasicServiceInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedServiceInfoList struct. -func (psil *PagedServiceInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - psil.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicServiceInfoArray(*v) - if err != nil { - return err - } - psil.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedServicePartitionInfoList the list of partition in the cluster for a service. The list is paged when all of -// the results cannot fit in a single message. The next set of results can be obtained by executing the same query -// with the continuation token provided in this list. -type PagedServicePartitionInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]BasicServicePartitionInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedServicePartitionInfoList struct. -func (pspil *PagedServicePartitionInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - pspil.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicServicePartitionInfoArray(*v) - if err != nil { - return err - } - pspil.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionDataLossProgress information about a partition data loss user-induced operation. -type PartitionDataLossProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State3Invalid', 'State3Running', 'State3RollingBack', 'State3Completed', 'State3Faulted', 'State3Cancelled', 'State3ForceCancelled' - State State3 `json:"State,omitempty"` - InvokeDataLossResult *InvokeDataLossResult `json:"InvokeDataLossResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealth information about the health of a Service Fabric partition. -type PartitionHealth struct { - autorest.Response `json:"-"` - // PartitionID - ID of the partition whose health information is described by this object. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaHealthStates - The list of replica health states associated with the partition. - ReplicaHealthStates *[]BasicReplicaHealthState `json:"ReplicaHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PartitionHealth struct. -func (ph *PartitionHealth) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "PartitionId": - if v != nil { - var partitionID uuid.UUID - err = json.Unmarshal(*v, &partitionID) - if err != nil { - return err - } - ph.PartitionID = &partitionID - } - case "ReplicaHealthStates": - if v != nil { - replicaHealthStates, err := unmarshalBasicReplicaHealthStateArray(*v) - if err != nil { - return err - } - ph.ReplicaHealthStates = &replicaHealthStates - } - case "AggregatedHealthState": - if v != nil { - var aggregatedHealthState AggregatedHealthState1 - err = json.Unmarshal(*v, &aggregatedHealthState) - if err != nil { - return err - } - ph.AggregatedHealthState = aggregatedHealthState - } - case "HealthEvents": - if v != nil { - var healthEvents []HealthEvent - err = json.Unmarshal(*v, &healthEvents) - if err != nil { - return err - } - ph.HealthEvents = &healthEvents - } - case "UnhealthyEvaluations": - if v != nil { - var unhealthyEvaluations []HealthEvaluationWrapper - err = json.Unmarshal(*v, &unhealthyEvaluations) - if err != nil { - return err - } - ph.UnhealthyEvaluations = &unhealthyEvaluations - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthEvaluation represents health evaluation for a partition, containing information about the data -// and the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type PartitionHealthEvaluation struct { - // PartitionID - Id of the partition. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the partition. The types of the unhealthy evaluations can be ReplicasHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartition - objectMap := make(map[string]interface{}) - if phe.PartitionID != nil { - objectMap["PartitionId"] = phe.PartitionID - } - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthState represents the health state of a partition, which contains the partition identifier and its -// aggregated health state. -type PartitionHealthState struct { - // PartitionID - The ID of the partition. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateChunk represents the health state chunk of a partition, which contains the partition id, its -// aggregated health state and any replicas that respect the filters in the cluster health chunk query description. -type PartitionHealthStateChunk struct { - // PartitionID - The ID of the partition. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaHealthStateChunks - The list of replica health state chunks belonging to the partition that respect the filters in the cluster health chunk query description. - ReplicaHealthStateChunks *ReplicaHealthStateChunkList `json:"ReplicaHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateChunkList the list of partition health state chunks that respect the input filters in the -// chunk query description. -// Returned by get cluster health state chunks query as part of the parent application hierarchy. -type PartitionHealthStateChunkList struct { - // Items - The list of partition health state chunks that respect the input filters in the chunk query. - Items *[]PartitionHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateFilter defines matching criteria to determine whether a partition should be included as a -// child of a service in the cluster health chunk. -// The partitions are only returned if the parent entities match a filter specified in the cluster health chunk -// query description. The parent service and application must be included in the cluster health chunk. -// One filter can match zero, one or multiple partitions, depending on its properties. -type PartitionHealthStateFilter struct { - // PartitionIDFilter - ID of the partition that matches the filter. The filter is applied only to the specified partition, if it exists. - // If the partition doesn't exist, no partition is returned in the cluster health chunk based on this filter. - // If the partition exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all partitions that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - PartitionIDFilter *uuid.UUID `json:"PartitionIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the partitions. It allows selecting partitions if they match the desired health states. - // The possible values are integer value of one of the following health states. Only partitions that match the filter are returned. All partitions are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the partition id is specified. If the filter has default value and partition id is specified, the matching partition is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches partitions with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // ReplicaFilters - Defines a list of filters that specify which replicas to be included in the returned cluster health chunk as children of the parent partition. The replicas are returned only if the parent partition matches a filter. - // If the list is empty, no replicas are returned. All the replicas are used to evaluate the parent partition aggregated health state, regardless of the input filters. - // The partition filter may specify multiple replica filters. - // For example, it can specify a filter to return all replicas with health state Error and another filter to always include a replica identified by its replica id. - ReplicaFilters *[]ReplicaHealthStateFilter `json:"ReplicaFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionInformation information about the partition identity, partitioning scheme and keys supported by it. -type BasicPartitionInformation interface { - AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) - AsNamedPartitionInformation() (*NamedPartitionInformation, bool) - AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) - AsPartitionInformation() (*PartitionInformation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionInformation information about the partition identity, partitioning scheme and keys supported by it. -type PartitionInformation struct { - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -func unmarshalBasicPartitionInformation(body []byte) (BasicPartitionInformation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServicePartitionKind"] { - case string(ServicePartitionKindInt64Range): - var i6rpi Int64RangePartitionInformation - err := json.Unmarshal(body, &i6rpi) - return i6rpi, err - case string(ServicePartitionKindNamed): - var npi NamedPartitionInformation - err := json.Unmarshal(body, &npi) - return npi, err - case string(ServicePartitionKindSingleton): - var spi SingletonPartitionInformation - err := json.Unmarshal(body, &spi) - return spi, err - default: - var pi PartitionInformation - err := json.Unmarshal(body, &pi) - return pi, err - } -} -func unmarshalBasicPartitionInformationArray(body []byte) ([]BasicPartitionInformation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - piArray := make([]BasicPartitionInformation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pi, err := unmarshalBasicPartitionInformation(*rawMessage) - if err != nil { - return nil, err - } - piArray[index] = pi - } - return piArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionInformation. -func (pi PartitionInformation) MarshalJSON() ([]byte, error) { - pi.ServicePartitionKind = ServicePartitionKindPartitionInformation - objectMap := make(map[string]interface{}) - if pi.ID != nil { - objectMap["Id"] = pi.ID - } - if pi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = pi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return &pi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &pi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionLoadInformation represents load information for a partition, which contains the primary and secondary -// reported load metrics. -// In case there is no load reported, PartitionLoadInformation will contain the default load for the service of the -// partition. -// For default loads, LoadMetricReport's LastReportedUtc is set to 0. -type PartitionLoadInformation struct { - autorest.Response `json:"-"` - // PartitionID - Id of the partition. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // PrimaryLoadMetricReports - Array of load reports from the primary replica for this partition. - PrimaryLoadMetricReports *[]LoadMetricReport `json:"PrimaryLoadMetricReports,omitempty"` - // SecondaryLoadMetricReports - Array of aggregated load reports from all secondary replicas for this partition. - // Array only contains the latest reported load for each metric. - SecondaryLoadMetricReports *[]LoadMetricReport `json:"SecondaryLoadMetricReports,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionQuorumLossProgress information about a partition quorum loss user-induced operation. -type PartitionQuorumLossProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State4Invalid', 'State4Running', 'State4RollingBack', 'State4Completed', 'State4Faulted', 'State4Cancelled', 'State4ForceCancelled' - State State4 `json:"State,omitempty"` - InvokeQuorumLossResult *InvokeQuorumLossResult `json:"InvokeQuorumLossResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionRestartProgress information about a partition restart user-induced operation. -type PartitionRestartProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State5Invalid', 'State5Running', 'State5RollingBack', 'State5Completed', 'State5Faulted', 'State5Cancelled', 'State5ForceCancelled' - State State5 `json:"State,omitempty"` - RestartPartitionResult *RestartPartitionResult `json:"RestartPartitionResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionSafetyCheck represents a safety check for the service partition being performed by service fabric -// before continuing with operations. -type BasicPartitionSafetyCheck interface { - AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) - AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) - AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) - AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) - AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) - AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) - AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionSafetyCheck represents a safety check for the service partition being performed by service fabric -// before continuing with operations. -type PartitionSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -func unmarshalBasicPartitionSafetyCheck(body []byte) (BasicPartitionSafetyCheck, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindEnsureAvailability): - var easc EnsureAvailabilitySafetyCheck - err := json.Unmarshal(body, &easc) - return easc, err - case string(KindEnsurePartitionQuorum): - var epqsc EnsurePartitionQurumSafetyCheck - err := json.Unmarshal(body, &epqsc) - return epqsc, err - case string(KindWaitForInbuildReplica): - var wfirsc WaitForInbuildReplicaSafetyCheck - err := json.Unmarshal(body, &wfirsc) - return wfirsc, err - case string(KindWaitForPrimaryPlacement): - var wfppsc WaitForPrimaryPlacementSafetyCheck - err := json.Unmarshal(body, &wfppsc) - return wfppsc, err - case string(KindWaitForPrimarySwap): - var wfpssc WaitForPrimarySwapSafetyCheck - err := json.Unmarshal(body, &wfpssc) - return wfpssc, err - case string(KindWaitForReconfiguration): - var wfrsc WaitForReconfigurationSafetyCheck - err := json.Unmarshal(body, &wfrsc) - return wfrsc, err - default: - var psc PartitionSafetyCheck - err := json.Unmarshal(body, &psc) - return psc, err - } -} -func unmarshalBasicPartitionSafetyCheckArray(body []byte) ([]BasicPartitionSafetyCheck, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pscArray := make([]BasicPartitionSafetyCheck, len(rawMessages)) - - for index, rawMessage := range rawMessages { - psc, err := unmarshalBasicPartitionSafetyCheck(*rawMessage) - if err != nil { - return nil, err - } - pscArray[index] = psc - } - return pscArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) MarshalJSON() ([]byte, error) { - psc.Kind = KindPartitionSafetyCheck - objectMap := make(map[string]interface{}) - if psc.PartitionID != nil { - objectMap["PartitionId"] = psc.PartitionID - } - if psc.Kind != "" { - objectMap["Kind"] = psc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionSchemeDescription describes how the service is partitioned. -type BasicPartitionSchemeDescription interface { - AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) - AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) - AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) - AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionSchemeDescription describes how the service is partitioned. -type PartitionSchemeDescription struct { - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -func unmarshalBasicPartitionSchemeDescription(body []byte) (BasicPartitionSchemeDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["PartitionScheme"] { - case string(PartitionSchemeNamed): - var npsd NamedPartitionSchemeDescription - err := json.Unmarshal(body, &npsd) - return npsd, err - case string(PartitionSchemeSingleton): - var spsd SingletonPartitionSchemeDescription - err := json.Unmarshal(body, &spsd) - return spsd, err - case string(PartitionSchemeUniformInt64Range): - var ui6rpsd UniformInt64RangePartitionSchemeDescription - err := json.Unmarshal(body, &ui6rpsd) - return ui6rpsd, err - default: - var psd PartitionSchemeDescription - err := json.Unmarshal(body, &psd) - return psd, err - } -} -func unmarshalBasicPartitionSchemeDescriptionArray(body []byte) ([]BasicPartitionSchemeDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - psdArray := make([]BasicPartitionSchemeDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - psd, err := unmarshalBasicPartitionSchemeDescription(*rawMessage) - if err != nil { - return nil, err - } - psdArray[index] = psd - } - return psdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) MarshalJSON() ([]byte, error) { - psd.PartitionScheme = PartitionSchemePartitionSchemeDescription - objectMap := make(map[string]interface{}) - if psd.PartitionScheme != "" { - objectMap["PartitionScheme"] = psd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return &psd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &psd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionsHealthEvaluation represents health evaluation for the partitions of a service, containing health -// evaluations for each unhealthy partition that impacts current aggregated health state. Can be returned when -// evaluating service health and the aggregated health state is either Error or Warning. -type PartitionsHealthEvaluation struct { - // MaxPercentUnhealthyPartitionsPerService - Maximum allowed percentage of unhealthy partitions per service from the ServiceTypeHealthPolicy. - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - // TotalCount - Total number of partitions of the service from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy PartitionHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartitions - objectMap := make(map[string]interface{}) - if phe.MaxPercentUnhealthyPartitionsPerService != nil { - objectMap["MaxPercentUnhealthyPartitionsPerService"] = phe.MaxPercentUnhealthyPartitionsPerService - } - if phe.TotalCount != nil { - objectMap["TotalCount"] = phe.TotalCount - } - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PrimaryReplicatorStatus ... -type PrimaryReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the primary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // RemoteReplicators - The status of all the active and idle secondary replicators that the primary is aware of. - RemoteReplicators *[]RemoteReplicatorStatus `json:"RemoteReplicators,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) MarshalJSON() ([]byte, error) { - prs.Kind = KindPrimary - objectMap := make(map[string]interface{}) - if prs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = prs.ReplicationQueueStatus - } - if prs.RemoteReplicators != nil { - objectMap["RemoteReplicators"] = prs.RemoteReplicators - } - if prs.Kind != "" { - objectMap["Kind"] = prs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return &prs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &prs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReadCloser ... -type ReadCloser struct { - autorest.Response `json:"-"` - Value *io.ReadCloser `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorAcknowledgementDetail provides various statistics of the acknowledgements that are being -// received from the remote replicator. -type RemoteReplicatorAcknowledgementDetail struct { - // AverageReceiveDuration - Represents the average duration it takes for the remote replicator to receive an operation. - AverageReceiveDuration *string `json:"AverageReceiveDuration,omitempty"` - // AverageApplyDuration - Represents the average duration it takes for the remote replicator to apply an operation. This usually entails writing the operation to disk. - AverageApplyDuration *string `json:"AverageApplyDuration,omitempty"` - // NotReceivedCount - Represents the number of operations not yet received by a remote replicator. - NotReceivedCount *string `json:"NotReceivedCount,omitempty"` - // ReceivedAndNotAppliedCount - Represents the number of operations received and not yet applied by a remote replicator. - ReceivedAndNotAppliedCount *string `json:"ReceivedAndNotAppliedCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorAcknowledgementStatus provides details about the remote replicators from the primary -// replicator's point of view. -type RemoteReplicatorAcknowledgementStatus struct { - // ReplicationStreamAcknowledgementDetail - Details about the acknowledgements for operations that are part of the replication stream data. - ReplicationStreamAcknowledgementDetail *RemoteReplicatorAcknowledgementDetail `json:"ReplicationStreamAcknowledgementDetail,omitempty"` - // CopyStreamAcknowledgementDetail - Details about the acknowledgements for operations that are part of the copy stream data. - CopyStreamAcknowledgementDetail *RemoteReplicatorAcknowledgementDetail `json:"CopyStreamAcknowledgementDetail,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorStatus represents the state of the secondary replicator from the primary replicator’s point of -// view. -type RemoteReplicatorStatus struct { - // ReplicaID - Represents the replica id of the remote secondary replicator. - ReplicaID *string `json:"ReplicaId,omitempty"` - // LastAcknowledgementProcessedTimeUtc - The last timestamp (in UTC) when an acknowledgement from the secondary replicator was processed on the primary. - // UTC 0 represents an invalid value, indicating that no acknowledgement messages were ever processed. - LastAcknowledgementProcessedTimeUtc *date.Time `json:"LastAcknowledgementProcessedTimeUtc,omitempty"` - // LastReceivedReplicationSequenceNumber - The highest replication operation sequence number that the secondary has received from the primary. - LastReceivedReplicationSequenceNumber *string `json:"LastReceivedReplicationSequenceNumber,omitempty"` - // LastAppliedReplicationSequenceNumber - The highest replication operation sequence number that the secondary has applied to its state. - LastAppliedReplicationSequenceNumber *string `json:"LastAppliedReplicationSequenceNumber,omitempty"` - // IsInBuild - A value that indicates whether the secondary replica is in the process of being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // LastReceivedCopySequenceNumber - The highest copy operation sequence number that the secondary has received from the primary. - // A value of -1 implies that the secondary has received all copy operations. - LastReceivedCopySequenceNumber *string `json:"LastReceivedCopySequenceNumber,omitempty"` - // LastAppliedCopySequenceNumber - The highest copy operation sequence number that the secondary has applied to its state. - // A value of -1 implies that the secondary has applied all copy operations and the copy process is complete. - LastAppliedCopySequenceNumber *string `json:"LastAppliedCopySequenceNumber,omitempty"` - // RemoteReplicatorAcknowledgementStatus - Represents the acknowledgement status for the remote secondary replicator. - RemoteReplicatorAcknowledgementStatus *RemoteReplicatorAcknowledgementStatus `json:"RemoteReplicatorAcknowledgementStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaHealth represents a base class for stateful service replica or stateless service instance health. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type BasicReplicaHealth interface { - AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) - AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) - AsReplicaHealth() (*ReplicaHealth, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealth represents a base class for stateful service replica or stateless service instance health. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type ReplicaHealth struct { - autorest.Response `json:"-"` - // PartitionID - Id of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -func unmarshalBasicReplicaHealth(body []byte) (BasicReplicaHealth, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaHealthServiceKindStateful): - var ssrh StatefulServiceReplicaHealth - err := json.Unmarshal(body, &ssrh) - return ssrh, err - case string(ServiceKindBasicReplicaHealthServiceKindStateless): - var ssih StatelessServiceInstanceHealth - err := json.Unmarshal(body, &ssih) - return ssih, err - default: - var rh ReplicaHealth - err := json.Unmarshal(body, &rh) - return rh, err - } -} -func unmarshalBasicReplicaHealthArray(body []byte) ([]BasicReplicaHealth, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rhArray := make([]BasicReplicaHealth, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rh, err := unmarshalBasicReplicaHealth(*rawMessage) - if err != nil { - return nil, err - } - rhArray[index] = rh - } - return rhArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealth. -func (rh ReplicaHealth) MarshalJSON() ([]byte, error) { - rh.ServiceKind = ServiceKindBasicReplicaHealthServiceKindReplicaHealth - objectMap := make(map[string]interface{}) - if rh.PartitionID != nil { - objectMap["PartitionId"] = rh.PartitionID - } - if rh.ServiceKind != "" { - objectMap["ServiceKind"] = rh.ServiceKind - } - if rh.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rh.AggregatedHealthState - } - if rh.HealthEvents != nil { - objectMap["HealthEvents"] = rh.HealthEvents - } - if rh.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rh.UnhealthyEvaluations - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return &rh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &rh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthEvaluation represents health evaluation for a replica, containing information about the data and -// the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type ReplicaHealthEvaluation struct { - // PartitionID - Id of the partition to which the replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaOrInstanceID - Id of the stateful service replica or the stateless service instance. - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the replica. The types of the unhealthy evaluations can be EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplica - objectMap := make(map[string]interface{}) - if rhe.PartitionID != nil { - objectMap["PartitionId"] = rhe.PartitionID - } - if rhe.ReplicaOrInstanceID != nil { - objectMap["ReplicaOrInstanceId"] = rhe.ReplicaOrInstanceID - } - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthModel ... -type ReplicaHealthModel struct { - autorest.Response `json:"-"` - Value BasicReplicaHealth `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ReplicaHealthModel struct. -func (rhm *ReplicaHealthModel) UnmarshalJSON(body []byte) error { - rh, err := unmarshalBasicReplicaHealth(body) - if err != nil { - return err - } - rhm.Value = rh - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaHealthState represents a base class for stateful service replica or stateless service instance health -// state. -type BasicReplicaHealthState interface { - AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) - AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) - AsReplicaHealthState() (*ReplicaHealthState, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthState represents a base class for stateful service replica or stateless service instance health -// state. -type ReplicaHealthState struct { - // PartitionID - The ID of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -func unmarshalBasicReplicaHealthState(body []byte) (BasicReplicaHealthState, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaHealthStateServiceKindStateful): - var ssrhs StatefulServiceReplicaHealthState - err := json.Unmarshal(body, &ssrhs) - return ssrhs, err - case string(ServiceKindBasicReplicaHealthStateServiceKindStateless): - var ssihs StatelessServiceInstanceHealthState - err := json.Unmarshal(body, &ssihs) - return ssihs, err - default: - var RHS ReplicaHealthState - err := json.Unmarshal(body, &RHS) - return RHS, err - } -} -func unmarshalBasicReplicaHealthStateArray(body []byte) ([]BasicReplicaHealthState, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - RHSArray := make([]BasicReplicaHealthState, len(rawMessages)) - - for index, rawMessage := range rawMessages { - RHS, err := unmarshalBasicReplicaHealthState(*rawMessage) - if err != nil { - return nil, err - } - RHSArray[index] = RHS - } - return RHSArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealthState. -func (RHS ReplicaHealthState) MarshalJSON() ([]byte, error) { - RHS.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState - objectMap := make(map[string]interface{}) - if RHS.PartitionID != nil { - objectMap["PartitionId"] = RHS.PartitionID - } - if RHS.ServiceKind != "" { - objectMap["ServiceKind"] = RHS.ServiceKind - } - if RHS.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = RHS.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return &RHS, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &RHS, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateChunk represents the health state chunk of a stateful service replica or a stateless service -// instance. -// The replica health state contains the replica ID and its aggregated health state. -type ReplicaHealthStateChunk struct { - // ReplicaOrInstanceID - The ID of the stateful service replica or the stateless service instance. - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateChunkList the list of replica health state chunks that respect the input filters in the chunk -// query. Returned by get cluster health state chunks query. -type ReplicaHealthStateChunkList struct { - // Items - The list of replica health state chunks that respect the input filters in the chunk query. - Items *[]ReplicaHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateFilter defines matching criteria to determine whether a replica should be included as a child -// of a partition in the cluster health chunk. -// The replicas are only returned if the parent entities match a filter specified in the cluster health chunk query -// description. The parent partition, service and application must be included in the cluster health chunk. -// One filter can match zero, one or multiple replicas, depending on its properties. -type ReplicaHealthStateFilter struct { - // ReplicaOrInstanceIDFilter - Id of the stateful service replica or stateles service instance that matches the filter. The filter is applied only to the specified replica, if it exists. - // If the replica doesn't exist, no replica is returned in the cluster health chunk based on this filter. - // If the replica exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all replicas that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ReplicaOrInstanceIDFilter *string `json:"ReplicaOrInstanceIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the replicas. It allows selecting replicas if they match the desired health states. - // The possible values are integer value of one of the following health states. Only replicas that match the filter are returned. All replicas are used to evaluate the parent partition aggregated health state. - // If not specified, default value is None, unless the replica id is specified. If the filter has default value and replica id is specified, the matching replica is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches replicas with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaInfo information about the identity, status, health, node name, uptime, and other details about the -// replica. -type BasicReplicaInfo interface { - AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) - AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) - AsReplicaInfo() (*ReplicaInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaInfo information about the identity, status, health, node name, uptime, and other details about the -// replica. -type ReplicaInfo struct { - autorest.Response `json:"-"` - // ReplicaStatus - Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - Possible values include: 'HealthState6Invalid', 'HealthState6Ok', 'HealthState6Warning', 'HealthState6Error', 'HealthState6Unknown' - HealthState HealthState6 `json:"HealthState,omitempty"` - // NodeName - The name of the node. - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicReplicaInfo(body []byte) (BasicReplicaInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaInfoServiceKindStateful): - var ssri StatefulServiceReplicaInfo - err := json.Unmarshal(body, &ssri) - return ssri, err - case string(ServiceKindBasicReplicaInfoServiceKindStateless): - var ssii StatelessServiceInstanceInfo - err := json.Unmarshal(body, &ssii) - return ssii, err - default: - var ri ReplicaInfo - err := json.Unmarshal(body, &ri) - return ri, err - } -} -func unmarshalBasicReplicaInfoArray(body []byte) ([]BasicReplicaInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - riArray := make([]BasicReplicaInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ri, err := unmarshalBasicReplicaInfo(*rawMessage) - if err != nil { - return nil, err - } - riArray[index] = ri - } - return riArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaInfo. -func (ri ReplicaInfo) MarshalJSON() ([]byte, error) { - ri.ServiceKind = ServiceKindBasicReplicaInfoServiceKindReplicaInfo - objectMap := make(map[string]interface{}) - if ri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ri.ReplicaStatus - } - if ri.HealthState != "" { - objectMap["HealthState"] = ri.HealthState - } - if ri.NodeName != nil { - objectMap["NodeName"] = ri.NodeName - } - if ri.Address != nil { - objectMap["Address"] = ri.Address - } - if ri.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ri.LastInBuildDurationInSeconds - } - if ri.ServiceKind != "" { - objectMap["ServiceKind"] = ri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return &ri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaInfoModel ... -type ReplicaInfoModel struct { - autorest.Response `json:"-"` - Value BasicReplicaInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ReplicaInfoModel struct. -func (rim *ReplicaInfoModel) UnmarshalJSON(body []byte) error { - ri, err := unmarshalBasicReplicaInfo(body) - if err != nil { - return err - } - rim.Value = ri - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicasHealthEvaluation represents health evaluation for replicas, containing health evaluations for each -// unhealthy replica that impacted current aggregated health state. Can be returned when evaluating partition -// health and the aggregated health state is either Error or Warning. -type ReplicasHealthEvaluation struct { - // MaxPercentUnhealthyReplicasPerPartition - Maximum allowed percentage of unhealthy replicas per partition from the ApplicationHealthPolicy. - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` - // TotalCount - Total number of replicas in the partition from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ReplicaHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplicas - objectMap := make(map[string]interface{}) - if rhe.MaxPercentUnhealthyReplicasPerPartition != nil { - objectMap["MaxPercentUnhealthyReplicasPerPartition"] = rhe.MaxPercentUnhealthyReplicasPerPartition - } - if rhe.TotalCount != nil { - objectMap["TotalCount"] = rhe.TotalCount - } - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaStatusBase information about the replica. -type BasicReplicaStatusBase interface { - AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) - AsReplicaStatusBase() (*ReplicaStatusBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatusBase information about the replica. -type ReplicaStatusBase struct { - // Kind - Possible values include: 'KindReplicaStatusBase', 'KindKeyValueStore' - Kind KindBasicReplicaStatusBase `json:"Kind,omitempty"` -} - -func unmarshalBasicReplicaStatusBase(body []byte) (BasicReplicaStatusBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindKeyValueStore): - var kvsrs KeyValueStoreReplicaStatus - err := json.Unmarshal(body, &kvsrs) - return kvsrs, err - default: - var rsb ReplicaStatusBase - err := json.Unmarshal(body, &rsb) - return rsb, err - } -} -func unmarshalBasicReplicaStatusBaseArray(body []byte) ([]BasicReplicaStatusBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rsbArray := make([]BasicReplicaStatusBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rsb, err := unmarshalBasicReplicaStatusBase(*rawMessage) - if err != nil { - return nil, err - } - rsbArray[index] = rsb - } - return rsbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaStatusBase. -func (rsb ReplicaStatusBase) MarshalJSON() ([]byte, error) { - rsb.Kind = KindReplicaStatusBase - objectMap := make(map[string]interface{}) - if rsb.Kind != "" { - objectMap["Kind"] = rsb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsKeyValueStoreReplicaStatus is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaStatusBase is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsReplicaStatusBase() (*ReplicaStatusBase, bool) { - return &rsb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaStatusBase is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsBasicReplicaStatusBase() (BasicReplicaStatusBase, bool) { - return &rsb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicatorQueueStatus provides various statistics of the queue used in the service fabric replicator. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -// Depending on the role of the replicator, the properties in this type imply different meanings. -type ReplicatorQueueStatus struct { - // QueueUtilizationPercentage - Represents the utilization of the queue. A value of 0 indicates that the queue is empty and a value of 100 indicates the queue is full. - QueueUtilizationPercentage *int32 `json:"QueueUtilizationPercentage,omitempty"` - // QueueMemorySize - Represents the virtual memory consumed by the queue in bytes. - QueueMemorySize *string `json:"QueueMemorySize,omitempty"` - // FirstSequenceNumber - On a primary replicator, this is semantically the sequence number of the operation for which all the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is the smallest sequence number of the operation that is present in the queue. - FirstSequenceNumber *string `json:"FirstSequenceNumber,omitempty"` - // CompletedSequenceNumber - On a primary replicator, this is semantically the highest sequence number of the operation for which all the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is semantically the highest sequence number that has been applied to the persistent state. - CompletedSequenceNumber *string `json:"CompletedSequenceNumber,omitempty"` - // CommittedSequenceNumber - On a primary replicator, this is semantically the highest sequence number of the operation for which a write quorum of the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is semantically the highest sequence number of the in-order operation received from the primary. - CommittedSequenceNumber *string `json:"CommittedSequenceNumber,omitempty"` - // LastSequenceNumber - Represents the latest sequence number of the operation that is available in the queue. - LastSequenceNumber *string `json:"LastSequenceNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicatorStatus represents a base class for primary or secondary replicator status. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -type BasicReplicatorStatus interface { - AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) - AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) - AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) - AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) - AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) - AsReplicatorStatus() (*ReplicatorStatus, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicatorStatus represents a base class for primary or secondary replicator status. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -type ReplicatorStatus struct { - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -func unmarshalBasicReplicatorStatus(body []byte) (BasicReplicatorStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindPrimary): - var prs PrimaryReplicatorStatus - err := json.Unmarshal(body, &prs) - return prs, err - case string(KindSecondaryReplicatorStatus): - var srs SecondaryReplicatorStatus - err := json.Unmarshal(body, &srs) - return srs, err - case string(KindActiveSecondary): - var sars SecondaryActiveReplicatorStatus - err := json.Unmarshal(body, &sars) - return sars, err - case string(KindIdleSecondary): - var sirs SecondaryIdleReplicatorStatus - err := json.Unmarshal(body, &sirs) - return sirs, err - default: - var rs ReplicatorStatus - err := json.Unmarshal(body, &rs) - return rs, err - } -} -func unmarshalBasicReplicatorStatusArray(body []byte) ([]BasicReplicatorStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rsArray := make([]BasicReplicatorStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rs, err := unmarshalBasicReplicatorStatus(*rawMessage) - if err != nil { - return nil, err - } - rsArray[index] = rs - } - return rsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicatorStatus. -func (rs ReplicatorStatus) MarshalJSON() ([]byte, error) { - rs.Kind = KindReplicatorStatus - objectMap := make(map[string]interface{}) - if rs.Kind != "" { - objectMap["Kind"] = rs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepositoryCredential credential information to connect to container repository. -type RepositoryCredential struct { - // RepositoryUserName - The user name to connect to container repository. - RepositoryUserName *string `json:"RepositoryUserName,omitempty"` - // RepositoryPassword - The password for supplied username to connect to container repository. - RepositoryPassword *string `json:"RepositoryPassword,omitempty"` - // PasswordEncrypted - Indicates that supplied container repository password is encrypted. - PasswordEncrypted *bool `json:"PasswordEncrypted,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServiceEndpoint endpoint of a resolved service partition. -type ResolvedServiceEndpoint struct { - // Kind - Possible values include: 'KindInvalid', 'KindStateless', 'KindStatefulPrimary', 'KindStatefulSecondary' - Kind Kind `json:"Kind,omitempty"` - // Address - The address of the endpoint. If the endpoint has multiple listeners the address is a JSON object with one property per listener with the value as the address of that listener. - Address *string `json:"Address,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServicePartition information about a service partition and its associated endpoints. -type ResolvedServicePartition struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - // PartitionInformation - A representation of the resolved partition. - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - Endpoints *[]ResolvedServiceEndpoint `json:"Endpoints,omitempty"` - // Version - The version of this resolved service partition result. This version should be passed in the next time the ResolveService call is made via the PreviousRspVersion query parameter. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ResolvedServicePartition struct. -func (rsp *ResolvedServicePartition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - rsp.Name = &name - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - rsp.PartitionInformation = partitionInformation - } - case "Endpoints": - if v != nil { - var endpoints []ResolvedServiceEndpoint - err = json.Unmarshal(*v, &endpoints) - if err != nil { - return err - } - rsp.Endpoints = &endpoints - } - case "Version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - rsp.Version = &version - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageDescription defines description for restarting a deloyed code package on Service -// Fabric node. -type RestartDeployedCodePackageDescription struct { - // ServiceManifestName - The name of service manifest that specified this code package. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // CodePackageName - The name of the code package. - CodePackageName *string `json:"CodePackageName,omitempty"` - CodePackageInstanceID *string `json:"CodePackageInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeDescription describes the parameters to restart a Service Fabric node. -type RestartNodeDescription struct { - // NodeInstanceID - The instance id of the target node. If instance id is specified the node is restarted only if it matches with the current instance of the node. A default value of "0" would match any instance id. The instance id can be obtained using get node query. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` - // CreateFabricDump - Specify True to create a dump of the fabric node process. This is case sensitive. Possible values include: 'False', 'True' - CreateFabricDump CreateFabricDump `json:"CreateFabricDump,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartPartitionResult represents information about an operation in a terminal state (Completed or Faulted). -type RestartPartitionResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeDescription describes the parameters for resuming an unmonitored manual Service Fabric -// application upgrade -type ResumeApplicationUpgradeDescription struct { - // UpgradeDomainName - The name of the upgrade domain in which to resume the upgrade. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeUpdateDescription describes the parameters for updating a rolling upgrade of application or -// cluster. -type RollingUpgradeUpdateDescription struct { - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode4Invalid', 'RollingUpgradeMode4UnmonitoredAuto', 'RollingUpgradeMode4UnmonitoredManual', 'RollingUpgradeMode4Monitored' - RollingUpgradeMode RollingUpgradeMode4 `json:"RollingUpgradeMode,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - ReplicaSetCheckTimeoutInMilliseconds *int64 `json:"ReplicaSetCheckTimeoutInMilliseconds,omitempty"` - // FailureAction - Possible values include: 'FailureAction1Invalid', 'FailureAction1Rollback', 'FailureAction1Manual' - FailureAction FailureAction1 `json:"FailureAction,omitempty"` - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicSafetyCheck represents a safety check performed by service fabric before continuing with the operations. These -// checks ensure the avaiability of the service and the reliability of the state. -type BasicSafetyCheck interface { - AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) - AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) - AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) - AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) - AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) - AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) - AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) - AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) - AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) - AsSafetyCheck() (*SafetyCheck, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SafetyCheck represents a safety check performed by service fabric before continuing with the operations. These -// checks ensure the avaiability of the service and the reliability of the state. -type SafetyCheck struct { - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -func unmarshalBasicSafetyCheck(body []byte) (BasicSafetyCheck, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindPartitionSafetyCheck): - var psc PartitionSafetyCheck - err := json.Unmarshal(body, &psc) - return psc, err - case string(KindEnsureAvailability): - var easc EnsureAvailabilitySafetyCheck - err := json.Unmarshal(body, &easc) - return easc, err - case string(KindEnsurePartitionQuorum): - var epqsc EnsurePartitionQurumSafetyCheck - err := json.Unmarshal(body, &epqsc) - return epqsc, err - case string(KindEnsureSeedNodeQuorum): - var snsc SeedNodeSafetyCheck - err := json.Unmarshal(body, &snsc) - return snsc, err - case string(KindWaitForInbuildReplica): - var wfirsc WaitForInbuildReplicaSafetyCheck - err := json.Unmarshal(body, &wfirsc) - return wfirsc, err - case string(KindWaitForPrimaryPlacement): - var wfppsc WaitForPrimaryPlacementSafetyCheck - err := json.Unmarshal(body, &wfppsc) - return wfppsc, err - case string(KindWaitForPrimarySwap): - var wfpssc WaitForPrimarySwapSafetyCheck - err := json.Unmarshal(body, &wfpssc) - return wfpssc, err - case string(KindWaitForReconfiguration): - var wfrsc WaitForReconfigurationSafetyCheck - err := json.Unmarshal(body, &wfrsc) - return wfrsc, err - default: - var sc SafetyCheck - err := json.Unmarshal(body, &sc) - return sc, err - } -} -func unmarshalBasicSafetyCheckArray(body []byte) ([]BasicSafetyCheck, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - scArray := make([]BasicSafetyCheck, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sc, err := unmarshalBasicSafetyCheck(*rawMessage) - if err != nil { - return nil, err - } - scArray[index] = sc - } - return scArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SafetyCheck. -func (sc SafetyCheck) MarshalJSON() ([]byte, error) { - sc.Kind = KindSafetyCheck - objectMap := make(map[string]interface{}) - if sc.Kind != "" { - objectMap["Kind"] = sc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return &sc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &sc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SafetyCheckWrapper a wrapper for the safety check object. Safety checks are performed by service fabric before -// continuing with the operations. These checks ensure the avaiability of the service and the reliability of the -// state. -type SafetyCheckWrapper struct { - SafetyCheck BasicSafetyCheck `json:"SafetyCheck,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for SafetyCheckWrapper struct. -func (scw *SafetyCheckWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "SafetyCheck": - if v != nil { - safetyCheck, err := unmarshalBasicSafetyCheck(*v) - if err != nil { - return err - } - scw.SafetyCheck = safetyCheck - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryActiveReplicatorStatus status of the secondary replicator when it is in active mode and is part of the -// replica set. -type SecondaryActiveReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the secondary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // CopyQueueStatus - Details about the copy queue on the secondary replicator. - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) MarshalJSON() ([]byte, error) { - sars.Kind = KindActiveSecondary - objectMap := make(map[string]interface{}) - if sars.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = sars.ReplicationQueueStatus - } - if sars.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = sars.LastReplicationOperationReceivedTimeUtc - } - if sars.IsInBuild != nil { - objectMap["IsInBuild"] = sars.IsInBuild - } - if sars.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = sars.CopyQueueStatus - } - if sars.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = sars.LastCopyOperationReceivedTimeUtc - } - if sars.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = sars.LastAcknowledgementSentTimeUtc - } - if sars.Kind != "" { - objectMap["Kind"] = sars.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryIdleReplicatorStatus status of the secondary replicator when it is in idle mode and is being built by -// the primary. -type SecondaryIdleReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the secondary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // CopyQueueStatus - Details about the copy queue on the secondary replicator. - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) MarshalJSON() ([]byte, error) { - sirs.Kind = KindIdleSecondary - objectMap := make(map[string]interface{}) - if sirs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = sirs.ReplicationQueueStatus - } - if sirs.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = sirs.LastReplicationOperationReceivedTimeUtc - } - if sirs.IsInBuild != nil { - objectMap["IsInBuild"] = sirs.IsInBuild - } - if sirs.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = sirs.CopyQueueStatus - } - if sirs.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = sirs.LastCopyOperationReceivedTimeUtc - } - if sirs.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = sirs.LastAcknowledgementSentTimeUtc - } - if sirs.Kind != "" { - objectMap["Kind"] = sirs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicSecondaryReplicatorStatus ... -type BasicSecondaryReplicatorStatus interface { - AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) - AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) - AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryReplicatorStatus ... -type SecondaryReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the secondary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // CopyQueueStatus - Details about the copy queue on the secondary replicator. - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -func unmarshalBasicSecondaryReplicatorStatus(body []byte) (BasicSecondaryReplicatorStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindActiveSecondary): - var sars SecondaryActiveReplicatorStatus - err := json.Unmarshal(body, &sars) - return sars, err - case string(KindIdleSecondary): - var sirs SecondaryIdleReplicatorStatus - err := json.Unmarshal(body, &sirs) - return sirs, err - default: - var srs SecondaryReplicatorStatus - err := json.Unmarshal(body, &srs) - return srs, err - } -} -func unmarshalBasicSecondaryReplicatorStatusArray(body []byte) ([]BasicSecondaryReplicatorStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - srsArray := make([]BasicSecondaryReplicatorStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - srs, err := unmarshalBasicSecondaryReplicatorStatus(*rawMessage) - if err != nil { - return nil, err - } - srsArray[index] = srs - } - return srsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) MarshalJSON() ([]byte, error) { - srs.Kind = KindSecondaryReplicatorStatus - objectMap := make(map[string]interface{}) - if srs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = srs.ReplicationQueueStatus - } - if srs.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = srs.LastReplicationOperationReceivedTimeUtc - } - if srs.IsInBuild != nil { - objectMap["IsInBuild"] = srs.IsInBuild - } - if srs.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = srs.CopyQueueStatus - } - if srs.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = srs.LastCopyOperationReceivedTimeUtc - } - if srs.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = srs.LastAcknowledgementSentTimeUtc - } - if srs.Kind != "" { - objectMap["Kind"] = srs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SeedNodeSafetyCheck represents a safety check for the seed nodes being performed by service fabric before -// continuing with node level operations. -type SeedNodeSafetyCheck struct { - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) MarshalJSON() ([]byte, error) { - snsc.Kind = KindEnsureSeedNodeQuorum - objectMap := make(map[string]interface{}) - if snsc.Kind != "" { - objectMap["Kind"] = snsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return &snsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &snsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SelectedPartition this class returns information about the partition that the user-induced operation acted upon. -type SelectedPartition struct { - // ServiceName - The name of the service the partition belongs to. - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceCorrelationDescription creates a particular correlation between services. -type ServiceCorrelationDescription struct { - // Scheme - The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. Possible values include: 'SchemeInvalid', 'SchemeAffinity', 'SchemeAlignedAffinity', 'SchemeNonAlignedAffinity' - Scheme Scheme `json:"Scheme,omitempty"` - // ServiceName - The name of the service that the correlation relationship is established with. - ServiceName *string `json:"ServiceName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceDescription a ServiceDescription contains all of the information necessary to create a service. -type BasicServiceDescription interface { - AsStatefulServiceDescription() (*StatefulServiceDescription, bool) - AsStatelessServiceDescription() (*StatelessServiceDescription, bool) - AsServiceDescription() (*ServiceDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescription a ServiceDescription contains all of the information necessary to create a service. -type ServiceDescription struct { - autorest.Response `json:"-"` - // ApplicationName - The application name. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - The service name. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - The service type name. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data as an array of bytes. Initialization data is passed to service instances or replicas when they are created. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // PartitionDescription - The partition description as an object. - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // ServiceLoadMetrics - The service load metrics. - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost DefaultMoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'ServicePackageActivationMode1SharedProcess', 'ServicePackageActivationMode1ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode1 `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceDescription(body []byte) (BasicServiceDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceDescriptionServiceKindStateful): - var ssd StatefulServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - case string(ServiceKindBasicServiceDescriptionServiceKindStateless): - var ssd StatelessServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - default: - var sd ServiceDescription - err := json.Unmarshal(body, &sd) - return sd, err - } -} -func unmarshalBasicServiceDescriptionArray(body []byte) ([]BasicServiceDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sdArray := make([]BasicServiceDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sd, err := unmarshalBasicServiceDescription(*rawMessage) - if err != nil { - return nil, err - } - sdArray[index] = sd - } - return sdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceDescription. -func (sd ServiceDescription) MarshalJSON() ([]byte, error) { - sd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindServiceDescription - objectMap := make(map[string]interface{}) - if sd.ApplicationName != nil { - objectMap["ApplicationName"] = sd.ApplicationName - } - if sd.ServiceName != nil { - objectMap["ServiceName"] = sd.ServiceName - } - if sd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sd.ServiceTypeName - } - if sd.InitializationData != nil { - objectMap["InitializationData"] = sd.InitializationData - } - objectMap["PartitionDescription"] = sd.PartitionDescription - if sd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sd.PlacementConstraints - } - if sd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sd.CorrelationScheme - } - if sd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = sd.ServiceLoadMetrics - } - if sd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sd.ServicePlacementPolicies - } - if sd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = sd.DefaultMoveCost - } - if sd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = sd.IsDefaultMoveCostSpecified - } - if sd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = sd.ServicePackageActivationMode - } - if sd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = sd.ServiceDNSName - } - if sd.ServiceKind != "" { - objectMap["ServiceKind"] = sd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceDescription struct. -func (sd *ServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - sd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - sd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - sd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - sd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - sd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - sd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - sd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - sd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode1 - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - sd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - sd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescriptionModel ... -type ServiceDescriptionModel struct { - autorest.Response `json:"-"` - Value BasicServiceDescription `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceDescriptionModel struct. -func (sdm *ServiceDescriptionModel) UnmarshalJSON(body []byte) error { - sd, err := unmarshalBasicServiceDescription(body) - if err != nil { - return err - } - sdm.Value = sd - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceFromTemplateDescription defines description for creating a Service Fabric service from a template defined -// in the application manifest. -type ServiceFromTemplateDescription struct { - // ApplicationName - Full name of the application. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - Full name of the service. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - The name of the Service Fabric service type. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data for the newly created service instance. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'SharedProcess', 'ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealth information about the health of a Service Fabric service. -type ServiceHealth struct { - autorest.Response `json:"-"` - // Name - The name of the service whose health information is described by this object. - Name *string `json:"Name,omitempty"` - // PartitionHealthStates - The list of partition health states associated with the service. - PartitionHealthStates *[]PartitionHealthState `json:"PartitionHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthEvaluation represents health evaluation for a service, containing information about the data and -// the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type ServiceHealthEvaluation struct { - // ServiceName - Full name of the service. - ServiceName *string `json:"ServiceName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the service. The types of the unhealthy evaluations can be PartitionsHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindService - objectMap := make(map[string]interface{}) - if she.ServiceName != nil { - objectMap["ServiceName"] = she.ServiceName - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthState represents the health state of a service, which contains the service identifier and its -// aggregated health state. -type ServiceHealthState struct { - // ServiceName - Full name of the service. - ServiceName *string `json:"ServiceName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateChunk represents the health state chunk of a service, which contains the service name, its -// aggregated health state and any partitions that respect the filters in the cluster health chunk query -// description. -type ServiceHealthStateChunk struct { - // ServiceName - The name of the service. - ServiceName *string `json:"ServiceName,omitempty"` - // PartitionHealthStateChunks - The list of partition health state chunks belonging to the service that respect the filters in the cluster health chunk query description. - PartitionHealthStateChunks *PartitionHealthStateChunkList `json:"PartitionHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateChunkList the list of service health state chunks that respect the input filters in the chunk -// query. Returned by get cluster health state chunks query. -type ServiceHealthStateChunkList struct { - // Items - The list of service health state chunks that respect the input filters in the chunk query. - Items *[]ServiceHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateFilter defines matching criteria to determine whether a service should be included as a child -// of an application in the cluster health chunk. -// The services are only returned if the parent application matches a filter specified in the cluster health chunk -// query description. -// One filter can match zero, one or multiple services, depending on its properties. -type ServiceHealthStateFilter struct { - // ServiceNameFilter - The name of the service that matches the filter. The filter is applied only to the specified service, if it exists. - // If the service doesn't exist, no service is returned in the cluster health chunk based on this filter. - // If the service exists, it is included as the application's child if the health state matches the other filter properties. - // If not specified, all services that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ServiceNameFilter *string `json:"ServiceNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the services. It allows selecting services if they match the desired health states. - // The possible values are integer value of one of the following health states. Only services that match the filter are returned. All services are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the service name is specified. If the filter has default value and service name is specified, the matching service is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches services with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn’t match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // PartitionFilters - Defines a list of filters that specify which partitions to be included in the returned cluster health chunk as children of the service. The partitions are returned only if the parent service matches a filter. - // If the list is empty, no partitions are returned. All the partitions are used to evaluate the parent service aggregated health state, regardless of the input filters. - // The service filter may specify multiple partition filters. - // For example, it can specify a filter to return all partitions with health state Error and another filter to always include a partition identified by its partition id. - PartitionFilters *[]PartitionHealthStateFilter `json:"PartitionFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceInfo information about a Service Fabric service. -type BasicServiceInfo interface { - AsStatefulServiceInfo() (*StatefulServiceInfo, bool) - AsStatelessServiceInfo() (*StatelessServiceInfo, bool) - AsServiceInfo() (*ServiceInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceInfo information about a Service Fabric service. -type ServiceInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - // Name - Full hierarchical name of the service in URI format starting with `fabric:`. - Name *string `json:"Name,omitempty"` - // TypeName - The name of the service type as specified in the service manifest. - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - Possible values include: 'HealthState7Invalid', 'HealthState7Ok', 'HealthState7Warning', 'HealthState7Error', 'HealthState7Unknown' - HealthState HealthState7 `json:"HealthState,omitempty"` - // ServiceStatus - Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceInfo(body []byte) (BasicServiceInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceInfoServiceKindStateful): - var ssi StatefulServiceInfo - err := json.Unmarshal(body, &ssi) - return ssi, err - case string(ServiceKindBasicServiceInfoServiceKindStateless): - var ssi StatelessServiceInfo - err := json.Unmarshal(body, &ssi) - return ssi, err - default: - var si ServiceInfo - err := json.Unmarshal(body, &si) - return si, err - } -} -func unmarshalBasicServiceInfoArray(body []byte) ([]BasicServiceInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - siArray := make([]BasicServiceInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - si, err := unmarshalBasicServiceInfo(*rawMessage) - if err != nil { - return nil, err - } - siArray[index] = si - } - return siArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceInfo. -func (si ServiceInfo) MarshalJSON() ([]byte, error) { - si.ServiceKind = ServiceKindBasicServiceInfoServiceKindServiceInfo - objectMap := make(map[string]interface{}) - if si.ID != nil { - objectMap["Id"] = si.ID - } - if si.Name != nil { - objectMap["Name"] = si.Name - } - if si.TypeName != nil { - objectMap["TypeName"] = si.TypeName - } - if si.ManifestVersion != nil { - objectMap["ManifestVersion"] = si.ManifestVersion - } - if si.HealthState != "" { - objectMap["HealthState"] = si.HealthState - } - if si.ServiceStatus != "" { - objectMap["ServiceStatus"] = si.ServiceStatus - } - if si.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = si.IsServiceGroup - } - if si.ServiceKind != "" { - objectMap["ServiceKind"] = si.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return &si, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &si, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceInfoModel ... -type ServiceInfoModel struct { - autorest.Response `json:"-"` - Value BasicServiceInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceInfoModel struct. -func (sim *ServiceInfoModel) UnmarshalJSON(body []byte) error { - si, err := unmarshalBasicServiceInfo(body) - if err != nil { - return err - } - sim.Value = si - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceLoadMetricDescription specifies a metric to load balance a service during runtime. -type ServiceLoadMetricDescription struct { - // Name - The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. - Name *string `json:"Name,omitempty"` - // Weight - The service load metric relative weight, compared to other metrics configured for this service, as a number. Possible values include: 'WeightZero', 'WeightLow', 'WeightMedium', 'WeightHigh' - Weight Weight `json:"Weight,omitempty"` - // PrimaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. - PrimaryDefaultLoad *int32 `json:"PrimaryDefaultLoad,omitempty"` - // SecondaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. - SecondaryDefaultLoad *int32 `json:"SecondaryDefaultLoad,omitempty"` - // DefaultLoad - Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. - DefaultLoad *int32 `json:"DefaultLoad,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceNameInfo information about the service name. -type ServiceNameInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - // Name - The name of the service. - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServicePartitionInfo information about a partition of a Service Fabric service. -type BasicServicePartitionInfo interface { - AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) - AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) - AsServicePartitionInfo() (*ServicePartitionInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionInfo information about a partition of a Service Fabric service. -type ServicePartitionInfo struct { - autorest.Response `json:"-"` - // HealthState - Possible values include: 'HealthState5Invalid', 'HealthState5Ok', 'HealthState5Warning', 'HealthState5Error', 'HealthState5Unknown' - HealthState HealthState5 `json:"HealthState,omitempty"` - // PartitionStatus - Possible values include: 'PartitionStatusInvalid', 'PartitionStatusReady', 'PartitionStatusNotReady', 'PartitionStatusInQuorumLoss', 'PartitionStatusReconfiguring', 'PartitionStatusDeleting' - PartitionStatus PartitionStatus `json:"PartitionStatus,omitempty"` - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServicePartitionInfo(body []byte) (BasicServicePartitionInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServicePartitionInfoServiceKindStateful): - var sspi StatefulServicePartitionInfo - err := json.Unmarshal(body, &sspi) - return sspi, err - case string(ServiceKindBasicServicePartitionInfoServiceKindStateless): - var sspi StatelessServicePartitionInfo - err := json.Unmarshal(body, &sspi) - return sspi, err - default: - var spi ServicePartitionInfo - err := json.Unmarshal(body, &spi) - return spi, err - } -} -func unmarshalBasicServicePartitionInfoArray(body []byte) ([]BasicServicePartitionInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - spiArray := make([]BasicServicePartitionInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - spi, err := unmarshalBasicServicePartitionInfo(*rawMessage) - if err != nil { - return nil, err - } - spiArray[index] = spi - } - return spiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePartitionInfo. -func (spi ServicePartitionInfo) MarshalJSON() ([]byte, error) { - spi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo - objectMap := make(map[string]interface{}) - if spi.HealthState != "" { - objectMap["HealthState"] = spi.HealthState - } - if spi.PartitionStatus != "" { - objectMap["PartitionStatus"] = spi.PartitionStatus - } - objectMap["PartitionInformation"] = spi.PartitionInformation - if spi.ServiceKind != "" { - objectMap["ServiceKind"] = spi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServicePartitionInfo struct. -func (spi *ServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HealthState": - if v != nil { - var healthState HealthState5 - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - spi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus PartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - spi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - spi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - spi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionInfoModel ... -type ServicePartitionInfoModel struct { - autorest.Response `json:"-"` - Value BasicServicePartitionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServicePartitionInfoModel struct. -func (spim *ServicePartitionInfoModel) UnmarshalJSON(body []byte) error { - spi, err := unmarshalBasicServicePartitionInfo(body) - if err != nil { - return err - } - spim.Value = spi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementInvalidDomainPolicyDescription describes the policy to be used for placement of a Service Fabric -// service where a particular fault or upgrade domain should not be used for placement of the instances or replicas -// of that service. -type ServicePlacementInvalidDomainPolicyDescription struct { - // DomainName - The name of the domain that should not be used for placement. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) MarshalJSON() ([]byte, error) { - spidpd.Type = TypeInvalidDomain - objectMap := make(map[string]interface{}) - if spidpd.DomainName != nil { - objectMap["DomainName"] = spidpd.DomainName - } - if spidpd.Type != "" { - objectMap["Type"] = spidpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return &spidpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spidpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementNonPartiallyPlaceServicePolicyDescription describes the policy to be used for placement of a -// Service Fabric service where all replicas must be able to be placed in order for any replicas to be created. -type ServicePlacementNonPartiallyPlaceServicePolicyDescription struct { - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) MarshalJSON() ([]byte, error) { - spnppspd.Type = TypeNonPartiallyPlaceService - objectMap := make(map[string]interface{}) - if spnppspd.Type != "" { - objectMap["Type"] = spnppspd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return &spnppspd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spnppspd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service. -type BasicServicePlacementPolicyDescription interface { - AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) - AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) - AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) - AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) - AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) - AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service. -type ServicePlacementPolicyDescription struct { - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -func unmarshalBasicServicePlacementPolicyDescription(body []byte) (BasicServicePlacementPolicyDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Type"] { - case string(TypeInvalidDomain): - var spidpd ServicePlacementInvalidDomainPolicyDescription - err := json.Unmarshal(body, &spidpd) - return spidpd, err - case string(TypeNonPartiallyPlaceService): - var spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription - err := json.Unmarshal(body, &spnppspd) - return spnppspd, err - case string(TypePreferPrimaryDomain): - var spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription - err := json.Unmarshal(body, &spppdpd) - return spppdpd, err - case string(TypeRequireDomain): - var sprdpd ServicePlacementRequiredDomainPolicyDescription - err := json.Unmarshal(body, &sprdpd) - return sprdpd, err - case string(TypeRequireDomainDistribution): - var sprddpd ServicePlacementRequireDomainDistributionPolicyDescription - err := json.Unmarshal(body, &sprddpd) - return sprddpd, err - default: - var sppd ServicePlacementPolicyDescription - err := json.Unmarshal(body, &sppd) - return sppd, err - } -} -func unmarshalBasicServicePlacementPolicyDescriptionArray(body []byte) ([]BasicServicePlacementPolicyDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sppdArray := make([]BasicServicePlacementPolicyDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sppd, err := unmarshalBasicServicePlacementPolicyDescription(*rawMessage) - if err != nil { - return nil, err - } - sppdArray[index] = sppd - } - return sppdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) MarshalJSON() ([]byte, error) { - sppd.Type = TypeServicePlacementPolicyDescription - objectMap := make(map[string]interface{}) - if sppd.Type != "" { - objectMap["Type"] = sppd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return &sppd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sppd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPreferPrimaryDomainPolicyDescription describes the policy to be used for placement of a Service -// Fabric service where the service's Primary replicas should optimally be placed in a particular domain. -// -// This placement policy is usually used with fault domains in scenarios where the Service Fabric cluster is -// geographically distributed in order to indicate that a service�s primary replica should be located in a -// particular fault domain, which in geo-distributed scenarios usually aligns with regional or datacenter -// boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up -// located in this domain due to failures, capacity limits, or other constraints. -type ServicePlacementPreferPrimaryDomainPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) MarshalJSON() ([]byte, error) { - spppdpd.Type = TypePreferPrimaryDomain - objectMap := make(map[string]interface{}) - if spppdpd.DomainName != nil { - objectMap["DomainName"] = spppdpd.DomainName - } - if spppdpd.Type != "" { - objectMap["Type"] = spppdpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return &spppdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spppdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementRequiredDomainPolicyDescription describes the policy to be used for placement of a Service -// Fabric service where the instances or replicas of that service must be placed in a particular domain -type ServicePlacementRequiredDomainPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) MarshalJSON() ([]byte, error) { - sprdpd.Type = TypeRequireDomain - objectMap := make(map[string]interface{}) - if sprdpd.DomainName != nil { - objectMap["DomainName"] = sprdpd.DomainName - } - if sprdpd.Type != "" { - objectMap["Type"] = sprdpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return &sprdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sprdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementRequireDomainDistributionPolicyDescription describes the policy to be used for placement of a -// Service Fabric service where two replicas from the same partition should never be placed in the same fault or -// upgrade domain. -// -// While this is not common it can expose the service to an increased risk of concurrent failures due to unplanned -// outages or other cases of subsequent/concurrent failures. As an example, consider a case where replicas are -// deployed across different data center, with one replica per location. In the event that one of the datacenters -// goes offline, normally the replica that was placed in that datacenter will be packed into one of the remaining -// datacenters. If this is not desirable then this policy should be set. -type ServicePlacementRequireDomainDistributionPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) MarshalJSON() ([]byte, error) { - sprddpd.Type = TypeRequireDomainDistribution - objectMap := make(map[string]interface{}) - if sprddpd.DomainName != nil { - objectMap["DomainName"] = sprddpd.DomainName - } - if sprddpd.Type != "" { - objectMap["Type"] = sprddpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return &sprddpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sprddpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicesHealthEvaluation represents health evaluation for services of a certain service type belonging to an -// application, containing health evaluations for each unhealthy service that impacted current aggregated health -// state. Can be returned when evaluating application health and the aggregated health state is either Error or -// Warning. -type ServicesHealthEvaluation struct { - // ServiceTypeName - Name of the service type of the services. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // MaxPercentUnhealthyServices - Maximum allowed percentage of unhealthy services from the ServiceTypeHealthPolicy. - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` - // TotalCount - Total number of services of the current service type in the application from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ServiceHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindServices - objectMap := make(map[string]interface{}) - if she.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = she.ServiceTypeName - } - if she.MaxPercentUnhealthyServices != nil { - objectMap["MaxPercentUnhealthyServices"] = she.MaxPercentUnhealthyServices - } - if she.TotalCount != nil { - objectMap["TotalCount"] = she.TotalCount - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceTypeDescription describes a service type defined in the service manifest of a provisioned application -// type. The properties the the ones defined in the service manifest. -type BasicServiceTypeDescription interface { - AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) - AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) - AsServiceTypeDescription() (*ServiceTypeDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeDescription describes a service type defined in the service manifest of a provisioned application -// type. The properties the the ones defined in the service manifest. -type ServiceTypeDescription struct { - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - // ServiceTypeName - Name of the service type. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless1' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -func unmarshalBasicServiceTypeDescription(body []byte) (BasicServiceTypeDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindStateful): - var sstd StatefulServiceTypeDescription - err := json.Unmarshal(body, &sstd) - return sstd, err - case string(KindStateless1): - var sstd StatelessServiceTypeDescription - err := json.Unmarshal(body, &sstd) - return sstd, err - default: - var std ServiceTypeDescription - err := json.Unmarshal(body, &std) - return std, err - } -} -func unmarshalBasicServiceTypeDescriptionArray(body []byte) ([]BasicServiceTypeDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - stdArray := make([]BasicServiceTypeDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - std, err := unmarshalBasicServiceTypeDescription(*rawMessage) - if err != nil { - return nil, err - } - stdArray[index] = std - } - return stdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceTypeDescription. -func (std ServiceTypeDescription) MarshalJSON() ([]byte, error) { - std.Kind = KindServiceTypeDescription - objectMap := make(map[string]interface{}) - if std.IsStateful != nil { - objectMap["IsStateful"] = std.IsStateful - } - if std.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = std.ServiceTypeName - } - if std.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = std.PlacementConstraints - } - if std.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = std.ServicePlacementPolicies - } - if std.Extensions != nil { - objectMap["Extensions"] = std.Extensions - } - if std.Kind != "" { - objectMap["Kind"] = std.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return &std, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &std, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceTypeDescription struct. -func (std *ServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - std.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - std.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - std.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - std.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - std.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - std.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeExtensionDescription describes extension of a service type defined in the service manifest. -type ServiceTypeExtensionDescription struct { - // Key - The name of the extension. - Key *string `json:"Key,omitempty"` - // Value - The extension value. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to a -// service type. -type ServiceTypeHealthPolicy struct { - // MaxPercentUnhealthyPartitionsPerService - The maximum allowed percentage of unhealthy partitions per service. Allowed values are Byte values from zero to 100 - // The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error. - // If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. - // The computation rounds up to tolerate one failure on small numbers of partitions. Default percentage is zero. - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - // MaxPercentUnhealthyReplicasPerPartition - The maximum allowed percentage of unhealthy replicas per partition. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. - // If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. - // The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage is zero. - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` - // MaxPercentUnhealthyServices - The maximum maximum allowed percentage of unhealthy services. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. - // If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. - // This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type. - // The computation rounds up to tolerate one failure on small numbers of services. Default percentage is zero. - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeHealthPolicyMapItem defines an item in ServiceTypeHealthPolicyMap. -type ServiceTypeHealthPolicyMapItem struct { - // Key - The key of the service type health policy map item. This is the name of the service type. - Key *string `json:"Key,omitempty"` - // Value - The value of the service type health policy map item. This is the ServiceTypeHealthPolicy for this service type. - Value *ServiceTypeHealthPolicy `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeInfo information about a service type that is defined in a service manifest of a provisioned -// application type. -type ServiceTypeInfo struct { - ServiceTypeDescription BasicServiceTypeDescription `json:"ServiceTypeDescription,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ServiceManifestVersion - The version of the service manifest in which this service type is defined. - ServiceManifestVersion *string `json:"ServiceManifestVersion,omitempty"` - // IsServiceGroup - Indicates whether the service is a service group. If it is, the property value is true otherwise false. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceTypeInfo struct. -func (sti *ServiceTypeInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ServiceTypeDescription": - if v != nil { - serviceTypeDescription, err := unmarshalBasicServiceTypeDescription(*v) - if err != nil { - return err - } - sti.ServiceTypeDescription = serviceTypeDescription - } - case "ServiceManifestName": - if v != nil { - var serviceManifestName string - err = json.Unmarshal(*v, &serviceManifestName) - if err != nil { - return err - } - sti.ServiceManifestName = &serviceManifestName - } - case "ServiceManifestVersion": - if v != nil { - var serviceManifestVersion string - err = json.Unmarshal(*v, &serviceManifestVersion) - if err != nil { - return err - } - sti.ServiceManifestVersion = &serviceManifestVersion - } - case "IsServiceGroup": - if v != nil { - var isServiceGroup bool - err = json.Unmarshal(*v, &isServiceGroup) - if err != nil { - return err - } - sti.IsServiceGroup = &isServiceGroup - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeManifest contains the manifest describing a service type registered as part of an application in a -// Service Fabric cluster. -type ServiceTypeManifest struct { - autorest.Response `json:"-"` - // Manifest - The XML manifest as a string. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceUpdateDescription a ServiceUpdateDescription contains all of the information necessary to update a -// service. -type BasicServiceUpdateDescription interface { - AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) - AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) - AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceUpdateDescription a ServiceUpdateDescription contains all of the information necessary to update a -// service. -type ServiceUpdateDescription struct { - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // LoadMetrics - The service load metrics. - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'DefaultMoveCost1Zero', 'DefaultMoveCost1Low', 'DefaultMoveCost1Medium', 'DefaultMoveCost1High' - DefaultMoveCost DefaultMoveCost1 `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceUpdateDescription(body []byte) (BasicServiceUpdateDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceUpdateDescriptionServiceKindStateful): - var ssud StatefulServiceUpdateDescription - err := json.Unmarshal(body, &ssud) - return ssud, err - case string(ServiceKindBasicServiceUpdateDescriptionServiceKindStateless): - var ssud StatelessServiceUpdateDescription - err := json.Unmarshal(body, &ssud) - return ssud, err - default: - var sud ServiceUpdateDescription - err := json.Unmarshal(body, &sud) - return sud, err - } -} -func unmarshalBasicServiceUpdateDescriptionArray(body []byte) ([]BasicServiceUpdateDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sudArray := make([]BasicServiceUpdateDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sud, err := unmarshalBasicServiceUpdateDescription(*rawMessage) - if err != nil { - return nil, err - } - sudArray[index] = sud - } - return sudArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) MarshalJSON() ([]byte, error) { - sud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription - objectMap := make(map[string]interface{}) - if sud.Flags != nil { - objectMap["Flags"] = sud.Flags - } - if sud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sud.PlacementConstraints - } - if sud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sud.CorrelationScheme - } - if sud.LoadMetrics != nil { - objectMap["LoadMetrics"] = sud.LoadMetrics - } - if sud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sud.ServicePlacementPolicies - } - if sud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = sud.DefaultMoveCost - } - if sud.ServiceKind != "" { - objectMap["ServiceKind"] = sud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return &sud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &sud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceUpdateDescription struct. -func (sud *ServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - sud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - sud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - sud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost1 - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - sud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SingletonPartitionInformation information about a partition that is singleton. The services with singletone -// partitioning scheme are effectively non-partitioned. They only have one partition. -type SingletonPartitionInformation struct { - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) MarshalJSON() ([]byte, error) { - spi.ServicePartitionKind = ServicePartitionKindSingleton - objectMap := make(map[string]interface{}) - if spi.ID != nil { - objectMap["Id"] = spi.ID - } - if spi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = spi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SingletonPartitionSchemeDescription describes the partition scheme of a singleton-partitioned, or -// non-partitioned service. -type SingletonPartitionSchemeDescription struct { - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) MarshalJSON() ([]byte, error) { - spsd.PartitionScheme = PartitionSchemeSingleton - objectMap := make(map[string]interface{}) - if spsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = spsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return &spsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &spsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartedChaosEvent describes a Chaos event that gets generated when Chaos is started. -type StartedChaosEvent struct { - ChaosParameters *ChaosParameters `json:"ChaosParameters,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StartedChaosEvent. -func (sce StartedChaosEvent) MarshalJSON() ([]byte, error) { - sce.Kind = KindStarted - objectMap := make(map[string]interface{}) - if sce.ChaosParameters != nil { - objectMap["ChaosParameters"] = sce.ChaosParameters - } - if sce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = sce.TimeStampUtc - } - if sce.Kind != "" { - objectMap["Kind"] = sce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeDescription describes the parameter for starting a stopped Service Fabric node. -type StartNodeDescription struct { - // NodeInstanceID - The instance id of the node that is stopped. If instance id is specified the node is started only if it matches with the current instance of the stopped node. A default value of "0" would match any instance id. The instance id can be obtained using get node query. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceDescription describes a stateful service. -type StatefulServiceDescription struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for QuorumLossWaitDuration (2) and StandByReplicaKeepDuration(4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 1. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 2. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 4. - Flags *int32 `json:"Flags,omitempty"` - // ReplicaRestartWaitDurationSeconds - The duration, in seconds, between when a replica goes down and when a new replica is created. - ReplicaRestartWaitDurationSeconds *int64 `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - // QuorumLossWaitDurationSeconds - The maximum duration, in seconds, for which a partition is allowed to be in a state of quorum loss. - QuorumLossWaitDurationSeconds *int64 `json:"QuorumLossWaitDurationSeconds,omitempty"` - // StandByReplicaKeepDurationSeconds - The definition on how long StandBy replicas should be maintained before being removed. - StandByReplicaKeepDurationSeconds *int64 `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // ApplicationName - The application name. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - The service name. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - The service type name. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data as an array of bytes. Initialization data is passed to service instances or replicas when they are created. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // PartitionDescription - The partition description as an object. - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // ServiceLoadMetrics - The service load metrics. - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost DefaultMoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'ServicePackageActivationMode1SharedProcess', 'ServicePackageActivationMode1ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode1 `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceDescription. -func (ssd StatefulServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssd.TargetReplicaSetSize - } - if ssd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssd.MinReplicaSetSize - } - if ssd.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssd.HasPersistedState - } - if ssd.Flags != nil { - objectMap["Flags"] = ssd.Flags - } - if ssd.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssd.ReplicaRestartWaitDurationSeconds - } - if ssd.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssd.QuorumLossWaitDurationSeconds - } - if ssd.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssd.StandByReplicaKeepDurationSeconds - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.InitializationData != nil { - objectMap["InitializationData"] = ssd.InitializationData - } - objectMap["PartitionDescription"] = ssd.PartitionDescription - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssd.DefaultMoveCost - } - if ssd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssd.IsDefaultMoveCostSpecified - } - if ssd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = ssd.ServicePackageActivationMode - } - if ssd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = ssd.ServiceDNSName - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceDescription struct. -func (ssd *StatefulServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int32 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - ssd.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int32 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - ssd.MinReplicaSetSize = &minReplicaSetSize - } - case "HasPersistedState": - if v != nil { - var hasPersistedState bool - err = json.Unmarshal(*v, &hasPersistedState) - if err != nil { - return err - } - ssd.HasPersistedState = &hasPersistedState - } - case "Flags": - if v != nil { - var flags int32 - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssd.Flags = &flags - } - case "ReplicaRestartWaitDurationSeconds": - if v != nil { - var replicaRestartWaitDurationSeconds int64 - err = json.Unmarshal(*v, &replicaRestartWaitDurationSeconds) - if err != nil { - return err - } - ssd.ReplicaRestartWaitDurationSeconds = &replicaRestartWaitDurationSeconds - } - case "QuorumLossWaitDurationSeconds": - if v != nil { - var quorumLossWaitDurationSeconds int64 - err = json.Unmarshal(*v, &quorumLossWaitDurationSeconds) - if err != nil { - return err - } - ssd.QuorumLossWaitDurationSeconds = &quorumLossWaitDurationSeconds - } - case "StandByReplicaKeepDurationSeconds": - if v != nil { - var standByReplicaKeepDurationSeconds int64 - err = json.Unmarshal(*v, &standByReplicaKeepDurationSeconds) - if err != nil { - return err - } - ssd.StandByReplicaKeepDurationSeconds = &standByReplicaKeepDurationSeconds - } - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - ssd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - ssd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - ssd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - ssd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - ssd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - ssd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - ssd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode1 - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - ssd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - ssd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceInfo information about a stateful Service Fabric service. -type StatefulServiceInfo struct { - // HasPersistedState - Whether the service has persisted state. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - ID *string `json:"Id,omitempty"` - // Name - Full hierarchical name of the service in URI format starting with `fabric:`. - Name *string `json:"Name,omitempty"` - // TypeName - The name of the service type as specified in the service manifest. - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - Possible values include: 'HealthState7Invalid', 'HealthState7Ok', 'HealthState7Warning', 'HealthState7Error', 'HealthState7Unknown' - HealthState HealthState7 `json:"HealthState,omitempty"` - // ServiceStatus - Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceInfo. -func (ssi StatefulServiceInfo) MarshalJSON() ([]byte, error) { - ssi.ServiceKind = ServiceKindBasicServiceInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if ssi.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssi.HasPersistedState - } - if ssi.ID != nil { - objectMap["Id"] = ssi.ID - } - if ssi.Name != nil { - objectMap["Name"] = ssi.Name - } - if ssi.TypeName != nil { - objectMap["TypeName"] = ssi.TypeName - } - if ssi.ManifestVersion != nil { - objectMap["ManifestVersion"] = ssi.ManifestVersion - } - if ssi.HealthState != "" { - objectMap["HealthState"] = ssi.HealthState - } - if ssi.ServiceStatus != "" { - objectMap["ServiceStatus"] = ssi.ServiceStatus - } - if ssi.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = ssi.IsServiceGroup - } - if ssi.ServiceKind != "" { - objectMap["ServiceKind"] = ssi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServicePartitionInfo information about a partition of a stateful Service Fabric service.. -type StatefulServicePartitionInfo struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int64 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int64 `json:"MinReplicaSetSize,omitempty"` - // LastQuorumLossDuration - The duration for which this partition was in quorum loss. If the partition is currently in quorum loss, it returns the duration since it has been in that state. This field is using ISO8601 format for specifying the duration. - LastQuorumLossDuration *string `json:"LastQuorumLossDuration,omitempty"` - CurrentConfigurationEpoch *Epoch `json:"CurrentConfigurationEpoch,omitempty"` - // HealthState - Possible values include: 'HealthState5Invalid', 'HealthState5Ok', 'HealthState5Warning', 'HealthState5Error', 'HealthState5Unknown' - HealthState HealthState5 `json:"HealthState,omitempty"` - // PartitionStatus - Possible values include: 'PartitionStatusInvalid', 'PartitionStatusReady', 'PartitionStatusNotReady', 'PartitionStatusInQuorumLoss', 'PartitionStatusReconfiguring', 'PartitionStatusDeleting' - PartitionStatus PartitionStatus `json:"PartitionStatus,omitempty"` - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) MarshalJSON() ([]byte, error) { - sspi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if sspi.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = sspi.TargetReplicaSetSize - } - if sspi.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = sspi.MinReplicaSetSize - } - if sspi.LastQuorumLossDuration != nil { - objectMap["LastQuorumLossDuration"] = sspi.LastQuorumLossDuration - } - if sspi.CurrentConfigurationEpoch != nil { - objectMap["CurrentConfigurationEpoch"] = sspi.CurrentConfigurationEpoch - } - if sspi.HealthState != "" { - objectMap["HealthState"] = sspi.HealthState - } - if sspi.PartitionStatus != "" { - objectMap["PartitionStatus"] = sspi.PartitionStatus - } - objectMap["PartitionInformation"] = sspi.PartitionInformation - if sspi.ServiceKind != "" { - objectMap["ServiceKind"] = sspi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServicePartitionInfo struct. -func (sspi *StatefulServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int64 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - sspi.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int64 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - sspi.MinReplicaSetSize = &minReplicaSetSize - } - case "LastQuorumLossDuration": - if v != nil { - var lastQuorumLossDuration string - err = json.Unmarshal(*v, &lastQuorumLossDuration) - if err != nil { - return err - } - sspi.LastQuorumLossDuration = &lastQuorumLossDuration - } - case "CurrentConfigurationEpoch": - if v != nil { - var currentConfigurationEpoch Epoch - err = json.Unmarshal(*v, ¤tConfigurationEpoch) - if err != nil { - return err - } - sspi.CurrentConfigurationEpoch = ¤tConfigurationEpoch - } - case "HealthState": - if v != nil { - var healthState HealthState5 - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - sspi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus PartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - sspi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - sspi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sspi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaHealth represents the health of the stateful service replica. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type StatefulServiceReplicaHealth struct { - // ReplicaID - Id of the stateful service replica. - ReplicaID *string `json:"ReplicaId,omitempty"` - // PartitionID - Id of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) MarshalJSON() ([]byte, error) { - ssrh.ServiceKind = ServiceKindBasicReplicaHealthServiceKindStateful - objectMap := make(map[string]interface{}) - if ssrh.ReplicaID != nil { - objectMap["ReplicaId"] = ssrh.ReplicaID - } - if ssrh.PartitionID != nil { - objectMap["PartitionId"] = ssrh.PartitionID - } - if ssrh.ServiceKind != "" { - objectMap["ServiceKind"] = ssrh.ServiceKind - } - if ssrh.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssrh.AggregatedHealthState - } - if ssrh.HealthEvents != nil { - objectMap["HealthEvents"] = ssrh.HealthEvents - } - if ssrh.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ssrh.UnhealthyEvaluations - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return &ssrh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &ssrh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaHealthState represents the health state of the stateful service replica, which contains -// the replica id and the aggregated health state. -type StatefulServiceReplicaHealthState struct { - // ReplicaID - The ID of the stateful service replica. - ReplicaID *string `json:"ReplicaId,omitempty"` - // PartitionID - The ID of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) MarshalJSON() ([]byte, error) { - ssrhs.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindStateful - objectMap := make(map[string]interface{}) - if ssrhs.ReplicaID != nil { - objectMap["ReplicaId"] = ssrhs.ReplicaID - } - if ssrhs.PartitionID != nil { - objectMap["PartitionId"] = ssrhs.PartitionID - } - if ssrhs.ServiceKind != "" { - objectMap["ServiceKind"] = ssrhs.ServiceKind - } - if ssrhs.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssrhs.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return &ssrhs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &ssrhs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaInfo represents a stateful service replica. This includes information about the identity, -// role, status, health, node name, uptime, and other details about the replica. -type StatefulServiceReplicaInfo struct { - // ReplicaRole - Possible values include: 'ReplicaRole1Unknown', 'ReplicaRole1None', 'ReplicaRole1Primary', 'ReplicaRole1IdleSecondary', 'ReplicaRole1ActiveSecondary' - ReplicaRole ReplicaRole1 `json:"ReplicaRole,omitempty"` - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - Possible values include: 'HealthState6Invalid', 'HealthState6Ok', 'HealthState6Warning', 'HealthState6Error', 'HealthState6Unknown' - HealthState HealthState6 `json:"HealthState,omitempty"` - // NodeName - The name of the node. - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) MarshalJSON() ([]byte, error) { - ssri.ServiceKind = ServiceKindBasicReplicaInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if ssri.ReplicaRole != "" { - objectMap["ReplicaRole"] = ssri.ReplicaRole - } - if ssri.ReplicaID != nil { - objectMap["ReplicaId"] = ssri.ReplicaID - } - if ssri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ssri.ReplicaStatus - } - if ssri.HealthState != "" { - objectMap["HealthState"] = ssri.HealthState - } - if ssri.NodeName != nil { - objectMap["NodeName"] = ssri.NodeName - } - if ssri.Address != nil { - objectMap["Address"] = ssri.Address - } - if ssri.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ssri.LastInBuildDurationInSeconds - } - if ssri.ServiceKind != "" { - objectMap["ServiceKind"] = ssri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return &ssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceTypeDescription describes a stateful service type defined in the service manifest of a -// provisioned application type. -type StatefulServiceTypeDescription struct { - // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - // ServiceTypeName - Name of the service type. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless1' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) MarshalJSON() ([]byte, error) { - sstd.Kind = KindStateful - objectMap := make(map[string]interface{}) - if sstd.HasPersistedState != nil { - objectMap["HasPersistedState"] = sstd.HasPersistedState - } - if sstd.IsStateful != nil { - objectMap["IsStateful"] = sstd.IsStateful - } - if sstd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sstd.ServiceTypeName - } - if sstd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sstd.PlacementConstraints - } - if sstd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sstd.ServicePlacementPolicies - } - if sstd.Extensions != nil { - objectMap["Extensions"] = sstd.Extensions - } - if sstd.Kind != "" { - objectMap["Kind"] = sstd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceTypeDescription struct. -func (sstd *StatefulServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HasPersistedState": - if v != nil { - var hasPersistedState bool - err = json.Unmarshal(*v, &hasPersistedState) - if err != nil { - return err - } - sstd.HasPersistedState = &hasPersistedState - } - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - sstd.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sstd.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sstd.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sstd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - sstd.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - sstd.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceUpdateDescription describes an update for a stateful service. -type StatefulServiceUpdateDescription struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - // ReplicaRestartWaitDurationSeconds - The duration, in seconds, between when a replica goes down and when a new replica is created. - ReplicaRestartWaitDurationSeconds *string `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - // QuorumLossWaitDurationSeconds - The maximum duration, in seconds, for which a partition is allowed to be in a state of quorum loss. - QuorumLossWaitDurationSeconds *string `json:"QuorumLossWaitDurationSeconds,omitempty"` - // StandByReplicaKeepDurationSeconds - The definition on how long StandBy replicas should be maintained before being removed. - StandByReplicaKeepDurationSeconds *string `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // LoadMetrics - The service load metrics. - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'DefaultMoveCost1Zero', 'DefaultMoveCost1Low', 'DefaultMoveCost1Medium', 'DefaultMoveCost1High' - DefaultMoveCost DefaultMoveCost1 `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) MarshalJSON() ([]byte, error) { - ssud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssud.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssud.TargetReplicaSetSize - } - if ssud.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssud.MinReplicaSetSize - } - if ssud.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssud.ReplicaRestartWaitDurationSeconds - } - if ssud.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssud.QuorumLossWaitDurationSeconds - } - if ssud.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssud.StandByReplicaKeepDurationSeconds - } - if ssud.Flags != nil { - objectMap["Flags"] = ssud.Flags - } - if ssud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssud.PlacementConstraints - } - if ssud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssud.CorrelationScheme - } - if ssud.LoadMetrics != nil { - objectMap["LoadMetrics"] = ssud.LoadMetrics - } - if ssud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssud.ServicePlacementPolicies - } - if ssud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssud.DefaultMoveCost - } - if ssud.ServiceKind != "" { - objectMap["ServiceKind"] = ssud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceUpdateDescription struct. -func (ssud *StatefulServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int32 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - ssud.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int32 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - ssud.MinReplicaSetSize = &minReplicaSetSize - } - case "ReplicaRestartWaitDurationSeconds": - if v != nil { - var replicaRestartWaitDurationSeconds string - err = json.Unmarshal(*v, &replicaRestartWaitDurationSeconds) - if err != nil { - return err - } - ssud.ReplicaRestartWaitDurationSeconds = &replicaRestartWaitDurationSeconds - } - case "QuorumLossWaitDurationSeconds": - if v != nil { - var quorumLossWaitDurationSeconds string - err = json.Unmarshal(*v, &quorumLossWaitDurationSeconds) - if err != nil { - return err - } - ssud.QuorumLossWaitDurationSeconds = &quorumLossWaitDurationSeconds - } - case "StandByReplicaKeepDurationSeconds": - if v != nil { - var standByReplicaKeepDurationSeconds string - err = json.Unmarshal(*v, &standByReplicaKeepDurationSeconds) - if err != nil { - return err - } - ssud.StandByReplicaKeepDurationSeconds = &standByReplicaKeepDurationSeconds - } - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - ssud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost1 - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceDescription describes a stateless service. -type StatelessServiceDescription struct { - // InstanceCount - The instance count. - InstanceCount *int32 `json:"InstanceCount,omitempty"` - // ApplicationName - The application name. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - The service name. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - The service type name. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data as an array of bytes. Initialization data is passed to service instances or replicas when they are created. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // PartitionDescription - The partition description as an object. - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // ServiceLoadMetrics - The service load metrics. - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost DefaultMoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'ServicePackageActivationMode1SharedProcess', 'ServicePackageActivationMode1ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode1 `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceDescription. -func (ssd StatelessServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssd.InstanceCount != nil { - objectMap["InstanceCount"] = ssd.InstanceCount - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.InitializationData != nil { - objectMap["InitializationData"] = ssd.InitializationData - } - objectMap["PartitionDescription"] = ssd.PartitionDescription - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssd.DefaultMoveCost - } - if ssd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssd.IsDefaultMoveCostSpecified - } - if ssd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = ssd.ServicePackageActivationMode - } - if ssd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = ssd.ServiceDNSName - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceDescription struct. -func (ssd *StatelessServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int32 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - ssd.InstanceCount = &instanceCount - } - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - ssd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - ssd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - ssd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - ssd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - ssd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - ssd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - ssd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode1 - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - ssd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - ssd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInfo information about a stateless Service Fabric service. -type StatelessServiceInfo struct { - ID *string `json:"Id,omitempty"` - // Name - Full hierarchical name of the service in URI format starting with `fabric:`. - Name *string `json:"Name,omitempty"` - // TypeName - The name of the service type as specified in the service manifest. - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - Possible values include: 'HealthState7Invalid', 'HealthState7Ok', 'HealthState7Warning', 'HealthState7Error', 'HealthState7Unknown' - HealthState HealthState7 `json:"HealthState,omitempty"` - // ServiceStatus - Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInfo. -func (ssi StatelessServiceInfo) MarshalJSON() ([]byte, error) { - ssi.ServiceKind = ServiceKindBasicServiceInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if ssi.ID != nil { - objectMap["Id"] = ssi.ID - } - if ssi.Name != nil { - objectMap["Name"] = ssi.Name - } - if ssi.TypeName != nil { - objectMap["TypeName"] = ssi.TypeName - } - if ssi.ManifestVersion != nil { - objectMap["ManifestVersion"] = ssi.ManifestVersion - } - if ssi.HealthState != "" { - objectMap["HealthState"] = ssi.HealthState - } - if ssi.ServiceStatus != "" { - objectMap["ServiceStatus"] = ssi.ServiceStatus - } - if ssi.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = ssi.IsServiceGroup - } - if ssi.ServiceKind != "" { - objectMap["ServiceKind"] = ssi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceHealth represents the health of the statelss service instance. -// Contains the instance aggregated health state, the health events and the unhealthy evaluations. -type StatelessServiceInstanceHealth struct { - // InstanceID - Id of the stateless service instance. - InstanceID *string `json:"InstanceId,omitempty"` - // PartitionID - Id of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) MarshalJSON() ([]byte, error) { - ssih.ServiceKind = ServiceKindBasicReplicaHealthServiceKindStateless - objectMap := make(map[string]interface{}) - if ssih.InstanceID != nil { - objectMap["InstanceId"] = ssih.InstanceID - } - if ssih.PartitionID != nil { - objectMap["PartitionId"] = ssih.PartitionID - } - if ssih.ServiceKind != "" { - objectMap["ServiceKind"] = ssih.ServiceKind - } - if ssih.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssih.AggregatedHealthState - } - if ssih.HealthEvents != nil { - objectMap["HealthEvents"] = ssih.HealthEvents - } - if ssih.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ssih.UnhealthyEvaluations - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return &ssih, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &ssih, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceHealthState represents the health state of the stateless service instance, which -// contains the instance id and the aggregated health state. -type StatelessServiceInstanceHealthState struct { - // ReplicaID - Id of the stateless service instance on the wire this field is called ReplicaId. - ReplicaID *string `json:"ReplicaId,omitempty"` - // PartitionID - The ID of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) MarshalJSON() ([]byte, error) { - ssihs.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindStateless - objectMap := make(map[string]interface{}) - if ssihs.ReplicaID != nil { - objectMap["ReplicaId"] = ssihs.ReplicaID - } - if ssihs.PartitionID != nil { - objectMap["PartitionId"] = ssihs.PartitionID - } - if ssihs.ServiceKind != "" { - objectMap["ServiceKind"] = ssihs.ServiceKind - } - if ssihs.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssihs.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return &ssihs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &ssihs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceInfo represents a stateless service instance. This includes information about the -// identity, status, health, node name, uptime, and other details about the instance. -type StatelessServiceInstanceInfo struct { - // InstanceID - Id of the stateless service instance. - InstanceID *string `json:"InstanceId,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - Possible values include: 'HealthState6Invalid', 'HealthState6Ok', 'HealthState6Warning', 'HealthState6Error', 'HealthState6Unknown' - HealthState HealthState6 `json:"HealthState,omitempty"` - // NodeName - The name of the node. - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) MarshalJSON() ([]byte, error) { - ssii.ServiceKind = ServiceKindBasicReplicaInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if ssii.InstanceID != nil { - objectMap["InstanceId"] = ssii.InstanceID - } - if ssii.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ssii.ReplicaStatus - } - if ssii.HealthState != "" { - objectMap["HealthState"] = ssii.HealthState - } - if ssii.NodeName != nil { - objectMap["NodeName"] = ssii.NodeName - } - if ssii.Address != nil { - objectMap["Address"] = ssii.Address - } - if ssii.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ssii.LastInBuildDurationInSeconds - } - if ssii.ServiceKind != "" { - objectMap["ServiceKind"] = ssii.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return &ssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServicePartitionInfo information about a partition of a stateless Service Fabric service. -type StatelessServicePartitionInfo struct { - // InstanceCount - Number of instances of this partition. - InstanceCount *int64 `json:"InstanceCount,omitempty"` - // HealthState - Possible values include: 'HealthState5Invalid', 'HealthState5Ok', 'HealthState5Warning', 'HealthState5Error', 'HealthState5Unknown' - HealthState HealthState5 `json:"HealthState,omitempty"` - // PartitionStatus - Possible values include: 'PartitionStatusInvalid', 'PartitionStatusReady', 'PartitionStatusNotReady', 'PartitionStatusInQuorumLoss', 'PartitionStatusReconfiguring', 'PartitionStatusDeleting' - PartitionStatus PartitionStatus `json:"PartitionStatus,omitempty"` - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) MarshalJSON() ([]byte, error) { - sspi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if sspi.InstanceCount != nil { - objectMap["InstanceCount"] = sspi.InstanceCount - } - if sspi.HealthState != "" { - objectMap["HealthState"] = sspi.HealthState - } - if sspi.PartitionStatus != "" { - objectMap["PartitionStatus"] = sspi.PartitionStatus - } - objectMap["PartitionInformation"] = sspi.PartitionInformation - if sspi.ServiceKind != "" { - objectMap["ServiceKind"] = sspi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServicePartitionInfo struct. -func (sspi *StatelessServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int64 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - sspi.InstanceCount = &instanceCount - } - case "HealthState": - if v != nil { - var healthState HealthState5 - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - sspi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus PartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - sspi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - sspi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sspi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceTypeDescription describes a stateless service type defined in the service manifest of a -// provisioned application type. -type StatelessServiceTypeDescription struct { - // UseImplicitHost - A flag indicating if this type is not implemented and hosted by a user service process, but is implicitly hosted by a system created process. This value is true for services using the guest executable services, false otherwise. - UseImplicitHost *bool `json:"UseImplicitHost,omitempty"` - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - // ServiceTypeName - Name of the service type. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless1' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) MarshalJSON() ([]byte, error) { - sstd.Kind = KindStateless1 - objectMap := make(map[string]interface{}) - if sstd.UseImplicitHost != nil { - objectMap["UseImplicitHost"] = sstd.UseImplicitHost - } - if sstd.IsStateful != nil { - objectMap["IsStateful"] = sstd.IsStateful - } - if sstd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sstd.ServiceTypeName - } - if sstd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sstd.PlacementConstraints - } - if sstd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sstd.ServicePlacementPolicies - } - if sstd.Extensions != nil { - objectMap["Extensions"] = sstd.Extensions - } - if sstd.Kind != "" { - objectMap["Kind"] = sstd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceTypeDescription struct. -func (sstd *StatelessServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "UseImplicitHost": - if v != nil { - var useImplicitHost bool - err = json.Unmarshal(*v, &useImplicitHost) - if err != nil { - return err - } - sstd.UseImplicitHost = &useImplicitHost - } - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - sstd.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sstd.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sstd.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sstd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - sstd.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - sstd.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceUpdateDescription describes an update for a stateless service. -type StatelessServiceUpdateDescription struct { - // InstanceCount - The instance count. - InstanceCount *int32 `json:"InstanceCount,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // LoadMetrics - The service load metrics. - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'DefaultMoveCost1Zero', 'DefaultMoveCost1Low', 'DefaultMoveCost1Medium', 'DefaultMoveCost1High' - DefaultMoveCost DefaultMoveCost1 `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) MarshalJSON() ([]byte, error) { - ssud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssud.InstanceCount != nil { - objectMap["InstanceCount"] = ssud.InstanceCount - } - if ssud.Flags != nil { - objectMap["Flags"] = ssud.Flags - } - if ssud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssud.PlacementConstraints - } - if ssud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssud.CorrelationScheme - } - if ssud.LoadMetrics != nil { - objectMap["LoadMetrics"] = ssud.LoadMetrics - } - if ssud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssud.ServicePlacementPolicies - } - if ssud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssud.DefaultMoveCost - } - if ssud.ServiceKind != "" { - objectMap["ServiceKind"] = ssud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceUpdateDescription struct. -func (ssud *StatelessServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int32 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - ssud.InstanceCount = &instanceCount - } - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - ssud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost1 - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopNodeDescription describes the parameter for stopping a Service Fabric node. -type StopNodeDescription struct { - // NodeInstanceID - The instance id of the target node. If instance id is specified the node is stopped only if it matches with the current instance of the node. A default value of "0" would match any instance id. The instance id can be obtained using get node query. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StoppedChaosEvent describes a Chaos event that gets generated when Chaos stops because either the user issued a -// stop or the time to run was up. -type StoppedChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StoppedChaosEvent. -func (sce StoppedChaosEvent) MarshalJSON() ([]byte, error) { - sce.Kind = KindStopped - objectMap := make(map[string]interface{}) - if sce.Reason != nil { - objectMap["Reason"] = sce.Reason - } - if sce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = sce.TimeStampUtc - } - if sce.Kind != "" { - objectMap["Kind"] = sce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SystemApplicationHealthEvaluation represents health evaluation for the fabric:/System application, containing -// information about the data and the algorithm used by health store to evaluate health. The evaluation is returned -// only when the aggregated health state of the cluster is either Error or Warning. -type SystemApplicationHealthEvaluation struct { - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the system application. The types of the unhealthy evaluations can be DeployedApplicationsHealthEvaluation, ServicesHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - sahe.Kind = KindSystemApplication - objectMap := make(map[string]interface{}) - if sahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = sahe.UnhealthyEvaluations - } - if sahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = sahe.AggregatedHealthState - } - if sahe.Description != nil { - objectMap["Description"] = sahe.Description - } - if sahe.Kind != "" { - objectMap["Kind"] = sahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// TestErrorChaosEvent describes a Chaos event that gets generated when an unexpected event occurs in the Chaos -// engine. -// For example, due to the cluster snapshot being inconsistent, while faulting a faultable entity, Chaos found that -// the entity was alreay faulted -- which would be an unexpected event. -type TestErrorChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) MarshalJSON() ([]byte, error) { - tece.Kind = KindTestError - objectMap := make(map[string]interface{}) - if tece.Reason != nil { - objectMap["Reason"] = tece.Reason - } - if tece.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = tece.TimeStampUtc - } - if tece.Kind != "" { - objectMap["Kind"] = tece.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return &tece, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &tece, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UniformInt64RangePartitionSchemeDescription describes a partitioning scheme where an integer range is allocated -// evenly across a number of partitions. -type UniformInt64RangePartitionSchemeDescription struct { - // Count - The number of partitions. - Count *int32 `json:"Count,omitempty"` - // LowKey - String indicating the lower bound of the partition key range that - // should be split between the partition ‘Count’ - LowKey *string `json:"LowKey,omitempty"` - // HighKey - String indicating the upper bound of the partition key range that - // should be split between the partition ‘Count’ - HighKey *string `json:"HighKey,omitempty"` - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) MarshalJSON() ([]byte, error) { - ui6rpsd.PartitionScheme = PartitionSchemeUniformInt64Range - objectMap := make(map[string]interface{}) - if ui6rpsd.Count != nil { - objectMap["Count"] = ui6rpsd.Count - } - if ui6rpsd.LowKey != nil { - objectMap["LowKey"] = ui6rpsd.LowKey - } - if ui6rpsd.HighKey != nil { - objectMap["HighKey"] = ui6rpsd.HighKey - } - if ui6rpsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = ui6rpsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return &ui6rpsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &ui6rpsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainDeltaNodesCheckHealthEvaluation represents health evaluation for delta unhealthy cluster nodes in -// an upgrade domain, containing health evaluations for each unhealthy node that impacted current aggregated health -// state. -// Can be returned during cluster upgrade when cluster aggregated health state is Warning or Error. -type UpgradeDomainDeltaNodesCheckHealthEvaluation struct { - // UpgradeDomainName - Name of the upgrade domain where nodes health is currently evaluated. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - // BaselineErrorCount - Number of upgrade domain nodes with aggregated heath state Error in the health store at the beginning of the cluster upgrade. - BaselineErrorCount *int64 `json:"BaselineErrorCount,omitempty"` - // BaselineTotalCount - Total number of upgrade domain nodes in the health store at the beginning of the cluster upgrade. - BaselineTotalCount *int64 `json:"BaselineTotalCount,omitempty"` - // MaxPercentDeltaUnhealthyNodes - Maximum allowed percentage of upgrade domain delta unhealthy nodes from the ClusterUpgradeHealthPolicy. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // TotalCount - Total number of upgrade domain nodes in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - uddnche.Kind = KindUpgradeDomainDeltaNodesCheck - objectMap := make(map[string]interface{}) - if uddnche.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = uddnche.UpgradeDomainName - } - if uddnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = uddnche.BaselineErrorCount - } - if uddnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = uddnche.BaselineTotalCount - } - if uddnche.MaxPercentDeltaUnhealthyNodes != nil { - objectMap["MaxPercentDeltaUnhealthyNodes"] = uddnche.MaxPercentDeltaUnhealthyNodes - } - if uddnche.TotalCount != nil { - objectMap["TotalCount"] = uddnche.TotalCount - } - if uddnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = uddnche.UnhealthyEvaluations - } - if uddnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = uddnche.AggregatedHealthState - } - if uddnche.Description != nil { - objectMap["Description"] = uddnche.Description - } - if uddnche.Kind != "" { - objectMap["Kind"] = uddnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainInfo information about an upgrade domain. -type UpgradeDomainInfo struct { - Name *string `json:"Name,omitempty"` - // State - Possible values include: 'StateInvalid', 'StatePending', 'StateInProgress', 'StateCompleted' - State State `json:"State,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainNodesHealthEvaluation represents health evaluation for cluster nodes in an upgrade domain, -// containing health evaluations for each unhealthy node that impacted current aggregated health state. Can be -// returned when evaluating cluster health during cluster upgrade and the aggregated health state is either Error -// or Warning. -type UpgradeDomainNodesHealthEvaluation struct { - // UpgradeDomainName - Name of the upgrade domain where nodes health is currently evaluated. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - // MaxPercentUnhealthyNodes - Maximum allowed percentage of unhealthy nodes from the ClusterHealthPolicy. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes in the current upgrade domain. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) MarshalJSON() ([]byte, error) { - udnhe.Kind = KindUpgradeDomainNodes - objectMap := make(map[string]interface{}) - if udnhe.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = udnhe.UpgradeDomainName - } - if udnhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = udnhe.MaxPercentUnhealthyNodes - } - if udnhe.TotalCount != nil { - objectMap["TotalCount"] = udnhe.TotalCount - } - if udnhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = udnhe.UnhealthyEvaluations - } - if udnhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = udnhe.AggregatedHealthState - } - if udnhe.Description != nil { - objectMap["Description"] = udnhe.Description - } - if udnhe.Kind != "" { - objectMap["Kind"] = udnhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return &udnhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &udnhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ValidationFailedChaosEvent chaos event corresponding to a failure during validation. -type ValidationFailedChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) MarshalJSON() ([]byte, error) { - vfce.Kind = KindValidationFailed - objectMap := make(map[string]interface{}) - if vfce.Reason != nil { - objectMap["Reason"] = vfce.Reason - } - if vfce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = vfce.TimeStampUtc - } - if vfce.Kind != "" { - objectMap["Kind"] = vfce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return &vfce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &vfce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForInbuildReplicaSafetyCheck safety check that waits for the replica build operation to finish. This -// indiciates that there is a replica that is going through the copy or is providing data for building another -// replica. Bring the node down will abort this copy operation which are typoically expensive involving data -// movements. -type WaitForInbuildReplicaSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) MarshalJSON() ([]byte, error) { - wfirsc.Kind = KindWaitForInbuildReplica - objectMap := make(map[string]interface{}) - if wfirsc.PartitionID != nil { - objectMap["PartitionId"] = wfirsc.PartitionID - } - if wfirsc.Kind != "" { - objectMap["Kind"] = wfirsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForPrimaryPlacementSafetyCheck safety check that waits for the primary replica that was moved out of the -// node due to upgrade to be placed back again on that node. -type WaitForPrimaryPlacementSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) MarshalJSON() ([]byte, error) { - wfppsc.Kind = KindWaitForPrimaryPlacement - objectMap := make(map[string]interface{}) - if wfppsc.PartitionID != nil { - objectMap["PartitionId"] = wfppsc.PartitionID - } - if wfppsc.Kind != "" { - objectMap["Kind"] = wfppsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForPrimarySwapSafetyCheck safety check that waits for the primary replica to be moved out of the node before -// starting an upgrade to ensure the avaiability of the primary replica for the partition. -type WaitForPrimarySwapSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) MarshalJSON() ([]byte, error) { - wfpssc.Kind = KindWaitForPrimarySwap - objectMap := make(map[string]interface{}) - if wfpssc.PartitionID != nil { - objectMap["PartitionId"] = wfpssc.PartitionID - } - if wfpssc.Kind != "" { - objectMap["Kind"] = wfpssc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForReconfigurationSafetyCheck safety check that waits for the current reconfiguration of the partition to be -// completed before starting an upgrade. -type WaitForReconfigurationSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) MarshalJSON() ([]byte, error) { - wfrsc.Kind = KindWaitForReconfiguration - objectMap := make(map[string]interface{}) - if wfrsc.PartitionID != nil { - objectMap["PartitionId"] = wfrsc.PartitionID - } - if wfrsc.Kind != "" { - objectMap["Kind"] = wfrsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitingChaosEvent describes a Chaos event that gets generated when Chaos is waiting for the cluster to become -// ready for faulting, for example, Chaos may be waiting for the on-going upgrade to finish. -type WaitingChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitingChaosEvent. -func (wce WaitingChaosEvent) MarshalJSON() ([]byte, error) { - wce.Kind = KindWaiting - objectMap := make(map[string]interface{}) - if wce.Reason != nil { - objectMap["Reason"] = wce.Reason - } - if wce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = wce.TimeStampUtc - } - if wce.Kind != "" { - objectMap["Kind"] = wce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return &wce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &wce, true -} diff --git a/services/servicefabric/5.6/servicefabric/version.go b/services/servicefabric/5.6/servicefabric/version.go deleted file mode 100644 index c52aafb48241..000000000000 --- a/services/servicefabric/5.6/servicefabric/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package servicefabric - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " servicefabric/5.6.*" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/servicefabric/6.0/servicefabric/client.go b/services/servicefabric/6.0/servicefabric/client.go deleted file mode 100644 index 52c304595c5f..000000000000 --- a/services/servicefabric/6.0/servicefabric/client.go +++ /dev/null @@ -1,13856 +0,0 @@ -// Package servicefabric implements the Azure ARM Servicefabric service API version 6.0.0.1. -// -// Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services. -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/satori/go.uuid" - "net/http" -) - -const ( - // DefaultBaseURI is the default URI used for the service Servicefabric - DefaultBaseURI = "http://localhost:19080" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BaseClient is the base client for Servicefabric. -type BaseClient struct { - autorest.Client - BaseURI string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// New creates an instance of the BaseClient client. -func New() BaseClient { - return NewWithBaseURI(DefaultBaseURI) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - } -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperation the following is a list of APIs that start fault operations that may be cancelled using -// CancelOperation - -// - StartDataLoss -// - StartQuorumLoss -// - StartPartitionRestart -// - StartNodeTransition -// -// If force is false, then the specified user-induced operation will be gracefully stopped and cleaned up. If force is -// true, the command will be aborted, and some internal state -// may be left behind. Specifying force as true should be used with care. Calling this API with force set to true is -// not allowed until this API has already -// been called on the same test command with force set to false first, or unless the test command already has an -// OperationState of OperationState.RollingBack. -// Clarification: OperationState.RollingBack means that the system will/is be cleaning up internal system state caused -// by executing the command. It will not restore data if the -// test command was to cause data loss. For example, if you call StartDataLoss then call this API, the system will -// only clean up internal state from running the command. -// It will not restore the target partition's data, if the command progressed far enough to cause data loss. -// -// Important note: if this API is invoked with force==true, internal state may be left behind. -// Parameters: -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// force - indicates whether to gracefully rollback and clean up internal system state modified by executing -// the user-induced operation. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.UUID, force bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CancelOperation", err.Error()) - } - - req, err := client.CancelOperationPreparer(ctx, operationID, force, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", nil, "Failure preparing request") - return - } - - resp, err := client.CancelOperationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure sending request") - return - } - - result, err = client.CancelOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationPreparer prepares the CancelOperation request. -func (client BaseClient) CancelOperationPreparer(ctx context.Context, operationID uuid.UUID, force bool, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Force": autorest.Encode("query", force), - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Faults/$/Cancel"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationSender sends the CancelOperation request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CancelOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationResponder handles the response to the CancelOperation request. The method always -// closes the http.Response Body. -func (client BaseClient) CancelOperationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTask this API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// repairTaskCancelDescription - describes the repair task to be cancelled. -func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelDescription RepairTaskCancelDescription) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskCancelDescription, - Constraints: []validation.Constraint{{Target: "repairTaskCancelDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CancelRepairTask", err.Error()) - } - - req, err := client.CancelRepairTaskPreparer(ctx, repairTaskCancelDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.CancelRepairTaskSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure sending request") - return - } - - result, err = client.CancelRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTaskPreparer prepares the CancelRepairTask request. -func (client BaseClient) CancelRepairTaskPreparer(ctx context.Context, repairTaskCancelDescription RepairTaskCancelDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/CancelRepairTask"), - autorest.WithJSON(repairTaskCancelDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTaskSender sends the CancelRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CancelRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTaskResponder handles the response to the CancelRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) CancelRepairTaskResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContent copies the image store content from the source image store relative path to the destination -// image store relative path. -// Parameters: -// imageStoreCopyDescription - describes the copy description for the image store. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCopyDescription ImageStoreCopyDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: imageStoreCopyDescription, - Constraints: []validation.Constraint{{Target: "imageStoreCopyDescription.RemoteSource", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "imageStoreCopyDescription.RemoteDestination", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CopyImageStoreContent", err.Error()) - } - - req, err := client.CopyImageStoreContentPreparer(ctx, imageStoreCopyDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.CopyImageStoreContentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.CopyImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentPreparer prepares the CopyImageStoreContent request. -func (client BaseClient) CopyImageStoreContentPreparer(ctx context.Context, imageStoreCopyDescription ImageStoreCopyDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore/$/Copy"), - autorest.WithJSON(imageStoreCopyDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentSender sends the CopyImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CopyImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentResponder handles the response to the CopyImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) CopyImageStoreContentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplication creates a Service Fabric application using the specified description. -// Parameters: -// applicationDescription - description for creating an application. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateApplication(ctx context.Context, applicationDescription ApplicationDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationDescription, - Constraints: []validation.Constraint{{Target: "applicationDescription.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.TypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.TypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.ApplicationCapacity", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MinimumNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MinimumNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - {Target: "applicationDescription.ApplicationCapacity.MaximumNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MaximumNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateApplication", err.Error()) - } - - req, err := client.CreateApplicationPreparer(ctx, applicationDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", nil, "Failure preparing request") - return - } - - resp, err := client.CreateApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure sending request") - return - } - - result, err = client.CreateApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationPreparer prepares the CreateApplication request. -func (client BaseClient) CreateApplicationPreparer(ctx context.Context, applicationDescription ApplicationDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications/$/Create"), - autorest.WithJSON(applicationDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationSender sends the CreateApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationResponder handles the response to the CreateApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeployment creates a Service Fabric compose deployment. -// Parameters: -// createComposeDeploymentDescription - describes the compose deployment that needs to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComposeDeploymentDescription CreateComposeDeploymentDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: createComposeDeploymentDescription, - Constraints: []validation.Constraint{{Target: "createComposeDeploymentDescription.DeploymentName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "createComposeDeploymentDescription.ComposeFileContent", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateComposeDeployment", err.Error()) - } - - req, err := client.CreateComposeDeploymentPreparer(ctx, createComposeDeploymentDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", nil, "Failure preparing request") - return - } - - resp, err := client.CreateComposeDeploymentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure sending request") - return - } - - result, err = client.CreateComposeDeploymentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentPreparer prepares the CreateComposeDeployment request. -func (client BaseClient) CreateComposeDeploymentPreparer(ctx context.Context, createComposeDeploymentDescription CreateComposeDeploymentDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ComposeDeployments/$/Create"), - autorest.WithJSON(createComposeDeploymentDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentSender sends the CreateComposeDeployment request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateComposeDeploymentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentResponder handles the response to the CreateComposeDeployment request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateComposeDeploymentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateName creates the specified Service Fabric name. -// Parameters: -// nameDescription - describes the Service Fabric name to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: nameDescription, - Constraints: []validation.Constraint{{Target: "nameDescription.Name", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateName", err.Error()) - } - - req, err := client.CreateNamePreparer(ctx, nameDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", nil, "Failure preparing request") - return - } - - resp, err := client.CreateNameSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure sending request") - return - } - - result, err = client.CreateNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateNamePreparer prepares the CreateName request. -func (client BaseClient) CreateNamePreparer(ctx context.Context, nameDescription NameDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Names/$/Create"), - autorest.WithJSON(nameDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateNameSender sends the CreateName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateNameResponder handles the response to the CreateName request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateNameResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTask for clusters that have the Repair Manager Service configured, -// this API provides a way to create repair tasks that run automatically or manually. -// For repair tasks that run automatically, an appropriate repair executor -// must be running for each repair action to run automatically. -// These are currently only available in specially-configured Azure Cloud Services. -// -// To create a manual repair task, provide the set of impacted node names and the -// expected impact. When the state of the created repair task changes to approved, -// you can safely perform repair actions on those nodes. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// repairTask - describes the repair task to be created or updated. -func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask RepairTask) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTask, - Constraints: []validation.Constraint{{Target: "repairTask.TaskID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "repairTask.Action", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateRepairTask", err.Error()) - } - - req, err := client.CreateRepairTaskPreparer(ctx, repairTask) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.CreateRepairTaskSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure sending request") - return - } - - result, err = client.CreateRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTaskPreparer prepares the CreateRepairTask request. -func (client BaseClient) CreateRepairTaskPreparer(ctx context.Context, repairTask RepairTask) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/CreateRepairTask"), - autorest.WithJSON(repairTask), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTaskSender sends the CreateRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTaskResponder handles the response to the CreateRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateRepairTaskResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateService creates the specified service. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// serviceDescription - the information necessary to create a service. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateService(ctx context.Context, applicationID string, serviceDescription BasicServiceDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceDescription, - Constraints: []validation.Constraint{{Target: "serviceDescription.ServiceName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceDescription.ServiceTypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceDescription.PartitionDescription", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateService", err.Error()) - } - - req, err := client.CreateServicePreparer(ctx, applicationID, serviceDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", nil, "Failure preparing request") - return - } - - resp, err := client.CreateServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure sending request") - return - } - - result, err = client.CreateServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServicePreparer prepares the CreateService request. -func (client BaseClient) CreateServicePreparer(ctx context.Context, applicationID string, serviceDescription BasicServiceDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/$/Create", pathParameters), - autorest.WithJSON(serviceDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceSender sends the CreateService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceResponder handles the response to the CreateService request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplate creates a Service Fabric service from the service template defined in the application -// manifest. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// serviceFromTemplateDescription - describes the service that needs to be created from the template defined in -// the application manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicationID string, serviceFromTemplateDescription ServiceFromTemplateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceFromTemplateDescription, - Constraints: []validation.Constraint{{Target: "serviceFromTemplateDescription.ApplicationName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceFromTemplateDescription.ServiceName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceFromTemplateDescription.ServiceTypeName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateServiceFromTemplate", err.Error()) - } - - req, err := client.CreateServiceFromTemplatePreparer(ctx, applicationID, serviceFromTemplateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateServiceFromTemplateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure sending request") - return - } - - result, err = client.CreateServiceFromTemplateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplatePreparer prepares the CreateServiceFromTemplate request. -func (client BaseClient) CreateServiceFromTemplatePreparer(ctx context.Context, applicationID string, serviceFromTemplateDescription ServiceFromTemplateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate", pathParameters), - autorest.WithJSON(serviceFromTemplateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplateSender sends the CreateServiceFromTemplate request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateServiceFromTemplateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplateResponder handles the response to the CreateServiceFromTemplate request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateServiceFromTemplateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplication deletes an existing Service Fabric application. An application must be created before it can be -// deleted. Deleting an application will delete all services that are part of that application. By default Service -// Fabric will try to close service replicas in a graceful manner and then delete the service. However if service is -// having issues closing the replica gracefully, the delete operation may take a long time or get stuck. Use the -// optional ForceRemove flag to skip the graceful close sequence and forcefully delete the application and all of the -// its services. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteApplication(ctx context.Context, applicationID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteApplication", err.Error()) - } - - req, err := client.DeleteApplicationPreparer(ctx, applicationID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure sending request") - return - } - - result, err = client.DeleteApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationPreparer prepares the DeleteApplication request. -func (client BaseClient) DeleteApplicationPreparer(ctx context.Context, applicationID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationSender sends the DeleteApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationResponder handles the response to the DeleteApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContent deletes existing image store content being found within the given image store relative path. -// This can be used to delete uploaded application packages once they are provisioned. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPath string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteImageStoreContent", err.Error()) - } - - req, err := client.DeleteImageStoreContentPreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteImageStoreContentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.DeleteImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentPreparer prepares the DeleteImageStoreContent request. -func (client BaseClient) DeleteImageStoreContentPreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentSender sends the DeleteImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentResponder handles the response to the DeleteImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteImageStoreContentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteName deletes the specified Service Fabric name. A name must be created before it can be deleted. Deleting a -// name with child properties will fail. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteName", err.Error()) - } - - req, err := client.DeleteNamePreparer(ctx, nameID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteNameSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure sending request") - return - } - - result, err = client.DeleteNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteNamePreparer prepares the DeleteName request. -func (client BaseClient) DeleteNamePreparer(ctx context.Context, nameID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteNameSender sends the DeleteName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteNameResponder handles the response to the DeleteName request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteNameResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteProperty deletes the specified Service Fabric property under a given name. A property must be created before -// it can be deleted. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyName - specifies the name of the property to get. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, propertyName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteProperty", err.Error()) - } - - req, err := client.DeletePropertyPreparer(ctx, nameID, propertyName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", nil, "Failure preparing request") - return - } - - resp, err := client.DeletePropertySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure sending request") - return - } - - result, err = client.DeletePropertyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertyPreparer prepares the DeleteProperty request. -func (client BaseClient) DeletePropertyPreparer(ctx context.Context, nameID string, propertyName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "PropertyName": autorest.Encode("query", propertyName), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperty", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertySender sends the DeleteProperty request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeletePropertySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertyResponder handles the response to the DeleteProperty request. The method always -// closes the http.Response Body. -func (client BaseClient) DeletePropertyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTask this API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// repairTaskDeleteDescription - describes the repair task to be deleted. -func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteDescription RepairTaskDeleteDescription) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskDeleteDescription, - Constraints: []validation.Constraint{{Target: "repairTaskDeleteDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteRepairTask", err.Error()) - } - - req, err := client.DeleteRepairTaskPreparer(ctx, repairTaskDeleteDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteRepairTaskSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure sending request") - return - } - - result, err = client.DeleteRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTaskPreparer prepares the DeleteRepairTask request. -func (client BaseClient) DeleteRepairTaskPreparer(ctx context.Context, repairTaskDeleteDescription RepairTaskDeleteDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/DeleteRepairTask"), - autorest.WithJSON(repairTaskDeleteDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTaskSender sends the DeleteRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTaskResponder handles the response to the DeleteRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteRepairTaskResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteService deletes an existing Service Fabric service. A service must be created before it can be deleted. By -// default Service Fabric will try to close service replicas in a graceful manner and then delete the service. However -// if service is having issues closing the replica gracefully, the delete operation may take a long time or get stuck. -// Use the optional ForceRemove flag to skip the graceful close sequence and forcefully delete the service. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteService(ctx context.Context, serviceID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteService", err.Error()) - } - - req, err := client.DeleteServicePreparer(ctx, serviceID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure sending request") - return - } - - result, err = client.DeleteServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServicePreparer prepares the DeleteService request. -func (client BaseClient) DeleteServicePreparer(ctx context.Context, serviceID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServiceSender sends the DeleteService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServiceResponder handles the response to the DeleteService request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNode downloads packages associated with specified service manifest to image cache on -// specified node. -// Parameters: -// nodeName - the name of the node. -// deployServicePackageToNodeDescription - describes information for deploying a service package to a Service -// Fabric node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeployedServicePackageToNode(ctx context.Context, nodeName string, deployServicePackageToNodeDescription DeployServicePackageToNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: deployServicePackageToNodeDescription, - Constraints: []validation.Constraint{{Target: "deployServicePackageToNodeDescription.ServiceManifestName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.ApplicationTypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.ApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.NodeName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeployedServicePackageToNode", err.Error()) - } - - req, err := client.DeployedServicePackageToNodePreparer(ctx, nodeName, deployServicePackageToNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", nil, "Failure preparing request") - return - } - - resp, err := client.DeployedServicePackageToNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", resp, "Failure sending request") - return - } - - result, err = client.DeployedServicePackageToNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodePreparer prepares the DeployedServicePackageToNode request. -func (client BaseClient) DeployedServicePackageToNodePreparer(ctx context.Context, nodeName string, deployServicePackageToNodeDescription DeployServicePackageToNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/DeployServicePackage", pathParameters), - autorest.WithJSON(deployServicePackageToNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodeSender sends the DeployedServicePackageToNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeployedServicePackageToNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodeResponder handles the response to the DeployedServicePackageToNode request. The method always -// closes the http.Response Body. -func (client BaseClient) DeployedServicePackageToNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNode deactivate a Service Fabric cluster node with the specified deactivation intent. Once the deactivation -// is in progress, the deactivation intent can be increased, but not decreased (for example, a node which is was -// deactivated with the Pause intent can be deactivated further with Restart, but not the other way around. Nodes may -// be reactivated using the Activate a node operation any time after they are deactivated. If the deactivation is not -// complete this will cancel the deactivation. A node which goes down and comes back up while deactivated will still -// need to be reactivated before services will be placed on that node. -// Parameters: -// nodeName - the name of the node. -// deactivationIntentDescription - describes the intent or reason for deactivating the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deactivationIntentDescription DeactivationIntentDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DisableNode", err.Error()) - } - - req, err := client.DisableNodePreparer(ctx, nodeName, deactivationIntentDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", nil, "Failure preparing request") - return - } - - resp, err := client.DisableNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure sending request") - return - } - - result, err = client.DisableNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodePreparer prepares the DisableNode request. -func (client BaseClient) DisableNodePreparer(ctx context.Context, nodeName string, deactivationIntentDescription DeactivationIntentDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Deactivate", pathParameters), - autorest.WithJSON(deactivationIntentDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodeSender sends the DisableNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DisableNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodeResponder handles the response to the DisableNode request. The method always -// closes the http.Response Body. -func (client BaseClient) DisableNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNode activates a Service Fabric cluster node which is currently deactivated. Once activated, the node will -// again become a viable target for placing new replicas, and any deactivated replicas remaining on the node will be -// reactivated. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "EnableNode", err.Error()) - } - - req, err := client.EnableNodePreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", nil, "Failure preparing request") - return - } - - resp, err := client.EnableNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure sending request") - return - } - - result, err = client.EnableNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodePreparer prepares the EnableNode request. -func (client BaseClient) EnableNodePreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Activate", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodeSender sends the EnableNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) EnableNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodeResponder handles the response to the EnableNode request. The method always -// closes the http.Response Body. -func (client BaseClient) EnableNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTask this API supports the Service Fabric platform; it is not meant to be used directly from your -// code. -// Parameters: -// repairTaskApproveDescription - describes the repair task to be approved. -func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskApproveDescription RepairTaskApproveDescription) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskApproveDescription, - Constraints: []validation.Constraint{{Target: "repairTaskApproveDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ForceApproveRepairTask", err.Error()) - } - - req, err := client.ForceApproveRepairTaskPreparer(ctx, repairTaskApproveDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.ForceApproveRepairTaskSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure sending request") - return - } - - result, err = client.ForceApproveRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTaskPreparer prepares the ForceApproveRepairTask request. -func (client BaseClient) ForceApproveRepairTaskPreparer(ctx context.Context, repairTaskApproveDescription RepairTaskApproveDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/ForceApproveRepairTask"), - autorest.WithJSON(repairTaskApproveDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTaskSender sends the ForceApproveRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ForceApproveRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTaskResponder handles the response to the ForceApproveRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) ForceApproveRepairTaskResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadata gets the Azure Active Directory metadata used for secured connection to cluster. -// This API is not supposed to be called separately. It provides information needed to set up an Azure Active Directory -// secured connection with a Service Fabric cluster. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (result AadMetadataObject, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetAadMetadata", err.Error()) - } - - req, err := client.GetAadMetadataPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", nil, "Failure preparing request") - return - } - - resp, err := client.GetAadMetadataSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure sending request") - return - } - - result, err = client.GetAadMetadataResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataPreparer prepares the GetAadMetadata request. -func (client BaseClient) GetAadMetadataPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetAadMetadata"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataSender sends the GetAadMetadata request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetAadMetadataSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataResponder handles the response to the GetAadMetadata request. The method always -// closes the http.Response Body. -func (client BaseClient) GetAadMetadataResponder(resp *http.Response) (result AadMetadataObject, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealth returns the heath state of the service fabric application. The response reports either Ok, -// Error or Warning health state. If the entity is not found in the helath store, it will return Error. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedApplicationsHealthStateFilter - allows filtering of the deployed applications health state objects -// returned in the result of application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. Only -// deployed applications that match the filter will be returned.\ -// All deployed applications are used to evaluate the aggregated health state. If not specified, all entries -// are returned. -// The state values are flag based enumeration, so the value could be a combination of these value obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of deployed applications with HealthState value of -// OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// servicesHealthStateFilter - allows filtering of the services health state objects returned in the result of -// services health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only services that match the filter are returned. All services are used to evaluate the aggregated health -// state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of services -// with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result ApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationHealth", err.Error()) - } - - req, err := client.GetApplicationHealthPreparer(ctx, applicationID, eventsHealthStateFilter, deployedApplicationsHealthStateFilter, servicesHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthPreparer prepares the GetApplicationHealth request. -func (client BaseClient) GetApplicationHealthPreparer(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedApplicationsHealthStateFilter != nil { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", *deployedApplicationsHealthStateFilter) - } else { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if servicesHealthStateFilter != nil { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", *servicesHealthStateFilter) - } else { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthSender sends the GetApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthResponder handles the response to the GetApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationHealthResponder(resp *http.Response) (result ApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicy gets the health of a Service Fabric application. Use EventsHealthStateFilter to -// filter the collection of health events reported on the node based on the health state. Use ClusterHealthPolicies to -// override the health policies used to evaluate the health. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedApplicationsHealthStateFilter - allows filtering of the deployed applications health state objects -// returned in the result of application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. Only -// deployed applications that match the filter will be returned.\ -// All deployed applications are used to evaluate the aggregated health state. If not specified, all entries -// are returned. -// The state values are flag based enumeration, so the value could be a combination of these value obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of deployed applications with HealthState value of -// OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// servicesHealthStateFilter - allows filtering of the services health state objects returned in the result of -// services health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only services that match the filter are returned. All services are used to evaluate the aggregated health -// state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of services -// with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result ApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", err.Error()) - } - - req, err := client.GetApplicationHealthUsingPolicyPreparer(ctx, applicationID, eventsHealthStateFilter, deployedApplicationsHealthStateFilter, servicesHealthStateFilter, excludeHealthStatistics, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicyPreparer prepares the GetApplicationHealthUsingPolicy request. -func (client BaseClient) GetApplicationHealthUsingPolicyPreparer(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedApplicationsHealthStateFilter != nil { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", *deployedApplicationsHealthStateFilter) - } else { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if servicesHealthStateFilter != nil { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", *servicesHealthStateFilter) - } else { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicySender sends the GetApplicationHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicyResponder handles the response to the GetApplicationHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationHealthUsingPolicyResponder(resp *http.Response) (result ApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfo returns the information about the application that was created or in the process of being created -// in the Service Fabric cluster and whose name matches the one specified as the parameter. The response includes the -// name, type, status, parameters and other details about the application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID string, excludeApplicationParameters *bool, timeout *int64) (result ApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationInfo", err.Error()) - } - - req, err := client.GetApplicationInfoPreparer(ctx, applicationID, excludeApplicationParameters, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoPreparer prepares the GetApplicationInfo request. -func (client BaseClient) GetApplicationInfoPreparer(ctx context.Context, applicationID string, excludeApplicationParameters *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoSender sends the GetApplicationInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoResponder handles the response to the GetApplicationInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationInfoResponder(resp *http.Response) (result ApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoList gets the information about the applications that were created or in the process of being -// created in the Service Fabric cluster and match filters specified as the parameter. The response includes the name, -// type, status, parameters and other details about the application. If the applications do not fit in a page, one page -// of results is returned as well as a continuation token which can be used to get the next page. Filters -// ApplicationTypeName and ApplicationDefinitionKindFilter cannot be specified at the same time. -// Parameters: -// applicationDefinitionKindFilter - used to filter on ApplicationDefinitionKind for application query -// operations. -// - Default - Default value, which performs the same function as selecting "All". The value is 0. -// - All - Filter that matches input with any ApplicationDefinitionKind value. The value is 65535. -// - ServiceFabricApplicationDescription - Filter that matches input with ApplicationDefinitionKind value -// ServiceFabricApplicationDescription. The value is 1. -// - Compose - Filter that matches input with ApplicationDefinitionKind value Compose. The value is 2. -// applicationTypeName - the application type name used to filter the applications to query for. This value -// should not contain the application type version. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationInfoList(ctx context.Context, applicationDefinitionKindFilter *int32, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, timeout *int64) (result PagedApplicationInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationInfoList", err.Error()) - } - - req, err := client.GetApplicationInfoListPreparer(ctx, applicationDefinitionKindFilter, applicationTypeName, excludeApplicationParameters, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListPreparer prepares the GetApplicationInfoList request. -func (client BaseClient) GetApplicationInfoListPreparer(ctx context.Context, applicationDefinitionKindFilter *int32, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if applicationDefinitionKindFilter != nil { - queryParameters["ApplicationDefinitionKindFilter"] = autorest.Encode("query", *applicationDefinitionKindFilter) - } else { - queryParameters["ApplicationDefinitionKindFilter"] = autorest.Encode("query", 0) - } - if len(applicationTypeName) > 0 { - queryParameters["ApplicationTypeName"] = autorest.Encode("query", applicationTypeName) - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListSender sends the GetApplicationInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListResponder handles the response to the GetApplicationInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationInfoListResponder(resp *http.Response) (result PagedApplicationInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfo returns the load information about the application that was created or in the process of -// being created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response -// includes the name, minimum nodes, maximum nodes, the number of nodes the app is occupying currently, and application -// load metric information about the application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, applicationID string, timeout *int64) (result ApplicationLoadInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationLoadInfo", err.Error()) - } - - req, err := client.GetApplicationLoadInfoPreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationLoadInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationLoadInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfoPreparer prepares the GetApplicationLoadInfo request. -func (client BaseClient) GetApplicationLoadInfoPreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfoSender sends the GetApplicationLoadInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationLoadInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfoResponder handles the response to the GetApplicationLoadInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationLoadInfoResponder(resp *http.Response) (result ApplicationLoadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifest gets the manifest describing an application type. The response contains the application -// manifest XML as a string. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationManifest(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (result ApplicationTypeManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationManifest", err.Error()) - } - - req, err := client.GetApplicationManifestPreparer(ctx, applicationTypeName, applicationTypeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestPreparer prepares the GetApplicationManifest request. -func (client BaseClient) GetApplicationManifestPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestSender sends the GetApplicationManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestResponder handles the response to the GetApplicationManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationManifestResponder(resp *http.Response) (result ApplicationTypeManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfo the GetApplicationName endpoint returns the name of the application for the specified -// service. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID string, timeout *int64) (result ApplicationNameInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationNameInfo", err.Error()) - } - - req, err := client.GetApplicationNameInfoPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationNameInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationNameInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoPreparer prepares the GetApplicationNameInfo request. -func (client BaseClient) GetApplicationNameInfoPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetApplicationName", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoSender sends the GetApplicationNameInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationNameInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoResponder handles the response to the GetApplicationNameInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationNameInfoResponder(resp *http.Response) (result ApplicationNameInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoList returns the information about the application types that are provisioned or in the -// process of being provisioned in the Service Fabric cluster. Each version of an application type is returned as one -// application type. The response includes the name, version, status and other details about the application type. This -// is a paged query, meaning that if not all of the application types fit in a page, one page of results is returned as -// well as a continuation token which can be used to get the next page. For example, if there are 10 application types -// but a page only fits the first 3 application types, or if max results is set to 3, then 3 is returned. To access the -// rest of the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty -// continuation token is returned if there are no subsequent pages. -// Parameters: -// applicationTypeDefinitionKindFilter - used to filter on ApplicationTypeDefinitionKind for application type -// query operations. -// - Default - Default value, which performs the same function as selecting "All". The value is 0. -// - All - Filter that matches input with any ApplicationTypeDefinitionKind value. The value is 65535. -// - ServiceFabricApplicationPackage - Filter that matches input with ApplicationTypeDefinitionKind value -// ServiceFabricApplicationPackage. The value is 1. -// - Compose - Filter that matches input with ApplicationTypeDefinitionKind value Compose. The value is 2. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applicationTypeDefinitionKindFilter *int32, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (result PagedApplicationTypeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationTypeInfoList", err.Error()) - } - - req, err := client.GetApplicationTypeInfoListPreparer(ctx, applicationTypeDefinitionKindFilter, excludeApplicationParameters, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListPreparer prepares the GetApplicationTypeInfoList request. -func (client BaseClient) GetApplicationTypeInfoListPreparer(ctx context.Context, applicationTypeDefinitionKindFilter *int32, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if applicationTypeDefinitionKindFilter != nil { - queryParameters["ApplicationTypeDefinitionKindFilter"] = autorest.Encode("query", *applicationTypeDefinitionKindFilter) - } else { - queryParameters["ApplicationTypeDefinitionKindFilter"] = autorest.Encode("query", 0) - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListSender sends the GetApplicationTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListResponder handles the response to the GetApplicationTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationTypeInfoListResponder(resp *http.Response) (result PagedApplicationTypeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByName returns the information about the application types that are provisioned or in the -// process of being provisioned in the Service Fabric cluster. These results are of application types whose name match -// exactly the one specified as the parameter, and which comply with the given query parameters. All versions of the -// application type matching the application type name are returned, with each version returned as one application -// type. The response includes the name, version, status and other details about the application type. This is a paged -// query, meaning that if not all of the application types fit in a page, one page of results is returned as well as a -// continuation token which can be used to get the next page. For example, if there are 10 application types but a page -// only fits the first 3 application types, or if max results is set to 3, then 3 is returned. To access the rest of -// the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty -// continuation token is returned if there are no subsequent pages. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, applicationTypeName string, applicationTypeVersion string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (result PagedApplicationTypeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationTypeInfoListByName", err.Error()) - } - - req, err := client.GetApplicationTypeInfoListByNamePreparer(ctx, applicationTypeName, applicationTypeVersion, excludeApplicationParameters, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationTypeInfoListByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationTypeInfoListByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNamePreparer prepares the GetApplicationTypeInfoListByName request. -func (client BaseClient) GetApplicationTypeInfoListByNamePreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(applicationTypeVersion) > 0 { - queryParameters["ApplicationTypeVersion"] = autorest.Encode("query", applicationTypeVersion) - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNameSender sends the GetApplicationTypeInfoListByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationTypeInfoListByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNameResponder handles the response to the GetApplicationTypeInfoListByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationTypeInfoListByNameResponder(resp *http.Response) (result PagedApplicationTypeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgrade returns information about the state of the latest application upgrade along with details to -// aid debugging application health issues. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationID string, timeout *int64) (result ApplicationUpgradeProgressInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationUpgrade", err.Error()) - } - - req, err := client.GetApplicationUpgradePreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationUpgradeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradePreparer prepares the GetApplicationUpgrade request. -func (client BaseClient) GetApplicationUpgradePreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetUpgradeProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradeSender sends the GetApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradeResponder handles the response to the GetApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationUpgradeResponder(resp *http.Response) (result ApplicationUpgradeProgressInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReport you can either specify the ContinuationToken to get the next segment of the Chaos report or you can -// specify the time-range -// through StartTimeUtc and EndTimeUtc, but you cannot specify both the ContinuationToken and the time-range in the -// same call. -// When there are more than 100 Chaos events, the Chaos report is returned in segments where a segment contains no more -// than 100 Chaos events. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// startTimeUtc - the count of ticks representing the start time of the time range for which a Chaos report is -// to be generated. Please consult [DateTime.Ticks -// Property](https://msdn.microsoft.com/en-us/library/system.datetime.ticks%28v=vs.110%29) for details about -// tick. -// endTimeUtc - the count of ticks representing the end time of the time range for which a Chaos report is to -// be generated. Please consult [DateTime.Ticks -// Property](https://msdn.microsoft.com/en-us/library/system.datetime.ticks%28v=vs.110%29) for details about -// tick. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetChaosReport(ctx context.Context, continuationToken string, startTimeUtc string, endTimeUtc string, timeout *int64) (result ChaosReport, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetChaosReport", err.Error()) - } - - req, err := client.GetChaosReportPreparer(ctx, continuationToken, startTimeUtc, endTimeUtc, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", nil, "Failure preparing request") - return - } - - resp, err := client.GetChaosReportSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", resp, "Failure sending request") - return - } - - result, err = client.GetChaosReportResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportPreparer prepares the GetChaosReport request. -func (client BaseClient) GetChaosReportPreparer(ctx context.Context, continuationToken string, startTimeUtc string, endTimeUtc string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if len(startTimeUtc) > 0 { - queryParameters["StartTimeUtc"] = autorest.Encode("query", startTimeUtc) - } - if len(endTimeUtc) > 0 { - queryParameters["EndTimeUtc"] = autorest.Encode("query", endTimeUtc) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Report"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportSender sends the GetChaosReport request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetChaosReportSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportResponder handles the response to the GetChaosReport request. The method always -// closes the http.Response Body. -func (client BaseClient) GetChaosReportResponder(resp *http.Response) (result ChaosReport, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfiguration get the Service Fabric standalone cluster configuration. The cluster configuration contains -// properties of the cluster that include different node types on the cluster, -// security configurations, fault and upgrade domain topologies etc. -// Parameters: -// configurationAPIVersion - the API version of the Standalone cluster json configuration. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurationAPIVersion string, timeout *int64) (result ClusterConfiguration, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterConfiguration", err.Error()) - } - - req, err := client.GetClusterConfigurationPreparer(ctx, configurationAPIVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterConfigurationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure sending request") - return - } - - result, err = client.GetClusterConfigurationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationPreparer prepares the GetClusterConfiguration request. -func (client BaseClient) GetClusterConfigurationPreparer(ctx context.Context, configurationAPIVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ConfigurationApiVersion": autorest.Encode("query", configurationAPIVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterConfiguration"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationSender sends the GetClusterConfiguration request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterConfigurationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationResponder handles the response to the GetClusterConfiguration request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterConfigurationResponder(resp *http.Response) (result ClusterConfiguration, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatus get the cluster configuration upgrade status of a Service Fabric standalone -// cluster. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Context, timeout *int64) (result ClusterConfigurationUpgradeStatusInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", err.Error()) - } - - req, err := client.GetClusterConfigurationUpgradeStatusPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterConfigurationUpgradeStatusSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure sending request") - return - } - - result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatusPreparer prepares the GetClusterConfigurationUpgradeStatus request. -func (client BaseClient) GetClusterConfigurationUpgradeStatusPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterConfigurationUpgradeStatus"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatusSender sends the GetClusterConfigurationUpgradeStatus request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterConfigurationUpgradeStatusSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatusResponder handles the response to the GetClusterConfigurationUpgradeStatus request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterConfigurationUpgradeStatusResponder(resp *http.Response) (result ClusterConfigurationUpgradeStatusInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealth gets the health of a Service Fabric cluster. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes and -// applications returned based on their aggregated health state. -// Parameters: -// nodesHealthStateFilter - allows filtering of the node health state objects returned in the result of cluster -// health query -// based on their health state. The possible values for this parameter include integer value of one of the -// following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the -// aggregated health state. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of nodes with HealthState value of OK (2) and -// Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationsHealthStateFilter - allows filtering of the application health state objects returned in the -// result of cluster health -// query based on their health state. -// The possible values for this parameter include integer value obtained from members or bitwise operations -// on members of HealthStateFilter enumeration. Only applications that match the filter are returned. -// All applications are used to evaluate the aggregated health state. If not specified, all entries are -// returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of applications with HealthState value of OK (2) -// and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// includeSystemApplicationHealthStatistics - indicates whether the health statistics should include the -// fabric:/System application health statistics. False by default. -// If IncludeSystemApplicationHealthStatistics is set to true, the health statistics include the entities that -// belong to the fabric:/System application. -// Otherwise, the query result includes health statistics only for user applications. -// The health statistics must be included in the query result for this parameter to be applied. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, timeout *int64) (result ClusterHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealth", err.Error()) - } - - req, err := client.GetClusterHealthPreparer(ctx, nodesHealthStateFilter, applicationsHealthStateFilter, eventsHealthStateFilter, excludeHealthStatistics, includeSystemApplicationHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthPreparer prepares the GetClusterHealth request. -func (client BaseClient) GetClusterHealthPreparer(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if nodesHealthStateFilter != nil { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", *nodesHealthStateFilter) - } else { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", 0) - } - if applicationsHealthStateFilter != nil { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", *applicationsHealthStateFilter) - } else { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if includeSystemApplicationHealthStatistics != nil { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", *includeSystemApplicationHealthStatistics) - } else { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealth"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthSender sends the GetClusterHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthResponder handles the response to the GetClusterHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthResponder(resp *http.Response) (result ClusterHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunk gets the health of a Service Fabric cluster using health chunks. Includes the aggregated -// health state of the cluster, but none of the cluster entities. -// To expand the cluster health and get the health state of all or some of the entities, use the POST URI and specify -// the cluster health chunk query description. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int64) (result ClusterHealthChunk, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthChunk", err.Error()) - } - - req, err := client.GetClusterHealthChunkPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthChunkSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthChunkResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkPreparer prepares the GetClusterHealthChunk request. -func (client BaseClient) GetClusterHealthChunkPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealthChunk"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkSender sends the GetClusterHealthChunk request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthChunkSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkResponder handles the response to the GetClusterHealthChunk request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthChunkResponder(resp *http.Response) (result ClusterHealthChunk, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFilters gets the health of a Service Fabric cluster using health chunks. -// The health evaluation is done based on the input cluster health chunk query description. -// The query description allows users to specify health policies for evaluating the cluster and its children. -// Users can specify very flexible filters to select which cluster entities to return. The selection can be done based -// on the entities health state and based on the hierarchy. -// The query can return multi-level children of the entities based on the specified filters. For example, it can return -// one application with a specified name, and for this application, return -// only services that are in Error or Warning, and all partitions and replicas for one of these services. -// Parameters: -// clusterHealthChunkQueryDescription - describes the cluster and application health policies used to evaluate -// the cluster health and the filters to select which cluster entities to be returned. -// If the cluster health policy is present, it is used to evaluate the cluster events and the cluster nodes. If -// not present, the health evaluation uses the cluster health policy defined in the cluster manifest or the -// default cluster health policy. -// By default, each application is evaluated using its specific application health policy, defined in the -// application manifest, or the default health policy, if no policy is defined in manifest. -// If the application health policy map is specified, and it has an entry for an application, the specified -// application health policy -// is used to evaluate the application health. -// Users can specify very flexible filters to select which cluster entities to include in response. The -// selection can be done based on the entities health state and based on the hierarchy. -// The query can return multi-level children of the entities based on the specified filters. For example, it -// can return one application with a specified name, and for this application, return -// only services that are in Error or Warning, and all partitions and replicas for one of these services. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx context.Context, clusterHealthChunkQueryDescription *ClusterHealthChunkQueryDescription, timeout *int64) (result ClusterHealthChunk, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", err.Error()) - } - - req, err := client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer(ctx, clusterHealthChunkQueryDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer prepares the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer(ctx context.Context, clusterHealthChunkQueryDescription *ClusterHealthChunkQueryDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealthChunk"), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthChunkQueryDescription != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthChunkQueryDescription)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender sends the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder handles the response to the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp *http.Response) (result ClusterHealthChunk, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicy gets the health of a Service Fabric cluster. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes and -// applications returned based on their aggregated health state. -// Use ClusterHealthPolicies to override the health policies used to evaluate the health. -// Parameters: -// nodesHealthStateFilter - allows filtering of the node health state objects returned in the result of cluster -// health query -// based on their health state. The possible values for this parameter include integer value of one of the -// following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the -// aggregated health state. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of nodes with HealthState value of OK (2) and -// Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationsHealthStateFilter - allows filtering of the application health state objects returned in the -// result of cluster health -// query based on their health state. -// The possible values for this parameter include integer value obtained from members or bitwise operations -// on members of HealthStateFilter enumeration. Only applications that match the filter are returned. -// All applications are used to evaluate the aggregated health state. If not specified, all entries are -// returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of applications with HealthState value of OK (2) -// and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// includeSystemApplicationHealthStatistics - indicates whether the health statistics should include the -// fabric:/System application health statistics. False by default. -// If IncludeSystemApplicationHealthStatistics is set to true, the health statistics include the entities that -// belong to the fabric:/System application. -// Otherwise, the query result includes health statistics only for user applications. -// The health statistics must be included in the query result for this parameter to be applied. -// clusterHealthPolicies - describes the health policies used to evaluate the cluster health. -// If not present, the health evaluation uses the cluster health policy defined in the cluster manifest or the -// default cluster health policy. -// By default, each application is evaluated using its specific application health policy, defined in the -// application manifest, or the default health policy, if no policy is defined in manifest. -// If the application health policy map is specified, and it has an entry for an application, the specified -// application health policy -// is used to evaluate the application health. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, clusterHealthPolicies *ClusterHealthPolicies, timeout *int64) (result ClusterHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthUsingPolicy", err.Error()) - } - - req, err := client.GetClusterHealthUsingPolicyPreparer(ctx, nodesHealthStateFilter, applicationsHealthStateFilter, eventsHealthStateFilter, excludeHealthStatistics, includeSystemApplicationHealthStatistics, clusterHealthPolicies, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicyPreparer prepares the GetClusterHealthUsingPolicy request. -func (client BaseClient) GetClusterHealthUsingPolicyPreparer(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, clusterHealthPolicies *ClusterHealthPolicies, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if nodesHealthStateFilter != nil { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", *nodesHealthStateFilter) - } else { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", 0) - } - if applicationsHealthStateFilter != nil { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", *applicationsHealthStateFilter) - } else { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if includeSystemApplicationHealthStatistics != nil { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", *includeSystemApplicationHealthStatistics) - } else { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealth"), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthPolicies != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthPolicies)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicySender sends the GetClusterHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicyResponder handles the response to the GetClusterHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthUsingPolicyResponder(resp *http.Response) (result ClusterHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifest get the Service Fabric cluster manifest. The cluster manifest contains properties of the cluster -// that include different node types on the cluster, -// security configurations, fault and upgrade domain topologies etc. -// -// These properties are specified as part of the ClusterConfig.JSON file while deploying a stand alone cluster. -// However, most of the information in the cluster manifest -// is generated internally by service fabric during cluster deployment in other deployment scenarios (for e.g when -// using azuer portal). -// -// The contents of the cluster manifest are for informational purposes only and users are not expected to take a -// dependency on the format of the file contents or its interpretation. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) (result ClusterManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterManifest", err.Error()) - } - - req, err := client.GetClusterManifestPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure sending request") - return - } - - result, err = client.GetClusterManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestPreparer prepares the GetClusterManifest request. -func (client BaseClient) GetClusterManifestPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterManifest"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestSender sends the GetClusterManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestResponder handles the response to the GetClusterManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterManifestResponder(resp *http.Response) (result ClusterManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgress gets the current progress of the ongoing cluster upgrade. If no upgrade is currently in -// progress, gets the last state of the previous cluster upgrade. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout *int64) (result ClusterUpgradeProgressObject, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterUpgradeProgress", err.Error()) - } - - req, err := client.GetClusterUpgradeProgressPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterUpgradeProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure sending request") - return - } - - result, err = client.GetClusterUpgradeProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressPreparer prepares the GetClusterUpgradeProgress request. -func (client BaseClient) GetClusterUpgradeProgressPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetUpgradeProgress"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressSender sends the GetClusterUpgradeProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterUpgradeProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressResponder handles the response to the GetClusterUpgradeProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterUpgradeProgressResponder(resp *http.Response) (result ClusterUpgradeProgressObject, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatus returns the status of the compose deployment that was created or in the process of being -// created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response -// includes the name, status and other details about the deployment. -// Parameters: -// deploymentName - the identity of the deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploymentName string, timeout *int64) (result ComposeDeploymentStatusInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeDeploymentStatus", err.Error()) - } - - req, err := client.GetComposeDeploymentStatusPreparer(ctx, deploymentName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeDeploymentStatusSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure sending request") - return - } - - result, err = client.GetComposeDeploymentStatusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusPreparer prepares the GetComposeDeploymentStatus request. -func (client BaseClient) GetComposeDeploymentStatusPreparer(ctx context.Context, deploymentName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusSender sends the GetComposeDeploymentStatus request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeDeploymentStatusSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusResponder handles the response to the GetComposeDeploymentStatus request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeDeploymentStatusResponder(resp *http.Response) (result ComposeDeploymentStatusInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusList gets the status about the compose deployments that were created or in the process of -// being created in the Service Fabric cluster. The response includes the name, status and other details about the -// compose deployments. If the list of deployments do not fit in a page, one page of results is returned as well as a -// continuation token which can be used to get the next page. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, continuationToken string, maxResults *int64, timeout *int64) (result PagedComposeDeploymentStatusInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeDeploymentStatusList", err.Error()) - } - - req, err := client.GetComposeDeploymentStatusListPreparer(ctx, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeDeploymentStatusListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure sending request") - return - } - - result, err = client.GetComposeDeploymentStatusListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusListPreparer prepares the GetComposeDeploymentStatusList request. -func (client BaseClient) GetComposeDeploymentStatusListPreparer(ctx context.Context, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ComposeDeployments"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusListSender sends the GetComposeDeploymentStatusList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeDeploymentStatusListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusListResponder handles the response to the GetComposeDeploymentStatusList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeDeploymentStatusListResponder(resp *http.Response) (result PagedComposeDeploymentStatusInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgress returns the information about the state of the compose deployment upgrade along -// with details to aid debugging application health issues. -// Parameters: -// deploymentName - the identity of the deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context, deploymentName string, timeout *int64) (result ComposeDeploymentUpgradeProgressInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", err.Error()) - } - - req, err := client.GetComposeDeploymentUpgradeProgressPreparer(ctx, deploymentName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeDeploymentUpgradeProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure sending request") - return - } - - result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgressPreparer prepares the GetComposeDeploymentUpgradeProgress request. -func (client BaseClient) GetComposeDeploymentUpgradeProgressPreparer(ctx context.Context, deploymentName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}/$/GetUpgradeProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgressSender sends the GetComposeDeploymentUpgradeProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeDeploymentUpgradeProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgressResponder handles the response to the GetComposeDeploymentUpgradeProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeDeploymentUpgradeProgressResponder(resp *http.Response) (result ComposeDeploymentUpgradeProgressInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgress gets the progress of a data loss operation started with StartDataLoss, using the OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionDataLossProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDataLossProgress", err.Error()) - } - - req, err := client.GetDataLossProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetDataLossProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure sending request") - return - } - - result, err = client.GetDataLossProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressPreparer prepares the GetDataLossProgress request. -func (client BaseClient) GetDataLossProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressSender sends the GetDataLossProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDataLossProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressResponder handles the response to the GetDataLossProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDataLossProgressResponder(resp *http.Response) (result PartitionDataLossProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealth gets the information about health of an application deployed on a Service Fabric node. -// Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent objects reported on the deployed -// application based on health state. Use DeployedServicePackagesHealthStateFilter to optionally filter for -// DeployedServicePackageHealth children based on health state. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedServicePackagesHealthStateFilter - allows filtering of the deployed service package health state -// objects returned in the result of deployed application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only deployed service packages that match the filter are returned. All deployed service packages are used to -// evaluate the aggregated health state of the deployed application. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value can be a combination of these value obtained using -// bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of service packages with HealthState value of OK -// (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result DeployedApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationHealth", err.Error()) - } - - req, err := client.GetDeployedApplicationHealthPreparer(ctx, nodeName, applicationID, eventsHealthStateFilter, deployedServicePackagesHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthPreparer prepares the GetDeployedApplicationHealth request. -func (client BaseClient) GetDeployedApplicationHealthPreparer(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedServicePackagesHealthStateFilter != nil { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", *deployedServicePackagesHealthStateFilter) - } else { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthSender sends the GetDeployedApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthResponder handles the response to the GetDeployedApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationHealthResponder(resp *http.Response) (result DeployedApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicy gets the information about health of an application deployed on a Service -// Fabric node using the specified policy. Use EventsHealthStateFilter to optionally filter for the collection of -// HealthEvent objects reported on the deployed application based on health state. Use -// DeployedServicePackagesHealthStateFilter to optionally filter for DeployedServicePackageHealth children based on -// health state. Use ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. -// This API only uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored -// while evaluating the health of the deployed application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedServicePackagesHealthStateFilter - allows filtering of the deployed service package health state -// objects returned in the result of deployed application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only deployed service packages that match the filter are returned. All deployed service packages are used to -// evaluate the aggregated health state of the deployed application. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value can be a combination of these value obtained using -// bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of service packages with HealthState value of OK -// (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (result DeployedApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", err.Error()) - } - - req, err := client.GetDeployedApplicationHealthUsingPolicyPreparer(ctx, nodeName, applicationID, eventsHealthStateFilter, deployedServicePackagesHealthStateFilter, applicationHealthPolicy, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicyPreparer prepares the GetDeployedApplicationHealthUsingPolicy request. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicyPreparer(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedServicePackagesHealthStateFilter != nil { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", *deployedServicePackagesHealthStateFilter) - } else { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicySender sends the GetDeployedApplicationHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicyResponder handles the response to the GetDeployedApplicationHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicyResponder(resp *http.Response) (result DeployedApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfo gets the information about an application deployed on a Service Fabric node. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeName string, applicationID string, timeout *int64) (result DeployedApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationInfo", err.Error()) - } - - req, err := client.GetDeployedApplicationInfoPreparer(ctx, nodeName, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoPreparer prepares the GetDeployedApplicationInfo request. -func (client BaseClient) GetDeployedApplicationInfoPreparer(ctx context.Context, nodeName string, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoSender sends the GetDeployedApplicationInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoResponder handles the response to the GetDeployedApplicationInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationInfoResponder(resp *http.Response) (result DeployedApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoList gets the list of applications deployed on a Service Fabric node. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nodeName string, timeout *int64) (result ListDeployedApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationInfoList", err.Error()) - } - - req, err := client.GetDeployedApplicationInfoListPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListPreparer prepares the GetDeployedApplicationInfoList request. -func (client BaseClient) GetDeployedApplicationInfoListPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListSender sends the GetDeployedApplicationInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListResponder handles the response to the GetDeployedApplicationInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationInfoListResponder(resp *http.Response) (result ListDeployedApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoList gets the list of code packages deployed on a Service Fabric node for the given -// application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// codePackageName - the name of code package specified in service manifest registered as part of an -// application type in a Service Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, timeout *int64) (result ListDeployedCodePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedCodePackageInfoList", err.Error()) - } - - req, err := client.GetDeployedCodePackageInfoListPreparer(ctx, nodeName, applicationID, serviceManifestName, codePackageName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedCodePackageInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedCodePackageInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListPreparer prepares the GetDeployedCodePackageInfoList request. -func (client BaseClient) GetDeployedCodePackageInfoListPreparer(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if len(codePackageName) > 0 { - queryParameters["CodePackageName"] = autorest.Encode("query", codePackageName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListSender sends the GetDeployedCodePackageInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedCodePackageInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListResponder handles the response to the GetDeployedCodePackageInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedCodePackageInfoListResponder(resp *http.Response) (result ListDeployedCodePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealth gets the information about health of service package for a specific application -// deployed on a Service Fabric node. Use EventsHealthStateFilter to optionally filter for the collection of -// HealthEvent objects reported on the deployed service package based on health state. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, timeout *int64) (result DeployedServicePackageHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageHealth", err.Error()) - } - - req, err := client.GetDeployedServicePackageHealthPreparer(ctx, nodeName, applicationID, servicePackageName, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthPreparer prepares the GetDeployedServicePackageHealth request. -func (client BaseClient) GetDeployedServicePackageHealthPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthSender sends the GetDeployedServicePackageHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthResponder handles the response to the GetDeployedServicePackageHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageHealthResponder(resp *http.Response) (result DeployedServicePackageHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicy gets the information about health of an service package for a specific -// application deployed on a Service Fabric node. using the specified policy. Use EventsHealthStateFilter to optionally -// filter for the collection of HealthEvent objects reported on the deployed service package based on health state. Use -// ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. This API only uses -// 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while evaluating -// the health of the deployed service package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result DeployedServicePackageHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", err.Error()) - } - - req, err := client.GetDeployedServicePackageHealthUsingPolicyPreparer(ctx, nodeName, applicationID, servicePackageName, eventsHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicyPreparer prepares the GetDeployedServicePackageHealthUsingPolicy request. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicyPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicySender sends the GetDeployedServicePackageHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicyResponder handles the response to the GetDeployedServicePackageHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicyResponder(resp *http.Response) (result DeployedServicePackageHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoList returns the information about the service packages deployed on a Service Fabric -// node for the given application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, nodeName string, applicationID string, timeout *int64) (result ListDeployedServicePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageInfoList", err.Error()) - } - - req, err := client.GetDeployedServicePackageInfoListPreparer(ctx, nodeName, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListPreparer prepares the GetDeployedServicePackageInfoList request. -func (client BaseClient) GetDeployedServicePackageInfoListPreparer(ctx context.Context, nodeName string, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListSender sends the GetDeployedServicePackageInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListResponder handles the response to the GetDeployedServicePackageInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageInfoListResponder(resp *http.Response) (result ListDeployedServicePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByName returns the information about the service packages deployed on a Service -// Fabric node for the given application. These results are of service packages whose name match exactly the service -// package name specified as the parameter. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Context, nodeName string, applicationID string, servicePackageName string, timeout *int64) (result ListDeployedServicePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", err.Error()) - } - - req, err := client.GetDeployedServicePackageInfoListByNamePreparer(ctx, nodeName, applicationID, servicePackageName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageInfoListByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNamePreparer prepares the GetDeployedServicePackageInfoListByName request. -func (client BaseClient) GetDeployedServicePackageInfoListByNamePreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNameSender sends the GetDeployedServicePackageInfoListByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageInfoListByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNameResponder handles the response to the GetDeployedServicePackageInfoListByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageInfoListByNameResponder(resp *http.Response) (result ListDeployedServicePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfo gets the details of the replica deployed on a Service Fabric node. The -// information include service kind, service name, current service operation, current service operation start date -// time, partition id, replica/instance id, reported load and other information. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (result DeployedServiceReplicaDetailInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaDetailInfoPreparer(ctx, nodeName, partitionID, replicaID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaDetailInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoPreparer prepares the GetDeployedServiceReplicaDetailInfo request. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoSender sends the GetDeployedServiceReplicaDetailInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoResponder handles the response to the GetDeployedServiceReplicaDetailInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoResponder(resp *http.Response) (result DeployedServiceReplicaDetailInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionID gets the details of the replica deployed on a Service Fabric node. -// The information include service kind, service name, current service operation, current service operation start date -// time, partition id, replica/instance id, reported load and other information. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx context.Context, nodeName string, partitionID uuid.UUID, timeout *int64) (result DeployedServiceReplicaDetailInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaDetailInfoByPartitionIDPreparer(ctx, nodeName, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaDetailInfoByPartitionIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionIDPreparer prepares the GetDeployedServiceReplicaDetailInfoByPartitionID request. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionIDPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionIDSender sends the GetDeployedServiceReplicaDetailInfoByPartitionID request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionIDResponder handles the response to the GetDeployedServiceReplicaDetailInfoByPartitionID request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp *http.Response) (result DeployedServiceReplicaDetailInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoList gets the list containing the information about replicas deployed on a Service -// Fabric node. The information include partition id, replica id, status of the replica, name of the service, name of -// the service type and other information. Use PartitionId or ServiceManifestName query parameters to return -// information about the deployed replicas matching the specified values for those parameters. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// partitionID - the identity of the partition. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, nodeName string, applicationID string, partitionID *uuid.UUID, serviceManifestName string, timeout *int64) (result ListDeployedServiceReplicaInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaInfoListPreparer(ctx, nodeName, applicationID, partitionID, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListPreparer prepares the GetDeployedServiceReplicaInfoList request. -func (client BaseClient) GetDeployedServiceReplicaInfoListPreparer(ctx context.Context, nodeName string, applicationID string, partitionID *uuid.UUID, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if partitionID != nil { - queryParameters["PartitionId"] = autorest.Encode("query", *partitionID) - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListSender sends the GetDeployedServiceReplicaInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListResponder handles the response to the GetDeployedServiceReplicaInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaInfoListResponder(resp *http.Response) (result ListDeployedServiceReplicaInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByName gets the list containing the information about a specific service type from the -// applications deployed on a node in a Service Fabric cluster. The response includes the name of the service type, its -// registration status, the code package that registered it and activation id of the service package. Each entry -// represents one activation of a service type, differentiated by the activation id. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// serviceTypeName - specifies the name of a Service Fabric service type. -// serviceManifestName - the name of the service manifest to filter the list of deployed service type -// information. If specified, the response will only contain the information about service types that are -// defined in this service manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, nodeName string, applicationID string, serviceTypeName string, serviceManifestName string, timeout *int64) (result ListDeployedServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", err.Error()) - } - - req, err := client.GetDeployedServiceTypeInfoByNamePreparer(ctx, nodeName, applicationID, serviceTypeName, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceTypeInfoByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNamePreparer prepares the GetDeployedServiceTypeInfoByName request. -func (client BaseClient) GetDeployedServiceTypeInfoByNamePreparer(ctx context.Context, nodeName string, applicationID string, serviceTypeName string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "serviceTypeName": serviceTypeName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNameSender sends the GetDeployedServiceTypeInfoByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceTypeInfoByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNameResponder handles the response to the GetDeployedServiceTypeInfoByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceTypeInfoByNameResponder(resp *http.Response) (result ListDeployedServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoList gets the list containing the information about service types from the applications -// deployed on a node in a Service Fabric cluster. The response includes the name of the service type, its registration -// status, the code package that registered it and activation id of the service package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// serviceManifestName - the name of the service manifest to filter the list of deployed service type -// information. If specified, the response will only contain the information about service types that are -// defined in this service manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, timeout *int64) (result ListDeployedServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", err.Error()) - } - - req, err := client.GetDeployedServiceTypeInfoListPreparer(ctx, nodeName, applicationID, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListPreparer prepares the GetDeployedServiceTypeInfoList request. -func (client BaseClient) GetDeployedServiceTypeInfoListPreparer(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListSender sends the GetDeployedServiceTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListResponder handles the response to the GetDeployedServiceTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceTypeInfoListResponder(resp *http.Response) (result ListDeployedServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationList gets the a list of user-induced fault operations filtered by provided input. -// Parameters: -// typeFilter - used to filter on OperationType for user-induced operations. -// 65535 - select all -// 1 - select PartitionDataLoss. -// 2 - select PartitionQuorumLoss. -// 4 - select PartitionRestart. -// 8 - select NodeTransition. -// stateFilter - used to filter on OperationState's for user-induced operations. -// 65535 - select All -// 1 - select Running -// 2 - select RollingBack -// 8 - select Completed -// 16 - select Faulted -// 32 - select Cancelled -// 64 - select ForceCancelled -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter int32, stateFilter int32, timeout *int64) (result ListOperationStatus, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetFaultOperationList", err.Error()) - } - - req, err := client.GetFaultOperationListPreparer(ctx, typeFilter, stateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", nil, "Failure preparing request") - return - } - - resp, err := client.GetFaultOperationListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure sending request") - return - } - - result, err = client.GetFaultOperationListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListPreparer prepares the GetFaultOperationList request. -func (client BaseClient) GetFaultOperationListPreparer(ctx context.Context, typeFilter int32, stateFilter int32, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "StateFilter": autorest.Encode("query", stateFilter), - "TypeFilter": autorest.Encode("query", typeFilter), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Faults/"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListSender sends the GetFaultOperationList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetFaultOperationListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListResponder handles the response to the GetFaultOperationList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetFaultOperationListResponder(resp *http.Response) (result ListOperationStatus, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContent returns the information about the image store content at the specified contentPath relative to -// the root of the image store. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath string, timeout *int64) (result ImageStoreContent, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreContent", err.Error()) - } - - req, err := client.GetImageStoreContentPreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreContentSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentPreparer prepares the GetImageStoreContent request. -func (client BaseClient) GetImageStoreContentPreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentSender sends the GetImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentResponder handles the response to the GetImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreContentResponder(resp *http.Response) (result ImageStoreContent, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContent returns the information about the image store content at the root of the image store. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout *int64) (result ImageStoreContent, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreRootContent", err.Error()) - } - - req, err := client.GetImageStoreRootContentPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreRootContentSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreRootContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentPreparer prepares the GetImageStoreRootContent request. -func (client BaseClient) GetImageStoreRootContentPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentSender sends the GetImageStoreRootContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreRootContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentResponder handles the response to the GetImageStoreRootContent request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreRootContentResponder(resp *http.Response) (result ImageStoreContent, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfo returns whether the specified Service Fabric name exists. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNameExistsInfo", err.Error()) - } - - req, err := client.GetNameExistsInfoPreparer(ctx, nameID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNameExistsInfoSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNameExistsInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfoPreparer prepares the GetNameExistsInfo request. -func (client BaseClient) GetNameExistsInfoPreparer(ctx context.Context, nameID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfoSender sends the GetNameExistsInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNameExistsInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfoResponder handles the response to the GetNameExistsInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNameExistsInfoResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealth gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the collection of -// health events reported on the node based on the health state. If the node that you specify by name does not exist in -// the health store, this returns an error. -// Parameters: -// nodeName - the name of the node. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, timeout *int64) (result NodeHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeHealth", err.Error()) - } - - req, err := client.GetNodeHealthPreparer(ctx, nodeName, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure sending request") - return - } - - result, err = client.GetNodeHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthPreparer prepares the GetNodeHealth request. -func (client BaseClient) GetNodeHealthPreparer(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthSender sends the GetNodeHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthResponder handles the response to the GetNodeHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeHealthResponder(resp *http.Response) (result NodeHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicy gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the -// collection of health events reported on the node based on the health state. Use ClusterHealthPolicy in the POST body -// to override the health policies used to evaluate the health. If the node that you specify by name does not exist in -// the health store, this returns an error. -// Parameters: -// nodeName - the name of the node. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// clusterHealthPolicy - describes the health policies used to evaluate the health of a cluster or node. If not -// present, the health evaluation uses the health policy from cluster manifest or the default health policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, clusterHealthPolicy *ClusterHealthPolicy, timeout *int64) (result NodeHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeHealthUsingPolicy", err.Error()) - } - - req, err := client.GetNodeHealthUsingPolicyPreparer(ctx, nodeName, eventsHealthStateFilter, clusterHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetNodeHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicyPreparer prepares the GetNodeHealthUsingPolicy request. -func (client BaseClient) GetNodeHealthUsingPolicyPreparer(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, clusterHealthPolicy *ClusterHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicySender sends the GetNodeHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicyResponder handles the response to the GetNodeHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeHealthUsingPolicyResponder(resp *http.Response) (result NodeHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfo gets the information about a specific node in the Service Fabric Cluster.The respons include the name, -// status, id, health, uptime and other details about the node. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeout *int64) (result NodeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeInfo", err.Error()) - } - - req, err := client.GetNodeInfoPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNodeInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoPreparer prepares the GetNodeInfo request. -func (client BaseClient) GetNodeInfoPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoSender sends the GetNodeInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoResponder handles the response to the GetNodeInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeInfoResponder(resp *http.Response) (result NodeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoList the Nodes endpoint returns information about the nodes in the Service Fabric Cluster. The respons -// include the name, status, id, health, uptime and other details about the node. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// nodeStatusFilter - allows filtering the nodes based on the NodeStatus. Only the nodes that are matching the -// specified filter value will be returned. The filter value can be one of the following. -// -// - default - This filter value will match all of the nodes excepts the ones with with status as Unknown or -// Removed. -// - all - This filter value will match all of the nodes. -// - up - This filter value will match nodes that are Up. -// - down - This filter value will match nodes that are Down. -// - enabling - This filter value will match nodes that are in the process of being enabled with status as -// Enabling. -// - disabling - This filter value will match nodes that are in the process of being disabled with status as -// Disabling. -// - disabled - This filter value will match nodes that are Disabled. -// - unknown - This filter value will match nodes whose status is Unknown. A node would be in Unknown state if -// Service Fabric does not have authoritative information about that node. This can happen if the system learns -// about a node at runtime. -// - removed - This filter value will match nodes whose status is Removed. These are the nodes that are removed -// from the cluster using the RemoveNodeState API. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken string, nodeStatusFilter string, timeout *int64) (result PagedNodeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeInfoList", err.Error()) - } - - req, err := client.GetNodeInfoListPreparer(ctx, continuationToken, nodeStatusFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetNodeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListPreparer prepares the GetNodeInfoList request. -func (client BaseClient) GetNodeInfoListPreparer(ctx context.Context, continuationToken string, nodeStatusFilter string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if len(string(nodeStatusFilter)) > 0 { - queryParameters["NodeStatusFilter"] = autorest.Encode("query", nodeStatusFilter) - } else { - queryParameters["NodeStatusFilter"] = autorest.Encode("query", "default") - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Nodes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListSender sends the GetNodeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListResponder handles the response to the GetNodeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeInfoListResponder(resp *http.Response) (result PagedNodeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfo gets the load information of a Service Fabric node. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, timeout *int64) (result NodeLoadInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeLoadInfo", err.Error()) - } - - req, err := client.GetNodeLoadInfoPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeLoadInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNodeLoadInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoPreparer prepares the GetNodeLoadInfo request. -func (client BaseClient) GetNodeLoadInfoPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoSender sends the GetNodeLoadInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeLoadInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoResponder handles the response to the GetNodeLoadInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeLoadInfoResponder(resp *http.Response) (result NodeLoadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgress gets the progress of an operation started with StartNodeTransition using the provided -// OperationId. -// Parameters: -// nodeName - the name of the node. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName string, operationID uuid.UUID, timeout *int64) (result NodeTransitionProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeTransitionProgress", err.Error()) - } - - req, err := client.GetNodeTransitionProgressPreparer(ctx, nodeName, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeTransitionProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure sending request") - return - } - - result, err = client.GetNodeTransitionProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressPreparer prepares the GetNodeTransitionProgress request. -func (client BaseClient) GetNodeTransitionProgressPreparer(ctx context.Context, nodeName string, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Nodes/{nodeName}/$/GetTransitionProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressSender sends the GetNodeTransitionProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeTransitionProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressResponder handles the response to the GetNodeTransitionProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeTransitionProgressResponder(resp *http.Response) (result NodeTransitionProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealth gets the health information of the specified partition. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use ReplicasHealthStateFilter to filter the collection of ReplicaHealthState objects on the partition. -// If you specify a partition that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// partitionID - the identity of the partition. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// replicasHealthStateFilter - allows filtering the collection of ReplicaHealthState objects on the partition. -// The value can be obtained from members or bitwise operations on members of HealthStateFilter. Only replicas -// that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. -// If not specified, all entries will be returned.The state values are flag based enumeration, so the value -// could be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided -// value is 6 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The -// possible values for this parameter include integer value of one of the following health states. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result PartitionHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionHealth", err.Error()) - } - - req, err := client.GetPartitionHealthPreparer(ctx, partitionID, eventsHealthStateFilter, replicasHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthPreparer prepares the GetPartitionHealth request. -func (client BaseClient) GetPartitionHealthPreparer(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if replicasHealthStateFilter != nil { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", *replicasHealthStateFilter) - } else { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthSender sends the GetPartitionHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthResponder handles the response to the GetPartitionHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionHealthResponder(resp *http.Response) (result PartitionHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicy gets the health information of the specified partition. -// If the application health policy is specified, the health evaluation uses it to get the aggregated health state. -// If the policy is not specified, the health evaluation uses the application health policy defined in the application -// manifest, or the default health policy, if no policy is defined in the manifest. -// Use EventsHealthStateFilter to filter the collection of health events reported on the partition based on the health -// state. -// Use ReplicasHealthStateFilter to filter the collection of ReplicaHealthState objects on the partition. Use -// ApplicationHealthPolicy in the POST body to override the health policies used to evaluate the health. -// If you specify a partition that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// partitionID - the identity of the partition. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// replicasHealthStateFilter - allows filtering the collection of ReplicaHealthState objects on the partition. -// The value can be obtained from members or bitwise operations on members of HealthStateFilter. Only replicas -// that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. -// If not specified, all entries will be returned.The state values are flag based enumeration, so the value -// could be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided -// value is 6 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The -// possible values for this parameter include integer value of one of the following health states. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (result PartitionHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", err.Error()) - } - - req, err := client.GetPartitionHealthUsingPolicyPreparer(ctx, partitionID, eventsHealthStateFilter, replicasHealthStateFilter, applicationHealthPolicy, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicyPreparer prepares the GetPartitionHealthUsingPolicy request. -func (client BaseClient) GetPartitionHealthUsingPolicyPreparer(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if replicasHealthStateFilter != nil { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", *replicasHealthStateFilter) - } else { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicySender sends the GetPartitionHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicyResponder handles the response to the GetPartitionHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionHealthUsingPolicyResponder(resp *http.Response) (result PartitionHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfo the Partitions endpoint returns information about the specified partition. The response include the -// partition id, partitioning scheme information, keys supported by the partition, status, health and other details -// about the partition. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result ServicePartitionInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionInfo", err.Error()) - } - - req, err := client.GetPartitionInfoPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoPreparer prepares the GetPartitionInfo request. -func (client BaseClient) GetPartitionInfoPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoSender sends the GetPartitionInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoResponder handles the response to the GetPartitionInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionInfoResponder(resp *http.Response) (result ServicePartitionInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoList gets the list of partitions of a Service Fabric service. The response include the partition id, -// partitioning scheme information, keys supported by the partition, status, health and other details about the -// partition. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID string, continuationToken string, timeout *int64) (result PagedServicePartitionInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionInfoList", err.Error()) - } - - req, err := client.GetPartitionInfoListPreparer(ctx, serviceID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListPreparer prepares the GetPartitionInfoList request. -func (client BaseClient) GetPartitionInfoListPreparer(ctx context.Context, serviceID string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetPartitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListSender sends the GetPartitionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListResponder handles the response to the GetPartitionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionInfoListResponder(resp *http.Response) (result PagedServicePartitionInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformation returns information about the specified partition. -// The response includes a list of load information. -// Each information includes load metric name, value and last reported time in UTC. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result PartitionLoadInformation, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionLoadInformation", err.Error()) - } - - req, err := client.GetPartitionLoadInformationPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionLoadInformationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionLoadInformationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationPreparer prepares the GetPartitionLoadInformation request. -func (client BaseClient) GetPartitionLoadInformationPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationSender sends the GetPartitionLoadInformation request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionLoadInformationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationResponder handles the response to the GetPartitionLoadInformation request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionLoadInformationResponder(resp *http.Response) (result PartitionLoadInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgress gets the progress of a PartitionRestart started with StartPartitionRestart using the -// provided OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionRestartProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionRestartProgress", err.Error()) - } - - req, err := client.GetPartitionRestartProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionRestartProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionRestartProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressPreparer prepares the GetPartitionRestartProgress request. -func (client BaseClient) GetPartitionRestartProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressSender sends the GetPartitionRestartProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionRestartProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressResponder handles the response to the GetPartitionRestartProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionRestartProgressResponder(resp *http.Response) (result PartitionRestartProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfo gets the specified Service Fabric property under a given name. This will always return both value -// and metadata. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyName - specifies the name of the property to get. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, propertyName string, timeout *int64) (result PropertyInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPropertyInfo", err.Error()) - } - - req, err := client.GetPropertyInfoPreparer(ctx, nameID, propertyName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetPropertyInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure sending request") - return - } - - result, err = client.GetPropertyInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoPreparer prepares the GetPropertyInfo request. -func (client BaseClient) GetPropertyInfoPreparer(ctx context.Context, nameID string, propertyName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "PropertyName": autorest.Encode("query", propertyName), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperty", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoSender sends the GetPropertyInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPropertyInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoResponder handles the response to the GetPropertyInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPropertyInfoResponder(resp *http.Response) (result PropertyInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoList gets information on all Service Fabric properties under a given name. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// includeValues - allows specifying whether to include the values of the properties returned. True if values -// should be returned with the metadata; False to return only property metadata. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, includeValues *bool, continuationToken string, timeout *int64) (result PagedPropertyInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPropertyInfoList", err.Error()) - } - - req, err := client.GetPropertyInfoListPreparer(ctx, nameID, includeValues, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetPropertyInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetPropertyInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoListPreparer prepares the GetPropertyInfoList request. -func (client BaseClient) GetPropertyInfoListPreparer(ctx context.Context, nameID string, includeValues *bool, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if includeValues != nil { - queryParameters["IncludeValues"] = autorest.Encode("query", *includeValues) - } else { - queryParameters["IncludeValues"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperties", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoListSender sends the GetPropertyInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPropertyInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoListResponder handles the response to the GetPropertyInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPropertyInfoListResponder(resp *http.Response) (result PagedPropertyInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoList gets a list of information about fabric code versions that are provisioned -// in the cluster. The parameter CodeVersion can be used to optionally filter the output to only that particular -// version. -// Parameters: -// codeVersion - the product version of Service Fabric. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Context, codeVersion string, timeout *int64) (result ListFabricCodeVersionInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", err.Error()) - } - - req, err := client.GetProvisionedFabricCodeVersionInfoListPreparer(ctx, codeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetProvisionedFabricCodeVersionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListPreparer prepares the GetProvisionedFabricCodeVersionInfoList request. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListPreparer(ctx context.Context, codeVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(codeVersion) > 0 { - queryParameters["CodeVersion"] = autorest.Encode("query", codeVersion) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetProvisionedCodeVersions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListSender sends the GetProvisionedFabricCodeVersionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListResponder handles the response to the GetProvisionedFabricCodeVersionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListResponder(resp *http.Response) (result ListFabricCodeVersionInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoList gets a list of information about fabric config versions that are -// provisioned in the cluster. The parameter ConfigVersion can be used to optionally filter the output to only that -// particular version. -// Parameters: -// configVersion - the config version of Service Fabric. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.Context, configVersion string, timeout *int64) (result ListFabricConfigVersionInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", err.Error()) - } - - req, err := client.GetProvisionedFabricConfigVersionInfoListPreparer(ctx, configVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetProvisionedFabricConfigVersionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListPreparer prepares the GetProvisionedFabricConfigVersionInfoList request. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListPreparer(ctx context.Context, configVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(configVersion) > 0 { - queryParameters["ConfigVersion"] = autorest.Encode("query", configVersion) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetProvisionedConfigVersions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListSender sends the GetProvisionedFabricConfigVersionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListResponder handles the response to the GetProvisionedFabricConfigVersionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListResponder(resp *http.Response) (result ListFabricConfigVersionInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgress gets the progress of a quorum loss operation started with StartQuorumLoss, using the provided -// OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionQuorumLossProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetQuorumLossProgress", err.Error()) - } - - req, err := client.GetQuorumLossProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetQuorumLossProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure sending request") - return - } - - result, err = client.GetQuorumLossProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressPreparer prepares the GetQuorumLossProgress request. -func (client BaseClient) GetQuorumLossProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressSender sends the GetQuorumLossProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetQuorumLossProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressResponder handles the response to the GetQuorumLossProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetQuorumLossProgressResponder(resp *http.Response) (result PartitionQuorumLossProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskList this API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// taskIDFilter - the repair task ID prefix to be matched. -// stateFilter - a bitwise-OR of the following values, specifying which task states should be included in the -// result list. -// - 1 - Created -// - 2 - Claimed -// - 4 - Preparing -// - 8 - Approved -// - 16 - Executing -// - 32 - Restoring -// - 64 - Completed -// executorFilter - the name of the repair executor whose claimed tasks should be included in the list. -func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter string, stateFilter *int32, executorFilter string) (result ListRepairTask, err error) { - req, err := client.GetRepairTaskListPreparer(ctx, taskIDFilter, stateFilter, executorFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", nil, "Failure preparing request") - return - } - - resp, err := client.GetRepairTaskListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure sending request") - return - } - - result, err = client.GetRepairTaskListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskListPreparer prepares the GetRepairTaskList request. -func (client BaseClient) GetRepairTaskListPreparer(ctx context.Context, taskIDFilter string, stateFilter *int32, executorFilter string) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(taskIDFilter) > 0 { - queryParameters["TaskIdFilter"] = autorest.Encode("query", taskIDFilter) - } - if stateFilter != nil { - queryParameters["StateFilter"] = autorest.Encode("query", *stateFilter) - } - if len(executorFilter) > 0 { - queryParameters["ExecutorFilter"] = autorest.Encode("query", executorFilter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetRepairTaskList"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskListSender sends the GetRepairTaskList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetRepairTaskListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskListResponder handles the response to the GetRepairTaskList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetRepairTaskListResponder(resp *http.Response) (result ListRepairTask, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealth gets the health of a Service Fabric replica. -// Use EventsHealthStateFilter to filter the collection of health events reported on the replica based on the health -// state. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, timeout *int64) (result ReplicaHealthModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaHealth", err.Error()) - } - - req, err := client.GetReplicaHealthPreparer(ctx, partitionID, replicaID, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthPreparer prepares the GetReplicaHealth request. -func (client BaseClient) GetReplicaHealthPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthSender sends the GetReplicaHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthResponder handles the response to the GetReplicaHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaHealthResponder(resp *http.Response) (result ReplicaHealthModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicy gets the health of a Service Fabric stateful service replica or stateless service -// instance. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Use ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. This API only -// uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while -// evaluating the health of the replica. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result ReplicaHealthModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", err.Error()) - } - - req, err := client.GetReplicaHealthUsingPolicyPreparer(ctx, partitionID, replicaID, eventsHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicyPreparer prepares the GetReplicaHealthUsingPolicy request. -func (client BaseClient) GetReplicaHealthUsingPolicyPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicySender sends the GetReplicaHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicyResponder handles the response to the GetReplicaHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaHealthUsingPolicyResponder(resp *http.Response) (result ReplicaHealthModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfo the respons include the id, role, status, health, node name, uptime, and other details about the -// replica. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UUID, replicaID string, continuationToken string, timeout *int64) (result ReplicaInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaInfo", err.Error()) - } - - req, err := client.GetReplicaInfoPreparer(ctx, partitionID, replicaID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoPreparer prepares the GetReplicaInfo request. -func (client BaseClient) GetReplicaInfoPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoSender sends the GetReplicaInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoResponder handles the response to the GetReplicaInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaInfoResponder(resp *http.Response) (result ReplicaInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoList the GetReplicas endpoint returns information about the replicas of the specified partition. The -// respons include the id, role, status, health, node name, uptime, and other details about the replica. -// Parameters: -// partitionID - the identity of the partition. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uuid.UUID, continuationToken string, timeout *int64) (result PagedReplicaInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaInfoList", err.Error()) - } - - req, err := client.GetReplicaInfoListPreparer(ctx, partitionID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListPreparer prepares the GetReplicaInfoList request. -func (client BaseClient) GetReplicaInfoListPreparer(ctx context.Context, partitionID uuid.UUID, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListSender sends the GetReplicaInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListResponder handles the response to the GetReplicaInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaInfoListResponder(resp *http.Response) (result PagedReplicaInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescription gets the description of an existing Service Fabric service. A service must be created before -// its description can be obtained. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID string, timeout *int64) (result ServiceDescriptionModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceDescription", err.Error()) - } - - req, err := client.GetServiceDescriptionPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceDescriptionSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure sending request") - return - } - - result, err = client.GetServiceDescriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionPreparer prepares the GetServiceDescription request. -func (client BaseClient) GetServiceDescriptionPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetDescription", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionSender sends the GetServiceDescription request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceDescriptionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionResponder handles the response to the GetServiceDescription request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceDescriptionResponder(resp *http.Response) (result ServiceDescriptionModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealth gets the health information of the specified service. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use PartitionsHealthStateFilter to filter the collection of partitions returned. -// If you specify a service that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// partitionsHealthStateFilter - allows filtering of the partitions health state objects returned in the result -// of service health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated -// health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of -// partitions with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result ServiceHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceHealth", err.Error()) - } - - req, err := client.GetServiceHealthPreparer(ctx, serviceID, eventsHealthStateFilter, partitionsHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure sending request") - return - } - - result, err = client.GetServiceHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthPreparer prepares the GetServiceHealth request. -func (client BaseClient) GetServiceHealthPreparer(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if partitionsHealthStateFilter != nil { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", *partitionsHealthStateFilter) - } else { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthSender sends the GetServiceHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthResponder handles the response to the GetServiceHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceHealthResponder(resp *http.Response) (result ServiceHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicy gets the health information of the specified service. -// If the application health policy is specified, the health evaluation uses it to get the aggregated health state. -// If the policy is not specified, the health evaluation uses the application health policy defined in the application -// manifest, or the default health policy, if no policy is defined in the manifest. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use PartitionsHealthStateFilter to filter the collection of partitions returned. -// If you specify a service that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// partitionsHealthStateFilter - allows filtering of the partitions health state objects returned in the result -// of service health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated -// health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of -// partitions with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (result ServiceHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceHealthUsingPolicy", err.Error()) - } - - req, err := client.GetServiceHealthUsingPolicyPreparer(ctx, serviceID, eventsHealthStateFilter, partitionsHealthStateFilter, applicationHealthPolicy, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetServiceHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicyPreparer prepares the GetServiceHealthUsingPolicy request. -func (client BaseClient) GetServiceHealthUsingPolicyPreparer(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if partitionsHealthStateFilter != nil { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", *partitionsHealthStateFilter) - } else { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicySender sends the GetServiceHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicyResponder handles the response to the GetServiceHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceHealthUsingPolicyResponder(resp *http.Response) (result ServiceHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfo returns the information about specified service belonging to the specified Service Fabric -// application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID string, serviceID string, timeout *int64) (result ServiceInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceInfo", err.Error()) - } - - req, err := client.GetServiceInfoPreparer(ctx, applicationID, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure sending request") - return - } - - result, err = client.GetServiceInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoPreparer prepares the GetServiceInfo request. -func (client BaseClient) GetServiceInfoPreparer(ctx context.Context, applicationID string, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/{serviceId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoSender sends the GetServiceInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoResponder handles the response to the GetServiceInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceInfoResponder(resp *http.Response) (result ServiceInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoList returns the information about all services belonging to the application specified by the -// application id. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// serviceTypeName - the service type name used to filter the services to query for. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID string, serviceTypeName string, continuationToken string, timeout *int64) (result PagedServiceInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceInfoList", err.Error()) - } - - req, err := client.GetServiceInfoListPreparer(ctx, applicationID, serviceTypeName, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetServiceInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListPreparer prepares the GetServiceInfoList request. -func (client BaseClient) GetServiceInfoListPreparer(ctx context.Context, applicationID string, serviceTypeName string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceTypeName) > 0 { - queryParameters["ServiceTypeName"] = autorest.Encode("query", serviceTypeName) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListSender sends the GetServiceInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListResponder handles the response to the GetServiceInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceInfoListResponder(resp *http.Response) (result PagedServiceInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifest gets the manifest describing a service type. The response contains the service manifest XML as a -// string. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceManifest(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string, timeout *int64) (result ServiceTypeManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceManifest", err.Error()) - } - - req, err := client.GetServiceManifestPreparer(ctx, applicationTypeName, applicationTypeVersion, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure sending request") - return - } - - result, err = client.GetServiceManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestPreparer prepares the GetServiceManifest request. -func (client BaseClient) GetServiceManifestPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - "ServiceManifestName": autorest.Encode("query", serviceManifestName), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestSender sends the GetServiceManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestResponder handles the response to the GetServiceManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceManifestResponder(resp *http.Response) (result ServiceTypeManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfo the GetServiceName endpoint returns the name of the service for the specified partition. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result ServiceNameInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceNameInfo", err.Error()) - } - - req, err := client.GetServiceNameInfoPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceNameInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure sending request") - return - } - - result, err = client.GetServiceNameInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoPreparer prepares the GetServiceNameInfo request. -func (client BaseClient) GetServiceNameInfoPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetServiceName", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoSender sends the GetServiceNameInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceNameInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoResponder handles the response to the GetServiceNameInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceNameInfoResponder(resp *http.Response) (result ServiceNameInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoList gets the list containing the information about service types that are supported by a -// provisioned application type in a Service Fabric cluster. The response includes the name of the service type, the -// name and version of the service manifest the type is defined in, kind (stateless or stateless) of the service type -// and other information about it. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (result ListServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceTypeInfoList", err.Error()) - } - - req, err := client.GetServiceTypeInfoListPreparer(ctx, applicationTypeName, applicationTypeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetServiceTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListPreparer prepares the GetServiceTypeInfoList request. -func (client BaseClient) GetServiceTypeInfoListPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListSender sends the GetServiceTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListResponder handles the response to the GetServiceTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceTypeInfoListResponder(resp *http.Response) (result ListServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoList enumerates all the Service Fabric names under a given name. If the subnames do not fit in a page, -// one page of results is returned as well as a continuation token which can be used to get the next page. Querying a -// name that doesn't exist will fail. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// recursive - allows specifying that the search performed should be recursive. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, recursive *bool, continuationToken string, timeout *int64) (result PagedSubNameInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetSubNameInfoList", err.Error()) - } - - req, err := client.GetSubNameInfoListPreparer(ctx, nameID, recursive, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetSubNameInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetSubNameInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoListPreparer prepares the GetSubNameInfoList request. -func (client BaseClient) GetSubNameInfoListPreparer(ctx context.Context, nameID string, recursive *bool, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if recursive != nil { - queryParameters["Recursive"] = autorest.Encode("query", *recursive) - } else { - queryParameters["Recursive"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetSubNames", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoListSender sends the GetSubNameInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetSubNameInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoListResponder handles the response to the GetSubNameInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetSubNameInfoListResponder(resp *http.Response) (result PagedSubNameInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommand for clusters that have one or more instances of the Infrastructure Service configured, -// this API provides a way to send infrastructure-specific commands to a particular -// instance of the Infrastructure Service. -// -// Available commands and their corresponding response formats vary depending upon -// the infrastructure on which the cluster is running. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// command - the text of the command to be invoked. The content of the command is infrastructure-specific. -// serviceID - the identity of the infrastructure service. This is the full name of the infrastructure service -// without the 'fabric:' URI scheme. This parameter required only for the cluster that have more than one -// instance of infrastructure service running. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, command string, serviceID string, timeout *int64) (result String, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "InvokeInfrastructureCommand", err.Error()) - } - - req, err := client.InvokeInfrastructureCommandPreparer(ctx, command, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", nil, "Failure preparing request") - return - } - - resp, err := client.InvokeInfrastructureCommandSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure sending request") - return - } - - result, err = client.InvokeInfrastructureCommandResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandPreparer prepares the InvokeInfrastructureCommand request. -func (client BaseClient) InvokeInfrastructureCommandPreparer(ctx context.Context, command string, serviceID string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Command": autorest.Encode("query", command), - } - if len(serviceID) > 0 { - queryParameters["ServiceId"] = autorest.Encode("query", serviceID) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/InvokeInfrastructureCommand"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandSender sends the InvokeInfrastructureCommand request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) InvokeInfrastructureCommandSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandResponder handles the response to the InvokeInfrastructureCommand request. The method always -// closes the http.Response Body. -func (client BaseClient) InvokeInfrastructureCommandResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQuery for clusters that have one or more instances of the Infrastructure Service configured, -// this API provides a way to send infrastructure-specific queries to a particular -// instance of the Infrastructure Service. -// -// Available commands and their corresponding response formats vary depending upon -// the infrastructure on which the cluster is running. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// command - the text of the command to be invoked. The content of the command is infrastructure-specific. -// serviceID - the identity of the infrastructure service. This is the full name of the infrastructure service -// without the 'fabric:' URI scheme. This parameter required only for the cluster that have more than one -// instance of infrastructure service running. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command string, serviceID string, timeout *int64) (result String, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "InvokeInfrastructureQuery", err.Error()) - } - - req, err := client.InvokeInfrastructureQueryPreparer(ctx, command, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", nil, "Failure preparing request") - return - } - - resp, err := client.InvokeInfrastructureQuerySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure sending request") - return - } - - result, err = client.InvokeInfrastructureQueryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQueryPreparer prepares the InvokeInfrastructureQuery request. -func (client BaseClient) InvokeInfrastructureQueryPreparer(ctx context.Context, command string, serviceID string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Command": autorest.Encode("query", command), - } - if len(serviceID) > 0 { - queryParameters["ServiceId"] = autorest.Encode("query", serviceID) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/InvokeInfrastructureQuery"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQuerySender sends the InvokeInfrastructureQuery request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) InvokeInfrastructureQuerySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQueryResponder handles the response to the InvokeInfrastructureQuery request. The method always -// closes the http.Response Body. -func (client BaseClient) InvokeInfrastructureQueryResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationType provisions or registers a Service Fabric application type with the cluster. This is -// required before any new applications can be instantiated. -// Parameters: -// applicationTypeImageStorePath - the relative path for the application package in the image store specified -// during the prior copy operation. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ProvisionApplicationType(ctx context.Context, applicationTypeImageStorePath ApplicationTypeImageStorePath, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationTypeImageStorePath, - Constraints: []validation.Constraint{{Target: "applicationTypeImageStorePath.ApplicationTypeBuildPath", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ProvisionApplicationType", err.Error()) - } - - req, err := client.ProvisionApplicationTypePreparer(ctx, applicationTypeImageStorePath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", nil, "Failure preparing request") - return - } - - resp, err := client.ProvisionApplicationTypeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure sending request") - return - } - - result, err = client.ProvisionApplicationTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypePreparer prepares the ProvisionApplicationType request. -func (client BaseClient) ProvisionApplicationTypePreparer(ctx context.Context, applicationTypeImageStorePath ApplicationTypeImageStorePath, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes/$/Provision"), - autorest.WithJSON(applicationTypeImageStorePath), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeSender sends the ProvisionApplicationType request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ProvisionApplicationTypeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeResponder handles the response to the ProvisionApplicationType request. The method always -// closes the http.Response Body. -func (client BaseClient) ProvisionApplicationTypeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionCluster validate and provision the code or configuration packages of a Service Fabric cluster. -// Parameters: -// provisionFabricDescription - describes the parameters for provisioning a cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDescription ProvisionFabricDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ProvisionCluster", err.Error()) - } - - req, err := client.ProvisionClusterPreparer(ctx, provisionFabricDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", nil, "Failure preparing request") - return - } - - resp, err := client.ProvisionClusterSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure sending request") - return - } - - result, err = client.ProvisionClusterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionClusterPreparer prepares the ProvisionCluster request. -func (client BaseClient) ProvisionClusterPreparer(ctx context.Context, provisionFabricDescription ProvisionFabricDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Provision"), - autorest.WithJSON(provisionFabricDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionClusterSender sends the ProvisionCluster request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ProvisionClusterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionClusterResponder handles the response to the ProvisionCluster request. The method always -// closes the http.Response Body. -func (client BaseClient) ProvisionClusterResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutProperty creates or updates the specified Service Fabric property under a given name. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyDescription - describes the Service Fabric property to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) PutProperty(ctx context.Context, nameID string, propertyDescription PropertyDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: propertyDescription, - Constraints: []validation.Constraint{{Target: "propertyDescription.PropertyName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "propertyDescription.Value", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "PutProperty", err.Error()) - } - - req, err := client.PutPropertyPreparer(ctx, nameID, propertyDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", nil, "Failure preparing request") - return - } - - resp, err := client.PutPropertySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure sending request") - return - } - - result, err = client.PutPropertyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertyPreparer prepares the PutProperty request. -func (client BaseClient) PutPropertyPreparer(ctx context.Context, nameID string, propertyDescription PropertyDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperty", pathParameters), - autorest.WithJSON(propertyDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertySender sends the PutProperty request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) PutPropertySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertyResponder handles the response to the PutProperty request. The method always -// closes the http.Response Body. -func (client BaseClient) PutPropertyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitions indicates to the Service Fabric cluster that it should attempt to recover any services -// (including system services) which are currently stuck in quorum loss. This operation should only be performed if it -// is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data -// loss. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverAllPartitions", err.Error()) - } - - req, err := client.RecoverAllPartitionsPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverAllPartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverAllPartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsPreparer prepares the RecoverAllPartitions request. -func (client BaseClient) RecoverAllPartitionsPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RecoverAllPartitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsSender sends the RecoverAllPartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverAllPartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsResponder handles the response to the RecoverAllPartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverAllPartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartition indicates to the Service Fabric cluster that it should attempt to recover a specific partition -// which is currently stuck in quorum loss. This operation should only be performed if it is known that the replicas -// that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverPartition", err.Error()) - } - - req, err := client.RecoverPartitionPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverPartitionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure sending request") - return - } - - result, err = client.RecoverPartitionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionPreparer prepares the RecoverPartition request. -func (client BaseClient) RecoverPartitionPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionSender sends the RecoverPartition request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverPartitionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionResponder handles the response to the RecoverPartition request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverPartitionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitions indicates to the Service Fabric cluster that it should attempt to recover the specified -// service which is currently stuck in quorum loss. This operation should only be performed if it is known that the -// replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverServicePartitions", err.Error()) - } - - req, err := client.RecoverServicePartitionsPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverServicePartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverServicePartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsPreparer prepares the RecoverServicePartitions request. -func (client BaseClient) RecoverServicePartitionsPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/$/{serviceId}/$/GetPartitions/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsSender sends the RecoverServicePartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverServicePartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsResponder handles the response to the RecoverServicePartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverServicePartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitions indicates to the Service Fabric cluster that it should attempt to recover the system -// services which are currently stuck in quorum loss. This operation should only be performed if it is known that the -// replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverSystemPartitions", err.Error()) - } - - req, err := client.RecoverSystemPartitionsPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverSystemPartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverSystemPartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsPreparer prepares the RecoverSystemPartitions request. -func (client BaseClient) RecoverSystemPartitionsPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RecoverSystemPartitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsSender sends the RecoverSystemPartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverSystemPartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsResponder handles the response to the RecoverSystemPartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverSystemPartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeployment deletes an existing Service Fabric compose deployment. -// Parameters: -// deploymentName - the identity of the deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deploymentName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveComposeDeployment", err.Error()) - } - - req, err := client.RemoveComposeDeploymentPreparer(ctx, deploymentName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveComposeDeploymentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure sending request") - return - } - - result, err = client.RemoveComposeDeploymentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeploymentPreparer prepares the RemoveComposeDeployment request. -func (client BaseClient) RemoveComposeDeploymentPreparer(ctx context.Context, deploymentName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeploymentSender sends the RemoveComposeDeployment request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveComposeDeploymentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeploymentResponder handles the response to the RemoveComposeDeployment request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveComposeDeploymentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeState notifies Service Fabric that the persisted state on a node has been permanently removed or lost. -// This implies that it is not possible to recover the persisted state of that node. This generally happens if a hard -// disk has been wiped clean, or if a hard disk crashes. The node has to be down for this operation to be successful. -// This operation lets Service Fabric know that the replicas on that node no longer exist, and that Service Fabric -// should stop waiting for those replicas to come back up. Do not run this cmdlet if the state on the node has not been -// removed and the node can comes back up with its state intact. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveNodeState", err.Error()) - } - - req, err := client.RemoveNodeStatePreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveNodeStateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure sending request") - return - } - - result, err = client.RemoveNodeStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStatePreparer prepares the RemoveNodeState request. -func (client BaseClient) RemoveNodeStatePreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/RemoveNodeState", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStateSender sends the RemoveNodeState request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveNodeStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStateResponder handles the response to the RemoveNodeState request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveNodeStateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplica this API simulates a Service Fabric replica failure by removing a replica from a Service Fabric -// cluster. The removal closes the replica, transitions the replica to the role None, and then removes all of the state -// information of the replica from the cluster. This API tests the replica state removal path, and simulates the report -// fault permanent path through client APIs. Warning - There are no safety checks performed when this API is used. -// Incorrect use of this API can lead to data loss for stateful services.In addition, the forceRemove flag impacts all -// other replicas hosted in the same process. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveReplica", err.Error()) - } - - req, err := client.RemoveReplicaPreparer(ctx, nodeName, partitionID, replicaID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveReplicaSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure sending request") - return - } - - result, err = client.RemoveReplicaResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaPreparer prepares the RemoveReplica request. -func (client BaseClient) RemoveReplicaPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaSender sends the RemoveReplica request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveReplicaSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaResponder handles the response to the RemoveReplica request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveReplicaResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealth reports health state of the specified Service Fabric application. The report must contain -// the information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Application, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get application health and check that the report appears -// in the HealthEvents section. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportApplicationHealth", err.Error()) - } - - req, err := client.ReportApplicationHealthPreparer(ctx, applicationID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportApplicationHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthPreparer prepares the ReportApplicationHealth request. -func (client BaseClient) ReportApplicationHealthPreparer(ctx context.Context, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthSender sends the ReportApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthResponder handles the response to the ReportApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportApplicationHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealth sends a health report on a Service Fabric cluster. The report must contain the information about -// the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway node, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetClusterHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportClusterHealth", err.Error()) - } - - req, err := client.ReportClusterHealthPreparer(ctx, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportClusterHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportClusterHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthPreparer prepares the ReportClusterHealth request. -func (client BaseClient) ReportClusterHealthPreparer(ctx context.Context, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/ReportClusterHealth"), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthSender sends the ReportClusterHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportClusterHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthResponder handles the response to the ReportClusterHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportClusterHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealth reports health state of the application deployed on a Service Fabric node. The -// report must contain the information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get deployed application health and check that the report -// appears in the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, nodeName string, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportDeployedApplicationHealth", err.Error()) - } - - req, err := client.ReportDeployedApplicationHealthPreparer(ctx, nodeName, applicationID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportDeployedApplicationHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportDeployedApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthPreparer prepares the ReportDeployedApplicationHealth request. -func (client BaseClient) ReportDeployedApplicationHealthPreparer(ctx context.Context, nodeName string, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthSender sends the ReportDeployedApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportDeployedApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthResponder handles the response to the ReportDeployedApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportDeployedApplicationHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealth reports health state of the service package of the application deployed on a -// Service Fabric node. The report must contain the information about the source of the health report and property on -// which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get deployed service package health and check that the -// report appears in the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, nodeName string, applicationID string, servicePackageName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportDeployedServicePackageHealth", err.Error()) - } - - req, err := client.ReportDeployedServicePackageHealthPreparer(ctx, nodeName, applicationID, servicePackageName, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportDeployedServicePackageHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportDeployedServicePackageHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthPreparer prepares the ReportDeployedServicePackageHealth request. -func (client BaseClient) ReportDeployedServicePackageHealthPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthSender sends the ReportDeployedServicePackageHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportDeployedServicePackageHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthResponder handles the response to the ReportDeployedServicePackageHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportDeployedServicePackageHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealth reports health state of the specified Service Fabric node. The report must contain the information -// about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway node, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetNodeHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportNodeHealth", err.Error()) - } - - req, err := client.ReportNodeHealthPreparer(ctx, nodeName, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportNodeHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportNodeHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthPreparer prepares the ReportNodeHealth request. -func (client BaseClient) ReportNodeHealthPreparer(ctx context.Context, nodeName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthSender sends the ReportNodeHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportNodeHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthResponder handles the response to the ReportNodeHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportNodeHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealth reports health state of the specified Service Fabric partition. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Partition, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetPartitionHealth and check that the report appears -// in the HealthEvents section. -// Parameters: -// partitionID - the identity of the partition. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID uuid.UUID, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportPartitionHealth", err.Error()) - } - - req, err := client.ReportPartitionHealthPreparer(ctx, partitionID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportPartitionHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportPartitionHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthPreparer prepares the ReportPartitionHealth request. -func (client BaseClient) ReportPartitionHealthPreparer(ctx context.Context, partitionID uuid.UUID, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthSender sends the ReportPartitionHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportPartitionHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthResponder handles the response to the ReportPartitionHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportPartitionHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealth reports health state of the specified Service Fabric replica. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Replica, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetReplicaHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// serviceKind - the kind of service replica (Stateless or Stateful) for which the health is being reported. -// Following are the possible values. -// - Stateless - Does not use Service Fabric to make its state highly available or reliable. The value is 1 -// - Stateful - Uses Service Fabric to make its state or part of its state highly available and reliable. The -// value is 2. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uuid.UUID, replicaID string, serviceKind string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportReplicaHealth", err.Error()) - } - - req, err := client.ReportReplicaHealthPreparer(ctx, partitionID, replicaID, serviceKind, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportReplicaHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportReplicaHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthPreparer prepares the ReportReplicaHealth request. -func (client BaseClient) ReportReplicaHealthPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, serviceKind string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ServiceKind": autorest.Encode("query", serviceKind), - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthSender sends the ReportReplicaHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportReplicaHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthResponder handles the response to the ReportReplicaHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportReplicaHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealth reports health state of the specified Service Fabric service. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetServiceHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportServiceHealth", err.Error()) - } - - req, err := client.ReportServiceHealthPreparer(ctx, serviceID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportServiceHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportServiceHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthPreparer prepares the ReportServiceHealth request. -func (client BaseClient) ReportServiceHealthPreparer(ctx context.Context, serviceID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthSender sends the ReportServiceHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportServiceHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthResponder handles the response to the ReportServiceHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportServiceHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoad resets the current load of a Service Fabric partition to the default load for the service. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResetPartitionLoad", err.Error()) - } - - req, err := client.ResetPartitionLoadPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", nil, "Failure preparing request") - return - } - - resp, err := client.ResetPartitionLoadSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure sending request") - return - } - - result, err = client.ResetPartitionLoadResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadPreparer prepares the ResetPartitionLoad request. -func (client BaseClient) ResetPartitionLoadPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ResetLoad", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadSender sends the ResetPartitionLoad request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResetPartitionLoadSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadResponder handles the response to the ResetPartitionLoad request. The method always -// closes the http.Response Body. -func (client BaseClient) ResetPartitionLoadResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveService resolve a Service Fabric service partition, to get the endpoints of the service replicas. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionKeyType - key type for the partition. This parameter is required if the partition scheme for the -// service is Int64Range or Named. The possible values are following. -// - None (1) - Indicates that the the PartitionKeyValue parameter is not specified. This is valid for the -// partitions with partitioning scheme as Singleton. This is the default value. The value is 1. -// - Int64Range (2) - Indicates that the the PartitionKeyValue parameter is an int64 partition key. This is -// valid for the partitions with partitioning scheme as Int64Range. The value is 2. -// - Named (3) - Indicates that the the PartitionKeyValue parameter is a name of the partition. This is valid -// for the partitions with partitioning scheme as Named. The value is 3. -// partitionKeyValue - partition key. This is required if the partition scheme for the service is Int64Range or -// Named. -// previousRspVersion - the value in the Version field of the response that was received previously. This is -// required if the user knows that the result that was got previously is stale. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResolveService(ctx context.Context, serviceID string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string, timeout *int64) (result ResolvedServicePartition, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResolveService", err.Error()) - } - - req, err := client.ResolveServicePreparer(ctx, serviceID, partitionKeyType, partitionKeyValue, previousRspVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", nil, "Failure preparing request") - return - } - - resp, err := client.ResolveServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure sending request") - return - } - - result, err = client.ResolveServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServicePreparer prepares the ResolveService request. -func (client BaseClient) ResolveServicePreparer(ctx context.Context, serviceID string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if partitionKeyType != nil { - queryParameters["PartitionKeyType"] = autorest.Encode("query", *partitionKeyType) - } - if len(partitionKeyValue) > 0 { - queryParameters["PartitionKeyValue"] = partitionKeyValue - } - if len(previousRspVersion) > 0 { - queryParameters["PreviousRspVersion"] = previousRspVersion - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/ResolvePartition", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServiceSender sends the ResolveService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResolveServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServiceResponder handles the response to the ResolveService request. The method always -// closes the http.Response Body. -func (client BaseClient) ResolveServiceResponder(resp *http.Response) (result ResolvedServicePartition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackage restarts a code package deployed on a Service Fabric node in a cluster. This aborts the -// code package process, which will restart all the user service replicas hosted in that process. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// restartDeployedCodePackageDescription - describes the deployed code package on Service Fabric node to -// restart. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeName string, applicationID string, restartDeployedCodePackageDescription RestartDeployedCodePackageDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: restartDeployedCodePackageDescription, - Constraints: []validation.Constraint{{Target: "restartDeployedCodePackageDescription.ServiceManifestName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "restartDeployedCodePackageDescription.CodePackageName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "restartDeployedCodePackageDescription.CodePackageInstanceID", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartDeployedCodePackage", err.Error()) - } - - req, err := client.RestartDeployedCodePackagePreparer(ctx, nodeName, applicationID, restartDeployedCodePackageDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", nil, "Failure preparing request") - return - } - - resp, err := client.RestartDeployedCodePackageSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure sending request") - return - } - - result, err = client.RestartDeployedCodePackageResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackagePreparer prepares the RestartDeployedCodePackage request. -func (client BaseClient) RestartDeployedCodePackagePreparer(ctx context.Context, nodeName string, applicationID string, restartDeployedCodePackageDescription RestartDeployedCodePackageDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart", pathParameters), - autorest.WithJSON(restartDeployedCodePackageDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageSender sends the RestartDeployedCodePackage request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartDeployedCodePackageSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageResponder handles the response to the RestartDeployedCodePackage request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartDeployedCodePackageResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNode restarts a Service Fabric cluster node that is already started. -// Parameters: -// nodeName - the name of the node. -// restartNodeDescription - the instance of the node to be restarted and a flag indicating the need to take -// dump of the fabric process. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartNode(ctx context.Context, nodeName string, restartNodeDescription RestartNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: restartNodeDescription, - Constraints: []validation.Constraint{{Target: "restartNodeDescription.NodeInstanceID", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartNode", err.Error()) - } - - req, err := client.RestartNodePreparer(ctx, nodeName, restartNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", nil, "Failure preparing request") - return - } - - resp, err := client.RestartNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure sending request") - return - } - - result, err = client.RestartNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodePreparer prepares the RestartNode request. -func (client BaseClient) RestartNodePreparer(ctx context.Context, nodeName string, restartNodeDescription RestartNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Restart", pathParameters), - autorest.WithJSON(restartNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeSender sends the RestartNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeResponder handles the response to the RestartNode request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplica restarts a service replica of a persisted service running on a node. Warning - There are no safety -// checks performed when this API is used. Incorrect use of this API can lead to availability loss for stateful -// services. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartReplica", err.Error()) - } - - req, err := client.RestartReplicaPreparer(ctx, nodeName, partitionID, replicaID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", nil, "Failure preparing request") - return - } - - resp, err := client.RestartReplicaSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure sending request") - return - } - - result, err = client.RestartReplicaResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaPreparer prepares the RestartReplica request. -func (client BaseClient) RestartReplicaPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaSender sends the RestartReplica request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartReplicaSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaResponder handles the response to the RestartReplica request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartReplicaResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgrade resumes an unmonitored manual Service Fabric application upgrade. Service Fabric upgrades -// one upgrade domain at a time. For unmonitored manual upgrades, after Service Fabric finishes an upgrade domain, it -// waits for you to call this API before proceeding to the next upgrade domain. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// resumeApplicationUpgradeDescription - describes the parameters for resuming an application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicationID string, resumeApplicationUpgradeDescription ResumeApplicationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: resumeApplicationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "resumeApplicationUpgradeDescription.UpgradeDomainName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResumeApplicationUpgrade", err.Error()) - } - - req, err := client.ResumeApplicationUpgradePreparer(ctx, applicationID, resumeApplicationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.ResumeApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.ResumeApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradePreparer prepares the ResumeApplicationUpgrade request. -func (client BaseClient) ResumeApplicationUpgradePreparer(ctx context.Context, applicationID string, resumeApplicationUpgradeDescription ResumeApplicationUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/MoveToNextUpgradeDomain", pathParameters), - autorest.WithJSON(resumeApplicationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeSender sends the ResumeApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResumeApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeResponder handles the response to the ResumeApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) ResumeApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgrade make the cluster upgrade move on to the next upgrade domain. -// Parameters: -// resumeClusterUpgradeDescription - describes the parameters for resuming a cluster upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeClusterUpgradeDescription ResumeClusterUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: resumeClusterUpgradeDescription, - Constraints: []validation.Constraint{{Target: "resumeClusterUpgradeDescription.UpgradeDomain", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResumeClusterUpgrade", err.Error()) - } - - req, err := client.ResumeClusterUpgradePreparer(ctx, resumeClusterUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.ResumeClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.ResumeClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradePreparer prepares the ResumeClusterUpgrade request. -func (client BaseClient) ResumeClusterUpgradePreparer(ctx context.Context, resumeClusterUpgradeDescription ResumeClusterUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/MoveToNextUpgradeDomain"), - autorest.WithJSON(resumeClusterUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradeSender sends the ResumeClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResumeClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradeResponder handles the response to the ResumeClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) ResumeClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgrade starts rolling back the current application upgrade to the previous version. This API can -// only be used to rollback the current in-progress upgrade that is rolling forward to new version. If the application -// is not currently being upgraded use StartApplicationUpgrade API to upgrade it to desired version including rolling -// back to a previous version. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applicationID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RollbackApplicationUpgrade", err.Error()) - } - - req, err := client.RollbackApplicationUpgradePreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.RollbackApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.RollbackApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradePreparer prepares the RollbackApplicationUpgrade request. -func (client BaseClient) RollbackApplicationUpgradePreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/RollbackUpgrade", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradeSender sends the RollbackApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RollbackApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradeResponder handles the response to the RollbackApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) RollbackApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgrade rollback the upgrade of a Service Fabric cluster. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RollbackClusterUpgrade", err.Error()) - } - - req, err := client.RollbackClusterUpgradePreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.RollbackClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.RollbackClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgradePreparer prepares the RollbackClusterUpgrade request. -func (client BaseClient) RollbackClusterUpgradePreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RollbackUpgrade"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgradeSender sends the RollbackClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RollbackClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgradeResponder handles the response to the RollbackClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) RollbackClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgrade validates the supplied application upgrade parameters and starts upgrading the application -// if the parameters are valid. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// applicationUpgradeDescription - parameters for an application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicationID string, applicationUpgradeDescription ApplicationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "applicationUpgradeDescription.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationUpgradeDescription.TargetApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationUpgradeDescription.Parameters", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartApplicationUpgrade", err.Error()) - } - - req, err := client.StartApplicationUpgradePreparer(ctx, applicationID, applicationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradePreparer prepares the StartApplicationUpgrade request. -func (client BaseClient) StartApplicationUpgradePreparer(ctx context.Context, applicationID string, applicationUpgradeDescription ApplicationUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/Upgrade", pathParameters), - autorest.WithJSON(applicationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradeSender sends the StartApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradeResponder handles the response to the StartApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaos if Chaos is not already running in the cluster, it starts Chaos with the passed in Chaos parameters. -// If Chaos is already running when this call is made, the call fails with the error code -// FABRIC_E_CHAOS_ALREADY_RUNNING. -// Please refer to the article [Induce controlled Chaos in Service Fabric -// clusters](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-controlled-chaos) for more details. -// Parameters: -// chaosParameters - describes all the parameters to configure a Chaos run. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosParameters, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: chaosParameters, - Constraints: []validation.Constraint{{Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.MaxConcurrentFaults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.MaxConcurrentFaults", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.MaxConcurrentFaults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartChaos", err.Error()) - } - - req, err := client.StartChaosPreparer(ctx, chaosParameters, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", nil, "Failure preparing request") - return - } - - resp, err := client.StartChaosSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure sending request") - return - } - - result, err = client.StartChaosResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosPreparer prepares the StartChaos request. -func (client BaseClient) StartChaosPreparer(ctx context.Context, chaosParameters ChaosParameters, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Start"), - autorest.WithJSON(chaosParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosSender sends the StartChaos request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartChaosSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosResponder handles the response to the StartChaos request. The method always -// closes the http.Response Body. -func (client BaseClient) StartChaosResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgrade validate the supplied configuration upgrade parameters and start upgrading the -// cluster configuration if the parameters are valid. -// Parameters: -// clusterConfigurationUpgradeDescription - parameters for a standalone cluster configuration upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, clusterConfigurationUpgradeDescription ClusterConfigurationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: clusterConfigurationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "clusterConfigurationUpgradeDescription.ClusterConfig", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartClusterConfigurationUpgrade", err.Error()) - } - - req, err := client.StartClusterConfigurationUpgradePreparer(ctx, clusterConfigurationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartClusterConfigurationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartClusterConfigurationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgradePreparer prepares the StartClusterConfigurationUpgrade request. -func (client BaseClient) StartClusterConfigurationUpgradePreparer(ctx context.Context, clusterConfigurationUpgradeDescription ClusterConfigurationUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/StartClusterConfigurationUpgrade"), - autorest.WithJSON(clusterConfigurationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgradeSender sends the StartClusterConfigurationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartClusterConfigurationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgradeResponder handles the response to the StartClusterConfigurationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartClusterConfigurationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgrade validate the supplied upgrade parameters and start upgrading the code or configuration version -// of a Service Fabric cluster if the parameters are valid. -// Parameters: -// startClusterUpgradeDescription - describes the parameters for starting a cluster upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUpgradeDescription StartClusterUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: startClusterUpgradeDescription, - Constraints: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartClusterUpgrade", err.Error()) - } - - req, err := client.StartClusterUpgradePreparer(ctx, startClusterUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradePreparer prepares the StartClusterUpgrade request. -func (client BaseClient) StartClusterUpgradePreparer(ctx context.Context, startClusterUpgradeDescription StartClusterUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Upgrade"), - autorest.WithJSON(startClusterUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradeSender sends the StartClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradeResponder handles the response to the StartClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgrade validates the supplied upgrade parameters and starts upgrading the deployment if the -// parameters are valid. -// Parameters: -// deploymentName - the identity of the deployment. -// composeDeploymentUpgradeDescription - parameters for upgrading compose deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, deploymentName string, composeDeploymentUpgradeDescription ComposeDeploymentUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: composeDeploymentUpgradeDescription, - Constraints: []validation.Constraint{{Target: "composeDeploymentUpgradeDescription.DeploymentName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "composeDeploymentUpgradeDescription.ComposeFileContent", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartComposeDeploymentUpgrade", err.Error()) - } - - req, err := client.StartComposeDeploymentUpgradePreparer(ctx, deploymentName, composeDeploymentUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartComposeDeploymentUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartComposeDeploymentUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgradePreparer prepares the StartComposeDeploymentUpgrade request. -func (client BaseClient) StartComposeDeploymentUpgradePreparer(ctx context.Context, deploymentName string, composeDeploymentUpgradeDescription ComposeDeploymentUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}/$/Upgrade", pathParameters), - autorest.WithJSON(composeDeploymentUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgradeSender sends the StartComposeDeploymentUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartComposeDeploymentUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgradeResponder handles the response to the StartComposeDeploymentUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartComposeDeploymentUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLoss this API will induce data loss for the specified partition. It will trigger a call to the OnDataLoss -// API of the partition. -// Actual data loss will depend on the specified DataLossMode -// PartialDataLoss - Only a quorum of replicas are removed and OnDataLoss is triggered for the partition but actual -// data loss depends on the presence of in-flight replication. -// FullDataLoss - All replicas are removed hence all data is lost and OnDataLoss is triggered. -// -// This API should only be called with a stateful service as the target. -// -// Calling this API with a system service as the target is not advised. -// -// Note: Once this API has been called, it cannot be reversed. Calling CancelOperation will only stop execution and -// clean up internal system state. -// It will not restore data if the command has progressed far enough to cause data loss. -// -// Call the GetDataLossProgress API with the same OperationId to return information on the operation started with this -// API. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// dataLossMode - this enum is passed to the StartDataLoss API to indicate what type of data loss to induce. -// - Invalid - Reserved. Do not pass into API. -// - PartialDataLoss - PartialDataLoss option will cause a quorum of replicas to go down, triggering an -// OnDataLoss event in the system for the given partition. -// - FullDataLoss - FullDataLoss option will drop all the replicas which means that all the data will be lost. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, dataLossMode string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartDataLoss", err.Error()) - } - - req, err := client.StartDataLossPreparer(ctx, serviceID, partitionID, operationID, dataLossMode, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", nil, "Failure preparing request") - return - } - - resp, err := client.StartDataLossSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure sending request") - return - } - - result, err = client.StartDataLossResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossPreparer prepares the StartDataLoss request. -func (client BaseClient) StartDataLossPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, dataLossMode string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "DataLossMode": autorest.Encode("query", dataLossMode), - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossSender sends the StartDataLoss request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartDataLossSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossResponder handles the response to the StartDataLoss request. The method always -// closes the http.Response Body. -func (client BaseClient) StartDataLossResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransition starts or stops a cluster node. A cluster node is a process, not the OS instance itself. To -// start a node, pass in "Start" for the NodeTransitionType parameter. -// To stop a node, pass in "Stop" for the NodeTransitionType parameter. This API starts the operation - when the API -// returns the node may not have finished transitioning yet. -// Call GetNodeTransitionProgress with the same OperationId to get the progress of the operation. -// Parameters: -// nodeName - the name of the node. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// nodeTransitionType - indicates the type of transition to perform. NodeTransitionType.Start will start a -// stopped node. NodeTransitionType.Stop will stop a node that is up. -// - Invalid - Reserved. Do not pass into API. -// - Start - Transition a stopped node to up. -// - Stop - Transition an up node to stopped. -// nodeInstanceID - the node instance ID of the target node. This can be determined through GetNodeInfo API. -// stopDurationInSeconds - the duration, in seconds, to keep the node stopped. The minimum value is 600, the -// maximum is 14400. After this time expires, the node will automatically come back up. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName string, operationID uuid.UUID, nodeTransitionType string, nodeInstanceID string, stopDurationInSeconds int32, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: stopDurationInSeconds, - Constraints: []validation.Constraint{{Target: "stopDurationInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartNodeTransition", err.Error()) - } - - req, err := client.StartNodeTransitionPreparer(ctx, nodeName, operationID, nodeTransitionType, nodeInstanceID, stopDurationInSeconds, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", nil, "Failure preparing request") - return - } - - resp, err := client.StartNodeTransitionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure sending request") - return - } - - result, err = client.StartNodeTransitionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionPreparer prepares the StartNodeTransition request. -func (client BaseClient) StartNodeTransitionPreparer(ctx context.Context, nodeName string, operationID uuid.UUID, nodeTransitionType string, nodeInstanceID string, stopDurationInSeconds int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "NodeInstanceId": autorest.Encode("query", nodeInstanceID), - "NodeTransitionType": autorest.Encode("query", nodeTransitionType), - "OperationId": autorest.Encode("query", operationID), - "StopDurationInSeconds": autorest.Encode("query", stopDurationInSeconds), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Nodes/{nodeName}/$/StartTransition/", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionSender sends the StartNodeTransition request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartNodeTransitionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionResponder handles the response to the StartNodeTransition request. The method always -// closes the http.Response Body. -func (client BaseClient) StartNodeTransitionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestart this API is useful for testing failover. -// -// If used to target a stateless service partition, RestartPartitionMode must be AllReplicasOrInstances. -// -// Call the GetPartitionRestartProgress API using the same OperationId to get the progress. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// restartPartitionMode - - Invalid - Reserved. Do not pass into API. -// - AllReplicasOrInstances - All replicas or instances in the partition are restarted at once. -// - OnlyActiveSecondaries - Only the secondary replicas are restarted. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, restartPartitionMode string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartPartitionRestart", err.Error()) - } - - req, err := client.StartPartitionRestartPreparer(ctx, serviceID, partitionID, operationID, restartPartitionMode, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", nil, "Failure preparing request") - return - } - - resp, err := client.StartPartitionRestartSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure sending request") - return - } - - result, err = client.StartPartitionRestartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartPreparer prepares the StartPartitionRestart request. -func (client BaseClient) StartPartitionRestartPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, restartPartitionMode string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - "RestartPartitionMode": autorest.Encode("query", restartPartitionMode), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartSender sends the StartPartitionRestart request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartPartitionRestartSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartResponder handles the response to the StartPartitionRestart request. The method always -// closes the http.Response Body. -func (client BaseClient) StartPartitionRestartResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLoss induces quorum loss for a given stateful service partition. This API is useful for a temporary -// quorum loss situation on your service. -// -// Call the GetQuorumLossProgress API with the same OperationId to return information on the operation started with -// this API. -// -// This can only be called on stateful persisted (HasPersistedState==true) services. Do not use this API on stateless -// services or stateful in-memory only services. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// quorumLossMode - this enum is passed to the StartQuorumLoss API to indicate what type of quorum loss to -// induce. -// - Invalid - Reserved. Do not pass into API. -// - QuorumReplicas - Partial Quorum loss mode : Minimum number of replicas for a partition will be down that -// will cause a quorum loss. -// - AllReplicas- Full Quorum loss mode : All replicas for a partition will be down that will cause a quorum -// loss. -// quorumLossDuration - the amount of time for which the partition will be kept in quorum loss. This must be -// specified in seconds. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, quorumLossMode string, quorumLossDuration int32, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartQuorumLoss", err.Error()) - } - - req, err := client.StartQuorumLossPreparer(ctx, serviceID, partitionID, operationID, quorumLossMode, quorumLossDuration, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", nil, "Failure preparing request") - return - } - - resp, err := client.StartQuorumLossSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure sending request") - return - } - - result, err = client.StartQuorumLossResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossPreparer prepares the StartQuorumLoss request. -func (client BaseClient) StartQuorumLossPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, quorumLossMode string, quorumLossDuration int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - "QuorumLossDuration": autorest.Encode("query", quorumLossDuration), - "QuorumLossMode": autorest.Encode("query", quorumLossMode), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossSender sends the StartQuorumLoss request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartQuorumLossSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossResponder handles the response to the StartQuorumLoss request. The method always -// closes the http.Response Body. -func (client BaseClient) StartQuorumLossResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaos stops Chaos from scheduling further faults; but, the in-flight faults are not affected. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StopChaos", err.Error()) - } - - req, err := client.StopChaosPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", nil, "Failure preparing request") - return - } - - resp, err := client.StopChaosSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure sending request") - return - } - - result, err = client.StopChaosResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosPreparer prepares the StopChaos request. -func (client BaseClient) StopChaosPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Stop"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosSender sends the StopChaos request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StopChaosSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosResponder handles the response to the StopChaos request. The method always -// closes the http.Response Body. -func (client BaseClient) StopChaosResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatch submits a batch of property operations. Either all or none of the operations will be committed. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyBatchDescriptionList - describes the property batch operations to be submitted. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, propertyBatchDescriptionList PropertyBatchDescriptionList, timeout *int64) (result PropertyBatchInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "SubmitPropertyBatch", err.Error()) - } - - req, err := client.SubmitPropertyBatchPreparer(ctx, nameID, propertyBatchDescriptionList, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", nil, "Failure preparing request") - return - } - - resp, err := client.SubmitPropertyBatchSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure sending request") - return - } - - result, err = client.SubmitPropertyBatchResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatchPreparer prepares the SubmitPropertyBatch request. -func (client BaseClient) SubmitPropertyBatchPreparer(ctx context.Context, nameID string, propertyBatchDescriptionList PropertyBatchDescriptionList, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperties/$/SubmitBatch", pathParameters), - autorest.WithJSON(propertyBatchDescriptionList), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatchSender sends the SubmitPropertyBatch request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) SubmitPropertyBatchSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatchResponder handles the response to the SubmitPropertyBatch request. The method always -// closes the http.Response Body. -func (client BaseClient) SubmitPropertyBatchResponder(resp *http.Response) (result PropertyBatchInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusConflict), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationType removes or unregisters a Service Fabric application type from the cluster. This operation -// can only be performed if all application instance of the application type has been deleted. Once the application -// type is unregistered, no new application instance can be created for this particular application type. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeImageStoreVersion - the version of the application type in the image store. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applicationTypeName string, applicationTypeImageStoreVersion ApplicationTypeImageStoreVersion, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationTypeImageStoreVersion, - Constraints: []validation.Constraint{{Target: "applicationTypeImageStoreVersion.ApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UnprovisionApplicationType", err.Error()) - } - - req, err := client.UnprovisionApplicationTypePreparer(ctx, applicationTypeName, applicationTypeImageStoreVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", nil, "Failure preparing request") - return - } - - resp, err := client.UnprovisionApplicationTypeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure sending request") - return - } - - result, err = client.UnprovisionApplicationTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypePreparer prepares the UnprovisionApplicationType request. -func (client BaseClient) UnprovisionApplicationTypePreparer(ctx context.Context, applicationTypeName string, applicationTypeImageStoreVersion ApplicationTypeImageStoreVersion, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/Unprovision", pathParameters), - autorest.WithJSON(applicationTypeImageStoreVersion), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypeSender sends the UnprovisionApplicationType request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UnprovisionApplicationTypeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypeResponder handles the response to the UnprovisionApplicationType request. The method always -// closes the http.Response Body. -func (client BaseClient) UnprovisionApplicationTypeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionCluster unprovision the code or configuration packages of a Service Fabric cluster. -// Parameters: -// unprovisionFabricDescription - describes the parameters for unprovisioning a cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabricDescription UnprovisionFabricDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UnprovisionCluster", err.Error()) - } - - req, err := client.UnprovisionClusterPreparer(ctx, unprovisionFabricDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", nil, "Failure preparing request") - return - } - - resp, err := client.UnprovisionClusterSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure sending request") - return - } - - result, err = client.UnprovisionClusterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionClusterPreparer prepares the UnprovisionCluster request. -func (client BaseClient) UnprovisionClusterPreparer(ctx context.Context, unprovisionFabricDescription UnprovisionFabricDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Unprovision"), - autorest.WithJSON(unprovisionFabricDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionClusterSender sends the UnprovisionCluster request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UnprovisionClusterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionClusterResponder handles the response to the UnprovisionCluster request. The method always -// closes the http.Response Body. -func (client BaseClient) UnprovisionClusterResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgrade updates the parameters of an ongoing application upgrade from the ones specified at the -// time of starting the application upgrade. This may be required to mitigate stuck application upgrades due to -// incorrect parameters or issues in the application to make progress. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" -// character. For example, if the application name is "fabric://myapp/app1", the application identity would be -// "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. -// applicationUpgradeUpdateDescription - parameters for updating an existing application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicationID string, applicationUpgradeUpdateDescription ApplicationUpgradeUpdateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationUpgradeUpdateDescription, - Constraints: []validation.Constraint{{Target: "applicationUpgradeUpdateDescription.Name", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateApplicationUpgrade", err.Error()) - } - - req, err := client.UpdateApplicationUpgradePreparer(ctx, applicationID, applicationUpgradeUpdateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.UpdateApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradePreparer prepares the UpdateApplicationUpgrade request. -func (client BaseClient) UpdateApplicationUpgradePreparer(ctx context.Context, applicationID string, applicationUpgradeUpdateDescription ApplicationUpgradeUpdateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/UpdateUpgrade", pathParameters), - autorest.WithJSON(applicationUpgradeUpdateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradeSender sends the UpdateApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradeResponder handles the response to the UpdateApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgrade update the upgrade parameters of a Service Fabric cluster upgrade. -// Parameters: -// updateClusterUpgradeDescription - parameters for updating a cluster upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateClusterUpgradeDescription UpdateClusterUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: updateClusterUpgradeDescription, - Constraints: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateClusterUpgrade", err.Error()) - } - - req, err := client.UpdateClusterUpgradePreparer(ctx, updateClusterUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.UpdateClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradePreparer prepares the UpdateClusterUpgrade request. -func (client BaseClient) UpdateClusterUpgradePreparer(ctx context.Context, updateClusterUpgradeDescription UpdateClusterUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/UpdateUpgrade"), - autorest.WithJSON(updateClusterUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradeSender sends the UpdateClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradeResponder handles the response to the UpdateClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionState this API supports the Service Fabric platform; it is not meant to be used directly from -// your code. -// Parameters: -// repairTask - describes the repair task to be created or updated. -func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairTask RepairTask) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTask, - Constraints: []validation.Constraint{{Target: "repairTask.TaskID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "repairTask.Action", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateRepairExecutionState", err.Error()) - } - - req, err := client.UpdateRepairExecutionStatePreparer(ctx, repairTask) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateRepairExecutionStateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure sending request") - return - } - - result, err = client.UpdateRepairExecutionStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionStatePreparer prepares the UpdateRepairExecutionState request. -func (client BaseClient) UpdateRepairExecutionStatePreparer(ctx context.Context, repairTask RepairTask) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/UpdateRepairExecutionState"), - autorest.WithJSON(repairTask), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionStateSender sends the UpdateRepairExecutionState request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateRepairExecutionStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionStateResponder handles the response to the UpdateRepairExecutionState request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateRepairExecutionStateResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicy this API supports the Service Fabric platform; it is not meant to be used directly from -// your code. -// Parameters: -// repairTaskUpdateHealthPolicyDescription - describes the repair task healthy policy to be updated. -func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repairTaskUpdateHealthPolicyDescription RepairTaskUpdateHealthPolicyDescription) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskUpdateHealthPolicyDescription, - Constraints: []validation.Constraint{{Target: "repairTaskUpdateHealthPolicyDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", err.Error()) - } - - req, err := client.UpdateRepairTaskHealthPolicyPreparer(ctx, repairTaskUpdateHealthPolicyDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateRepairTaskHealthPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure sending request") - return - } - - result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicyPreparer prepares the UpdateRepairTaskHealthPolicy request. -func (client BaseClient) UpdateRepairTaskHealthPolicyPreparer(ctx context.Context, repairTaskUpdateHealthPolicyDescription RepairTaskUpdateHealthPolicyDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/UpdateRepairTaskHealthPolicy"), - autorest.WithJSON(repairTaskUpdateHealthPolicyDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicySender sends the UpdateRepairTaskHealthPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateRepairTaskHealthPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicyResponder handles the response to the UpdateRepairTaskHealthPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateRepairTaskHealthPolicyResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateService updates the specified service using the given update description. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric://myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// serviceUpdateDescription - the information necessary to update a service. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateService(ctx context.Context, serviceID string, serviceUpdateDescription BasicServiceUpdateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateService", err.Error()) - } - - req, err := client.UpdateServicePreparer(ctx, serviceID, serviceUpdateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure sending request") - return - } - - result, err = client.UpdateServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServicePreparer prepares the UpdateService request. -func (client BaseClient) UpdateServicePreparer(ctx context.Context, serviceID string, serviceUpdateDescription BasicServiceUpdateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/Update", pathParameters), - autorest.WithJSON(serviceUpdateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceSender sends the UpdateService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceResponder handles the response to the UpdateService request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFile uploads contents of the file to the image store. Use this API if the file is small enough to upload again -// if the connection fails. The file's data needs to be added to the request body. The contents will be uploaded to the -// specified path. Image store service uses a mark file to indicate the availability of the folder. The mark file is an -// empty file named "_.dir". The mark file is generated by the image store service when all files in a folder are -// uploaded. When using File-by-File approach to upload application package in REST, the image store service isn't -// aware of the file hierarchy of the application package; you need to create a mark file per folder and upload it -// last, to let the image store service know that the folder is complete. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UploadFile(ctx context.Context, contentPath string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UploadFile", err.Error()) - } - - req, err := client.UploadFilePreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", nil, "Failure preparing request") - return - } - - resp, err := client.UploadFileSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure sending request") - return - } - - result, err = client.UploadFileResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFilePreparer prepares the UploadFile request. -func (client BaseClient) UploadFilePreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileSender sends the UploadFile request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UploadFileSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileResponder handles the response to the UploadFile request. The method always -// closes the http.Response Body. -func (client BaseClient) UploadFileResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/servicefabric/6.0/servicefabric/models.go b/services/servicefabric/6.0/servicefabric/models.go deleted file mode 100644 index d0f69135c24e..000000000000 --- a/services/servicefabric/6.0/servicefabric/models.go +++ /dev/null @@ -1,18795 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/date" - "github.com/satori/go.uuid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState enumerates the values for aggregated health state. -type AggregatedHealthState string - -const ( - // Error ... - Error AggregatedHealthState = "Error" - // Invalid ... - Invalid AggregatedHealthState = "Invalid" - // Ok ... - Ok AggregatedHealthState = "Ok" - // Unknown ... - Unknown AggregatedHealthState = "Unknown" - // Warning ... - Warning AggregatedHealthState = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthStateValues returns an array of possible values for the AggregatedHealthState const type. -func PossibleAggregatedHealthStateValues() []AggregatedHealthState { - return []AggregatedHealthState{Error, Invalid, Ok, Unknown, Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState1 enumerates the values for aggregated health state 1. -type AggregatedHealthState1 string - -const ( - // AggregatedHealthState1Error ... - AggregatedHealthState1Error AggregatedHealthState1 = "Error" - // AggregatedHealthState1Invalid ... - AggregatedHealthState1Invalid AggregatedHealthState1 = "Invalid" - // AggregatedHealthState1Ok ... - AggregatedHealthState1Ok AggregatedHealthState1 = "Ok" - // AggregatedHealthState1Unknown ... - AggregatedHealthState1Unknown AggregatedHealthState1 = "Unknown" - // AggregatedHealthState1Warning ... - AggregatedHealthState1Warning AggregatedHealthState1 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState1Values returns an array of possible values for the AggregatedHealthState1 const type. -func PossibleAggregatedHealthState1Values() []AggregatedHealthState1 { - return []AggregatedHealthState1{AggregatedHealthState1Error, AggregatedHealthState1Invalid, AggregatedHealthState1Ok, AggregatedHealthState1Unknown, AggregatedHealthState1Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AggregatedHealthState2 enumerates the values for aggregated health state 2. -type AggregatedHealthState2 string - -const ( - // AggregatedHealthState2Error ... - AggregatedHealthState2Error AggregatedHealthState2 = "Error" - // AggregatedHealthState2Invalid ... - AggregatedHealthState2Invalid AggregatedHealthState2 = "Invalid" - // AggregatedHealthState2Ok ... - AggregatedHealthState2Ok AggregatedHealthState2 = "Ok" - // AggregatedHealthState2Unknown ... - AggregatedHealthState2Unknown AggregatedHealthState2 = "Unknown" - // AggregatedHealthState2Warning ... - AggregatedHealthState2Warning AggregatedHealthState2 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleAggregatedHealthState2Values returns an array of possible values for the AggregatedHealthState2 const type. -func PossibleAggregatedHealthState2Values() []AggregatedHealthState2 { - return []AggregatedHealthState2{AggregatedHealthState2Error, AggregatedHealthState2Invalid, AggregatedHealthState2Ok, AggregatedHealthState2Unknown, AggregatedHealthState2Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationDefinitionKind enumerates the values for application definition kind. -type ApplicationDefinitionKind string - -const ( - // ApplicationDefinitionKindCompose ... - ApplicationDefinitionKindCompose ApplicationDefinitionKind = "Compose" - // ApplicationDefinitionKindInvalid ... - ApplicationDefinitionKindInvalid ApplicationDefinitionKind = "Invalid" - // ApplicationDefinitionKindServiceFabricApplicationDescription ... - ApplicationDefinitionKindServiceFabricApplicationDescription ApplicationDefinitionKind = "ServiceFabricApplicationDescription" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleApplicationDefinitionKindValues returns an array of possible values for the ApplicationDefinitionKind const type. -func PossibleApplicationDefinitionKindValues() []ApplicationDefinitionKind { - return []ApplicationDefinitionKind{ApplicationDefinitionKindCompose, ApplicationDefinitionKindInvalid, ApplicationDefinitionKindServiceFabricApplicationDescription} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeDefinitionKind enumerates the values for application type definition kind. -type ApplicationTypeDefinitionKind string - -const ( - // ApplicationTypeDefinitionKindCompose ... - ApplicationTypeDefinitionKindCompose ApplicationTypeDefinitionKind = "Compose" - // ApplicationTypeDefinitionKindInvalid ... - ApplicationTypeDefinitionKindInvalid ApplicationTypeDefinitionKind = "Invalid" - // ApplicationTypeDefinitionKindServiceFabricApplicationPackage ... - ApplicationTypeDefinitionKindServiceFabricApplicationPackage ApplicationTypeDefinitionKind = "ServiceFabricApplicationPackage" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleApplicationTypeDefinitionKindValues returns an array of possible values for the ApplicationTypeDefinitionKind const type. -func PossibleApplicationTypeDefinitionKindValues() []ApplicationTypeDefinitionKind { - return []ApplicationTypeDefinitionKind{ApplicationTypeDefinitionKindCompose, ApplicationTypeDefinitionKindInvalid, ApplicationTypeDefinitionKindServiceFabricApplicationPackage} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Code enumerates the values for code. -type Code string - -const ( - // EABORT ... - EABORT Code = "E_ABORT" - // FABRICEAPPLICATIONALREADYEXISTS ... - FABRICEAPPLICATIONALREADYEXISTS Code = "FABRIC_E_APPLICATION_ALREADY_EXISTS" - // FABRICEAPPLICATIONALREADYINTARGETVERSION ... - FABRICEAPPLICATIONALREADYINTARGETVERSION Code = "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" - // FABRICEAPPLICATIONNOTFOUND ... - FABRICEAPPLICATIONNOTFOUND Code = "FABRIC_E_APPLICATION_NOT_FOUND" - // FABRICEAPPLICATIONNOTUPGRADING ... - FABRICEAPPLICATIONNOTUPGRADING Code = "FABRIC_E_APPLICATION_NOT_UPGRADING" - // FABRICEAPPLICATIONTYPEALREADYEXISTS ... - FABRICEAPPLICATIONTYPEALREADYEXISTS Code = "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - // FABRICEAPPLICATIONTYPEINUSE ... - FABRICEAPPLICATIONTYPEINUSE Code = "FABRIC_E_APPLICATION_TYPE_IN_USE" - // FABRICEAPPLICATIONTYPENOTFOUND ... - FABRICEAPPLICATIONTYPENOTFOUND Code = "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" - // FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS ... - FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS Code = "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" - // FABRICEAPPLICATIONUPGRADEINPROGRESS ... - FABRICEAPPLICATIONUPGRADEINPROGRESS Code = "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" - // FABRICEAPPLICATIONUPGRADEVALIDATIONERROR ... - FABRICEAPPLICATIONUPGRADEVALIDATIONERROR Code = "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" - // FABRICECOMMUNICATIONERROR ... - FABRICECOMMUNICATIONERROR Code = "FABRIC_E_COMMUNICATION_ERROR" - // FABRICECONFIGURATIONPARAMETERNOTFOUND ... - FABRICECONFIGURATIONPARAMETERNOTFOUND Code = "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" - // FABRICECONFIGURATIONSECTIONNOTFOUND ... - FABRICECONFIGURATIONSECTIONNOTFOUND Code = "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" - // FABRICEDIRECTORYNOTFOUND ... - FABRICEDIRECTORYNOTFOUND Code = "FABRIC_E_DIRECTORY_NOT_FOUND" - // FABRICEENUMERATIONCOMPLETED ... - FABRICEENUMERATIONCOMPLETED Code = "FABRIC_E_ENUMERATION_COMPLETED" - // FABRICEFABRICALREADYINTARGETVERSION ... - FABRICEFABRICALREADYINTARGETVERSION Code = "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" - // FABRICEFABRICNOTUPGRADING ... - FABRICEFABRICNOTUPGRADING Code = "FABRIC_E_FABRIC_NOT_UPGRADING" - // FABRICEFABRICUPGRADEINPROGRESS ... - FABRICEFABRICUPGRADEINPROGRESS Code = "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" - // FABRICEFABRICUPGRADEVALIDATIONERROR ... - FABRICEFABRICUPGRADEVALIDATIONERROR Code = "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" - // FABRICEFABRICVERSIONALREADYEXISTS ... - FABRICEFABRICVERSIONALREADYEXISTS Code = "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" - // FABRICEFABRICVERSIONINUSE ... - FABRICEFABRICVERSIONINUSE Code = "FABRIC_E_FABRIC_VERSION_IN_USE" - // FABRICEFABRICVERSIONNOTFOUND ... - FABRICEFABRICVERSIONNOTFOUND Code = "FABRIC_E_FABRIC_VERSION_NOT_FOUND" - // FABRICEFILENOTFOUND ... - FABRICEFILENOTFOUND Code = "FABRIC_E_FILE_NOT_FOUND" - // FABRICEHEALTHENTITYNOTFOUND ... - FABRICEHEALTHENTITYNOTFOUND Code = "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" - // FABRICEHEALTHSTALEREPORT ... - FABRICEHEALTHSTALEREPORT Code = "FABRIC_E_HEALTH_STALE_REPORT" - // FABRICEIMAGEBUILDERVALIDATIONERROR ... - FABRICEIMAGEBUILDERVALIDATIONERROR Code = "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" - // FABRICEINSTANCEIDMISMATCH ... - FABRICEINSTANCEIDMISMATCH Code = "FABRIC_E_INSTANCE_ID_MISMATCH" - // FABRICEINVALIDADDRESS ... - FABRICEINVALIDADDRESS Code = "FABRIC_E_INVALID_ADDRESS" - // FABRICEINVALIDATOMICGROUP ... - FABRICEINVALIDATOMICGROUP Code = "FABRIC_E_INVALID_ATOMIC_GROUP" - // FABRICEINVALIDCONFIGURATION ... - FABRICEINVALIDCONFIGURATION Code = "FABRIC_E_INVALID_CONFIGURATION" - // FABRICEINVALIDNAMEURI ... - FABRICEINVALIDNAMEURI Code = "FABRIC_E_INVALID_NAME_URI" - // FABRICEINVALIDPARTITIONKEY ... - FABRICEINVALIDPARTITIONKEY Code = "FABRIC_E_INVALID_PARTITION_KEY" - // FABRICEKEYNOTFOUND ... - FABRICEKEYNOTFOUND Code = "FABRIC_E_KEY_NOT_FOUND" - // FABRICEKEYTOOLARGE ... - FABRICEKEYTOOLARGE Code = "FABRIC_E_KEY_TOO_LARGE" - // FABRICENAMEALREADYEXISTS ... - FABRICENAMEALREADYEXISTS Code = "FABRIC_E_NAME_ALREADY_EXISTS" - // FABRICENAMEDOESNOTEXIST ... - FABRICENAMEDOESNOTEXIST Code = "FABRIC_E_NAME_DOES_NOT_EXIST" - // FABRICENAMENOTEMPTY ... - FABRICENAMENOTEMPTY Code = "FABRIC_E_NAME_NOT_EMPTY" - // FABRICENODEHASNOTSTOPPEDYET ... - FABRICENODEHASNOTSTOPPEDYET Code = "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" - // FABRICENODEISUP ... - FABRICENODEISUP Code = "FABRIC_E_NODE_IS_UP" - // FABRICENODENOTFOUND ... - FABRICENODENOTFOUND Code = "FABRIC_E_NODE_NOT_FOUND" - // FABRICENOTPRIMARY ... - FABRICENOTPRIMARY Code = "FABRIC_E_NOT_PRIMARY" - // FABRICENOTREADY ... - FABRICENOTREADY Code = "FABRIC_E_NOT_READY" - // FABRICENOWRITEQUORUM ... - FABRICENOWRITEQUORUM Code = "FABRIC_E_NO_WRITE_QUORUM" - // FABRICEOPERATIONNOTCOMPLETE ... - FABRICEOPERATIONNOTCOMPLETE Code = "FABRIC_E_OPERATION_NOT_COMPLETE" - // FABRICEPARTITIONNOTFOUND ... - FABRICEPARTITIONNOTFOUND Code = "FABRIC_E_PARTITION_NOT_FOUND" - // FABRICEPATHTOOLONG ... - FABRICEPATHTOOLONG Code = "FABRIC_E_PATH_TOO_LONG" - // FABRICEPROPERTYCHECKFAILED ... - FABRICEPROPERTYCHECKFAILED Code = "FABRIC_E_PROPERTY_CHECK_FAILED" - // FABRICEPROPERTYDOESNOTEXIST ... - FABRICEPROPERTYDOESNOTEXIST Code = "FABRIC_E_PROPERTY_DOES_NOT_EXIST" - // FABRICERECONFIGURATIONPENDING ... - FABRICERECONFIGURATIONPENDING Code = "FABRIC_E_RECONFIGURATION_PENDING" - // FABRICEREPLICADOESNOTEXIST ... - FABRICEREPLICADOESNOTEXIST Code = "FABRIC_E_REPLICA_DOES_NOT_EXIST" - // FABRICESEQUENCENUMBERCHECKFAILED ... - FABRICESEQUENCENUMBERCHECKFAILED Code = "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" - // FABRICESERVICEAFFINITYCHAINNOTSUPPORTED ... - FABRICESERVICEAFFINITYCHAINNOTSUPPORTED Code = "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" - // FABRICESERVICEALREADYEXISTS ... - FABRICESERVICEALREADYEXISTS Code = "FABRIC_E_SERVICE_ALREADY_EXISTS" - // FABRICESERVICEDOESNOTEXIST ... - FABRICESERVICEDOESNOTEXIST Code = "FABRIC_E_SERVICE_DOES_NOT_EXIST" - // FABRICESERVICEGROUPALREADYEXISTS ... - FABRICESERVICEGROUPALREADYEXISTS Code = "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" - // FABRICESERVICEGROUPDOESNOTEXIST ... - FABRICESERVICEGROUPDOESNOTEXIST Code = "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" - // FABRICESERVICEMANIFESTNOTFOUND ... - FABRICESERVICEMANIFESTNOTFOUND Code = "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" - // FABRICESERVICEMETADATAMISMATCH ... - FABRICESERVICEMETADATAMISMATCH Code = "FABRIC_E_SERVICE_METADATA_MISMATCH" - // FABRICESERVICEOFFLINE ... - FABRICESERVICEOFFLINE Code = "FABRIC_E_SERVICE_OFFLINE" - // FABRICESERVICETYPEMISMATCH ... - FABRICESERVICETYPEMISMATCH Code = "FABRIC_E_SERVICE_TYPE_MISMATCH" - // FABRICESERVICETYPENOTFOUND ... - FABRICESERVICETYPENOTFOUND Code = "FABRIC_E_SERVICE_TYPE_NOT_FOUND" - // FABRICESERVICETYPETEMPLATENOTFOUND ... - FABRICESERVICETYPETEMPLATENOTFOUND Code = "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" - // FABRICETIMEOUT ... - FABRICETIMEOUT Code = "FABRIC_E_TIMEOUT" - // FABRICEVALUEEMPTY ... - FABRICEVALUEEMPTY Code = "FABRIC_E_VALUE_EMPTY" - // FABRICEVALUETOOLARGE ... - FABRICEVALUETOOLARGE Code = "FABRIC_E_VALUE_TOO_LARGE" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCodeValues returns an array of possible values for the Code const type. -func PossibleCodeValues() []Code { - return []Code{EABORT, FABRICEAPPLICATIONALREADYEXISTS, FABRICEAPPLICATIONALREADYINTARGETVERSION, FABRICEAPPLICATIONNOTFOUND, FABRICEAPPLICATIONNOTUPGRADING, FABRICEAPPLICATIONTYPEALREADYEXISTS, FABRICEAPPLICATIONTYPEINUSE, FABRICEAPPLICATIONTYPENOTFOUND, FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS, FABRICEAPPLICATIONUPGRADEINPROGRESS, FABRICEAPPLICATIONUPGRADEVALIDATIONERROR, FABRICECOMMUNICATIONERROR, FABRICECONFIGURATIONPARAMETERNOTFOUND, FABRICECONFIGURATIONSECTIONNOTFOUND, FABRICEDIRECTORYNOTFOUND, FABRICEENUMERATIONCOMPLETED, FABRICEFABRICALREADYINTARGETVERSION, FABRICEFABRICNOTUPGRADING, FABRICEFABRICUPGRADEINPROGRESS, FABRICEFABRICUPGRADEVALIDATIONERROR, FABRICEFABRICVERSIONALREADYEXISTS, FABRICEFABRICVERSIONINUSE, FABRICEFABRICVERSIONNOTFOUND, FABRICEFILENOTFOUND, FABRICEHEALTHENTITYNOTFOUND, FABRICEHEALTHSTALEREPORT, FABRICEIMAGEBUILDERVALIDATIONERROR, FABRICEINSTANCEIDMISMATCH, FABRICEINVALIDADDRESS, FABRICEINVALIDATOMICGROUP, FABRICEINVALIDCONFIGURATION, FABRICEINVALIDNAMEURI, FABRICEINVALIDPARTITIONKEY, FABRICEKEYNOTFOUND, FABRICEKEYTOOLARGE, FABRICENAMEALREADYEXISTS, FABRICENAMEDOESNOTEXIST, FABRICENAMENOTEMPTY, FABRICENODEHASNOTSTOPPEDYET, FABRICENODEISUP, FABRICENODENOTFOUND, FABRICENOTPRIMARY, FABRICENOTREADY, FABRICENOWRITEQUORUM, FABRICEOPERATIONNOTCOMPLETE, FABRICEPARTITIONNOTFOUND, FABRICEPATHTOOLONG, FABRICEPROPERTYCHECKFAILED, FABRICEPROPERTYDOESNOTEXIST, FABRICERECONFIGURATIONPENDING, FABRICEREPLICADOESNOTEXIST, FABRICESEQUENCENUMBERCHECKFAILED, FABRICESERVICEAFFINITYCHAINNOTSUPPORTED, FABRICESERVICEALREADYEXISTS, FABRICESERVICEDOESNOTEXIST, FABRICESERVICEGROUPALREADYEXISTS, FABRICESERVICEGROUPDOESNOTEXIST, FABRICESERVICEMANIFESTNOTFOUND, FABRICESERVICEMETADATAMISMATCH, FABRICESERVICEOFFLINE, FABRICESERVICETYPEMISMATCH, FABRICESERVICETYPENOTFOUND, FABRICESERVICETYPETEMPLATENOTFOUND, FABRICETIMEOUT, FABRICEVALUEEMPTY, FABRICEVALUETOOLARGE} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateFabricDump enumerates the values for create fabric dump. -type CreateFabricDump string - -const ( - // False ... - False CreateFabricDump = "False" - // True ... - True CreateFabricDump = "True" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCreateFabricDumpValues returns an array of possible values for the CreateFabricDump const type. -func PossibleCreateFabricDumpValues() []CreateFabricDump { - return []CreateFabricDump{False, True} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CurrentReplicatorOperation enumerates the values for current replicator operation. -type CurrentReplicatorOperation string - -const ( - // CurrentReplicatorOperationAbort ... - CurrentReplicatorOperationAbort CurrentReplicatorOperation = "Abort" - // CurrentReplicatorOperationBuild ... - CurrentReplicatorOperationBuild CurrentReplicatorOperation = "Build" - // CurrentReplicatorOperationChangeRole ... - CurrentReplicatorOperationChangeRole CurrentReplicatorOperation = "ChangeRole" - // CurrentReplicatorOperationClose ... - CurrentReplicatorOperationClose CurrentReplicatorOperation = "Close" - // CurrentReplicatorOperationInvalid ... - CurrentReplicatorOperationInvalid CurrentReplicatorOperation = "Invalid" - // CurrentReplicatorOperationNone ... - CurrentReplicatorOperationNone CurrentReplicatorOperation = "None" - // CurrentReplicatorOperationOnDataLoss ... - CurrentReplicatorOperationOnDataLoss CurrentReplicatorOperation = "OnDataLoss" - // CurrentReplicatorOperationOpen ... - CurrentReplicatorOperationOpen CurrentReplicatorOperation = "Open" - // CurrentReplicatorOperationUpdateEpoch ... - CurrentReplicatorOperationUpdateEpoch CurrentReplicatorOperation = "UpdateEpoch" - // CurrentReplicatorOperationWaitForCatchup ... - CurrentReplicatorOperationWaitForCatchup CurrentReplicatorOperation = "WaitForCatchup" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCurrentReplicatorOperationValues returns an array of possible values for the CurrentReplicatorOperation const type. -func PossibleCurrentReplicatorOperationValues() []CurrentReplicatorOperation { - return []CurrentReplicatorOperation{CurrentReplicatorOperationAbort, CurrentReplicatorOperationBuild, CurrentReplicatorOperationChangeRole, CurrentReplicatorOperationClose, CurrentReplicatorOperationInvalid, CurrentReplicatorOperationNone, CurrentReplicatorOperationOnDataLoss, CurrentReplicatorOperationOpen, CurrentReplicatorOperationUpdateEpoch, CurrentReplicatorOperationWaitForCatchup} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CurrentServiceOperation enumerates the values for current service operation. -type CurrentServiceOperation string - -const ( - // CurrentServiceOperationAbort ... - CurrentServiceOperationAbort CurrentServiceOperation = "Abort" - // CurrentServiceOperationChangeRole ... - CurrentServiceOperationChangeRole CurrentServiceOperation = "ChangeRole" - // CurrentServiceOperationClose ... - CurrentServiceOperationClose CurrentServiceOperation = "Close" - // CurrentServiceOperationNone ... - CurrentServiceOperationNone CurrentServiceOperation = "None" - // CurrentServiceOperationOpen ... - CurrentServiceOperationOpen CurrentServiceOperation = "Open" - // CurrentServiceOperationUnknown ... - CurrentServiceOperationUnknown CurrentServiceOperation = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCurrentServiceOperationValues returns an array of possible values for the CurrentServiceOperation const type. -func PossibleCurrentServiceOperationValues() []CurrentServiceOperation { - return []CurrentServiceOperation{CurrentServiceOperationAbort, CurrentServiceOperationChangeRole, CurrentServiceOperationClose, CurrentServiceOperationNone, CurrentServiceOperationOpen, CurrentServiceOperationUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeactivationIntent enumerates the values for deactivation intent. -type DeactivationIntent string - -const ( - // Pause ... - Pause DeactivationIntent = "Pause" - // RemoveData ... - RemoveData DeactivationIntent = "RemoveData" - // Restart ... - Restart DeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDeactivationIntentValues returns an array of possible values for the DeactivationIntent const type. -func PossibleDeactivationIntentValues() []DeactivationIntent { - return []DeactivationIntent{Pause, RemoveData, Restart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost enumerates the values for default move cost. -type DefaultMoveCost string - -const ( - // High ... - High DefaultMoveCost = "High" - // Low ... - Low DefaultMoveCost = "Low" - // Medium ... - Medium DefaultMoveCost = "Medium" - // Zero ... - Zero DefaultMoveCost = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCostValues returns an array of possible values for the DefaultMoveCost const type. -func PossibleDefaultMoveCostValues() []DefaultMoveCost { - return []DefaultMoveCost{High, Low, Medium, Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DefaultMoveCost1 enumerates the values for default move cost 1. -type DefaultMoveCost1 string - -const ( - // DefaultMoveCost1High ... - DefaultMoveCost1High DefaultMoveCost1 = "High" - // DefaultMoveCost1Low ... - DefaultMoveCost1Low DefaultMoveCost1 = "Low" - // DefaultMoveCost1Medium ... - DefaultMoveCost1Medium DefaultMoveCost1 = "Medium" - // DefaultMoveCost1Zero ... - DefaultMoveCost1Zero DefaultMoveCost1 = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDefaultMoveCost1Values returns an array of possible values for the DefaultMoveCost1 const type. -func PossibleDefaultMoveCost1Values() []DefaultMoveCost1 { - return []DefaultMoveCost1{DefaultMoveCost1High, DefaultMoveCost1Low, DefaultMoveCost1Medium, DefaultMoveCost1Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityKind enumerates the values for entity kind. -type EntityKind string - -const ( - // EntityKindApplication ... - EntityKindApplication EntityKind = "Application" - // EntityKindCluster ... - EntityKindCluster EntityKind = "Cluster" - // EntityKindDeployedApplication ... - EntityKindDeployedApplication EntityKind = "DeployedApplication" - // EntityKindDeployedServicePackage ... - EntityKindDeployedServicePackage EntityKind = "DeployedServicePackage" - // EntityKindInvalid ... - EntityKindInvalid EntityKind = "Invalid" - // EntityKindNode ... - EntityKindNode EntityKind = "Node" - // EntityKindPartition ... - EntityKindPartition EntityKind = "Partition" - // EntityKindReplica ... - EntityKindReplica EntityKind = "Replica" - // EntityKindService ... - EntityKindService EntityKind = "Service" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleEntityKindValues returns an array of possible values for the EntityKind const type. -func PossibleEntityKindValues() []EntityKind { - return []EntityKind{EntityKindApplication, EntityKindCluster, EntityKindDeployedApplication, EntityKindDeployedServicePackage, EntityKindInvalid, EntityKindNode, EntityKindPartition, EntityKindReplica, EntityKindService} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureAction enumerates the values for failure action. -type FailureAction string - -const ( - // FailureActionInvalid ... - FailureActionInvalid FailureAction = "Invalid" - // FailureActionManual ... - FailureActionManual FailureAction = "Manual" - // FailureActionRollback ... - FailureActionRollback FailureAction = "Rollback" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureActionValues returns an array of possible values for the FailureAction const type. -func PossibleFailureActionValues() []FailureAction { - return []FailureAction{FailureActionInvalid, FailureActionManual, FailureActionRollback} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureAction1 enumerates the values for failure action 1. -type FailureAction1 string - -const ( - // FailureAction1Invalid ... - FailureAction1Invalid FailureAction1 = "Invalid" - // FailureAction1Manual ... - FailureAction1Manual FailureAction1 = "Manual" - // FailureAction1Rollback ... - FailureAction1Rollback FailureAction1 = "Rollback" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureAction1Values returns an array of possible values for the FailureAction1 const type. -func PossibleFailureAction1Values() []FailureAction1 { - return []FailureAction1{FailureAction1Invalid, FailureAction1Manual, FailureAction1Rollback} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason enumerates the values for failure reason. -type FailureReason string - -const ( - // HealthCheck ... - HealthCheck FailureReason = "HealthCheck" - // Interrupted ... - Interrupted FailureReason = "Interrupted" - // None ... - None FailureReason = "None" - // UpgradeDomainTimeout ... - UpgradeDomainTimeout FailureReason = "UpgradeDomainTimeout" - // UpgradeTimeout ... - UpgradeTimeout FailureReason = "UpgradeTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReasonValues returns an array of possible values for the FailureReason const type. -func PossibleFailureReasonValues() []FailureReason { - return []FailureReason{HealthCheck, Interrupted, None, UpgradeDomainTimeout, UpgradeTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason1 enumerates the values for failure reason 1. -type FailureReason1 string - -const ( - // FailureReason1HealthCheck ... - FailureReason1HealthCheck FailureReason1 = "HealthCheck" - // FailureReason1Interrupted ... - FailureReason1Interrupted FailureReason1 = "Interrupted" - // FailureReason1None ... - FailureReason1None FailureReason1 = "None" - // FailureReason1UpgradeDomainTimeout ... - FailureReason1UpgradeDomainTimeout FailureReason1 = "UpgradeDomainTimeout" - // FailureReason1UpgradeTimeout ... - FailureReason1UpgradeTimeout FailureReason1 = "UpgradeTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReason1Values returns an array of possible values for the FailureReason1 const type. -func PossibleFailureReason1Values() []FailureReason1 { - return []FailureReason1{FailureReason1HealthCheck, FailureReason1Interrupted, FailureReason1None, FailureReason1UpgradeDomainTimeout, FailureReason1UpgradeTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason2 enumerates the values for failure reason 2. -type FailureReason2 string - -const ( - // FailureReason2HealthCheck ... - FailureReason2HealthCheck FailureReason2 = "HealthCheck" - // FailureReason2Interrupted ... - FailureReason2Interrupted FailureReason2 = "Interrupted" - // FailureReason2None ... - FailureReason2None FailureReason2 = "None" - // FailureReason2UpgradeDomainTimeout ... - FailureReason2UpgradeDomainTimeout FailureReason2 = "UpgradeDomainTimeout" - // FailureReason2UpgradeTimeout ... - FailureReason2UpgradeTimeout FailureReason2 = "UpgradeTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReason2Values returns an array of possible values for the FailureReason2 const type. -func PossibleFailureReason2Values() []FailureReason2 { - return []FailureReason2{FailureReason2HealthCheck, FailureReason2Interrupted, FailureReason2None, FailureReason2UpgradeDomainTimeout, FailureReason2UpgradeTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState enumerates the values for health state. -type HealthState string - -const ( - // HealthStateError ... - HealthStateError HealthState = "Error" - // HealthStateInvalid ... - HealthStateInvalid HealthState = "Invalid" - // HealthStateOk ... - HealthStateOk HealthState = "Ok" - // HealthStateUnknown ... - HealthStateUnknown HealthState = "Unknown" - // HealthStateWarning ... - HealthStateWarning HealthState = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthStateValues returns an array of possible values for the HealthState const type. -func PossibleHealthStateValues() []HealthState { - return []HealthState{HealthStateError, HealthStateInvalid, HealthStateOk, HealthStateUnknown, HealthStateWarning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState1 enumerates the values for health state 1. -type HealthState1 string - -const ( - // HealthState1Error ... - HealthState1Error HealthState1 = "Error" - // HealthState1Invalid ... - HealthState1Invalid HealthState1 = "Invalid" - // HealthState1Ok ... - HealthState1Ok HealthState1 = "Ok" - // HealthState1Unknown ... - HealthState1Unknown HealthState1 = "Unknown" - // HealthState1Warning ... - HealthState1Warning HealthState1 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState1Values returns an array of possible values for the HealthState1 const type. -func PossibleHealthState1Values() []HealthState1 { - return []HealthState1{HealthState1Error, HealthState1Invalid, HealthState1Ok, HealthState1Unknown, HealthState1Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState2 enumerates the values for health state 2. -type HealthState2 string - -const ( - // HealthState2Error ... - HealthState2Error HealthState2 = "Error" - // HealthState2Invalid ... - HealthState2Invalid HealthState2 = "Invalid" - // HealthState2Ok ... - HealthState2Ok HealthState2 = "Ok" - // HealthState2Unknown ... - HealthState2Unknown HealthState2 = "Unknown" - // HealthState2Warning ... - HealthState2Warning HealthState2 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState2Values returns an array of possible values for the HealthState2 const type. -func PossibleHealthState2Values() []HealthState2 { - return []HealthState2{HealthState2Error, HealthState2Invalid, HealthState2Ok, HealthState2Unknown, HealthState2Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState3 enumerates the values for health state 3. -type HealthState3 string - -const ( - // HealthState3Error ... - HealthState3Error HealthState3 = "Error" - // HealthState3Invalid ... - HealthState3Invalid HealthState3 = "Invalid" - // HealthState3Ok ... - HealthState3Ok HealthState3 = "Ok" - // HealthState3Unknown ... - HealthState3Unknown HealthState3 = "Unknown" - // HealthState3Warning ... - HealthState3Warning HealthState3 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState3Values returns an array of possible values for the HealthState3 const type. -func PossibleHealthState3Values() []HealthState3 { - return []HealthState3{HealthState3Error, HealthState3Invalid, HealthState3Ok, HealthState3Unknown, HealthState3Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState4 enumerates the values for health state 4. -type HealthState4 string - -const ( - // HealthState4Error ... - HealthState4Error HealthState4 = "Error" - // HealthState4Invalid ... - HealthState4Invalid HealthState4 = "Invalid" - // HealthState4Ok ... - HealthState4Ok HealthState4 = "Ok" - // HealthState4Unknown ... - HealthState4Unknown HealthState4 = "Unknown" - // HealthState4Warning ... - HealthState4Warning HealthState4 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState4Values returns an array of possible values for the HealthState4 const type. -func PossibleHealthState4Values() []HealthState4 { - return []HealthState4{HealthState4Error, HealthState4Invalid, HealthState4Ok, HealthState4Unknown, HealthState4Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState5 enumerates the values for health state 5. -type HealthState5 string - -const ( - // HealthState5Error ... - HealthState5Error HealthState5 = "Error" - // HealthState5Invalid ... - HealthState5Invalid HealthState5 = "Invalid" - // HealthState5Ok ... - HealthState5Ok HealthState5 = "Ok" - // HealthState5Unknown ... - HealthState5Unknown HealthState5 = "Unknown" - // HealthState5Warning ... - HealthState5Warning HealthState5 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState5Values returns an array of possible values for the HealthState5 const type. -func PossibleHealthState5Values() []HealthState5 { - return []HealthState5{HealthState5Error, HealthState5Invalid, HealthState5Ok, HealthState5Unknown, HealthState5Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState6 enumerates the values for health state 6. -type HealthState6 string - -const ( - // HealthState6Error ... - HealthState6Error HealthState6 = "Error" - // HealthState6Invalid ... - HealthState6Invalid HealthState6 = "Invalid" - // HealthState6Ok ... - HealthState6Ok HealthState6 = "Ok" - // HealthState6Unknown ... - HealthState6Unknown HealthState6 = "Unknown" - // HealthState6Warning ... - HealthState6Warning HealthState6 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState6Values returns an array of possible values for the HealthState6 const type. -func PossibleHealthState6Values() []HealthState6 { - return []HealthState6{HealthState6Error, HealthState6Invalid, HealthState6Ok, HealthState6Unknown, HealthState6Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState7 enumerates the values for health state 7. -type HealthState7 string - -const ( - // HealthState7Error ... - HealthState7Error HealthState7 = "Error" - // HealthState7Invalid ... - HealthState7Invalid HealthState7 = "Invalid" - // HealthState7Ok ... - HealthState7Ok HealthState7 = "Ok" - // HealthState7Unknown ... - HealthState7Unknown HealthState7 = "Unknown" - // HealthState7Warning ... - HealthState7Warning HealthState7 = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthState7Values returns an array of possible values for the HealthState7 const type. -func PossibleHealthState7Values() []HealthState7 { - return []HealthState7{HealthState7Error, HealthState7Invalid, HealthState7Ok, HealthState7Unknown, HealthState7Warning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HostIsolationMode enumerates the values for host isolation mode. -type HostIsolationMode string - -const ( - // HostIsolationModeHyperV ... - HostIsolationModeHyperV HostIsolationMode = "HyperV" - // HostIsolationModeNone ... - HostIsolationModeNone HostIsolationMode = "None" - // HostIsolationModeProcess ... - HostIsolationModeProcess HostIsolationMode = "Process" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHostIsolationModeValues returns an array of possible values for the HostIsolationMode const type. -func PossibleHostIsolationModeValues() []HostIsolationMode { - return []HostIsolationMode{HostIsolationModeHyperV, HostIsolationModeNone, HostIsolationModeProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HostType enumerates the values for host type. -type HostType string - -const ( - // HostTypeContainerHost ... - HostTypeContainerHost HostType = "ContainerHost" - // HostTypeExeHost ... - HostTypeExeHost HostType = "ExeHost" - // HostTypeInvalid ... - HostTypeInvalid HostType = "Invalid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHostTypeValues returns an array of possible values for the HostType const type. -func PossibleHostTypeValues() []HostType { - return []HostType{HostTypeContainerHost, HostTypeExeHost, HostTypeInvalid} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImpactLevel enumerates the values for impact level. -type ImpactLevel string - -const ( - // ImpactLevelInvalid ... - ImpactLevelInvalid ImpactLevel = "Invalid" - // ImpactLevelNone ... - ImpactLevelNone ImpactLevel = "None" - // ImpactLevelRemoveData ... - ImpactLevelRemoveData ImpactLevel = "RemoveData" - // ImpactLevelRemoveNode ... - ImpactLevelRemoveNode ImpactLevel = "RemoveNode" - // ImpactLevelRestart ... - ImpactLevelRestart ImpactLevel = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleImpactLevelValues returns an array of possible values for the ImpactLevel const type. -func PossibleImpactLevelValues() []ImpactLevel { - return []ImpactLevel{ImpactLevelInvalid, ImpactLevelNone, ImpactLevelRemoveData, ImpactLevelRemoveNode, ImpactLevelRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Kind enumerates the values for kind. -type Kind string - -const ( - // KindInvalid ... - KindInvalid Kind = "Invalid" - // KindStatefulPrimary ... - KindStatefulPrimary Kind = "StatefulPrimary" - // KindStatefulSecondary ... - KindStatefulSecondary Kind = "StatefulSecondary" - // KindStateless ... - KindStateless Kind = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindValues returns an array of possible values for the Kind const type. -func PossibleKindValues() []Kind { - return []Kind{KindInvalid, KindStatefulPrimary, KindStatefulSecondary, KindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicChaosEvent enumerates the values for kind basic chaos event. -type KindBasicChaosEvent string - -const ( - // KindChaosEvent ... - KindChaosEvent KindBasicChaosEvent = "ChaosEvent" - // KindExecutingFaults ... - KindExecutingFaults KindBasicChaosEvent = "ExecutingFaults" - // KindStarted ... - KindStarted KindBasicChaosEvent = "Started" - // KindStopped ... - KindStopped KindBasicChaosEvent = "Stopped" - // KindTestError ... - KindTestError KindBasicChaosEvent = "TestError" - // KindValidationFailed ... - KindValidationFailed KindBasicChaosEvent = "ValidationFailed" - // KindWaiting ... - KindWaiting KindBasicChaosEvent = "Waiting" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicChaosEventValues returns an array of possible values for the KindBasicChaosEvent const type. -func PossibleKindBasicChaosEventValues() []KindBasicChaosEvent { - return []KindBasicChaosEvent{KindChaosEvent, KindExecutingFaults, KindStarted, KindStopped, KindTestError, KindValidationFailed, KindWaiting} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicHealthEvaluation enumerates the values for kind basic health evaluation. -type KindBasicHealthEvaluation string - -const ( - // KindApplication ... - KindApplication KindBasicHealthEvaluation = "Application" - // KindApplications ... - KindApplications KindBasicHealthEvaluation = "Applications" - // KindApplicationTypeApplications ... - KindApplicationTypeApplications KindBasicHealthEvaluation = "ApplicationTypeApplications" - // KindDeltaNodesCheck ... - KindDeltaNodesCheck KindBasicHealthEvaluation = "DeltaNodesCheck" - // KindDeployedApplication ... - KindDeployedApplication KindBasicHealthEvaluation = "DeployedApplication" - // KindDeployedApplications ... - KindDeployedApplications KindBasicHealthEvaluation = "DeployedApplications" - // KindDeployedServicePackage ... - KindDeployedServicePackage KindBasicHealthEvaluation = "DeployedServicePackage" - // KindDeployedServicePackages ... - KindDeployedServicePackages KindBasicHealthEvaluation = "DeployedServicePackages" - // KindEvent ... - KindEvent KindBasicHealthEvaluation = "Event" - // KindHealthEvaluation ... - KindHealthEvaluation KindBasicHealthEvaluation = "HealthEvaluation" - // KindNode ... - KindNode KindBasicHealthEvaluation = "Node" - // KindNodes ... - KindNodes KindBasicHealthEvaluation = "Nodes" - // KindPartition ... - KindPartition KindBasicHealthEvaluation = "Partition" - // KindPartitions ... - KindPartitions KindBasicHealthEvaluation = "Partitions" - // KindReplica ... - KindReplica KindBasicHealthEvaluation = "Replica" - // KindReplicas ... - KindReplicas KindBasicHealthEvaluation = "Replicas" - // KindService ... - KindService KindBasicHealthEvaluation = "Service" - // KindServices ... - KindServices KindBasicHealthEvaluation = "Services" - // KindSystemApplication ... - KindSystemApplication KindBasicHealthEvaluation = "SystemApplication" - // KindUpgradeDomainDeltaNodesCheck ... - KindUpgradeDomainDeltaNodesCheck KindBasicHealthEvaluation = "UpgradeDomainDeltaNodesCheck" - // KindUpgradeDomainNodes ... - KindUpgradeDomainNodes KindBasicHealthEvaluation = "UpgradeDomainNodes" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicHealthEvaluationValues returns an array of possible values for the KindBasicHealthEvaluation const type. -func PossibleKindBasicHealthEvaluationValues() []KindBasicHealthEvaluation { - return []KindBasicHealthEvaluation{KindApplication, KindApplications, KindApplicationTypeApplications, KindDeltaNodesCheck, KindDeployedApplication, KindDeployedApplications, KindDeployedServicePackage, KindDeployedServicePackages, KindEvent, KindHealthEvaluation, KindNode, KindNodes, KindPartition, KindPartitions, KindReplica, KindReplicas, KindService, KindServices, KindSystemApplication, KindUpgradeDomainDeltaNodesCheck, KindUpgradeDomainNodes} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicPropertyBatchInfo enumerates the values for kind basic property batch info. -type KindBasicPropertyBatchInfo string - -const ( - // KindFailed ... - KindFailed KindBasicPropertyBatchInfo = "Failed" - // KindPropertyBatchInfo ... - KindPropertyBatchInfo KindBasicPropertyBatchInfo = "PropertyBatchInfo" - // KindSuccessful ... - KindSuccessful KindBasicPropertyBatchInfo = "Successful" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicPropertyBatchInfoValues returns an array of possible values for the KindBasicPropertyBatchInfo const type. -func PossibleKindBasicPropertyBatchInfoValues() []KindBasicPropertyBatchInfo { - return []KindBasicPropertyBatchInfo{KindFailed, KindPropertyBatchInfo, KindSuccessful} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicPropertyBatchOperation enumerates the values for kind basic property batch operation. -type KindBasicPropertyBatchOperation string - -const ( - // KindCheckExists ... - KindCheckExists KindBasicPropertyBatchOperation = "CheckExists" - // KindCheckSequence ... - KindCheckSequence KindBasicPropertyBatchOperation = "CheckSequence" - // KindCheckValue ... - KindCheckValue KindBasicPropertyBatchOperation = "CheckValue" - // KindDelete ... - KindDelete KindBasicPropertyBatchOperation = "Delete" - // KindGet ... - KindGet KindBasicPropertyBatchOperation = "Get" - // KindPropertyBatchOperation ... - KindPropertyBatchOperation KindBasicPropertyBatchOperation = "PropertyBatchOperation" - // KindPut ... - KindPut KindBasicPropertyBatchOperation = "Put" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicPropertyBatchOperationValues returns an array of possible values for the KindBasicPropertyBatchOperation const type. -func PossibleKindBasicPropertyBatchOperationValues() []KindBasicPropertyBatchOperation { - return []KindBasicPropertyBatchOperation{KindCheckExists, KindCheckSequence, KindCheckValue, KindDelete, KindGet, KindPropertyBatchOperation, KindPut} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicPropertyValue enumerates the values for kind basic property value. -type KindBasicPropertyValue string - -const ( - // KindBinary ... - KindBinary KindBasicPropertyValue = "Binary" - // KindDouble ... - KindDouble KindBasicPropertyValue = "Double" - // KindGUID ... - KindGUID KindBasicPropertyValue = "Guid" - // KindInt64 ... - KindInt64 KindBasicPropertyValue = "Int64" - // KindPropertyValue ... - KindPropertyValue KindBasicPropertyValue = "PropertyValue" - // KindString ... - KindString KindBasicPropertyValue = "String" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicPropertyValueValues returns an array of possible values for the KindBasicPropertyValue const type. -func PossibleKindBasicPropertyValueValues() []KindBasicPropertyValue { - return []KindBasicPropertyValue{KindBinary, KindDouble, KindGUID, KindInt64, KindPropertyValue, KindString} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicRepairImpactDescriptionBase enumerates the values for kind basic repair impact description base. -type KindBasicRepairImpactDescriptionBase string - -const ( - // KindBasicRepairImpactDescriptionBaseKindNode ... - KindBasicRepairImpactDescriptionBaseKindNode KindBasicRepairImpactDescriptionBase = "Node" - // KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase ... - KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase KindBasicRepairImpactDescriptionBase = "RepairImpactDescriptionBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicRepairImpactDescriptionBaseValues returns an array of possible values for the KindBasicRepairImpactDescriptionBase const type. -func PossibleKindBasicRepairImpactDescriptionBaseValues() []KindBasicRepairImpactDescriptionBase { - return []KindBasicRepairImpactDescriptionBase{KindBasicRepairImpactDescriptionBaseKindNode, KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicRepairTargetDescriptionBase enumerates the values for kind basic repair target description base. -type KindBasicRepairTargetDescriptionBase string - -const ( - // KindBasicRepairTargetDescriptionBaseKindNode ... - KindBasicRepairTargetDescriptionBaseKindNode KindBasicRepairTargetDescriptionBase = "Node" - // KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase ... - KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase KindBasicRepairTargetDescriptionBase = "RepairTargetDescriptionBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicRepairTargetDescriptionBaseValues returns an array of possible values for the KindBasicRepairTargetDescriptionBase const type. -func PossibleKindBasicRepairTargetDescriptionBaseValues() []KindBasicRepairTargetDescriptionBase { - return []KindBasicRepairTargetDescriptionBase{KindBasicRepairTargetDescriptionBaseKindNode, KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicReplicaStatusBase enumerates the values for kind basic replica status base. -type KindBasicReplicaStatusBase string - -const ( - // KindKeyValueStore ... - KindKeyValueStore KindBasicReplicaStatusBase = "KeyValueStore" - // KindReplicaStatusBase ... - KindReplicaStatusBase KindBasicReplicaStatusBase = "ReplicaStatusBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicReplicaStatusBaseValues returns an array of possible values for the KindBasicReplicaStatusBase const type. -func PossibleKindBasicReplicaStatusBaseValues() []KindBasicReplicaStatusBase { - return []KindBasicReplicaStatusBase{KindKeyValueStore, KindReplicaStatusBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicReplicatorStatus enumerates the values for kind basic replicator status. -type KindBasicReplicatorStatus string - -const ( - // KindActiveSecondary ... - KindActiveSecondary KindBasicReplicatorStatus = "ActiveSecondary" - // KindIdleSecondary ... - KindIdleSecondary KindBasicReplicatorStatus = "IdleSecondary" - // KindPrimary ... - KindPrimary KindBasicReplicatorStatus = "Primary" - // KindReplicatorStatus ... - KindReplicatorStatus KindBasicReplicatorStatus = "ReplicatorStatus" - // KindSecondaryReplicatorStatus ... - KindSecondaryReplicatorStatus KindBasicReplicatorStatus = "SecondaryReplicatorStatus" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicReplicatorStatusValues returns an array of possible values for the KindBasicReplicatorStatus const type. -func PossibleKindBasicReplicatorStatusValues() []KindBasicReplicatorStatus { - return []KindBasicReplicatorStatus{KindActiveSecondary, KindIdleSecondary, KindPrimary, KindReplicatorStatus, KindSecondaryReplicatorStatus} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicSafetyCheck enumerates the values for kind basic safety check. -type KindBasicSafetyCheck string - -const ( - // KindEnsureAvailability ... - KindEnsureAvailability KindBasicSafetyCheck = "EnsureAvailability" - // KindEnsurePartitionQuorum ... - KindEnsurePartitionQuorum KindBasicSafetyCheck = "EnsurePartitionQuorum" - // KindEnsureSeedNodeQuorum ... - KindEnsureSeedNodeQuorum KindBasicSafetyCheck = "EnsureSeedNodeQuorum" - // KindPartitionSafetyCheck ... - KindPartitionSafetyCheck KindBasicSafetyCheck = "PartitionSafetyCheck" - // KindSafetyCheck ... - KindSafetyCheck KindBasicSafetyCheck = "SafetyCheck" - // KindWaitForInbuildReplica ... - KindWaitForInbuildReplica KindBasicSafetyCheck = "WaitForInbuildReplica" - // KindWaitForPrimaryPlacement ... - KindWaitForPrimaryPlacement KindBasicSafetyCheck = "WaitForPrimaryPlacement" - // KindWaitForPrimarySwap ... - KindWaitForPrimarySwap KindBasicSafetyCheck = "WaitForPrimarySwap" - // KindWaitForReconfiguration ... - KindWaitForReconfiguration KindBasicSafetyCheck = "WaitForReconfiguration" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicSafetyCheckValues returns an array of possible values for the KindBasicSafetyCheck const type. -func PossibleKindBasicSafetyCheckValues() []KindBasicSafetyCheck { - return []KindBasicSafetyCheck{KindEnsureAvailability, KindEnsurePartitionQuorum, KindEnsureSeedNodeQuorum, KindPartitionSafetyCheck, KindSafetyCheck, KindWaitForInbuildReplica, KindWaitForPrimaryPlacement, KindWaitForPrimarySwap, KindWaitForReconfiguration} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicServiceTypeDescription enumerates the values for kind basic service type description. -type KindBasicServiceTypeDescription string - -const ( - // KindServiceTypeDescription ... - KindServiceTypeDescription KindBasicServiceTypeDescription = "ServiceTypeDescription" - // KindStateful ... - KindStateful KindBasicServiceTypeDescription = "Stateful" - // KindStateless1 ... - KindStateless1 KindBasicServiceTypeDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicServiceTypeDescriptionValues returns an array of possible values for the KindBasicServiceTypeDescription const type. -func PossibleKindBasicServiceTypeDescriptionValues() []KindBasicServiceTypeDescription { - return []KindBasicServiceTypeDescription{KindServiceTypeDescription, KindStateful, KindStateless1} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationIntent enumerates the values for node deactivation intent. -type NodeDeactivationIntent string - -const ( - // NodeDeactivationIntentInvalid ... - NodeDeactivationIntentInvalid NodeDeactivationIntent = "Invalid" - // NodeDeactivationIntentPause ... - NodeDeactivationIntentPause NodeDeactivationIntent = "Pause" - // NodeDeactivationIntentRemoveData ... - NodeDeactivationIntentRemoveData NodeDeactivationIntent = "RemoveData" - // NodeDeactivationIntentRemoveNode ... - NodeDeactivationIntentRemoveNode NodeDeactivationIntent = "RemoveNode" - // NodeDeactivationIntentRestart ... - NodeDeactivationIntentRestart NodeDeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationIntentValues returns an array of possible values for the NodeDeactivationIntent const type. -func PossibleNodeDeactivationIntentValues() []NodeDeactivationIntent { - return []NodeDeactivationIntent{NodeDeactivationIntentInvalid, NodeDeactivationIntentPause, NodeDeactivationIntentRemoveData, NodeDeactivationIntentRemoveNode, NodeDeactivationIntentRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationIntent1 enumerates the values for node deactivation intent 1. -type NodeDeactivationIntent1 string - -const ( - // NodeDeactivationIntent1Invalid ... - NodeDeactivationIntent1Invalid NodeDeactivationIntent1 = "Invalid" - // NodeDeactivationIntent1Pause ... - NodeDeactivationIntent1Pause NodeDeactivationIntent1 = "Pause" - // NodeDeactivationIntent1RemoveData ... - NodeDeactivationIntent1RemoveData NodeDeactivationIntent1 = "RemoveData" - // NodeDeactivationIntent1RemoveNode ... - NodeDeactivationIntent1RemoveNode NodeDeactivationIntent1 = "RemoveNode" - // NodeDeactivationIntent1Restart ... - NodeDeactivationIntent1Restart NodeDeactivationIntent1 = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationIntent1Values returns an array of possible values for the NodeDeactivationIntent1 const type. -func PossibleNodeDeactivationIntent1Values() []NodeDeactivationIntent1 { - return []NodeDeactivationIntent1{NodeDeactivationIntent1Invalid, NodeDeactivationIntent1Pause, NodeDeactivationIntent1RemoveData, NodeDeactivationIntent1RemoveNode, NodeDeactivationIntent1Restart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationStatus enumerates the values for node deactivation status. -type NodeDeactivationStatus string - -const ( - // NodeDeactivationStatusCompleted ... - NodeDeactivationStatusCompleted NodeDeactivationStatus = "Completed" - // NodeDeactivationStatusNone ... - NodeDeactivationStatusNone NodeDeactivationStatus = "None" - // NodeDeactivationStatusSafetyCheckComplete ... - NodeDeactivationStatusSafetyCheckComplete NodeDeactivationStatus = "SafetyCheckComplete" - // NodeDeactivationStatusSafetyCheckInProgress ... - NodeDeactivationStatusSafetyCheckInProgress NodeDeactivationStatus = "SafetyCheckInProgress" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationStatusValues returns an array of possible values for the NodeDeactivationStatus const type. -func PossibleNodeDeactivationStatusValues() []NodeDeactivationStatus { - return []NodeDeactivationStatus{NodeDeactivationStatusCompleted, NodeDeactivationStatusNone, NodeDeactivationStatusSafetyCheckComplete, NodeDeactivationStatusSafetyCheckInProgress} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTaskType enumerates the values for node deactivation task type. -type NodeDeactivationTaskType string - -const ( - // NodeDeactivationTaskTypeClient ... - NodeDeactivationTaskTypeClient NodeDeactivationTaskType = "Client" - // NodeDeactivationTaskTypeInfrastructure ... - NodeDeactivationTaskTypeInfrastructure NodeDeactivationTaskType = "Infrastructure" - // NodeDeactivationTaskTypeInvalid ... - NodeDeactivationTaskTypeInvalid NodeDeactivationTaskType = "Invalid" - // NodeDeactivationTaskTypeRepair ... - NodeDeactivationTaskTypeRepair NodeDeactivationTaskType = "Repair" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationTaskTypeValues returns an array of possible values for the NodeDeactivationTaskType const type. -func PossibleNodeDeactivationTaskTypeValues() []NodeDeactivationTaskType { - return []NodeDeactivationTaskType{NodeDeactivationTaskTypeClient, NodeDeactivationTaskTypeInfrastructure, NodeDeactivationTaskTypeInvalid, NodeDeactivationTaskTypeRepair} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeStatus enumerates the values for node status. -type NodeStatus string - -const ( - // NodeStatusDisabled ... - NodeStatusDisabled NodeStatus = "Disabled" - // NodeStatusDisabling ... - NodeStatusDisabling NodeStatus = "Disabling" - // NodeStatusDown ... - NodeStatusDown NodeStatus = "Down" - // NodeStatusEnabling ... - NodeStatusEnabling NodeStatus = "Enabling" - // NodeStatusInvalid ... - NodeStatusInvalid NodeStatus = "Invalid" - // NodeStatusRemoved ... - NodeStatusRemoved NodeStatus = "Removed" - // NodeStatusUnknown ... - NodeStatusUnknown NodeStatus = "Unknown" - // NodeStatusUp ... - NodeStatusUp NodeStatus = "Up" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type. -func PossibleNodeStatusValues() []NodeStatus { - return []NodeStatus{NodeStatusDisabled, NodeStatusDisabling, NodeStatusDown, NodeStatusEnabling, NodeStatusInvalid, NodeStatusRemoved, NodeStatusUnknown, NodeStatusUp} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PackageSharingScope enumerates the values for package sharing scope. -type PackageSharingScope string - -const ( - // PackageSharingScopeAll ... - PackageSharingScopeAll PackageSharingScope = "All" - // PackageSharingScopeCode ... - PackageSharingScopeCode PackageSharingScope = "Code" - // PackageSharingScopeConfig ... - PackageSharingScopeConfig PackageSharingScope = "Config" - // PackageSharingScopeData ... - PackageSharingScopeData PackageSharingScope = "Data" - // PackageSharingScopeNone ... - PackageSharingScopeNone PackageSharingScope = "None" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePackageSharingScopeValues returns an array of possible values for the PackageSharingScope const type. -func PossiblePackageSharingScopeValues() []PackageSharingScope { - return []PackageSharingScope{PackageSharingScopeAll, PackageSharingScopeCode, PackageSharingScopeConfig, PackageSharingScopeData, PackageSharingScopeNone} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionScheme enumerates the values for partition scheme. -type PartitionScheme string - -const ( - // PartitionSchemeNamed ... - PartitionSchemeNamed PartitionScheme = "Named" - // PartitionSchemePartitionSchemeDescription ... - PartitionSchemePartitionSchemeDescription PartitionScheme = "PartitionSchemeDescription" - // PartitionSchemeSingleton ... - PartitionSchemeSingleton PartitionScheme = "Singleton" - // PartitionSchemeUniformInt64Range ... - PartitionSchemeUniformInt64Range PartitionScheme = "UniformInt64Range" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type. -func PossiblePartitionSchemeValues() []PartitionScheme { - return []PartitionScheme{PartitionSchemeNamed, PartitionSchemePartitionSchemeDescription, PartitionSchemeSingleton, PartitionSchemeUniformInt64Range} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionStatus enumerates the values for partition status. -type PartitionStatus string - -const ( - // PartitionStatusDeleting ... - PartitionStatusDeleting PartitionStatus = "Deleting" - // PartitionStatusInQuorumLoss ... - PartitionStatusInQuorumLoss PartitionStatus = "InQuorumLoss" - // PartitionStatusInvalid ... - PartitionStatusInvalid PartitionStatus = "Invalid" - // PartitionStatusNotReady ... - PartitionStatusNotReady PartitionStatus = "NotReady" - // PartitionStatusReady ... - PartitionStatusReady PartitionStatus = "Ready" - // PartitionStatusReconfiguring ... - PartitionStatusReconfiguring PartitionStatus = "Reconfiguring" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionStatusValues returns an array of possible values for the PartitionStatus const type. -func PossiblePartitionStatusValues() []PartitionStatus { - return []PartitionStatus{PartitionStatusDeleting, PartitionStatusInQuorumLoss, PartitionStatusInvalid, PartitionStatusNotReady, PartitionStatusReady, PartitionStatusReconfiguring} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PreparingHealthCheckState enumerates the values for preparing health check state. -type PreparingHealthCheckState string - -const ( - // InProgress ... - InProgress PreparingHealthCheckState = "InProgress" - // NotStarted ... - NotStarted PreparingHealthCheckState = "NotStarted" - // Skipped ... - Skipped PreparingHealthCheckState = "Skipped" - // Succeeded ... - Succeeded PreparingHealthCheckState = "Succeeded" - // TimedOut ... - TimedOut PreparingHealthCheckState = "TimedOut" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePreparingHealthCheckStateValues returns an array of possible values for the PreparingHealthCheckState const type. -func PossiblePreparingHealthCheckStateValues() []PreparingHealthCheckState { - return []PreparingHealthCheckState{InProgress, NotStarted, Skipped, Succeeded, TimedOut} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PreviousConfigurationRole enumerates the values for previous configuration role. -type PreviousConfigurationRole string - -const ( - // PreviousConfigurationRoleActiveSecondary ... - PreviousConfigurationRoleActiveSecondary PreviousConfigurationRole = "ActiveSecondary" - // PreviousConfigurationRoleIdleSecondary ... - PreviousConfigurationRoleIdleSecondary PreviousConfigurationRole = "IdleSecondary" - // PreviousConfigurationRoleNone ... - PreviousConfigurationRoleNone PreviousConfigurationRole = "None" - // PreviousConfigurationRolePrimary ... - PreviousConfigurationRolePrimary PreviousConfigurationRole = "Primary" - // PreviousConfigurationRoleUnknown ... - PreviousConfigurationRoleUnknown PreviousConfigurationRole = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePreviousConfigurationRoleValues returns an array of possible values for the PreviousConfigurationRole const type. -func PossiblePreviousConfigurationRoleValues() []PreviousConfigurationRole { - return []PreviousConfigurationRole{PreviousConfigurationRoleActiveSecondary, PreviousConfigurationRoleIdleSecondary, PreviousConfigurationRoleNone, PreviousConfigurationRolePrimary, PreviousConfigurationRoleUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReadStatus enumerates the values for read status. -type ReadStatus string - -const ( - // ReadStatusGranted ... - ReadStatusGranted ReadStatus = "Granted" - // ReadStatusInvalid ... - ReadStatusInvalid ReadStatus = "Invalid" - // ReadStatusNotPrimary ... - ReadStatusNotPrimary ReadStatus = "NotPrimary" - // ReadStatusNoWriteQuorum ... - ReadStatusNoWriteQuorum ReadStatus = "NoWriteQuorum" - // ReadStatusReconfigurationPending ... - ReadStatusReconfigurationPending ReadStatus = "ReconfigurationPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReadStatusValues returns an array of possible values for the ReadStatus const type. -func PossibleReadStatusValues() []ReadStatus { - return []ReadStatus{ReadStatusGranted, ReadStatusInvalid, ReadStatusNotPrimary, ReadStatusNoWriteQuorum, ReadStatusReconfigurationPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReconfigurationPhase enumerates the values for reconfiguration phase. -type ReconfigurationPhase string - -const ( - // ReconfigurationPhaseAbortPhaseZero ... - ReconfigurationPhaseAbortPhaseZero ReconfigurationPhase = "AbortPhaseZero" - // ReconfigurationPhaseNone ... - ReconfigurationPhaseNone ReconfigurationPhase = "None" - // ReconfigurationPhasePhase0 ... - ReconfigurationPhasePhase0 ReconfigurationPhase = "Phase0" - // ReconfigurationPhasePhase1 ... - ReconfigurationPhasePhase1 ReconfigurationPhase = "Phase1" - // ReconfigurationPhasePhase2 ... - ReconfigurationPhasePhase2 ReconfigurationPhase = "Phase2" - // ReconfigurationPhasePhase3 ... - ReconfigurationPhasePhase3 ReconfigurationPhase = "Phase3" - // ReconfigurationPhasePhase4 ... - ReconfigurationPhasePhase4 ReconfigurationPhase = "Phase4" - // ReconfigurationPhaseUnknown ... - ReconfigurationPhaseUnknown ReconfigurationPhase = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReconfigurationPhaseValues returns an array of possible values for the ReconfigurationPhase const type. -func PossibleReconfigurationPhaseValues() []ReconfigurationPhase { - return []ReconfigurationPhase{ReconfigurationPhaseAbortPhaseZero, ReconfigurationPhaseNone, ReconfigurationPhasePhase0, ReconfigurationPhasePhase1, ReconfigurationPhasePhase2, ReconfigurationPhasePhase3, ReconfigurationPhasePhase4, ReconfigurationPhaseUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReconfigurationType enumerates the values for reconfiguration type. -type ReconfigurationType string - -const ( - // ReconfigurationTypeFailover ... - ReconfigurationTypeFailover ReconfigurationType = "Failover" - // ReconfigurationTypeOther ... - ReconfigurationTypeOther ReconfigurationType = "Other" - // ReconfigurationTypeSwapPrimary ... - ReconfigurationTypeSwapPrimary ReconfigurationType = "SwapPrimary" - // ReconfigurationTypeUnknown ... - ReconfigurationTypeUnknown ReconfigurationType = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReconfigurationTypeValues returns an array of possible values for the ReconfigurationType const type. -func PossibleReconfigurationTypeValues() []ReconfigurationType { - return []ReconfigurationType{ReconfigurationTypeFailover, ReconfigurationTypeOther, ReconfigurationTypeSwapPrimary, ReconfigurationTypeUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaRole enumerates the values for replica role. -type ReplicaRole string - -const ( - // ReplicaRoleActiveSecondary ... - ReplicaRoleActiveSecondary ReplicaRole = "ActiveSecondary" - // ReplicaRoleIdleSecondary ... - ReplicaRoleIdleSecondary ReplicaRole = "IdleSecondary" - // ReplicaRoleNone ... - ReplicaRoleNone ReplicaRole = "None" - // ReplicaRolePrimary ... - ReplicaRolePrimary ReplicaRole = "Primary" - // ReplicaRoleUnknown ... - ReplicaRoleUnknown ReplicaRole = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaRoleValues returns an array of possible values for the ReplicaRole const type. -func PossibleReplicaRoleValues() []ReplicaRole { - return []ReplicaRole{ReplicaRoleActiveSecondary, ReplicaRoleIdleSecondary, ReplicaRoleNone, ReplicaRolePrimary, ReplicaRoleUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaRole1 enumerates the values for replica role 1. -type ReplicaRole1 string - -const ( - // ReplicaRole1ActiveSecondary ... - ReplicaRole1ActiveSecondary ReplicaRole1 = "ActiveSecondary" - // ReplicaRole1IdleSecondary ... - ReplicaRole1IdleSecondary ReplicaRole1 = "IdleSecondary" - // ReplicaRole1None ... - ReplicaRole1None ReplicaRole1 = "None" - // ReplicaRole1Primary ... - ReplicaRole1Primary ReplicaRole1 = "Primary" - // ReplicaRole1Unknown ... - ReplicaRole1Unknown ReplicaRole1 = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaRole1Values returns an array of possible values for the ReplicaRole1 const type. -func PossibleReplicaRole1Values() []ReplicaRole1 { - return []ReplicaRole1{ReplicaRole1ActiveSecondary, ReplicaRole1IdleSecondary, ReplicaRole1None, ReplicaRole1Primary, ReplicaRole1Unknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus enumerates the values for replica status. -type ReplicaStatus string - -const ( - // ReplicaStatusDown ... - ReplicaStatusDown ReplicaStatus = "Down" - // ReplicaStatusDropped ... - ReplicaStatusDropped ReplicaStatus = "Dropped" - // ReplicaStatusInBuild ... - ReplicaStatusInBuild ReplicaStatus = "InBuild" - // ReplicaStatusInvalid ... - ReplicaStatusInvalid ReplicaStatus = "Invalid" - // ReplicaStatusReady ... - ReplicaStatusReady ReplicaStatus = "Ready" - // ReplicaStatusStandby ... - ReplicaStatusStandby ReplicaStatus = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatusValues returns an array of possible values for the ReplicaStatus const type. -func PossibleReplicaStatusValues() []ReplicaStatus { - return []ReplicaStatus{ReplicaStatusDown, ReplicaStatusDropped, ReplicaStatusInBuild, ReplicaStatusInvalid, ReplicaStatusReady, ReplicaStatusStandby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus1 enumerates the values for replica status 1. -type ReplicaStatus1 string - -const ( - // ReplicaStatus1Down ... - ReplicaStatus1Down ReplicaStatus1 = "Down" - // ReplicaStatus1Dropped ... - ReplicaStatus1Dropped ReplicaStatus1 = "Dropped" - // ReplicaStatus1InBuild ... - ReplicaStatus1InBuild ReplicaStatus1 = "InBuild" - // ReplicaStatus1Invalid ... - ReplicaStatus1Invalid ReplicaStatus1 = "Invalid" - // ReplicaStatus1Ready ... - ReplicaStatus1Ready ReplicaStatus1 = "Ready" - // ReplicaStatus1Standby ... - ReplicaStatus1Standby ReplicaStatus1 = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatus1Values returns an array of possible values for the ReplicaStatus1 const type. -func PossibleReplicaStatus1Values() []ReplicaStatus1 { - return []ReplicaStatus1{ReplicaStatus1Down, ReplicaStatus1Dropped, ReplicaStatus1InBuild, ReplicaStatus1Invalid, ReplicaStatus1Ready, ReplicaStatus1Standby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestoringHealthCheckState enumerates the values for restoring health check state. -type RestoringHealthCheckState string - -const ( - // RestoringHealthCheckStateInProgress ... - RestoringHealthCheckStateInProgress RestoringHealthCheckState = "InProgress" - // RestoringHealthCheckStateNotStarted ... - RestoringHealthCheckStateNotStarted RestoringHealthCheckState = "NotStarted" - // RestoringHealthCheckStateSkipped ... - RestoringHealthCheckStateSkipped RestoringHealthCheckState = "Skipped" - // RestoringHealthCheckStateSucceeded ... - RestoringHealthCheckStateSucceeded RestoringHealthCheckState = "Succeeded" - // RestoringHealthCheckStateTimedOut ... - RestoringHealthCheckStateTimedOut RestoringHealthCheckState = "TimedOut" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRestoringHealthCheckStateValues returns an array of possible values for the RestoringHealthCheckState const type. -func PossibleRestoringHealthCheckStateValues() []RestoringHealthCheckState { - return []RestoringHealthCheckState{RestoringHealthCheckStateInProgress, RestoringHealthCheckStateNotStarted, RestoringHealthCheckStateSkipped, RestoringHealthCheckStateSucceeded, RestoringHealthCheckStateTimedOut} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResultStatus enumerates the values for result status. -type ResultStatus string - -const ( - // ResultStatusCancelled ... - ResultStatusCancelled ResultStatus = "Cancelled" - // ResultStatusFailed ... - ResultStatusFailed ResultStatus = "Failed" - // ResultStatusInterrupted ... - ResultStatusInterrupted ResultStatus = "Interrupted" - // ResultStatusInvalid ... - ResultStatusInvalid ResultStatus = "Invalid" - // ResultStatusPending ... - ResultStatusPending ResultStatus = "Pending" - // ResultStatusSucceeded ... - ResultStatusSucceeded ResultStatus = "Succeeded" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleResultStatusValues returns an array of possible values for the ResultStatus const type. -func PossibleResultStatusValues() []ResultStatus { - return []ResultStatus{ResultStatusCancelled, ResultStatusFailed, ResultStatusInterrupted, ResultStatusInvalid, ResultStatusPending, ResultStatusSucceeded} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode enumerates the values for rolling upgrade mode. -type RollingUpgradeMode string - -const ( - // RollingUpgradeModeInvalid ... - RollingUpgradeModeInvalid RollingUpgradeMode = "Invalid" - // RollingUpgradeModeMonitored ... - RollingUpgradeModeMonitored RollingUpgradeMode = "Monitored" - // RollingUpgradeModeUnmonitoredAuto ... - RollingUpgradeModeUnmonitoredAuto RollingUpgradeMode = "UnmonitoredAuto" - // RollingUpgradeModeUnmonitoredManual ... - RollingUpgradeModeUnmonitoredManual RollingUpgradeMode = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeModeValues returns an array of possible values for the RollingUpgradeMode const type. -func PossibleRollingUpgradeModeValues() []RollingUpgradeMode { - return []RollingUpgradeMode{RollingUpgradeModeInvalid, RollingUpgradeModeMonitored, RollingUpgradeModeUnmonitoredAuto, RollingUpgradeModeUnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode1 enumerates the values for rolling upgrade mode 1. -type RollingUpgradeMode1 string - -const ( - // RollingUpgradeMode1Invalid ... - RollingUpgradeMode1Invalid RollingUpgradeMode1 = "Invalid" - // RollingUpgradeMode1Monitored ... - RollingUpgradeMode1Monitored RollingUpgradeMode1 = "Monitored" - // RollingUpgradeMode1UnmonitoredAuto ... - RollingUpgradeMode1UnmonitoredAuto RollingUpgradeMode1 = "UnmonitoredAuto" - // RollingUpgradeMode1UnmonitoredManual ... - RollingUpgradeMode1UnmonitoredManual RollingUpgradeMode1 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode1Values returns an array of possible values for the RollingUpgradeMode1 const type. -func PossibleRollingUpgradeMode1Values() []RollingUpgradeMode1 { - return []RollingUpgradeMode1{RollingUpgradeMode1Invalid, RollingUpgradeMode1Monitored, RollingUpgradeMode1UnmonitoredAuto, RollingUpgradeMode1UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode2 enumerates the values for rolling upgrade mode 2. -type RollingUpgradeMode2 string - -const ( - // RollingUpgradeMode2Invalid ... - RollingUpgradeMode2Invalid RollingUpgradeMode2 = "Invalid" - // RollingUpgradeMode2Monitored ... - RollingUpgradeMode2Monitored RollingUpgradeMode2 = "Monitored" - // RollingUpgradeMode2UnmonitoredAuto ... - RollingUpgradeMode2UnmonitoredAuto RollingUpgradeMode2 = "UnmonitoredAuto" - // RollingUpgradeMode2UnmonitoredManual ... - RollingUpgradeMode2UnmonitoredManual RollingUpgradeMode2 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode2Values returns an array of possible values for the RollingUpgradeMode2 const type. -func PossibleRollingUpgradeMode2Values() []RollingUpgradeMode2 { - return []RollingUpgradeMode2{RollingUpgradeMode2Invalid, RollingUpgradeMode2Monitored, RollingUpgradeMode2UnmonitoredAuto, RollingUpgradeMode2UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode3 enumerates the values for rolling upgrade mode 3. -type RollingUpgradeMode3 string - -const ( - // RollingUpgradeMode3Invalid ... - RollingUpgradeMode3Invalid RollingUpgradeMode3 = "Invalid" - // RollingUpgradeMode3Monitored ... - RollingUpgradeMode3Monitored RollingUpgradeMode3 = "Monitored" - // RollingUpgradeMode3UnmonitoredAuto ... - RollingUpgradeMode3UnmonitoredAuto RollingUpgradeMode3 = "UnmonitoredAuto" - // RollingUpgradeMode3UnmonitoredManual ... - RollingUpgradeMode3UnmonitoredManual RollingUpgradeMode3 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode3Values returns an array of possible values for the RollingUpgradeMode3 const type. -func PossibleRollingUpgradeMode3Values() []RollingUpgradeMode3 { - return []RollingUpgradeMode3{RollingUpgradeMode3Invalid, RollingUpgradeMode3Monitored, RollingUpgradeMode3UnmonitoredAuto, RollingUpgradeMode3UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode4 enumerates the values for rolling upgrade mode 4. -type RollingUpgradeMode4 string - -const ( - // RollingUpgradeMode4Invalid ... - RollingUpgradeMode4Invalid RollingUpgradeMode4 = "Invalid" - // RollingUpgradeMode4Monitored ... - RollingUpgradeMode4Monitored RollingUpgradeMode4 = "Monitored" - // RollingUpgradeMode4UnmonitoredAuto ... - RollingUpgradeMode4UnmonitoredAuto RollingUpgradeMode4 = "UnmonitoredAuto" - // RollingUpgradeMode4UnmonitoredManual ... - RollingUpgradeMode4UnmonitoredManual RollingUpgradeMode4 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode4Values returns an array of possible values for the RollingUpgradeMode4 const type. -func PossibleRollingUpgradeMode4Values() []RollingUpgradeMode4 { - return []RollingUpgradeMode4{RollingUpgradeMode4Invalid, RollingUpgradeMode4Monitored, RollingUpgradeMode4UnmonitoredAuto, RollingUpgradeMode4UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode5 enumerates the values for rolling upgrade mode 5. -type RollingUpgradeMode5 string - -const ( - // RollingUpgradeMode5Invalid ... - RollingUpgradeMode5Invalid RollingUpgradeMode5 = "Invalid" - // RollingUpgradeMode5Monitored ... - RollingUpgradeMode5Monitored RollingUpgradeMode5 = "Monitored" - // RollingUpgradeMode5UnmonitoredAuto ... - RollingUpgradeMode5UnmonitoredAuto RollingUpgradeMode5 = "UnmonitoredAuto" - // RollingUpgradeMode5UnmonitoredManual ... - RollingUpgradeMode5UnmonitoredManual RollingUpgradeMode5 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode5Values returns an array of possible values for the RollingUpgradeMode5 const type. -func PossibleRollingUpgradeMode5Values() []RollingUpgradeMode5 { - return []RollingUpgradeMode5{RollingUpgradeMode5Invalid, RollingUpgradeMode5Monitored, RollingUpgradeMode5UnmonitoredAuto, RollingUpgradeMode5UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode6 enumerates the values for rolling upgrade mode 6. -type RollingUpgradeMode6 string - -const ( - // RollingUpgradeMode6Invalid ... - RollingUpgradeMode6Invalid RollingUpgradeMode6 = "Invalid" - // RollingUpgradeMode6Monitored ... - RollingUpgradeMode6Monitored RollingUpgradeMode6 = "Monitored" - // RollingUpgradeMode6UnmonitoredAuto ... - RollingUpgradeMode6UnmonitoredAuto RollingUpgradeMode6 = "UnmonitoredAuto" - // RollingUpgradeMode6UnmonitoredManual ... - RollingUpgradeMode6UnmonitoredManual RollingUpgradeMode6 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode6Values returns an array of possible values for the RollingUpgradeMode6 const type. -func PossibleRollingUpgradeMode6Values() []RollingUpgradeMode6 { - return []RollingUpgradeMode6{RollingUpgradeMode6Invalid, RollingUpgradeMode6Monitored, RollingUpgradeMode6UnmonitoredAuto, RollingUpgradeMode6UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeMode7 enumerates the values for rolling upgrade mode 7. -type RollingUpgradeMode7 string - -const ( - // RollingUpgradeMode7Invalid ... - RollingUpgradeMode7Invalid RollingUpgradeMode7 = "Invalid" - // RollingUpgradeMode7Monitored ... - RollingUpgradeMode7Monitored RollingUpgradeMode7 = "Monitored" - // RollingUpgradeMode7UnmonitoredAuto ... - RollingUpgradeMode7UnmonitoredAuto RollingUpgradeMode7 = "UnmonitoredAuto" - // RollingUpgradeMode7UnmonitoredManual ... - RollingUpgradeMode7UnmonitoredManual RollingUpgradeMode7 = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRollingUpgradeMode7Values returns an array of possible values for the RollingUpgradeMode7 const type. -func PossibleRollingUpgradeMode7Values() []RollingUpgradeMode7 { - return []RollingUpgradeMode7{RollingUpgradeMode7Invalid, RollingUpgradeMode7Monitored, RollingUpgradeMode7UnmonitoredAuto, RollingUpgradeMode7UnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Scheme enumerates the values for scheme. -type Scheme string - -const ( - // SchemeAffinity ... - SchemeAffinity Scheme = "Affinity" - // SchemeAlignedAffinity ... - SchemeAlignedAffinity Scheme = "AlignedAffinity" - // SchemeInvalid ... - SchemeInvalid Scheme = "Invalid" - // SchemeNonAlignedAffinity ... - SchemeNonAlignedAffinity Scheme = "NonAlignedAffinity" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleSchemeValues returns an array of possible values for the Scheme const type. -func PossibleSchemeValues() []Scheme { - return []Scheme{SchemeAffinity, SchemeAlignedAffinity, SchemeInvalid, SchemeNonAlignedAffinity} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind enumerates the values for service kind. -type ServiceKind string - -const ( - // ServiceKindDeployedServiceReplicaInfo ... - ServiceKindDeployedServiceReplicaInfo ServiceKind = "DeployedServiceReplicaInfo" - // ServiceKindStateful ... - ServiceKindStateful ServiceKind = "Stateful" - // ServiceKindStateless ... - ServiceKindStateless ServiceKind = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. -func PossibleServiceKindValues() []ServiceKind { - return []ServiceKind{ServiceKindDeployedServiceReplicaInfo, ServiceKindStateful, ServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicDeployedServiceReplicaDetailInfo enumerates the values for service kind basic deployed -// service replica detail info. -type ServiceKindBasicDeployedServiceReplicaDetailInfo string - -const ( - // ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo ... - ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo ServiceKindBasicDeployedServiceReplicaDetailInfo = "DeployedServiceReplicaDetailInfo" - // ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful ... - ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateful" - // ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless ... - ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues returns an array of possible values for the ServiceKindBasicDeployedServiceReplicaDetailInfo const type. -func PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues() []ServiceKindBasicDeployedServiceReplicaDetailInfo { - return []ServiceKindBasicDeployedServiceReplicaDetailInfo{ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo, ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful, ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaHealth enumerates the values for service kind basic replica health. -type ServiceKindBasicReplicaHealth string - -const ( - // ServiceKindBasicReplicaHealthServiceKindReplicaHealth ... - ServiceKindBasicReplicaHealthServiceKindReplicaHealth ServiceKindBasicReplicaHealth = "ReplicaHealth" - // ServiceKindBasicReplicaHealthServiceKindStateful ... - ServiceKindBasicReplicaHealthServiceKindStateful ServiceKindBasicReplicaHealth = "Stateful" - // ServiceKindBasicReplicaHealthServiceKindStateless ... - ServiceKindBasicReplicaHealthServiceKindStateless ServiceKindBasicReplicaHealth = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaHealthValues returns an array of possible values for the ServiceKindBasicReplicaHealth const type. -func PossibleServiceKindBasicReplicaHealthValues() []ServiceKindBasicReplicaHealth { - return []ServiceKindBasicReplicaHealth{ServiceKindBasicReplicaHealthServiceKindReplicaHealth, ServiceKindBasicReplicaHealthServiceKindStateful, ServiceKindBasicReplicaHealthServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaHealthState enumerates the values for service kind basic replica health state. -type ServiceKindBasicReplicaHealthState string - -const ( - // ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ... - ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ServiceKindBasicReplicaHealthState = "ReplicaHealthState" - // ServiceKindBasicReplicaHealthStateServiceKindStateful ... - ServiceKindBasicReplicaHealthStateServiceKindStateful ServiceKindBasicReplicaHealthState = "Stateful" - // ServiceKindBasicReplicaHealthStateServiceKindStateless ... - ServiceKindBasicReplicaHealthStateServiceKindStateless ServiceKindBasicReplicaHealthState = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaHealthStateValues returns an array of possible values for the ServiceKindBasicReplicaHealthState const type. -func PossibleServiceKindBasicReplicaHealthStateValues() []ServiceKindBasicReplicaHealthState { - return []ServiceKindBasicReplicaHealthState{ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState, ServiceKindBasicReplicaHealthStateServiceKindStateful, ServiceKindBasicReplicaHealthStateServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaInfo enumerates the values for service kind basic replica info. -type ServiceKindBasicReplicaInfo string - -const ( - // ServiceKindBasicReplicaInfoServiceKindReplicaInfo ... - ServiceKindBasicReplicaInfoServiceKindReplicaInfo ServiceKindBasicReplicaInfo = "ReplicaInfo" - // ServiceKindBasicReplicaInfoServiceKindStateful ... - ServiceKindBasicReplicaInfoServiceKindStateful ServiceKindBasicReplicaInfo = "Stateful" - // ServiceKindBasicReplicaInfoServiceKindStateless ... - ServiceKindBasicReplicaInfoServiceKindStateless ServiceKindBasicReplicaInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaInfoValues returns an array of possible values for the ServiceKindBasicReplicaInfo const type. -func PossibleServiceKindBasicReplicaInfoValues() []ServiceKindBasicReplicaInfo { - return []ServiceKindBasicReplicaInfo{ServiceKindBasicReplicaInfoServiceKindReplicaInfo, ServiceKindBasicReplicaInfoServiceKindStateful, ServiceKindBasicReplicaInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceDescription enumerates the values for service kind basic service description. -type ServiceKindBasicServiceDescription string - -const ( - // ServiceKindBasicServiceDescriptionServiceKindServiceDescription ... - ServiceKindBasicServiceDescriptionServiceKindServiceDescription ServiceKindBasicServiceDescription = "ServiceDescription" - // ServiceKindBasicServiceDescriptionServiceKindStateful ... - ServiceKindBasicServiceDescriptionServiceKindStateful ServiceKindBasicServiceDescription = "Stateful" - // ServiceKindBasicServiceDescriptionServiceKindStateless ... - ServiceKindBasicServiceDescriptionServiceKindStateless ServiceKindBasicServiceDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceDescriptionValues returns an array of possible values for the ServiceKindBasicServiceDescription const type. -func PossibleServiceKindBasicServiceDescriptionValues() []ServiceKindBasicServiceDescription { - return []ServiceKindBasicServiceDescription{ServiceKindBasicServiceDescriptionServiceKindServiceDescription, ServiceKindBasicServiceDescriptionServiceKindStateful, ServiceKindBasicServiceDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceInfo enumerates the values for service kind basic service info. -type ServiceKindBasicServiceInfo string - -const ( - // ServiceKindBasicServiceInfoServiceKindServiceInfo ... - ServiceKindBasicServiceInfoServiceKindServiceInfo ServiceKindBasicServiceInfo = "ServiceInfo" - // ServiceKindBasicServiceInfoServiceKindStateful ... - ServiceKindBasicServiceInfoServiceKindStateful ServiceKindBasicServiceInfo = "Stateful" - // ServiceKindBasicServiceInfoServiceKindStateless ... - ServiceKindBasicServiceInfoServiceKindStateless ServiceKindBasicServiceInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceInfoValues returns an array of possible values for the ServiceKindBasicServiceInfo const type. -func PossibleServiceKindBasicServiceInfoValues() []ServiceKindBasicServiceInfo { - return []ServiceKindBasicServiceInfo{ServiceKindBasicServiceInfoServiceKindServiceInfo, ServiceKindBasicServiceInfoServiceKindStateful, ServiceKindBasicServiceInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServicePartitionInfo enumerates the values for service kind basic service partition info. -type ServiceKindBasicServicePartitionInfo string - -const ( - // ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ... - ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ServiceKindBasicServicePartitionInfo = "ServicePartitionInfo" - // ServiceKindBasicServicePartitionInfoServiceKindStateful ... - ServiceKindBasicServicePartitionInfoServiceKindStateful ServiceKindBasicServicePartitionInfo = "Stateful" - // ServiceKindBasicServicePartitionInfoServiceKindStateless ... - ServiceKindBasicServicePartitionInfoServiceKindStateless ServiceKindBasicServicePartitionInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServicePartitionInfoValues returns an array of possible values for the ServiceKindBasicServicePartitionInfo const type. -func PossibleServiceKindBasicServicePartitionInfoValues() []ServiceKindBasicServicePartitionInfo { - return []ServiceKindBasicServicePartitionInfo{ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo, ServiceKindBasicServicePartitionInfoServiceKindStateful, ServiceKindBasicServicePartitionInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceUpdateDescription enumerates the values for service kind basic service update -// description. -type ServiceKindBasicServiceUpdateDescription string - -const ( - // ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ... - ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ServiceKindBasicServiceUpdateDescription = "ServiceUpdateDescription" - // ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ... - ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ServiceKindBasicServiceUpdateDescription = "Stateful" - // ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ... - ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ServiceKindBasicServiceUpdateDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceUpdateDescriptionValues returns an array of possible values for the ServiceKindBasicServiceUpdateDescription const type. -func PossibleServiceKindBasicServiceUpdateDescriptionValues() []ServiceKindBasicServiceUpdateDescription { - return []ServiceKindBasicServiceUpdateDescription{ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription, ServiceKindBasicServiceUpdateDescriptionServiceKindStateful, ServiceKindBasicServiceUpdateDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePackageActivationMode enumerates the values for service package activation mode. -type ServicePackageActivationMode string - -const ( - // ExclusiveProcess ... - ExclusiveProcess ServicePackageActivationMode = "ExclusiveProcess" - // SharedProcess ... - SharedProcess ServicePackageActivationMode = "SharedProcess" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePackageActivationModeValues returns an array of possible values for the ServicePackageActivationMode const type. -func PossibleServicePackageActivationModeValues() []ServicePackageActivationMode { - return []ServicePackageActivationMode{ExclusiveProcess, SharedProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePackageActivationMode1 enumerates the values for service package activation mode 1. -type ServicePackageActivationMode1 string - -const ( - // ServicePackageActivationMode1ExclusiveProcess ... - ServicePackageActivationMode1ExclusiveProcess ServicePackageActivationMode1 = "ExclusiveProcess" - // ServicePackageActivationMode1SharedProcess ... - ServicePackageActivationMode1SharedProcess ServicePackageActivationMode1 = "SharedProcess" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePackageActivationMode1Values returns an array of possible values for the ServicePackageActivationMode1 const type. -func PossibleServicePackageActivationMode1Values() []ServicePackageActivationMode1 { - return []ServicePackageActivationMode1{ServicePackageActivationMode1ExclusiveProcess, ServicePackageActivationMode1SharedProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionKind enumerates the values for service partition kind. -type ServicePartitionKind string - -const ( - // ServicePartitionKindInt64Range ... - ServicePartitionKindInt64Range ServicePartitionKind = "Int64Range" - // ServicePartitionKindNamed ... - ServicePartitionKindNamed ServicePartitionKind = "Named" - // ServicePartitionKindPartitionInformation ... - ServicePartitionKindPartitionInformation ServicePartitionKind = "PartitionInformation" - // ServicePartitionKindSingleton ... - ServicePartitionKindSingleton ServicePartitionKind = "Singleton" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePartitionKindValues returns an array of possible values for the ServicePartitionKind const type. -func PossibleServicePartitionKindValues() []ServicePartitionKind { - return []ServicePartitionKind{ServicePartitionKindInt64Range, ServicePartitionKindNamed, ServicePartitionKindPartitionInformation, ServicePartitionKindSingleton} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceStatus enumerates the values for service status. -type ServiceStatus string - -const ( - // ServiceStatusActive ... - ServiceStatusActive ServiceStatus = "Active" - // ServiceStatusCreating ... - ServiceStatusCreating ServiceStatus = "Creating" - // ServiceStatusDeleting ... - ServiceStatusDeleting ServiceStatus = "Deleting" - // ServiceStatusFailed ... - ServiceStatusFailed ServiceStatus = "Failed" - // ServiceStatusUnknown ... - ServiceStatusUnknown ServiceStatus = "Unknown" - // ServiceStatusUpgrading ... - ServiceStatusUpgrading ServiceStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceStatusValues returns an array of possible values for the ServiceStatus const type. -func PossibleServiceStatusValues() []ServiceStatus { - return []ServiceStatus{ServiceStatusActive, ServiceStatusCreating, ServiceStatusDeleting, ServiceStatusFailed, ServiceStatusUnknown, ServiceStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State enumerates the values for state. -type State string - -const ( - // StateCompleted ... - StateCompleted State = "Completed" - // StateInProgress ... - StateInProgress State = "InProgress" - // StateInvalid ... - StateInvalid State = "Invalid" - // StatePending ... - StatePending State = "Pending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStateValues returns an array of possible values for the State const type. -func PossibleStateValues() []State { - return []State{StateCompleted, StateInProgress, StateInvalid, StatePending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State1 enumerates the values for state 1. -type State1 string - -const ( - // State1Cancelled ... - State1Cancelled State1 = "Cancelled" - // State1Completed ... - State1Completed State1 = "Completed" - // State1Faulted ... - State1Faulted State1 = "Faulted" - // State1ForceCancelled ... - State1ForceCancelled State1 = "ForceCancelled" - // State1Invalid ... - State1Invalid State1 = "Invalid" - // State1RollingBack ... - State1RollingBack State1 = "RollingBack" - // State1Running ... - State1Running State1 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState1Values returns an array of possible values for the State1 const type. -func PossibleState1Values() []State1 { - return []State1{State1Cancelled, State1Completed, State1Faulted, State1ForceCancelled, State1Invalid, State1RollingBack, State1Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State2 enumerates the values for state 2. -type State2 string - -const ( - // State2Cancelled ... - State2Cancelled State2 = "Cancelled" - // State2Completed ... - State2Completed State2 = "Completed" - // State2Faulted ... - State2Faulted State2 = "Faulted" - // State2ForceCancelled ... - State2ForceCancelled State2 = "ForceCancelled" - // State2Invalid ... - State2Invalid State2 = "Invalid" - // State2RollingBack ... - State2RollingBack State2 = "RollingBack" - // State2Running ... - State2Running State2 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState2Values returns an array of possible values for the State2 const type. -func PossibleState2Values() []State2 { - return []State2{State2Cancelled, State2Completed, State2Faulted, State2ForceCancelled, State2Invalid, State2RollingBack, State2Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State3 enumerates the values for state 3. -type State3 string - -const ( - // State3Cancelled ... - State3Cancelled State3 = "Cancelled" - // State3Completed ... - State3Completed State3 = "Completed" - // State3Faulted ... - State3Faulted State3 = "Faulted" - // State3ForceCancelled ... - State3ForceCancelled State3 = "ForceCancelled" - // State3Invalid ... - State3Invalid State3 = "Invalid" - // State3RollingBack ... - State3RollingBack State3 = "RollingBack" - // State3Running ... - State3Running State3 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState3Values returns an array of possible values for the State3 const type. -func PossibleState3Values() []State3 { - return []State3{State3Cancelled, State3Completed, State3Faulted, State3ForceCancelled, State3Invalid, State3RollingBack, State3Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State4 enumerates the values for state 4. -type State4 string - -const ( - // State4Cancelled ... - State4Cancelled State4 = "Cancelled" - // State4Completed ... - State4Completed State4 = "Completed" - // State4Faulted ... - State4Faulted State4 = "Faulted" - // State4ForceCancelled ... - State4ForceCancelled State4 = "ForceCancelled" - // State4Invalid ... - State4Invalid State4 = "Invalid" - // State4RollingBack ... - State4RollingBack State4 = "RollingBack" - // State4Running ... - State4Running State4 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState4Values returns an array of possible values for the State4 const type. -func PossibleState4Values() []State4 { - return []State4{State4Cancelled, State4Completed, State4Faulted, State4ForceCancelled, State4Invalid, State4RollingBack, State4Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State5 enumerates the values for state 5. -type State5 string - -const ( - // State5Cancelled ... - State5Cancelled State5 = "Cancelled" - // State5Completed ... - State5Completed State5 = "Completed" - // State5Faulted ... - State5Faulted State5 = "Faulted" - // State5ForceCancelled ... - State5ForceCancelled State5 = "ForceCancelled" - // State5Invalid ... - State5Invalid State5 = "Invalid" - // State5RollingBack ... - State5RollingBack State5 = "RollingBack" - // State5Running ... - State5Running State5 = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState5Values returns an array of possible values for the State5 const type. -func PossibleState5Values() []State5 { - return []State5{State5Cancelled, State5Completed, State5Faulted, State5ForceCancelled, State5Invalid, State5RollingBack, State5Running} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State6 enumerates the values for state 6. -type State6 string - -const ( - // State6Approved ... - State6Approved State6 = "Approved" - // State6Claimed ... - State6Claimed State6 = "Claimed" - // State6Completed ... - State6Completed State6 = "Completed" - // State6Created ... - State6Created State6 = "Created" - // State6Executing ... - State6Executing State6 = "Executing" - // State6Invalid ... - State6Invalid State6 = "Invalid" - // State6Preparing ... - State6Preparing State6 = "Preparing" - // State6Restoring ... - State6Restoring State6 = "Restoring" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleState6Values returns an array of possible values for the State6 const type. -func PossibleState6Values() []State6 { - return []State6{State6Approved, State6Claimed, State6Completed, State6Created, State6Executing, State6Invalid, State6Preparing, State6Restoring} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status enumerates the values for status. -type Status string - -const ( - // StatusCreating ... - StatusCreating Status = "Creating" - // StatusDeleting ... - StatusDeleting Status = "Deleting" - // StatusFailed ... - StatusFailed Status = "Failed" - // StatusInvalid ... - StatusInvalid Status = "Invalid" - // StatusReady ... - StatusReady Status = "Ready" - // StatusUpgrading ... - StatusUpgrading Status = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatusValues returns an array of possible values for the Status const type. -func PossibleStatusValues() []Status { - return []Status{StatusCreating, StatusDeleting, StatusFailed, StatusInvalid, StatusReady, StatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status1 enumerates the values for status 1. -type Status1 string - -const ( - // Status1Available ... - Status1Available Status1 = "Available" - // Status1Failed ... - Status1Failed Status1 = "Failed" - // Status1Invalid ... - Status1Invalid Status1 = "Invalid" - // Status1Provisioning ... - Status1Provisioning Status1 = "Provisioning" - // Status1Unprovisioning ... - Status1Unprovisioning Status1 = "Unprovisioning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus1Values returns an array of possible values for the Status1 const type. -func PossibleStatus1Values() []Status1 { - return []Status1{Status1Available, Status1Failed, Status1Invalid, Status1Provisioning, Status1Unprovisioning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status2 enumerates the values for status 2. -type Status2 string - -const ( - // Status2Activating ... - Status2Activating Status2 = "Activating" - // Status2Active ... - Status2Active Status2 = "Active" - // Status2Deactivating ... - Status2Deactivating Status2 = "Deactivating" - // Status2Downloading ... - Status2Downloading Status2 = "Downloading" - // Status2Invalid ... - Status2Invalid Status2 = "Invalid" - // Status2Upgrading ... - Status2Upgrading Status2 = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus2Values returns an array of possible values for the Status2 const type. -func PossibleStatus2Values() []Status2 { - return []Status2{Status2Activating, Status2Active, Status2Deactivating, Status2Downloading, Status2Invalid, Status2Upgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status3 enumerates the values for status 3. -type Status3 string - -const ( - // Status3Invalid ... - Status3Invalid Status3 = "Invalid" - // Status3Pending ... - Status3Pending Status3 = "Pending" - // Status3Started ... - Status3Started Status3 = "Started" - // Status3Starting ... - Status3Starting Status3 = "Starting" - // Status3Stopped ... - Status3Stopped Status3 = "Stopped" - // Status3Stopping ... - Status3Stopping Status3 = "Stopping" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus3Values returns an array of possible values for the Status3 const type. -func PossibleStatus3Values() []Status3 { - return []Status3{Status3Invalid, Status3Pending, Status3Started, Status3Starting, Status3Stopped, Status3Stopping} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status4 enumerates the values for status 4. -type Status4 string - -const ( - // Status4Activating ... - Status4Activating Status4 = "Activating" - // Status4Active ... - Status4Active Status4 = "Active" - // Status4Deactivating ... - Status4Deactivating Status4 = "Deactivating" - // Status4Downloading ... - Status4Downloading Status4 = "Downloading" - // Status4Invalid ... - Status4Invalid Status4 = "Invalid" - // Status4Upgrading ... - Status4Upgrading Status4 = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus4Values returns an array of possible values for the Status4 const type. -func PossibleStatus4Values() []Status4 { - return []Status4{Status4Activating, Status4Active, Status4Deactivating, Status4Downloading, Status4Invalid, Status4Upgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status5 enumerates the values for status 5. -type Status5 string - -const ( - // Status5Invalid ... - Status5Invalid Status5 = "Invalid" - // Status5Running ... - Status5Running Status5 = "Running" - // Status5Stopped ... - Status5Stopped Status5 = "Stopped" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus5Values returns an array of possible values for the Status5 const type. -func PossibleStatus5Values() []Status5 { - return []Status5{Status5Invalid, Status5Running, Status5Stopped} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status6 enumerates the values for status 6. -type Status6 string - -const ( - // Status6Creating ... - Status6Creating Status6 = "Creating" - // Status6Deleting ... - Status6Deleting Status6 = "Deleting" - // Status6Failed ... - Status6Failed Status6 = "Failed" - // Status6Invalid ... - Status6Invalid Status6 = "Invalid" - // Status6Provisioning ... - Status6Provisioning Status6 = "Provisioning" - // Status6Ready ... - Status6Ready Status6 = "Ready" - // Status6Unprovisioning ... - Status6Unprovisioning Status6 = "Unprovisioning" - // Status6Upgrading ... - Status6Upgrading Status6 = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus6Values returns an array of possible values for the Status6 const type. -func PossibleStatus6Values() []Status6 { - return []Status6{Status6Creating, Status6Deleting, Status6Failed, Status6Invalid, Status6Provisioning, Status6Ready, Status6Unprovisioning, Status6Upgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status7 enumerates the values for status 7. -type Status7 string - -const ( - // Status7Activating ... - Status7Activating Status7 = "Activating" - // Status7Active ... - Status7Active Status7 = "Active" - // Status7Deactivating ... - Status7Deactivating Status7 = "Deactivating" - // Status7Downloading ... - Status7Downloading Status7 = "Downloading" - // Status7Invalid ... - Status7Invalid Status7 = "Invalid" - // Status7Upgrading ... - Status7Upgrading Status7 = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus7Values returns an array of possible values for the Status7 const type. -func PossibleStatus7Values() []Status7 { - return []Status7{Status7Activating, Status7Active, Status7Deactivating, Status7Downloading, Status7Invalid, Status7Upgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status8 enumerates the values for status 8. -type Status8 string - -const ( - // Status8Disabled ... - Status8Disabled Status8 = "Disabled" - // Status8Enabled ... - Status8Enabled Status8 = "Enabled" - // Status8Invalid ... - Status8Invalid Status8 = "Invalid" - // Status8Registered ... - Status8Registered Status8 = "Registered" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatus8Values returns an array of possible values for the Status8 const type. -func PossibleStatus8Values() []Status8 { - return []Status8{Status8Disabled, Status8Enabled, Status8Invalid, Status8Registered} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Type enumerates the values for type. -type Type string - -const ( - // TypeInvalid ... - TypeInvalid Type = "Invalid" - // TypeNodeTransition ... - TypeNodeTransition Type = "NodeTransition" - // TypePartitionDataLoss ... - TypePartitionDataLoss Type = "PartitionDataLoss" - // TypePartitionQuorumLoss ... - TypePartitionQuorumLoss Type = "PartitionQuorumLoss" - // TypePartitionRestart ... - TypePartitionRestart Type = "PartitionRestart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeInvalid, TypeNodeTransition, TypePartitionDataLoss, TypePartitionQuorumLoss, TypePartitionRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// TypeBasicServicePlacementPolicyDescription enumerates the values for type basic service placement policy -// description. -type TypeBasicServicePlacementPolicyDescription string - -const ( - // TypeInvalidDomain ... - TypeInvalidDomain TypeBasicServicePlacementPolicyDescription = "InvalidDomain" - // TypeNonPartiallyPlaceService ... - TypeNonPartiallyPlaceService TypeBasicServicePlacementPolicyDescription = "NonPartiallyPlaceService" - // TypePreferPrimaryDomain ... - TypePreferPrimaryDomain TypeBasicServicePlacementPolicyDescription = "PreferPrimaryDomain" - // TypeRequireDomain ... - TypeRequireDomain TypeBasicServicePlacementPolicyDescription = "RequireDomain" - // TypeRequireDomainDistribution ... - TypeRequireDomainDistribution TypeBasicServicePlacementPolicyDescription = "RequireDomainDistribution" - // TypeServicePlacementPolicyDescription ... - TypeServicePlacementPolicyDescription TypeBasicServicePlacementPolicyDescription = "ServicePlacementPolicyDescription" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleTypeBasicServicePlacementPolicyDescriptionValues returns an array of possible values for the TypeBasicServicePlacementPolicyDescription const type. -func PossibleTypeBasicServicePlacementPolicyDescriptionValues() []TypeBasicServicePlacementPolicyDescription { - return []TypeBasicServicePlacementPolicyDescription{TypeInvalidDomain, TypeNonPartiallyPlaceService, TypePreferPrimaryDomain, TypeRequireDomain, TypeRequireDomainDistribution, TypeServicePlacementPolicyDescription} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// TypeID enumerates the values for type id. -type TypeID string - -const ( - // TypeIDBinary ... - TypeIDBinary TypeID = "Binary" - // TypeIDDouble ... - TypeIDDouble TypeID = "Double" - // TypeIDGUID ... - TypeIDGUID TypeID = "Guid" - // TypeIDInt64 ... - TypeIDInt64 TypeID = "Int64" - // TypeIDInvalid ... - TypeIDInvalid TypeID = "Invalid" - // TypeIDString ... - TypeIDString TypeID = "String" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleTypeIDValues returns an array of possible values for the TypeID const type. -func PossibleTypeIDValues() []TypeID { - return []TypeID{TypeIDBinary, TypeIDDouble, TypeIDGUID, TypeIDInt64, TypeIDInvalid, TypeIDString} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind enumerates the values for upgrade kind. -type UpgradeKind string - -const ( - // UpgradeKindInvalid ... - UpgradeKindInvalid UpgradeKind = "Invalid" - // UpgradeKindRolling ... - UpgradeKindRolling UpgradeKind = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKindValues returns an array of possible values for the UpgradeKind const type. -func PossibleUpgradeKindValues() []UpgradeKind { - return []UpgradeKind{UpgradeKindInvalid, UpgradeKindRolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind1 enumerates the values for upgrade kind 1. -type UpgradeKind1 string - -const ( - // UpgradeKind1Invalid ... - UpgradeKind1Invalid UpgradeKind1 = "Invalid" - // UpgradeKind1Rolling ... - UpgradeKind1Rolling UpgradeKind1 = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind1Values returns an array of possible values for the UpgradeKind1 const type. -func PossibleUpgradeKind1Values() []UpgradeKind1 { - return []UpgradeKind1{UpgradeKind1Invalid, UpgradeKind1Rolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind2 enumerates the values for upgrade kind 2. -type UpgradeKind2 string - -const ( - // UpgradeKind2Invalid ... - UpgradeKind2Invalid UpgradeKind2 = "Invalid" - // UpgradeKind2Rolling ... - UpgradeKind2Rolling UpgradeKind2 = "Rolling" - // UpgradeKind2RollingForceRestart ... - UpgradeKind2RollingForceRestart UpgradeKind2 = "Rolling_ForceRestart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind2Values returns an array of possible values for the UpgradeKind2 const type. -func PossibleUpgradeKind2Values() []UpgradeKind2 { - return []UpgradeKind2{UpgradeKind2Invalid, UpgradeKind2Rolling, UpgradeKind2RollingForceRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind3 enumerates the values for upgrade kind 3. -type UpgradeKind3 string - -const ( - // UpgradeKind3Invalid ... - UpgradeKind3Invalid UpgradeKind3 = "Invalid" - // UpgradeKind3Rolling ... - UpgradeKind3Rolling UpgradeKind3 = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind3Values returns an array of possible values for the UpgradeKind3 const type. -func PossibleUpgradeKind3Values() []UpgradeKind3 { - return []UpgradeKind3{UpgradeKind3Invalid, UpgradeKind3Rolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind4 enumerates the values for upgrade kind 4. -type UpgradeKind4 string - -const ( - // UpgradeKind4Invalid ... - UpgradeKind4Invalid UpgradeKind4 = "Invalid" - // UpgradeKind4Rolling ... - UpgradeKind4Rolling UpgradeKind4 = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind4Values returns an array of possible values for the UpgradeKind4 const type. -func PossibleUpgradeKind4Values() []UpgradeKind4 { - return []UpgradeKind4{UpgradeKind4Invalid, UpgradeKind4Rolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind5 enumerates the values for upgrade kind 5. -type UpgradeKind5 string - -const ( - // UpgradeKind5Invalid ... - UpgradeKind5Invalid UpgradeKind5 = "Invalid" - // UpgradeKind5Rolling ... - UpgradeKind5Rolling UpgradeKind5 = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind5Values returns an array of possible values for the UpgradeKind5 const type. -func PossibleUpgradeKind5Values() []UpgradeKind5 { - return []UpgradeKind5{UpgradeKind5Invalid, UpgradeKind5Rolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind6 enumerates the values for upgrade kind 6. -type UpgradeKind6 string - -const ( - // UpgradeKind6Invalid ... - UpgradeKind6Invalid UpgradeKind6 = "Invalid" - // UpgradeKind6Rolling ... - UpgradeKind6Rolling UpgradeKind6 = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKind6Values returns an array of possible values for the UpgradeKind6 const type. -func PossibleUpgradeKind6Values() []UpgradeKind6 { - return []UpgradeKind6{UpgradeKind6Invalid, UpgradeKind6Rolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradePhase enumerates the values for upgrade phase. -type UpgradePhase string - -const ( - // UpgradePhaseInvalid ... - UpgradePhaseInvalid UpgradePhase = "Invalid" - // UpgradePhasePostUpgradeSafetyCheck ... - UpgradePhasePostUpgradeSafetyCheck UpgradePhase = "PostUpgradeSafetyCheck" - // UpgradePhasePreUpgradeSafetyCheck ... - UpgradePhasePreUpgradeSafetyCheck UpgradePhase = "PreUpgradeSafetyCheck" - // UpgradePhaseUpgrading ... - UpgradePhaseUpgrading UpgradePhase = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradePhaseValues returns an array of possible values for the UpgradePhase const type. -func PossibleUpgradePhaseValues() []UpgradePhase { - return []UpgradePhase{UpgradePhaseInvalid, UpgradePhasePostUpgradeSafetyCheck, UpgradePhasePreUpgradeSafetyCheck, UpgradePhaseUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState enumerates the values for upgrade state. -type UpgradeState string - -const ( - // UpgradeStateFailed ... - UpgradeStateFailed UpgradeState = "Failed" - // UpgradeStateInvalid ... - UpgradeStateInvalid UpgradeState = "Invalid" - // UpgradeStateRollingBackCompleted ... - UpgradeStateRollingBackCompleted UpgradeState = "RollingBackCompleted" - // UpgradeStateRollingBackInProgress ... - UpgradeStateRollingBackInProgress UpgradeState = "RollingBackInProgress" - // UpgradeStateRollingForwardCompleted ... - UpgradeStateRollingForwardCompleted UpgradeState = "RollingForwardCompleted" - // UpgradeStateRollingForwardInProgress ... - UpgradeStateRollingForwardInProgress UpgradeState = "RollingForwardInProgress" - // UpgradeStateRollingForwardPending ... - UpgradeStateRollingForwardPending UpgradeState = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeStateValues returns an array of possible values for the UpgradeState const type. -func PossibleUpgradeStateValues() []UpgradeState { - return []UpgradeState{UpgradeStateFailed, UpgradeStateInvalid, UpgradeStateRollingBackCompleted, UpgradeStateRollingBackInProgress, UpgradeStateRollingForwardCompleted, UpgradeStateRollingForwardInProgress, UpgradeStateRollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState1 enumerates the values for upgrade state 1. -type UpgradeState1 string - -const ( - // UpgradeState1Failed ... - UpgradeState1Failed UpgradeState1 = "Failed" - // UpgradeState1Invalid ... - UpgradeState1Invalid UpgradeState1 = "Invalid" - // UpgradeState1RollingBackCompleted ... - UpgradeState1RollingBackCompleted UpgradeState1 = "RollingBackCompleted" - // UpgradeState1RollingBackInProgress ... - UpgradeState1RollingBackInProgress UpgradeState1 = "RollingBackInProgress" - // UpgradeState1RollingForwardCompleted ... - UpgradeState1RollingForwardCompleted UpgradeState1 = "RollingForwardCompleted" - // UpgradeState1RollingForwardInProgress ... - UpgradeState1RollingForwardInProgress UpgradeState1 = "RollingForwardInProgress" - // UpgradeState1RollingForwardPending ... - UpgradeState1RollingForwardPending UpgradeState1 = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeState1Values returns an array of possible values for the UpgradeState1 const type. -func PossibleUpgradeState1Values() []UpgradeState1 { - return []UpgradeState1{UpgradeState1Failed, UpgradeState1Invalid, UpgradeState1RollingBackCompleted, UpgradeState1RollingBackInProgress, UpgradeState1RollingForwardCompleted, UpgradeState1RollingForwardInProgress, UpgradeState1RollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState2 enumerates the values for upgrade state 2. -type UpgradeState2 string - -const ( - // UpgradeState2Failed ... - UpgradeState2Failed UpgradeState2 = "Failed" - // UpgradeState2Invalid ... - UpgradeState2Invalid UpgradeState2 = "Invalid" - // UpgradeState2RollingBackCompleted ... - UpgradeState2RollingBackCompleted UpgradeState2 = "RollingBackCompleted" - // UpgradeState2RollingBackInProgress ... - UpgradeState2RollingBackInProgress UpgradeState2 = "RollingBackInProgress" - // UpgradeState2RollingForwardCompleted ... - UpgradeState2RollingForwardCompleted UpgradeState2 = "RollingForwardCompleted" - // UpgradeState2RollingForwardInProgress ... - UpgradeState2RollingForwardInProgress UpgradeState2 = "RollingForwardInProgress" - // UpgradeState2RollingForwardPending ... - UpgradeState2RollingForwardPending UpgradeState2 = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeState2Values returns an array of possible values for the UpgradeState2 const type. -func PossibleUpgradeState2Values() []UpgradeState2 { - return []UpgradeState2{UpgradeState2Failed, UpgradeState2Invalid, UpgradeState2RollingBackCompleted, UpgradeState2RollingBackInProgress, UpgradeState2RollingForwardCompleted, UpgradeState2RollingForwardInProgress, UpgradeState2RollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState3 enumerates the values for upgrade state 3. -type UpgradeState3 string - -const ( - // UpgradeState3Failed ... - UpgradeState3Failed UpgradeState3 = "Failed" - // UpgradeState3Invalid ... - UpgradeState3Invalid UpgradeState3 = "Invalid" - // UpgradeState3ProvisioningTarget ... - UpgradeState3ProvisioningTarget UpgradeState3 = "ProvisioningTarget" - // UpgradeState3RollingBackCompleted ... - UpgradeState3RollingBackCompleted UpgradeState3 = "RollingBackCompleted" - // UpgradeState3RollingBackInProgress ... - UpgradeState3RollingBackInProgress UpgradeState3 = "RollingBackInProgress" - // UpgradeState3RollingForwardCompleted ... - UpgradeState3RollingForwardCompleted UpgradeState3 = "RollingForwardCompleted" - // UpgradeState3RollingForwardInProgress ... - UpgradeState3RollingForwardInProgress UpgradeState3 = "RollingForwardInProgress" - // UpgradeState3RollingForwardPending ... - UpgradeState3RollingForwardPending UpgradeState3 = "RollingForwardPending" - // UpgradeState3UnprovisioningCurrent ... - UpgradeState3UnprovisioningCurrent UpgradeState3 = "UnprovisioningCurrent" - // UpgradeState3UnprovisioningTarget ... - UpgradeState3UnprovisioningTarget UpgradeState3 = "UnprovisioningTarget" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeState3Values returns an array of possible values for the UpgradeState3 const type. -func PossibleUpgradeState3Values() []UpgradeState3 { - return []UpgradeState3{UpgradeState3Failed, UpgradeState3Invalid, UpgradeState3ProvisioningTarget, UpgradeState3RollingBackCompleted, UpgradeState3RollingBackInProgress, UpgradeState3RollingForwardCompleted, UpgradeState3RollingForwardInProgress, UpgradeState3RollingForwardPending, UpgradeState3UnprovisioningCurrent, UpgradeState3UnprovisioningTarget} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Weight enumerates the values for weight. -type Weight string - -const ( - // WeightHigh ... - WeightHigh Weight = "High" - // WeightLow ... - WeightLow Weight = "Low" - // WeightMedium ... - WeightMedium Weight = "Medium" - // WeightZero ... - WeightZero Weight = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleWeightValues returns an array of possible values for the Weight const type. -func PossibleWeightValues() []Weight { - return []Weight{WeightHigh, WeightLow, WeightMedium, WeightZero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WriteStatus enumerates the values for write status. -type WriteStatus string - -const ( - // WriteStatusGranted ... - WriteStatusGranted WriteStatus = "Granted" - // WriteStatusInvalid ... - WriteStatusInvalid WriteStatus = "Invalid" - // WriteStatusNotPrimary ... - WriteStatusNotPrimary WriteStatus = "NotPrimary" - // WriteStatusNoWriteQuorum ... - WriteStatusNoWriteQuorum WriteStatus = "NoWriteQuorum" - // WriteStatusReconfigurationPending ... - WriteStatusReconfigurationPending WriteStatus = "ReconfigurationPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleWriteStatusValues returns an array of possible values for the WriteStatus const type. -func PossibleWriteStatusValues() []WriteStatus { - return []WriteStatus{WriteStatusGranted, WriteStatusInvalid, WriteStatusNotPrimary, WriteStatusNoWriteQuorum, WriteStatusReconfigurationPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AadMetadata azure Active Directory metadata used for secured connection to cluster. -type AadMetadata struct { - // Authority - The AAD authority url. - Authority *string `json:"authority,omitempty"` - // Client - The AAD client application Id. - Client *string `json:"client,omitempty"` - // Cluster - The AAD cluster application Id. - Cluster *string `json:"cluster,omitempty"` - // Login - The AAD login url. - Login *string `json:"login,omitempty"` - // Redirect - The client application redirect address. - Redirect *string `json:"redirect,omitempty"` - // Tenant - The AAD tenant Id. - Tenant *string `json:"tenant,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AadMetadataObject azure Active Directory metadata object used for secured connection to cluster. -type AadMetadataObject struct { - autorest.Response `json:"-"` - // Type - The client authentication method. - Type *string `json:"type,omitempty"` - Metadata *AadMetadata `json:"metadata,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationCapacityDescription describes capacity information for services of this application. This description -// can be used for describing the following. -// - Reserving the capacity for the services on the nodes -// - Limiting the total number of nodes that services of this application can run on -// - Limiting the custom capacity metrics to limit the total consumption of this metric by the services of this -// application -type ApplicationCapacityDescription struct { - // MinimumNodes - The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property. - MinimumNodes *int64 `json:"MinimumNodes,omitempty"` - // MaximumNodes - The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. - MaximumNodes *int64 `json:"MaximumNodes,omitempty"` - ApplicationMetrics *[]ApplicationMetricDescription `json:"ApplicationMetrics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationDescription describes a Service Fabric application. -type ApplicationDescription struct { - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TypeVersion *string `json:"TypeVersion,omitempty"` - ParameterList *[]ApplicationParameter `json:"ParameterList,omitempty"` - ApplicationCapacity *ApplicationCapacityDescription `json:"ApplicationCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealth represents the health of the application. Contains the application aggregated health state and -// the service and deployed application health states. -type ApplicationHealth struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - // ServiceHealthStates - Service health states as found in the health store. - ServiceHealthStates *[]ServiceHealthState `json:"ServiceHealthStates,omitempty"` - // DeployedApplicationHealthStates - Deployed application health states as found in the health store. - DeployedApplicationHealthStates *[]DeployedApplicationHealthState `json:"DeployedApplicationHealthStates,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthEvaluation represents health evaluation for an application, containing information about the -// data and the algorithm used by the health store to evaluate health. -type ApplicationHealthEvaluation struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplication - objectMap := make(map[string]interface{}) - if ahe.ApplicationName != nil { - objectMap["ApplicationName"] = ahe.ApplicationName - } - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicies defines the application health policy map used to evaluate the health of an -// application or one of its children entities. -type ApplicationHealthPolicies struct { - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of its -// children entities. -type ApplicationHealthPolicy struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // MaxPercentUnhealthyDeployedApplications - The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. - // This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. - // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - DefaultServiceTypeHealthPolicy *ServiceTypeHealthPolicy `json:"DefaultServiceTypeHealthPolicy,omitempty"` - ServiceTypeHealthPolicyMap *[]ServiceTypeHealthPolicyMapItem `json:"ServiceTypeHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicyMapItem defines an item in ApplicationHealthPolicyMap. -type ApplicationHealthPolicyMapItem struct { - Key *string `json:"Key,omitempty"` - Value *ApplicationHealthPolicy `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthState represents the health state of an application, which contains the application identifier -// and the aggregated health state. -type ApplicationHealthState struct { - Name *string `json:"Name,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateChunk represents the health state chunk of a application. -// The application health state chunk contains the application name, its aggregated health state and any children -// services and deployed applications that respect the filters in cluster health chunk query description. -type ApplicationHealthStateChunk struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - ServiceHealthStateChunks *ServiceHealthStateChunkList `json:"ServiceHealthStateChunks,omitempty"` - DeployedApplicationHealthStateChunks *DeployedApplicationHealthStateChunkList `json:"DeployedApplicationHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateChunkList the list of application health state chunks in the cluster that respect the -// input filters in the chunk query. Returned by get cluster health state chunks query. -type ApplicationHealthStateChunkList struct { - // Items - The list of application health state chunks that respect the input filters in the chunk query. - Items *[]ApplicationHealthStateChunk `json:"Items,omitempty"` - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateFilter defines matching criteria to determine whether a application should be included in -// the cluster health chunk. -// One filter can match zero, one or multiple applications, depending on its properties. -type ApplicationHealthStateFilter struct { - // ApplicationNameFilter - The name of the application that matches the filter, as a fabric uri. The filter is applied only to the specified application, if it exists. - // If the application doesn't exist, no application is returned in the cluster health chunk based on this filter. - // If the application exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all applications are matched against the other filter members, like health state filter. - ApplicationNameFilter *string `json:"ApplicationNameFilter,omitempty"` - // ApplicationTypeNameFilter - The name of the application type that matches the filter. - // If specified, the filter is applied only to applications of the selected application type, if any exists. - // If no applications of the specified application type exists, no application is returned in the cluster health chunk based on this filter. - // Each application of the specified application type is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all applications are matched against the other filter members, like health state filter. - ApplicationTypeNameFilter *string `json:"ApplicationTypeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the applications. It allows selecting applications if they match the desired health states. - // The possible values are integer value of one of the following health states. Only applications that match the filter are returned. All applications are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the application name or the application type name are specified. If the filter has default value and application name is specified, the matching application is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches applications with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // ServiceFilters - Defines a list of filters that specify which services to be included in the returned cluster health chunk as children of the application. The services are returned only if the parent application matches a filter. - // If the list is empty, no services are returned. All the services are used to evaluate the parent application aggregated health state, regardless of the input filters. - // The application filter may specify multiple service filters. - // For example, it can specify a filter to return all services with health state Error and another filter to always include a service identified by its service name. - ServiceFilters *[]ServiceHealthStateFilter `json:"ServiceFilters,omitempty"` - // DeployedApplicationFilters - Defines a list of filters that specify which deployed applications to be included in the returned cluster health chunk as children of the application. The deployed applications are returned only if the parent application matches a filter. - // If the list is empty, no deployed applications are returned. All the deployed applications are used to evaluate the parent application aggregated health state, regardless of the input filters. - // The application filter may specify multiple deployed application filters. - // For example, it can specify a filter to return all deployed applications with health state Error and another filter to always include a deployed application on a specified node. - DeployedApplicationFilters *[]DeployedApplicationHealthStateFilter `json:"DeployedApplicationFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationInfo information about a Service Fabric application. -type ApplicationInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TypeVersion *string `json:"TypeVersion,omitempty"` - // Status - Possible values include: 'StatusInvalid', 'StatusReady', 'StatusUpgrading', 'StatusCreating', 'StatusDeleting', 'StatusFailed' - Status Status `json:"Status,omitempty"` - Parameters *[]ApplicationParameter `json:"Parameters,omitempty"` - // HealthState - Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // ApplicationDefinitionKind - Possible values include: 'ApplicationDefinitionKindInvalid', 'ApplicationDefinitionKindServiceFabricApplicationDescription', 'ApplicationDefinitionKindCompose' - ApplicationDefinitionKind ApplicationDefinitionKind `json:"ApplicationDefinitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationLoadInfo load Information about a Service Fabric application. -type ApplicationLoadInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - // MinimumNodes - The minimum number of nodes for this application. - // It is the number of nodes where Service Fabric will reserve Capacity in the cluster which equals to ReservedLoad * MinimumNodes for this Application instance. - // For applications that do not have application capacity defined this value will be zero. - MinimumNodes *int64 `json:"MinimumNodes,omitempty"` - // MaximumNodes - The maximum number of nodes where this application can be instantiated. - // It is the number of nodes this application is allowed to span. - // For applications that do not have application capacity defined this value will be zero. - MaximumNodes *int64 `json:"MaximumNodes,omitempty"` - // NodeCount - The number of nodes on which this application is instantiated. - // For applications that do not have application capacity defined this value will be zero. - NodeCount *int64 `json:"NodeCount,omitempty"` - ApplicationLoadMetricInformation *[]ApplicationMetricDescription `json:"ApplicationLoadMetricInformation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationMetricDescription describes capacity information for a custom resource balancing metric. This can be -// used to limit the total consumption of this metric by the services of this application. -type ApplicationMetricDescription struct { - // Name - The name of the metric. - Name *string `json:"Name,omitempty"` - // MaximumCapacity - The maximum node capacity for Service Fabric application. - // This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value. - // If set to zero, capacity for this metric is unlimited on each node. - // When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. - // When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. - MaximumCapacity *int64 `json:"MaximumCapacity,omitempty"` - // ReservationCapacity - The node reservation capacity for Service Fabric application. - // This is the amount of load which is reserved on nodes which have instances of this application. - // If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application. - // If set to zero, no capacity is reserved for this metric. - // When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric. - ReservationCapacity *int64 `json:"ReservationCapacity,omitempty"` - // TotalApplicationCapacity - The total metric capacity for Service Fabric application. - // This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value. - // When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value. - TotalApplicationCapacity *int64 `json:"TotalApplicationCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationNameInfo information about the application name. -type ApplicationNameInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationParameter describes an application parameter override to be applied when creating or upgrading an -// application. -type ApplicationParameter struct { - // Key - The name of the parameter. - Key *string `json:"Key,omitempty"` - // Value - The value of the parameter. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationsHealthEvaluation represents health evaluation for applications, containing health evaluations for -// each unhealthy application that impacted current aggregated health state. -type ApplicationsHealthEvaluation struct { - // MaxPercentUnhealthyApplications - Maximum allowed percentage of unhealthy applications from the ClusterHealthPolicy. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // TotalCount - Total number of applications from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplications - objectMap := make(map[string]interface{}) - if ahe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = ahe.MaxPercentUnhealthyApplications - } - if ahe.TotalCount != nil { - objectMap["TotalCount"] = ahe.TotalCount - } - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeApplicationsHealthEvaluation represents health evaluation for applications of a particular -// application type. The application type applications evaluation can be returned when cluster health evaluation -// returns unhealthy aggregated health state, either Error or Warning. It contains health evaluations for each -// unhealthy application of the included application type that impacted current aggregated health state. -type ApplicationTypeApplicationsHealthEvaluation struct { - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - // MaxPercentUnhealthyApplications - Maximum allowed percentage of unhealthy applications for the application type, specified as an entry in ApplicationTypeHealthPolicyMap. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // TotalCount - Total number of applications of the application type found in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - atahe.Kind = KindApplicationTypeApplications - objectMap := make(map[string]interface{}) - if atahe.ApplicationTypeName != nil { - objectMap["ApplicationTypeName"] = atahe.ApplicationTypeName - } - if atahe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = atahe.MaxPercentUnhealthyApplications - } - if atahe.TotalCount != nil { - objectMap["TotalCount"] = atahe.TotalCount - } - if atahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = atahe.UnhealthyEvaluations - } - if atahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = atahe.AggregatedHealthState - } - if atahe.Description != nil { - objectMap["Description"] = atahe.Description - } - if atahe.Kind != "" { - objectMap["Kind"] = atahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return &atahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &atahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeHealthPolicyMapItem defines an item in ApplicationTypeHealthPolicyMap. -type ApplicationTypeHealthPolicyMapItem struct { - // Key - The key of the application type health policy map item. This is the name of the application type. - Key *string `json:"Key,omitempty"` - // Value - The value of the application type health policy map item. - // The max percent unhealthy applications allowed for the application type. Must be between zero and 100. - Value *int32 `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeImageStorePath path description for the application package in the image store specified during -// the prior copy operation. -type ApplicationTypeImageStorePath struct { - // ApplicationTypeBuildPath - The relative image store path to the application package. - ApplicationTypeBuildPath *string `json:"ApplicationTypeBuildPath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeImageStoreVersion a version description for the application type -type ApplicationTypeImageStoreVersion struct { - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeInfo information about an application type. -type ApplicationTypeInfo struct { - Name *string `json:"Name,omitempty"` - Version *string `json:"Version,omitempty"` - DefaultParameterList *[]ApplicationParameter `json:"DefaultParameterList,omitempty"` - // Status - Possible values include: 'Status1Invalid', 'Status1Provisioning', 'Status1Available', 'Status1Unprovisioning', 'Status1Failed' - Status Status1 `json:"Status,omitempty"` - StatusDetails *string `json:"StatusDetails,omitempty"` - // ApplicationTypeDefinitionKind - Possible values include: 'ApplicationTypeDefinitionKindInvalid', 'ApplicationTypeDefinitionKindServiceFabricApplicationPackage', 'ApplicationTypeDefinitionKindCompose' - ApplicationTypeDefinitionKind ApplicationTypeDefinitionKind `json:"ApplicationTypeDefinitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeManifest contains the manifest describing an application type registered in a Service Fabric -// cluster. -type ApplicationTypeManifest struct { - autorest.Response `json:"-"` - // Manifest - The XML manifest as a string. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeDescription describes the parameters for an application upgrade. Please note that upgrade -// description replaces the existing application description. This means that if the parameters are not specified, -// the existing parameters on the applications will be overwritten with the empty parameters list. This would -// results in application using the default value of the parameters from the application manifest. If you do not -// want to change any existing parameter values, please get the application parameters first using the -// GetApplicationInfo query and then supply those values as Parameters in this ApplicationUpgradeDescription. -type ApplicationUpgradeDescription struct { - Name *string `json:"Name,omitempty"` - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - Parameters *[]ApplicationParameter `json:"Parameters,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeModeInvalid', 'RollingUpgradeModeUnmonitoredAuto', 'RollingUpgradeModeUnmonitoredManual', 'RollingUpgradeModeMonitored' - RollingUpgradeMode RollingUpgradeMode `json:"RollingUpgradeMode,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeProgressInfo describes the parameters for an application upgrade. -type ApplicationUpgradeProgressInfo struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - UpgradeDomains *[]UpgradeDomainInfo `json:"UpgradeDomains,omitempty"` - // UpgradeState - Possible values include: 'UpgradeStateInvalid', 'UpgradeStateRollingBackInProgress', 'UpgradeStateRollingBackCompleted', 'UpgradeStateRollingForwardPending', 'UpgradeStateRollingForwardInProgress', 'UpgradeStateRollingForwardCompleted', 'UpgradeStateFailed' - UpgradeState UpgradeState `json:"UpgradeState,omitempty"` - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode1Invalid', 'RollingUpgradeMode1UnmonitoredAuto', 'RollingUpgradeMode1UnmonitoredManual', 'RollingUpgradeMode1Monitored' - RollingUpgradeMode RollingUpgradeMode1 `json:"RollingUpgradeMode,omitempty"` - UpgradeDescription *ApplicationUpgradeDescription `json:"UpgradeDescription,omitempty"` - // UpgradeDurationInMilliseconds - The estimated total amount of time spent processing the overall upgrade. - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - // UpgradeDomainDurationInMilliseconds - The estimated total amount of time spent processing the current upgrade domain. - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - // StartTimestampUtc - The estimated UTC datetime when the upgrade started. - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - // FailureTimestampUtc - The estimated UTC datetime when the upgrade failed and FailureAction was executed. - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - Possible values include: 'None', 'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout', 'UpgradeTimeout' - FailureReason FailureReason `json:"FailureReason,omitempty"` - UpgradeDomainProgressAtFailure *FailureUpgradeDomainProgressInfo `json:"UpgradeDomainProgressAtFailure,omitempty"` - // UpgradeStatusDetails - Additional detailed information about the status of the pending upgrade. - UpgradeStatusDetails *string `json:"UpgradeStatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeUpdateDescription describes the parameters for updating an ongoing application upgrade. -type ApplicationUpgradeUpdateDescription struct { - Name *string `json:"Name,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKind6Invalid', 'UpgradeKind6Rolling' - UpgradeKind UpgradeKind6 `json:"UpgradeKind,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` - UpdateDescription *RollingUpgradeUpdateDescription `json:"UpdateDescription,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BinaryPropertyValue describes a Service Fabric property value of type Binary. -type BinaryPropertyValue struct { - Data *[]int32 `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for BinaryPropertyValue. -func (bpv BinaryPropertyValue) MarshalJSON() ([]byte, error) { - bpv.Kind = KindBinary - objectMap := make(map[string]interface{}) - if bpv.Data != nil { - objectMap["Data"] = bpv.Data - } - if bpv.Kind != "" { - objectMap["Kind"] = bpv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return &bpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &bpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosContext describes a map, which is a collection of (string, string) type key-value pairs. The map can be -// used to record information about -// the Chaos run. There cannot be more than 100 such pairs and each string (key or value) can be at most 4095 -// characters long. -// This map is set by the starter of the Chaos run to optionally store the context about the specific run. -type ChaosContext struct { - Map interface{} `json:"Map,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosContextMapItem describes an item in the ChaosContextMap in ChaosParameters. -type ChaosContextMapItem struct { - // Key - The key for a ChaosContextMapItem. - Key *string `json:"Key,omitempty"` - // Value - The value for a ChaosContextMapItem. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicChaosEvent represents an event generated during a Chaos run. -type BasicChaosEvent interface { - AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) - AsStartedChaosEvent() (*StartedChaosEvent, bool) - AsStoppedChaosEvent() (*StoppedChaosEvent, bool) - AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) - AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) - AsWaitingChaosEvent() (*WaitingChaosEvent, bool) - AsChaosEvent() (*ChaosEvent, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosEvent represents an event generated during a Chaos run. -type ChaosEvent struct { - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -func unmarshalBasicChaosEvent(body []byte) (BasicChaosEvent, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindExecutingFaults): - var efce ExecutingFaultsChaosEvent - err := json.Unmarshal(body, &efce) - return efce, err - case string(KindStarted): - var sce StartedChaosEvent - err := json.Unmarshal(body, &sce) - return sce, err - case string(KindStopped): - var sce StoppedChaosEvent - err := json.Unmarshal(body, &sce) - return sce, err - case string(KindTestError): - var tece TestErrorChaosEvent - err := json.Unmarshal(body, &tece) - return tece, err - case string(KindValidationFailed): - var vfce ValidationFailedChaosEvent - err := json.Unmarshal(body, &vfce) - return vfce, err - case string(KindWaiting): - var wce WaitingChaosEvent - err := json.Unmarshal(body, &wce) - return wce, err - default: - var ce ChaosEvent - err := json.Unmarshal(body, &ce) - return ce, err - } -} -func unmarshalBasicChaosEventArray(body []byte) ([]BasicChaosEvent, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - ceArray := make([]BasicChaosEvent, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ce, err := unmarshalBasicChaosEvent(*rawMessage) - if err != nil { - return nil, err - } - ceArray[index] = ce - } - return ceArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ChaosEvent. -func (ce ChaosEvent) MarshalJSON() ([]byte, error) { - ce.Kind = KindChaosEvent - objectMap := make(map[string]interface{}) - if ce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = ce.TimeStampUtc - } - if ce.Kind != "" { - objectMap["Kind"] = ce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return &ce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &ce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosEventWrapper wrapper object for Chaos event. -type ChaosEventWrapper struct { - ChaosEvent BasicChaosEvent `json:"ChaosEvent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ChaosEventWrapper struct. -func (cew *ChaosEventWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ChaosEvent": - if v != nil { - chaosEvent, err := unmarshalBasicChaosEvent(*v) - if err != nil { - return err - } - cew.ChaosEvent = chaosEvent - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosParameters defines all the parameters to configure a Chaos run. -type ChaosParameters struct { - // TimeToRunInSeconds - Total time (in seconds) for which Chaos will run before automatically stopping. The maximum allowed value is 4,294,967,295 (System.UInt32.MaxValue). - TimeToRunInSeconds *string `json:"TimeToRunInSeconds,omitempty"` - // MaxClusterStabilizationTimeoutInSeconds - The maximum amount of time to wait for all cluster entities to become stable and healthy. Chaos executes in iterations and at the start of each iteration it validates the health of cluster entities. - // During validation if a cluster entity is not stable and healthy within MaxClusterStabilizationTimeoutInSeconds, Chaos generates a validation failed event. - MaxClusterStabilizationTimeoutInSeconds *int64 `json:"MaxClusterStabilizationTimeoutInSeconds,omitempty"` - // MaxConcurrentFaults - MaxConcurrentFaults is the maximum number of concurrent faults induced per iteration. - // Chaos executes in iterations and two consecutive iterations are separated by a validation phase. - // The higher the concurrency, the more aggressive the injection of faults -- inducing more complex series of states to uncover bugs. - // The recommendation is to start with a value of 2 or 3 and to exercise caution while moving up. - MaxConcurrentFaults *int64 `json:"MaxConcurrentFaults,omitempty"` - // EnableMoveReplicaFaults - Enables or disables the move primary and move secondary faults. - EnableMoveReplicaFaults *bool `json:"EnableMoveReplicaFaults,omitempty"` - // WaitTimeBetweenFaultsInSeconds - Wait time (in seconds) between consecutive faults within a single iteration. - // The larger the value, the lower the overlapping between faults and the simpler the sequence of state transitions that the cluster goes through. - // The recommendation is to start with a value between 1 and 5 and exercise caution while moving up. - WaitTimeBetweenFaultsInSeconds *int64 `json:"WaitTimeBetweenFaultsInSeconds,omitempty"` - // WaitTimeBetweenIterationsInSeconds - Time-separation (in seconds) between two consecutive iterations of Chaos. - // The larger the value, the lower the fault injection rate. - WaitTimeBetweenIterationsInSeconds *int64 `json:"WaitTimeBetweenIterationsInSeconds,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - Context *ChaosContext `json:"Context,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosReport contains detailed Chaos report. -type ChaosReport struct { - autorest.Response `json:"-"` - ChaosParameters *ChaosParameters `json:"ChaosParameters,omitempty"` - // Status - Current status of the Chaos run. - // - Invalid - Indicates an invalid Chaos status. All Service Fabric enumerations have the invalid type. - // The valus is zero. - // - Running - Indicates that Chaos is not stopped. - // - Stopped - Indicates that Chaos is not scheduling futher faults. Possible values include: 'Status5Invalid', 'Status5Running', 'Status5Stopped' - Status Status5 `json:"Status,omitempty"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - History *[]ChaosEventWrapper `json:"History,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CheckExistsPropertyBatchOperation represents a PropertyBatchOperation that compares the Boolean existence of a -// property with the Exists argument. The PropertyBatchOperation operation fails if the property's existence is -// not equal to the Exists argument. The CheckExistsPropertyBatchOperation is generally used as a precondition for -// the write operations in the batch. Note that if one PropertyBatchOperation in a PropertyBatch fails, the -// entire batch fails and cannot be committed in a transactional manner. -type CheckExistsPropertyBatchOperation struct { - // Exists - Whether or not the property should exist for the operation to pass. - Exists *bool `json:"Exists,omitempty"` - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) MarshalJSON() ([]byte, error) { - cepbo.Kind = KindCheckExists - objectMap := make(map[string]interface{}) - if cepbo.Exists != nil { - objectMap["Exists"] = cepbo.Exists - } - if cepbo.PropertyName != nil { - objectMap["PropertyName"] = cepbo.PropertyName - } - if cepbo.Kind != "" { - objectMap["Kind"] = cepbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return &cepbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &cepbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CheckSequencePropertyBatchOperation compares the Sequence Number of a property with the SequenceNumber argument. -// A property's sequence number can be thought of as that property's version. Every time the property is modified, -// its sequence number is increased. The sequence number can be found in a property's metadata. The comparison -// fails if the sequence numbers are not equal. CheckSequencePropertyBatchOperation is generally used as a -// precondition for the write operations in the batch. Note that if one PropertyBatchOperation in a PropertyBatch -// fails, the entire batch fails and cannot be committed in a transactional manner. -type CheckSequencePropertyBatchOperation struct { - // SequenceNumber - The expected sequence number. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) MarshalJSON() ([]byte, error) { - cspbo.Kind = KindCheckSequence - objectMap := make(map[string]interface{}) - if cspbo.SequenceNumber != nil { - objectMap["SequenceNumber"] = cspbo.SequenceNumber - } - if cspbo.PropertyName != nil { - objectMap["PropertyName"] = cspbo.PropertyName - } - if cspbo.Kind != "" { - objectMap["Kind"] = cspbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return &cspbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &cspbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CheckValuePropertyBatchOperation represents a PropertyBatchOperation that compares the value of the property -// with the expected value. The CheckValuePropertyBatchOperation is generally used as a precondition for the write -// operations in the batch. Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch -// fails and cannot be committed in a transactional manner. -type CheckValuePropertyBatchOperation struct { - Value BasicPropertyValue `json:"Value,omitempty"` - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) MarshalJSON() ([]byte, error) { - cvpbo.Kind = KindCheckValue - objectMap := make(map[string]interface{}) - objectMap["Value"] = cvpbo.Value - if cvpbo.PropertyName != nil { - objectMap["PropertyName"] = cvpbo.PropertyName - } - if cvpbo.Kind != "" { - objectMap["Kind"] = cvpbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return &cvpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &cvpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for CheckValuePropertyBatchOperation struct. -func (cvpbo *CheckValuePropertyBatchOperation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - cvpbo.Value = value - } - case "PropertyName": - if v != nil { - var propertyName string - err = json.Unmarshal(*v, &propertyName) - if err != nil { - return err - } - cvpbo.PropertyName = &propertyName - } - case "Kind": - if v != nil { - var kind KindBasicPropertyBatchOperation - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - cvpbo.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterConfiguration information about the standalone cluster configuration. -type ClusterConfiguration struct { - autorest.Response `json:"-"` - // ClusterConfiguration - The contents of the cluster configuration file. - ClusterConfiguration *string `json:"ClusterConfiguration,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterConfigurationUpgradeDescription describes the parameters for a standalone cluster configuration upgrade. -type ClusterConfigurationUpgradeDescription struct { - // ClusterConfig - The cluster configuration. - ClusterConfig *string `json:"ClusterConfig,omitempty"` - // HealthCheckRetryTimeout - The length of time between attempts to perform a health checks if the application or cluster is not healthy. - HealthCheckRetryTimeout *string `json:"HealthCheckRetryTimeout,omitempty"` - // HealthCheckWaitDurationInSeconds - The length of time to wait after completing an upgrade domain before starting the health checks process. - HealthCheckWaitDurationInSeconds *string `json:"HealthCheckWaitDurationInSeconds,omitempty"` - // HealthCheckStableDurationInSeconds - The length of time that the application or cluster must remain healthy. - HealthCheckStableDurationInSeconds *string `json:"HealthCheckStableDurationInSeconds,omitempty"` - // UpgradeDomainTimeoutInSeconds - The timeout for the upgrade domain. - UpgradeDomainTimeoutInSeconds *string `json:"UpgradeDomainTimeoutInSeconds,omitempty"` - // UpgradeTimeoutInSeconds - The upgrade timeout. - UpgradeTimeoutInSeconds *string `json:"UpgradeTimeoutInSeconds,omitempty"` - // MaxPercentUnhealthyApplications - The maximum allowed percentage of unhealthy applications during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // MaxPercentUnhealthyNodes - The maximum allowed percentage of unhealthy nodes during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // MaxPercentDeltaUnhealthyNodes - The maximum allowed percentage of delta health degradation during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The maximum allowed percentage of upgrade domain delta health degradation during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"MaxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterConfigurationUpgradeStatusInfo information about a standalone cluster configuration upgrade status. -type ClusterConfigurationUpgradeStatusInfo struct { - autorest.Response `json:"-"` - // UpgradeState - Possible values include: 'UpgradeState1Invalid', 'UpgradeState1RollingBackInProgress', 'UpgradeState1RollingBackCompleted', 'UpgradeState1RollingForwardPending', 'UpgradeState1RollingForwardInProgress', 'UpgradeState1RollingForwardCompleted', 'UpgradeState1Failed' - UpgradeState UpgradeState1 `json:"UpgradeState,omitempty"` - // ProgressStatus - The cluster manifest version. - ProgressStatus *int32 `json:"ProgressStatus,omitempty"` - // ConfigVersion - The cluster configuration version. - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // Details - The cluster upgrade status details. - Details *string `json:"Details,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealth represents the health of the cluster. -// Contains the cluster aggregated health state, the cluster application and node health states as well as the -// health events and the unhealthy evaluations. -type ClusterHealth struct { - autorest.Response `json:"-"` - // NodeHealthStates - Cluster node health states as found in the health store. - NodeHealthStates *[]NodeHealthState `json:"NodeHealthStates,omitempty"` - // ApplicationHealthStates - Cluster application health states as found in the health store. - ApplicationHealthStates *[]ApplicationHealthState `json:"ApplicationHealthStates,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthChunk represents the health chunk of the cluster. -// Contains the cluster aggregated health state, and the cluster entities that respect the input filter. -type ClusterHealthChunk struct { - autorest.Response `json:"-"` - // HealthState - Possible values include: 'HealthState1Invalid', 'HealthState1Ok', 'HealthState1Warning', 'HealthState1Error', 'HealthState1Unknown' - HealthState HealthState1 `json:"HealthState,omitempty"` - NodeHealthStateChunks *NodeHealthStateChunkList `json:"NodeHealthStateChunks,omitempty"` - ApplicationHealthStateChunks *ApplicationHealthStateChunkList `json:"ApplicationHealthStateChunks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthChunkQueryDescription the cluster health chunk query description, which can specify the health -// policies to evaluate cluster health and very expressive filters to select which cluster entities to include in -// response. -type ClusterHealthChunkQueryDescription struct { - // NodeFilters - Defines a list of filters that specify which nodes to be included in the returned cluster health chunk. - // If no filters are specified, no nodes are returned. All the nodes are used to evaluate the cluster's aggregated health state, regardless of the input filters. - // The cluster health chunk query may specify multiple node filters. - // For example, it can specify a filter to return all nodes with health state Error and another filter to always include a node identified by its NodeName. - NodeFilters *[]NodeHealthStateFilter `json:"NodeFilters,omitempty"` - // ApplicationFilters - Defines a list of filters that specify which applications to be included in the returned cluster health chunk. - // If no filters are specified, no applications are returned. All the applications are used to evaluate the cluster's aggregated health state, regardless of the input filters. - // The cluster health chunk query may specify multiple application filters. - // For example, it can specify a filter to return all applications with health state Error and another filter to always include applications of a specified application type. - ApplicationFilters *[]ApplicationHealthStateFilter `json:"ApplicationFilters,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - ApplicationHealthPolicies *ApplicationHealthPolicies `json:"ApplicationHealthPolicies,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthPolicies health policies to evaluate cluster health. -type ClusterHealthPolicies struct { - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthPolicy defines a health policy used to evaluate the health of the cluster or of a cluster node. -type ClusterHealthPolicy struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // MaxPercentUnhealthyNodes - The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10. - // The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error. - // If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster. - // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. - // In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // MaxPercentUnhealthyApplications - The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10. - // The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error. - // If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning. - // This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap. - // The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - ApplicationTypeHealthPolicyMap *[]ApplicationTypeHealthPolicyMapItem `json:"ApplicationTypeHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterManifest information about the cluster manifest. -type ClusterManifest struct { - autorest.Response `json:"-"` - // Manifest - The contents of the cluster manifest file. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeDescriptionObject represents a ServiceFabric cluster upgrade -type ClusterUpgradeDescriptionObject struct { - ConfigVersion *string `json:"ConfigVersion,omitempty"` - CodeVersion *string `json:"CodeVersion,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKind3Invalid', 'UpgradeKind3Rolling' - UpgradeKind UpgradeKind3 `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode4Invalid', 'RollingUpgradeMode4UnmonitoredAuto', 'RollingUpgradeMode4UnmonitoredManual', 'RollingUpgradeMode4Monitored' - RollingUpgradeMode RollingUpgradeMode4 `json:"RollingUpgradeMode,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicyObject `json:"ClusterUpgradeHealthPolicy,omitempty"` - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeHealthPolicyObject defines a health policy used to evaluate the health of the cluster during a -// cluster upgrade. -type ClusterUpgradeHealthPolicyObject struct { - // MaxPercentDeltaUnhealthyNodes - The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. The default value is 10%. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits. The default value is 15%. - MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"MaxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeProgressObject information about a cluster upgrade. -type ClusterUpgradeProgressObject struct { - autorest.Response `json:"-"` - CodeVersion *string `json:"CodeVersion,omitempty"` - ConfigVersion *string `json:"ConfigVersion,omitempty"` - UpgradeDomains *[]UpgradeDomainInfo `json:"UpgradeDomains,omitempty"` - // UpgradeState - Possible values include: 'UpgradeState2Invalid', 'UpgradeState2RollingBackInProgress', 'UpgradeState2RollingBackCompleted', 'UpgradeState2RollingForwardPending', 'UpgradeState2RollingForwardInProgress', 'UpgradeState2RollingForwardCompleted', 'UpgradeState2Failed' - UpgradeState UpgradeState2 `json:"UpgradeState,omitempty"` - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode5Invalid', 'RollingUpgradeMode5UnmonitoredAuto', 'RollingUpgradeMode5UnmonitoredManual', 'RollingUpgradeMode5Monitored' - RollingUpgradeMode RollingUpgradeMode5 `json:"RollingUpgradeMode,omitempty"` - UpgradeDescription *ClusterUpgradeDescriptionObject `json:"UpgradeDescription,omitempty"` - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - Possible values include: 'FailureReason1None', 'FailureReason1Interrupted', 'FailureReason1HealthCheck', 'FailureReason1UpgradeDomainTimeout', 'FailureReason1UpgradeTimeout' - FailureReason FailureReason1 `json:"FailureReason,omitempty"` - UpgradeDomainProgressAtFailure *FailedUpgradeDomainProgressObject `json:"UpgradeDomainProgressAtFailure,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CodePackageEntryPoint information about setup or main entry point of a code package deployed on a Service Fabric -// node. -type CodePackageEntryPoint struct { - // EntryPointLocation - The location of entry point executable on the node. - EntryPointLocation *string `json:"EntryPointLocation,omitempty"` - // ProcessID - The process id of the entry point. - ProcessID *string `json:"ProcessId,omitempty"` - // RunAsUserName - The user name under which entry point executable is run on the node. - RunAsUserName *string `json:"RunAsUserName,omitempty"` - CodePackageEntryPointStatistics *CodePackageEntryPointStatistics `json:"CodePackageEntryPointStatistics,omitempty"` - // Status - Possible values include: 'Status3Invalid', 'Status3Pending', 'Status3Starting', 'Status3Started', 'Status3Stopping', 'Status3Stopped' - Status Status3 `json:"Status,omitempty"` - // NextActivationTime - The time (in UTC) when the entry point executable will be run next. - NextActivationTime *date.Time `json:"NextActivationTime,omitempty"` - InstanceID *string `json:"InstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CodePackageEntryPointStatistics statistics about setup or main entry point of a code package deployed on a -// Service Fabric node. -type CodePackageEntryPointStatistics struct { - // LastExitCode - The last exit code of the entry point. - LastExitCode *string `json:"LastExitCode,omitempty"` - // LastActivationTime - The last time (in UTC) when Service Fabric attempted to run the entry point. - LastActivationTime *date.Time `json:"LastActivationTime,omitempty"` - // LastExitTime - The last time (in UTC) when the entry point finished running. - LastExitTime *date.Time `json:"LastExitTime,omitempty"` - // LastSuccessfulActivationTime - The last time (in UTC) when the entry point ran successfully. - LastSuccessfulActivationTime *date.Time `json:"LastSuccessfulActivationTime,omitempty"` - // LastSuccessfulExitTime - The last time (in UTC) when the entry point finished running gracefully. - LastSuccessfulExitTime *date.Time `json:"LastSuccessfulExitTime,omitempty"` - // ActivationCount - Number of times the entry point has run. - ActivationCount *string `json:"ActivationCount,omitempty"` - // ActivationFailureCount - Number of times the entry point failed to run. - ActivationFailureCount *string `json:"ActivationFailureCount,omitempty"` - // ContinuousActivationFailureCount - Number of times the entry point continuously failed to run. - ContinuousActivationFailureCount *string `json:"ContinuousActivationFailureCount,omitempty"` - // ExitCount - Number of times the entry point finished running. - ExitCount *string `json:"ExitCount,omitempty"` - // ExitFailureCount - Number of times the entry point failed to exit gracefully. - ExitFailureCount *string `json:"ExitFailureCount,omitempty"` - // ContinuousExitFailureCount - Number of times the entry point continuously failed to exit gracefully. - ContinuousExitFailureCount *string `json:"ContinuousExitFailureCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentStatusInfo information about a Service Fabric compose deployment. -type ComposeDeploymentStatusInfo struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - // Status - Possible values include: 'Status6Invalid', 'Status6Provisioning', 'Status6Creating', 'Status6Ready', 'Status6Unprovisioning', 'Status6Deleting', 'Status6Failed', 'Status6Upgrading' - Status Status6 `json:"Status,omitempty"` - // StatusDetails - The status details of compose deployment including failure message. - StatusDetails *string `json:"StatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentUpgradeDescription describes the parameters for a compose deployment upgrade. -type ComposeDeploymentUpgradeDescription struct { - DeploymentName *string `json:"DeploymentName,omitempty"` - // ComposeFileContent - The content of the compose file that describes the deployment to create. - ComposeFileContent *string `json:"ComposeFileContent,omitempty"` - RegistryCredential *RegistryCredential `json:"RegistryCredential,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKind4Invalid', 'UpgradeKind4Rolling' - UpgradeKind UpgradeKind4 `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode6Invalid', 'RollingUpgradeMode6UnmonitoredAuto', 'RollingUpgradeMode6UnmonitoredManual', 'RollingUpgradeMode6Monitored' - RollingUpgradeMode RollingUpgradeMode6 `json:"RollingUpgradeMode,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentUpgradeProgressInfo describes the parameters for a compose deployment upgrade. -type ComposeDeploymentUpgradeProgressInfo struct { - autorest.Response `json:"-"` - DeploymentName *string `json:"DeploymentName,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - // UpgradeState - Possible values include: 'UpgradeState3Invalid', 'UpgradeState3ProvisioningTarget', 'UpgradeState3RollingForwardInProgress', 'UpgradeState3RollingForwardPending', 'UpgradeState3UnprovisioningCurrent', 'UpgradeState3RollingForwardCompleted', 'UpgradeState3RollingBackInProgress', 'UpgradeState3UnprovisioningTarget', 'UpgradeState3RollingBackCompleted', 'UpgradeState3Failed' - UpgradeState UpgradeState3 `json:"UpgradeState,omitempty"` - UpgradeStatusDetails *string `json:"UpgradeStatusDetails,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKind5Invalid', 'UpgradeKind5Rolling' - UpgradeKind UpgradeKind5 `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode7Invalid', 'RollingUpgradeMode7UnmonitoredAuto', 'RollingUpgradeMode7UnmonitoredManual', 'RollingUpgradeMode7Monitored' - RollingUpgradeMode RollingUpgradeMode7 `json:"RollingUpgradeMode,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - UpgradeDuration *string `json:"UpgradeDuration,omitempty"` - CurrentUpgradeDomainDuration *string `json:"CurrentUpgradeDomainDuration,omitempty"` - ApplicationUnhealthyEvaluations *[]HealthEvaluationWrapper `json:"ApplicationUnhealthyEvaluations,omitempty"` - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - Possible values include: 'FailureReason2None', 'FailureReason2Interrupted', 'FailureReason2HealthCheck', 'FailureReason2UpgradeDomainTimeout', 'FailureReason2UpgradeTimeout' - FailureReason FailureReason2 `json:"FailureReason,omitempty"` - UpgradeDomainProgressAtFailure *FailureUpgradeDomainProgressInfo `json:"UpgradeDomainProgressAtFailure,omitempty"` - ApplicationUpgradeStatusDetails *string `json:"ApplicationUpgradeStatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentDescription defines description for creating a Service Fabric compose deployment. -type CreateComposeDeploymentDescription struct { - DeploymentName *string `json:"DeploymentName,omitempty"` - // ComposeFileContent - The content of the compose file that describes the deployment to create. - ComposeFileContent *string `json:"ComposeFileContent,omitempty"` - RegistryCredential *RegistryCredential `json:"RegistryCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CurrentUpgradeDomainProgressInfo information about the current in-progress upgrade domain. -type CurrentUpgradeDomainProgressInfo struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeactivationIntentDescription describes the intent or reason for deactivating the node. -type DeactivationIntentDescription struct { - // DeactivationIntent - Describes the intent or reason for deactivating the node. The possible values are following. - // - Pause - Indicates that the node should be paused. The value is 1. - // - Restart - Indicates that the intent is for the node to be restarted after a short period of time. The value is 2. - // - RemoveData - Indicates the intent is for the node to remove data. The value is 3. - // . Possible values include: 'Pause', 'Restart', 'RemoveData' - DeactivationIntent DeactivationIntent `json:"DeactivationIntent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertyBatchOperation represents a PropertyBatchOperation that deletes a specified property if it exists. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be -// committed in a transactional manner. -type DeletePropertyBatchOperation struct { - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) MarshalJSON() ([]byte, error) { - dpbo.Kind = KindDelete - objectMap := make(map[string]interface{}) - if dpbo.PropertyName != nil { - objectMap["PropertyName"] = dpbo.PropertyName - } - if dpbo.Kind != "" { - objectMap["Kind"] = dpbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return &dpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &dpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeltaNodesCheckHealthEvaluation represents health evaluation for delta nodes, containing health evaluations for -// each unhealthy node that impacted current aggregated health state. -// Can be returned during cluster upgrade when the aggregated health state of the cluster is Warning or Error. -type DeltaNodesCheckHealthEvaluation struct { - // BaselineErrorCount - Number of nodes with aggregated heath state Error in the health store at the beginning of the cluster upgrade. - BaselineErrorCount *int64 `json:"BaselineErrorCount,omitempty"` - // BaselineTotalCount - Total number of nodes in the health store at the beginning of the cluster upgrade. - BaselineTotalCount *int64 `json:"BaselineTotalCount,omitempty"` - // MaxPercentDeltaUnhealthyNodes - Maximum allowed percentage of delta unhealthy nodes from the ClusterUpgradeHealthPolicy. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - dnche.Kind = KindDeltaNodesCheck - objectMap := make(map[string]interface{}) - if dnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = dnche.BaselineErrorCount - } - if dnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = dnche.BaselineTotalCount - } - if dnche.MaxPercentDeltaUnhealthyNodes != nil { - objectMap["MaxPercentDeltaUnhealthyNodes"] = dnche.MaxPercentDeltaUnhealthyNodes - } - if dnche.TotalCount != nil { - objectMap["TotalCount"] = dnche.TotalCount - } - if dnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dnche.UnhealthyEvaluations - } - if dnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dnche.AggregatedHealthState - } - if dnche.Description != nil { - objectMap["Description"] = dnche.Description - } - if dnche.Kind != "" { - objectMap["Kind"] = dnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealth information about the health of an application deployed on a Service Fabric node. -type DeployedApplicationHealth struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - DeployedServicePackageHealthStates *[]DeployedServicePackageHealthState `json:"DeployedServicePackageHealthStates,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthEvaluation represents health evaluation for a deployed application, containing -// information about the data and the algorithm used by the health store to evaluate health. -type DeployedApplicationHealthEvaluation struct { - NodeName *string `json:"NodeName,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplication - objectMap := make(map[string]interface{}) - if dahe.NodeName != nil { - objectMap["NodeName"] = dahe.NodeName - } - if dahe.ApplicationName != nil { - objectMap["ApplicationName"] = dahe.ApplicationName - } - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthState represents the health state of a deployed application, which contains the entity -// identifier and the aggregated health state. -type DeployedApplicationHealthState struct { - NodeName *string `json:"NodeName,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateChunk represents the health state chunk of a deployed application, which contains -// the node where the application is deployed, the aggregated health state and any deployed service packages that -// respect the chunk query description filters. -type DeployedApplicationHealthStateChunk struct { - // NodeName - The name of node where the application is deployed. - NodeName *string `json:"NodeName,omitempty"` - DeployedServicePackageHealthStateChunks *DeployedServicePackageHealthStateChunkList `json:"DeployedServicePackageHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateChunkList the list of deployed application health state chunks that respect the -// input filters in the chunk query. Returned by get cluster health state chunks query. -type DeployedApplicationHealthStateChunkList struct { - // Items - The list of deployed application health state chunks that respect the input filters in the chunk query. - Items *[]DeployedApplicationHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateFilter defines matching criteria to determine whether a deployed application -// should be included as a child of an application in the cluster health chunk. -// The deployed applications are only returned if the parent application matches a filter specified in the cluster -// health chunk query description. -// One filter can match zero, one or multiple deployed applications, depending on its properties. -type DeployedApplicationHealthStateFilter struct { - // NodeNameFilter - The name of the node where the application is deployed in order to match the filter. - // If specified, the filter is applied only to the application deployed on the specified node. - // If the application is not deployed on the node with the specified name, no deployed application is returned in the cluster health chunk based on this filter. - // Otherwise, the deployed application is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all deployed applications that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - NodeNameFilter *string `json:"NodeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the deployed applications. It allows selecting deployed applications if they match the desired health states. - // The possible values are integer value of one of the following health states. Only deployed applications that match the filter are returned. All deployed applications are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the node name is specified. If the filter has default value and node name is specified, the matching deployed application is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches deployed applications with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // DeployedServicePackageFilters - Defines a list of filters that specify which deployed service packages to be included in the returned cluster health chunk as children of the parent deployed application. The deployed service packages are returned only if the parent deployed application matches a filter. - // If the list is empty, no deployed service packages are returned. All the deployed service packages are used to evaluate the parent deployed application aggregated health state, regardless of the input filters. - // The deployed application filter may specify multiple deployed service package filters. - // For example, it can specify a filter to return all deployed service packages with health state Error and another filter to always include a deployed service package on a node. - DeployedServicePackageFilters *[]DeployedServicePackageHealthStateFilter `json:"DeployedServicePackageFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationInfo information about application deployed on the node. -type DeployedApplicationInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - // Status - Possible values include: 'Status2Invalid', 'Status2Downloading', 'Status2Activating', 'Status2Active', 'Status2Upgrading', 'Status2Deactivating' - Status Status2 `json:"Status,omitempty"` - // WorkDirectory - The work directory of the application on the node. The work directory can be used to store application data. - WorkDirectory *string `json:"WorkDirectory,omitempty"` - // LogDirectory - The log directory of the application on the node. The log directory can be used to store application logs. - LogDirectory *string `json:"LogDirectory,omitempty"` - // TempDirectory - The temp directory of the application on the node. The code packages belonging to the application are forked with this directory set as their temporary directory. - TempDirectory *string `json:"TempDirectory,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationsHealthEvaluation represents health evaluation for deployed applications, containing health -// evaluations for each unhealthy deployed application that impacted current aggregated health state. -// Can be returned when evaluating application health and the aggregated health state is either Error or Warning. -type DeployedApplicationsHealthEvaluation struct { - // MaxPercentUnhealthyDeployedApplications - Maximum allowed percentage of unhealthy deployed applications from the ApplicationHealthPolicy. - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - // TotalCount - Total number of deployed applications of the application in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplications - objectMap := make(map[string]interface{}) - if dahe.MaxPercentUnhealthyDeployedApplications != nil { - objectMap["MaxPercentUnhealthyDeployedApplications"] = dahe.MaxPercentUnhealthyDeployedApplications - } - if dahe.TotalCount != nil { - objectMap["TotalCount"] = dahe.TotalCount - } - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedCodePackageInfo information about code package deployed on a Service Fabric node. -type DeployedCodePackageInfo struct { - Name *string `json:"Name,omitempty"` - // Version - The version of the code package specified in service manifest. - Version *string `json:"Version,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostType - Possible values include: 'HostTypeInvalid', 'HostTypeExeHost', 'HostTypeContainerHost' - HostType HostType `json:"HostType,omitempty"` - // HostIsolationMode - Possible values include: 'HostIsolationModeNone', 'HostIsolationModeProcess', 'HostIsolationModeHyperV' - HostIsolationMode HostIsolationMode `json:"HostIsolationMode,omitempty"` - // Status - Possible values include: 'Status4Invalid', 'Status4Downloading', 'Status4Activating', 'Status4Active', 'Status4Upgrading', 'Status4Deactivating' - Status Status4 `json:"Status,omitempty"` - // RunFrequencyInterval - The interval at which code package is run. This is used for periodic code package. - RunFrequencyInterval *string `json:"RunFrequencyInterval,omitempty"` - SetupEntryPoint *CodePackageEntryPoint `json:"SetupEntryPoint,omitempty"` - MainEntryPoint *CodePackageEntryPoint `json:"MainEntryPoint,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealth information about the health of a service package for a specific application -// deployed on a Service Fabric node. -type DeployedServicePackageHealth struct { - autorest.Response `json:"-"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthEvaluation represents health evaluation for a deployed service package, containing -// information about the data and the algorithm used by health store to evaluate health. The evaluation is returned -// only when the aggregated health state is either Error or Warning. -type DeployedServicePackageHealthEvaluation struct { - NodeName *string `json:"NodeName,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackage - objectMap := make(map[string]interface{}) - if dsphe.NodeName != nil { - objectMap["NodeName"] = dsphe.NodeName - } - if dsphe.ApplicationName != nil { - objectMap["ApplicationName"] = dsphe.ApplicationName - } - if dsphe.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dsphe.ServiceManifestName - } - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthState represents the health state of a deployed service package, containing the -// entity identifier and the aggregated health state. -type DeployedServicePackageHealthState struct { - NodeName *string `json:"NodeName,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateChunk represents the health state chunk of a deployed service package, which -// contains the service manifest name and the service package aggregated health state. -type DeployedServicePackageHealthStateChunk struct { - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateChunkList the list of deployed service package health state chunks that respect -// the input filters in the chunk query. Returned by get cluster health state chunks query. -type DeployedServicePackageHealthStateChunkList struct { - // Items - The list of deployed service package health state chunks that respect the input filters in the chunk query. - Items *[]DeployedServicePackageHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateFilter defines matching criteria to determine whether a deployed service -// package should be included as a child of a deployed application in the cluster health chunk. -// The deployed service packages are only returned if the parent entities match a filter specified in the cluster -// health chunk query description. The parent deployed application and its parent application must be included in -// the cluster health chunk. -// One filter can match zero, one or multiple deployed service packages, depending on its properties. -type DeployedServicePackageHealthStateFilter struct { - // ServiceManifestNameFilter - The name of the service manifest which identifies the deployed service packages that matches the filter. - // If specified, the filter is applied only to the specified deployed service packages, if any. - // If no deployed service packages with specified manifest name exist, nothing is returned in the cluster health chunk based on this filter. - // If any deployed service package exists, they are included in the cluster health chunk if it respects the other filter properties. - // If not specified, all deployed service packages that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ServiceManifestNameFilter *string `json:"ServiceManifestNameFilter,omitempty"` - // ServicePackageActivationIDFilter - The activation ID of a deployed service package that matches the filter. - // If not specified, the filter applies to all deployed service packages that match the other parameters. - // If specified, the filter matches only the deployed service package with the specified activation ID. - ServicePackageActivationIDFilter *string `json:"ServicePackageActivationIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the deployed service packages. It allows selecting deployed service packages if they match the desired health states. - // The possible values are integer value of one of the following health states. Only deployed service packages that match the filter are returned. All deployed service packages are used to evaluate the parent deployed application aggregated health state. - // If not specified, default value is None, unless the deployed service package id is specified. If the filter has default value and deployed service package id is specified, the matching deployed service package is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches deployed service packages with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageInfo information about service package deployed on a Service Fabric node. -type DeployedServicePackageInfo struct { - Name *string `json:"Name,omitempty"` - // Version - The version of the service package specified in service manifest. - Version *string `json:"Version,omitempty"` - // Status - Possible values include: 'Status7Invalid', 'Status7Downloading', 'Status7Activating', 'Status7Active', 'Status7Upgrading', 'Status7Deactivating' - Status Status7 `json:"Status,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackagesHealthEvaluation represents health evaluation for deployed service packages, containing -// health evaluations for each unhealthy deployed service package that impacted current aggregated health state. -// Can be returned when evaluating deployed application health and the aggregated health state is either Error or -// Warning. -type DeployedServicePackagesHealthEvaluation struct { - // TotalCount - Total number of deployed service packages of the deployed application in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackages - objectMap := make(map[string]interface{}) - if dsphe.TotalCount != nil { - objectMap["TotalCount"] = dsphe.TotalCount - } - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicDeployedServiceReplicaDetailInfo information about a Service Fabric service replica deployed on a node. -type BasicDeployedServiceReplicaDetailInfo interface { - AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) - AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) - AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaDetailInfo information about a Service Fabric service replica deployed on a node. -type DeployedServiceReplicaDetailInfo struct { - autorest.Response `json:"-"` - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Possible values include: 'CurrentServiceOperationUnknown', 'CurrentServiceOperationNone', 'CurrentServiceOperationOpen', 'CurrentServiceOperationChangeRole', 'CurrentServiceOperationClose', 'CurrentServiceOperationAbort' - CurrentServiceOperation CurrentServiceOperation `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicDeployedServiceReplicaDetailInfo(body []byte) (BasicDeployedServiceReplicaDetailInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful): - var dssrdi DeployedStatefulServiceReplicaDetailInfo - err := json.Unmarshal(body, &dssrdi) - return dssrdi, err - case string(ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless): - var dssidi DeployedStatelessServiceInstanceDetailInfo - err := json.Unmarshal(body, &dssidi) - return dssidi, err - default: - var dsrdi DeployedServiceReplicaDetailInfo - err := json.Unmarshal(body, &dsrdi) - return dsrdi, err - } -} -func unmarshalBasicDeployedServiceReplicaDetailInfoArray(body []byte) ([]BasicDeployedServiceReplicaDetailInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsrdiArray := make([]BasicDeployedServiceReplicaDetailInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsrdi, err := unmarshalBasicDeployedServiceReplicaDetailInfo(*rawMessage) - if err != nil { - return nil, err - } - dsrdiArray[index] = dsrdi - } - return dsrdiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) MarshalJSON() ([]byte, error) { - dsrdi.ServiceKind = ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo - objectMap := make(map[string]interface{}) - if dsrdi.ServiceName != nil { - objectMap["ServiceName"] = dsrdi.ServiceName - } - if dsrdi.PartitionID != nil { - objectMap["PartitionId"] = dsrdi.PartitionID - } - if dsrdi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dsrdi.CurrentServiceOperation - } - if dsrdi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dsrdi.CurrentServiceOperationStartTimeUtc - } - if dsrdi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dsrdi.ReportedLoad - } - if dsrdi.ServiceKind != "" { - objectMap["ServiceKind"] = dsrdi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return &dsrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dsrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaDetailInfoModel ... -type DeployedServiceReplicaDetailInfoModel struct { - autorest.Response `json:"-"` - Value BasicDeployedServiceReplicaDetailInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for DeployedServiceReplicaDetailInfoModel struct. -func (dsrdim *DeployedServiceReplicaDetailInfoModel) UnmarshalJSON(body []byte) error { - dsrdi, err := unmarshalBasicDeployedServiceReplicaDetailInfo(body) - if err != nil { - return err - } - dsrdim.Value = dsrdi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicDeployedServiceReplicaInfo information about a Service Fabric service replica deployed on a node. -type BasicDeployedServiceReplicaInfo interface { - AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) - AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) - AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaInfo information about a Service Fabric service replica deployed on a node. -type DeployedServiceReplicaInfo struct { - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - CodePackageName *string `json:"CodePackageName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostProcessID - Host process id of the process that is hosting the replica. This will be zero if the replica is down. In hyper-v containers this host process id will be from different kernel. - HostProcessID *string `json:"HostProcessId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaInfo', 'ServiceKindStateful', 'ServiceKindStateless' - ServiceKind ServiceKind `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicDeployedServiceReplicaInfo(body []byte) (BasicDeployedServiceReplicaInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindStateful): - var dssri DeployedStatefulServiceReplicaInfo - err := json.Unmarshal(body, &dssri) - return dssri, err - case string(ServiceKindStateless): - var dssii DeployedStatelessServiceInstanceInfo - err := json.Unmarshal(body, &dssii) - return dssii, err - default: - var dsri DeployedServiceReplicaInfo - err := json.Unmarshal(body, &dsri) - return dsri, err - } -} -func unmarshalBasicDeployedServiceReplicaInfoArray(body []byte) ([]BasicDeployedServiceReplicaInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsriArray := make([]BasicDeployedServiceReplicaInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsri, err := unmarshalBasicDeployedServiceReplicaInfo(*rawMessage) - if err != nil { - return nil, err - } - dsriArray[index] = dsri - } - return dsriArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) MarshalJSON() ([]byte, error) { - dsri.ServiceKind = ServiceKindDeployedServiceReplicaInfo - objectMap := make(map[string]interface{}) - if dsri.ServiceName != nil { - objectMap["ServiceName"] = dsri.ServiceName - } - if dsri.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dsri.ServiceTypeName - } - if dsri.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dsri.ServiceManifestName - } - if dsri.CodePackageName != nil { - objectMap["CodePackageName"] = dsri.CodePackageName - } - if dsri.PartitionID != nil { - objectMap["PartitionId"] = dsri.PartitionID - } - if dsri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dsri.ReplicaStatus - } - if dsri.Address != nil { - objectMap["Address"] = dsri.Address - } - if dsri.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dsri.ServicePackageActivationID - } - if dsri.HostProcessID != nil { - objectMap["HostProcessId"] = dsri.HostProcessID - } - if dsri.ServiceKind != "" { - objectMap["ServiceKind"] = dsri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return &dsri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dsri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceTypeInfo information about service type deployed on a node, information such as the status of the -// service type registration on a node. -type DeployedServiceTypeInfo struct { - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - CodePackageName *string `json:"CodePackageName,omitempty"` - // Status - Possible values include: 'Status8Invalid', 'Status8Disabled', 'Status8Enabled', 'Status8Registered' - Status Status8 `json:"Status,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatefulServiceReplicaDetailInfo information about a stateful replica running in a code package. Please -// note DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, PartitionId -// and replicaId. -type DeployedStatefulServiceReplicaDetailInfo struct { - ReplicaID *string `json:"ReplicaId,omitempty"` - // CurrentReplicatorOperation - Possible values include: 'CurrentReplicatorOperationInvalid', 'CurrentReplicatorOperationNone', 'CurrentReplicatorOperationOpen', 'CurrentReplicatorOperationChangeRole', 'CurrentReplicatorOperationUpdateEpoch', 'CurrentReplicatorOperationClose', 'CurrentReplicatorOperationAbort', 'CurrentReplicatorOperationOnDataLoss', 'CurrentReplicatorOperationWaitForCatchup', 'CurrentReplicatorOperationBuild' - CurrentReplicatorOperation CurrentReplicatorOperation `json:"CurrentReplicatorOperation,omitempty"` - // ReadStatus - Possible values include: 'ReadStatusInvalid', 'ReadStatusGranted', 'ReadStatusReconfigurationPending', 'ReadStatusNotPrimary', 'ReadStatusNoWriteQuorum' - ReadStatus ReadStatus `json:"ReadStatus,omitempty"` - // WriteStatus - Possible values include: 'WriteStatusInvalid', 'WriteStatusGranted', 'WriteStatusReconfigurationPending', 'WriteStatusNotPrimary', 'WriteStatusNoWriteQuorum' - WriteStatus WriteStatus `json:"WriteStatus,omitempty"` - ReplicatorStatus BasicReplicatorStatus `json:"ReplicatorStatus,omitempty"` - ReplicaStatus *KeyValueStoreReplicaStatus `json:"ReplicaStatus,omitempty"` - DeployedServiceReplicaQueryResult *DeployedStatefulServiceReplicaInfo `json:"DeployedServiceReplicaQueryResult,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Possible values include: 'CurrentServiceOperationUnknown', 'CurrentServiceOperationNone', 'CurrentServiceOperationOpen', 'CurrentServiceOperationChangeRole', 'CurrentServiceOperationClose', 'CurrentServiceOperationAbort' - CurrentServiceOperation CurrentServiceOperation `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) MarshalJSON() ([]byte, error) { - dssrdi.ServiceKind = ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if dssrdi.ReplicaID != nil { - objectMap["ReplicaId"] = dssrdi.ReplicaID - } - if dssrdi.CurrentReplicatorOperation != "" { - objectMap["CurrentReplicatorOperation"] = dssrdi.CurrentReplicatorOperation - } - if dssrdi.ReadStatus != "" { - objectMap["ReadStatus"] = dssrdi.ReadStatus - } - if dssrdi.WriteStatus != "" { - objectMap["WriteStatus"] = dssrdi.WriteStatus - } - objectMap["ReplicatorStatus"] = dssrdi.ReplicatorStatus - if dssrdi.ReplicaStatus != nil { - objectMap["ReplicaStatus"] = dssrdi.ReplicaStatus - } - if dssrdi.DeployedServiceReplicaQueryResult != nil { - objectMap["DeployedServiceReplicaQueryResult"] = dssrdi.DeployedServiceReplicaQueryResult - } - if dssrdi.ServiceName != nil { - objectMap["ServiceName"] = dssrdi.ServiceName - } - if dssrdi.PartitionID != nil { - objectMap["PartitionId"] = dssrdi.PartitionID - } - if dssrdi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dssrdi.CurrentServiceOperation - } - if dssrdi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dssrdi.CurrentServiceOperationStartTimeUtc - } - if dssrdi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dssrdi.ReportedLoad - } - if dssrdi.ServiceKind != "" { - objectMap["ServiceKind"] = dssrdi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return &dssrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dssrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for DeployedStatefulServiceReplicaDetailInfo struct. -func (dssrdi *DeployedStatefulServiceReplicaDetailInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ReplicaId": - if v != nil { - var replicaID string - err = json.Unmarshal(*v, &replicaID) - if err != nil { - return err - } - dssrdi.ReplicaID = &replicaID - } - case "CurrentReplicatorOperation": - if v != nil { - var currentReplicatorOperation CurrentReplicatorOperation - err = json.Unmarshal(*v, ¤tReplicatorOperation) - if err != nil { - return err - } - dssrdi.CurrentReplicatorOperation = currentReplicatorOperation - } - case "ReadStatus": - if v != nil { - var readStatus ReadStatus - err = json.Unmarshal(*v, &readStatus) - if err != nil { - return err - } - dssrdi.ReadStatus = readStatus - } - case "WriteStatus": - if v != nil { - var writeStatus WriteStatus - err = json.Unmarshal(*v, &writeStatus) - if err != nil { - return err - } - dssrdi.WriteStatus = writeStatus - } - case "ReplicatorStatus": - if v != nil { - replicatorStatus, err := unmarshalBasicReplicatorStatus(*v) - if err != nil { - return err - } - dssrdi.ReplicatorStatus = replicatorStatus - } - case "ReplicaStatus": - if v != nil { - var replicaStatus KeyValueStoreReplicaStatus - err = json.Unmarshal(*v, &replicaStatus) - if err != nil { - return err - } - dssrdi.ReplicaStatus = &replicaStatus - } - case "DeployedServiceReplicaQueryResult": - if v != nil { - var deployedServiceReplicaQueryResult DeployedStatefulServiceReplicaInfo - err = json.Unmarshal(*v, &deployedServiceReplicaQueryResult) - if err != nil { - return err - } - dssrdi.DeployedServiceReplicaQueryResult = &deployedServiceReplicaQueryResult - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - dssrdi.ServiceName = &serviceName - } - case "PartitionId": - if v != nil { - var partitionID uuid.UUID - err = json.Unmarshal(*v, &partitionID) - if err != nil { - return err - } - dssrdi.PartitionID = &partitionID - } - case "CurrentServiceOperation": - if v != nil { - var currentServiceOperation CurrentServiceOperation - err = json.Unmarshal(*v, ¤tServiceOperation) - if err != nil { - return err - } - dssrdi.CurrentServiceOperation = currentServiceOperation - } - case "CurrentServiceOperationStartTimeUtc": - if v != nil { - var currentServiceOperationStartTimeUtc date.Time - err = json.Unmarshal(*v, ¤tServiceOperationStartTimeUtc) - if err != nil { - return err - } - dssrdi.CurrentServiceOperationStartTimeUtc = ¤tServiceOperationStartTimeUtc - } - case "ReportedLoad": - if v != nil { - var reportedLoad []LoadMetricReportInfo - err = json.Unmarshal(*v, &reportedLoad) - if err != nil { - return err - } - dssrdi.ReportedLoad = &reportedLoad - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicDeployedServiceReplicaDetailInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - dssrdi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatefulServiceReplicaInfo information about a stateful service replica deployed on a node. -type DeployedStatefulServiceReplicaInfo struct { - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaRole - Possible values include: 'ReplicaRoleUnknown', 'ReplicaRoleNone', 'ReplicaRolePrimary', 'ReplicaRoleIdleSecondary', 'ReplicaRoleActiveSecondary' - ReplicaRole ReplicaRole `json:"ReplicaRole,omitempty"` - ReconfigurationInformation *ReconfigurationInformation `json:"ReconfigurationInformation,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - CodePackageName *string `json:"CodePackageName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostProcessID - Host process id of the process that is hosting the replica. This will be zero if the replica is down. In hyper-v containers this host process id will be from different kernel. - HostProcessID *string `json:"HostProcessId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaInfo', 'ServiceKindStateful', 'ServiceKindStateless' - ServiceKind ServiceKind `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) MarshalJSON() ([]byte, error) { - dssri.ServiceKind = ServiceKindStateful - objectMap := make(map[string]interface{}) - if dssri.ReplicaID != nil { - objectMap["ReplicaId"] = dssri.ReplicaID - } - if dssri.ReplicaRole != "" { - objectMap["ReplicaRole"] = dssri.ReplicaRole - } - if dssri.ReconfigurationInformation != nil { - objectMap["ReconfigurationInformation"] = dssri.ReconfigurationInformation - } - if dssri.ServiceName != nil { - objectMap["ServiceName"] = dssri.ServiceName - } - if dssri.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dssri.ServiceTypeName - } - if dssri.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dssri.ServiceManifestName - } - if dssri.CodePackageName != nil { - objectMap["CodePackageName"] = dssri.CodePackageName - } - if dssri.PartitionID != nil { - objectMap["PartitionId"] = dssri.PartitionID - } - if dssri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dssri.ReplicaStatus - } - if dssri.Address != nil { - objectMap["Address"] = dssri.Address - } - if dssri.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dssri.ServicePackageActivationID - } - if dssri.HostProcessID != nil { - objectMap["HostProcessId"] = dssri.HostProcessID - } - if dssri.ServiceKind != "" { - objectMap["ServiceKind"] = dssri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return &dssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatelessServiceInstanceDetailInfo information about a stateless instance running in a code package. -// Please note that DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, -// PartitionId and InstanceId. -type DeployedStatelessServiceInstanceDetailInfo struct { - InstanceID *string `json:"InstanceId,omitempty"` - DeployedServiceReplicaQueryResult *DeployedStatelessServiceInstanceInfo `json:"DeployedServiceReplicaQueryResult,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Possible values include: 'CurrentServiceOperationUnknown', 'CurrentServiceOperationNone', 'CurrentServiceOperationOpen', 'CurrentServiceOperationChangeRole', 'CurrentServiceOperationClose', 'CurrentServiceOperationAbort' - CurrentServiceOperation CurrentServiceOperation `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) MarshalJSON() ([]byte, error) { - dssidi.ServiceKind = ServiceKindBasicDeployedServiceReplicaDetailInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if dssidi.InstanceID != nil { - objectMap["InstanceId"] = dssidi.InstanceID - } - if dssidi.DeployedServiceReplicaQueryResult != nil { - objectMap["DeployedServiceReplicaQueryResult"] = dssidi.DeployedServiceReplicaQueryResult - } - if dssidi.ServiceName != nil { - objectMap["ServiceName"] = dssidi.ServiceName - } - if dssidi.PartitionID != nil { - objectMap["PartitionId"] = dssidi.PartitionID - } - if dssidi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dssidi.CurrentServiceOperation - } - if dssidi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dssidi.CurrentServiceOperationStartTimeUtc - } - if dssidi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dssidi.ReportedLoad - } - if dssidi.ServiceKind != "" { - objectMap["ServiceKind"] = dssidi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return &dssidi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dssidi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatelessServiceInstanceInfo information about a stateless service instance deployed on a node. -type DeployedStatelessServiceInstanceInfo struct { - InstanceID *string `json:"InstanceId,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - CodePackageName *string `json:"CodePackageName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostProcessID - Host process id of the process that is hosting the replica. This will be zero if the replica is down. In hyper-v containers this host process id will be from different kernel. - HostProcessID *string `json:"HostProcessId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaInfo', 'ServiceKindStateful', 'ServiceKindStateless' - ServiceKind ServiceKind `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) MarshalJSON() ([]byte, error) { - dssii.ServiceKind = ServiceKindStateless - objectMap := make(map[string]interface{}) - if dssii.InstanceID != nil { - objectMap["InstanceId"] = dssii.InstanceID - } - if dssii.ServiceName != nil { - objectMap["ServiceName"] = dssii.ServiceName - } - if dssii.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dssii.ServiceTypeName - } - if dssii.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dssii.ServiceManifestName - } - if dssii.CodePackageName != nil { - objectMap["CodePackageName"] = dssii.CodePackageName - } - if dssii.PartitionID != nil { - objectMap["PartitionId"] = dssii.PartitionID - } - if dssii.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dssii.ReplicaStatus - } - if dssii.Address != nil { - objectMap["Address"] = dssii.Address - } - if dssii.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dssii.ServicePackageActivationID - } - if dssii.HostProcessID != nil { - objectMap["HostProcessId"] = dssii.HostProcessID - } - if dssii.ServiceKind != "" { - objectMap["ServiceKind"] = dssii.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return &dssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployServicePackageToNodeDescription defines description for downloading packages associated with a service -// manifest to image cache on a Service Fabric node. -type DeployServicePackageToNodeDescription struct { - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - PackageSharingPolicy *[]PackageSharingPolicyInfo `json:"PackageSharingPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DoublePropertyValue describes a Service Fabric property value of type Double. -type DoublePropertyValue struct { - // Data - The data of the property value. - Data *float64 `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DoublePropertyValue. -func (dpv DoublePropertyValue) MarshalJSON() ([]byte, error) { - dpv.Kind = KindDouble - objectMap := make(map[string]interface{}) - if dpv.Data != nil { - objectMap["Data"] = dpv.Data - } - if dpv.Kind != "" { - objectMap["Kind"] = dpv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return &dpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &dpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnsureAvailabilitySafetyCheck safety check that waits to ensure the availability of the partition. It waits -// until there are replicas available such that bringing down this replica will not cause availability loss for the -// partition. -type EnsureAvailabilitySafetyCheck struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) MarshalJSON() ([]byte, error) { - easc.Kind = KindEnsureAvailability - objectMap := make(map[string]interface{}) - if easc.PartitionID != nil { - objectMap["PartitionId"] = easc.PartitionID - } - if easc.Kind != "" { - objectMap["Kind"] = easc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnsurePartitionQurumSafetyCheck safety check that ensures that a quorum of replicas are not lost for a -// partition. -type EnsurePartitionQurumSafetyCheck struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) MarshalJSON() ([]byte, error) { - epqsc.Kind = KindEnsurePartitionQuorum - objectMap := make(map[string]interface{}) - if epqsc.PartitionID != nil { - objectMap["PartitionId"] = epqsc.PartitionID - } - if epqsc.Kind != "" { - objectMap["Kind"] = epqsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealth health information common to all entities in the cluster. It contains the aggregated health state, -// health events and unhealthy evaluation. -type EntityHealth struct { - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthState a base type for the health state of various entities in the cluster. It contains the -// aggregated health state. -type EntityHealthState struct { - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthStateChunk a base type for the health state chunk of various entities in the cluster. It contains -// the aggregated health state. -type EntityHealthStateChunk struct { - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthStateChunkList a base type for the list of health state chunks found in the cluster. It contains the -// total number of health states that match the input filters. -type EntityHealthStateChunkList struct { - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityKindHealthStateCount represents health state count for entities of the specified entity kind. -type EntityKindHealthStateCount struct { - // EntityKind - Possible values include: 'EntityKindInvalid', 'EntityKindNode', 'EntityKindPartition', 'EntityKindService', 'EntityKindApplication', 'EntityKindReplica', 'EntityKindDeployedApplication', 'EntityKindDeployedServicePackage', 'EntityKindCluster' - EntityKind EntityKind `json:"EntityKind,omitempty"` - HealthStateCount *HealthStateCount `json:"HealthStateCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Epoch an Epoch is a configuration number for the partition as a whole. When the configuration of the replica set -// changes, for example when the Primary replica changes, the operations that are replicated from the new Primary -// replica are said to be a new Epoch from the ones which were sent by the old Primary replica. -type Epoch struct { - // ConfigurationVersion - The current configuration number of this Epoch. The configuration number is an increasing value that is updated whenever the configuration of this replica set changes. - ConfigurationVersion *string `json:"ConfigurationVersion,omitempty"` - // DataLossVersion - The current dataloss number of this Epoch. The data loss number property is an increasing value which is updated whenever data loss is suspected, as when loss of a quorum of replicas in the replica set that includes the Primary replica. - DataLossVersion *string `json:"DataLossVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EventHealthEvaluation represents health evaluation of a HealthEvent that was reported on the entity. -// The health evaluation is returned when evaluating health of an entity results in Error or Warning. -type EventHealthEvaluation struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. The field is specified in the health policy used to evaluate the entity. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - UnhealthyEvent *HealthEvent `json:"UnhealthyEvent,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EventHealthEvaluation. -func (ehe EventHealthEvaluation) MarshalJSON() ([]byte, error) { - ehe.Kind = KindEvent - objectMap := make(map[string]interface{}) - if ehe.ConsiderWarningAsError != nil { - objectMap["ConsiderWarningAsError"] = ehe.ConsiderWarningAsError - } - if ehe.UnhealthyEvent != nil { - objectMap["UnhealthyEvent"] = ehe.UnhealthyEvent - } - if ehe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ehe.AggregatedHealthState - } - if ehe.Description != nil { - objectMap["Description"] = ehe.Description - } - if ehe.Kind != "" { - objectMap["Kind"] = ehe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ExecutingFaultsChaosEvent describes a Chaos event that gets generated when Chaos has decided on the faults for -// an iteration. This Chaos event contains the details of the faults as a list of strings. -type ExecutingFaultsChaosEvent struct { - Faults *[]string `json:"Faults,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) MarshalJSON() ([]byte, error) { - efce.Kind = KindExecutingFaults - objectMap := make(map[string]interface{}) - if efce.Faults != nil { - objectMap["Faults"] = efce.Faults - } - if efce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = efce.TimeStampUtc - } - if efce.Kind != "" { - objectMap["Kind"] = efce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return &efce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &efce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricCodeVersionInfo information about a Service Fabric code version. -type FabricCodeVersionInfo struct { - // CodeVersion - The product version of Service Fabric. - CodeVersion *string `json:"CodeVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricConfigVersionInfo information about a Service Fabric config version. -type FabricConfigVersionInfo struct { - // ConfigVersion - The config version of Service Fabric. - ConfigVersion *string `json:"ConfigVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricError the REST API operations for Service Fabric return standard HTTP status codes. This type defines the -// additional information returned from the Service Fabric API operations that are not successful. -type FabricError struct { - Error *FabricErrorError `json:"Error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricErrorError error object containing error code and error message. -type FabricErrorError struct { - // Code - Possible values include: 'FABRICEINVALIDPARTITIONKEY', 'FABRICEIMAGEBUILDERVALIDATIONERROR', 'FABRICEINVALIDADDRESS', 'FABRICEAPPLICATIONNOTUPGRADING', 'FABRICEAPPLICATIONUPGRADEVALIDATIONERROR', 'FABRICEFABRICNOTUPGRADING', 'FABRICEFABRICUPGRADEVALIDATIONERROR', 'FABRICEINVALIDCONFIGURATION', 'FABRICEINVALIDNAMEURI', 'FABRICEPATHTOOLONG', 'FABRICEKEYTOOLARGE', 'FABRICESERVICEAFFINITYCHAINNOTSUPPORTED', 'FABRICEINVALIDATOMICGROUP', 'FABRICEVALUEEMPTY', 'FABRICENODENOTFOUND', 'FABRICEAPPLICATIONTYPENOTFOUND', 'FABRICEAPPLICATIONNOTFOUND', 'FABRICESERVICETYPENOTFOUND', 'FABRICESERVICEDOESNOTEXIST', 'FABRICESERVICETYPETEMPLATENOTFOUND', 'FABRICECONFIGURATIONSECTIONNOTFOUND', 'FABRICEPARTITIONNOTFOUND', 'FABRICEREPLICADOESNOTEXIST', 'FABRICESERVICEGROUPDOESNOTEXIST', 'FABRICECONFIGURATIONPARAMETERNOTFOUND', 'FABRICEDIRECTORYNOTFOUND', 'FABRICEFABRICVERSIONNOTFOUND', 'FABRICEFILENOTFOUND', 'FABRICENAMEDOESNOTEXIST', 'FABRICEPROPERTYDOESNOTEXIST', 'FABRICEENUMERATIONCOMPLETED', 'FABRICESERVICEMANIFESTNOTFOUND', 'FABRICEKEYNOTFOUND', 'FABRICEHEALTHENTITYNOTFOUND', 'FABRICEAPPLICATIONTYPEALREADYEXISTS', 'FABRICEAPPLICATIONALREADYEXISTS', 'FABRICEAPPLICATIONALREADYINTARGETVERSION', 'FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS', 'FABRICEAPPLICATIONUPGRADEINPROGRESS', 'FABRICESERVICEALREADYEXISTS', 'FABRICESERVICEGROUPALREADYEXISTS', 'FABRICEAPPLICATIONTYPEINUSE', 'FABRICEFABRICALREADYINTARGETVERSION', 'FABRICEFABRICVERSIONALREADYEXISTS', 'FABRICEFABRICVERSIONINUSE', 'FABRICEFABRICUPGRADEINPROGRESS', 'FABRICENAMEALREADYEXISTS', 'FABRICENAMENOTEMPTY', 'FABRICEPROPERTYCHECKFAILED', 'FABRICESERVICEMETADATAMISMATCH', 'FABRICESERVICETYPEMISMATCH', 'FABRICEHEALTHSTALEREPORT', 'FABRICESEQUENCENUMBERCHECKFAILED', 'FABRICENODEHASNOTSTOPPEDYET', 'FABRICEINSTANCEIDMISMATCH', 'FABRICEVALUETOOLARGE', 'FABRICENOWRITEQUORUM', 'FABRICENOTPRIMARY', 'FABRICENOTREADY', 'FABRICERECONFIGURATIONPENDING', 'FABRICESERVICEOFFLINE', 'EABORT', 'FABRICECOMMUNICATIONERROR', 'FABRICEOPERATIONNOTCOMPLETE', 'FABRICETIMEOUT', 'FABRICENODEISUP' - Code Code `json:"Code,omitempty"` - // Message - Error message. - Message *string `json:"Message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailedPropertyBatchInfo derived from PropertyBatchInfo. Represents the property batch failing. Contains -// information about the specific batch failure. -type FailedPropertyBatchInfo struct { - // ErrorMessage - The error message of the failed operation. Describes the exception thrown due to the first unsuccessful operation in the property batch. - ErrorMessage *string `json:"ErrorMessage,omitempty"` - // OperationIndex - The index of the unsuccessful operation in the property batch. - OperationIndex *int32 `json:"OperationIndex,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchInfo', 'KindSuccessful', 'KindFailed' - Kind KindBasicPropertyBatchInfo `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) MarshalJSON() ([]byte, error) { - fpbi.Kind = KindFailed - objectMap := make(map[string]interface{}) - if fpbi.ErrorMessage != nil { - objectMap["ErrorMessage"] = fpbi.ErrorMessage - } - if fpbi.OperationIndex != nil { - objectMap["OperationIndex"] = fpbi.OperationIndex - } - if fpbi.Kind != "" { - objectMap["Kind"] = fpbi.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSuccessfulPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsFailedPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) { - return &fpbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsPropertyBatchInfo() (*PropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsBasicPropertyBatchInfo() (BasicPropertyBatchInfo, bool) { - return &fpbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailedUpgradeDomainProgressObject the detailed upgrade progress for nodes in the current upgrade domain at the -// point of failure. -type FailedUpgradeDomainProgressObject struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureUpgradeDomainProgressInfo information about the upgrade domain progress at the time of upgrade failure. -type FailureUpgradeDomainProgressInfo struct { - DomainName *string `json:"DomainName,omitempty"` - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FileInfo information about a image store file. -type FileInfo struct { - // FileSize - The size of file in bytes. - FileSize *string `json:"FileSize,omitempty"` - FileVersion *FileVersion `json:"FileVersion,omitempty"` - // ModifiedDate - The date and time when the image store file was last modified. - ModifiedDate *date.Time `json:"ModifiedDate,omitempty"` - // StoreRelativePath - The file path relative to the image store root path. - StoreRelativePath *string `json:"StoreRelativePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FileVersion information about the version of image store file. -type FileVersion struct { - // VersionNumber - The current iamge store version number for the file is used in image store for checking whether it need to be updated. - VersionNumber *string `json:"VersionNumber,omitempty"` - // EpochDataLossNumber - The epoch data loss number of image store file is used to indicate the status of data loss. - EpochDataLossNumber *string `json:"EpochDataLossNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FolderInfo information about a image store folder. It inclues how many files this folder contains and its image -// store relative path. -type FolderInfo struct { - StoreRelativePath *string `json:"StoreRelativePath,omitempty"` - // FileCount - The number of files from within the image store folder. - FileCount *uuid.UUID `json:"FileCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyBatchOperation represents a PropertyBatchOperation that gets the specified property if it exists. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be -// committed in a transactional manner. -type GetPropertyBatchOperation struct { - // IncludeValue - Whether or not to return the property value with the metadata. True if values should be returned with the metadata; False to return only property metadata. - IncludeValue *bool `json:"IncludeValue,omitempty"` - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) MarshalJSON() ([]byte, error) { - gpbo.Kind = KindGet - objectMap := make(map[string]interface{}) - if gpbo.IncludeValue != nil { - objectMap["IncludeValue"] = gpbo.IncludeValue - } - if gpbo.PropertyName != nil { - objectMap["PropertyName"] = gpbo.PropertyName - } - if gpbo.Kind != "" { - objectMap["Kind"] = gpbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return &gpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &gpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GUIDPropertyValue describes a Service Fabric property value of type Guid. -type GUIDPropertyValue struct { - // Data - The data of the property value. - Data *uuid.UUID `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for GUIDPropertyValue. -func (gpv GUIDPropertyValue) MarshalJSON() ([]byte, error) { - gpv.Kind = KindGUID - objectMap := make(map[string]interface{}) - if gpv.Data != nil { - objectMap["Data"] = gpv.Data - } - if gpv.Kind != "" { - objectMap["Kind"] = gpv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return &gpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &gpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicHealthEvaluation represents a health evaluation which describes the data and the algorithm used by health -// manager to evaluate the health of an entity. -type BasicHealthEvaluation interface { - AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) - AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) - AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) - AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) - AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) - AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) - AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) - AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) - AsEventHealthEvaluation() (*EventHealthEvaluation, bool) - AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) - AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) - AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) - AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) - AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) - AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) - AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) - AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) - AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) - AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) - AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) - AsHealthEvaluation() (*HealthEvaluation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluation represents a health evaluation which describes the data and the algorithm used by health -// manager to evaluate the health of an entity. -type HealthEvaluation struct { - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -func unmarshalBasicHealthEvaluation(body []byte) (BasicHealthEvaluation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindApplication): - var ahe ApplicationHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindApplications): - var ahe ApplicationsHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindApplicationTypeApplications): - var atahe ApplicationTypeApplicationsHealthEvaluation - err := json.Unmarshal(body, &atahe) - return atahe, err - case string(KindDeltaNodesCheck): - var dnche DeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &dnche) - return dnche, err - case string(KindDeployedApplication): - var dahe DeployedApplicationHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindDeployedApplications): - var dahe DeployedApplicationsHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindDeployedServicePackage): - var dsphe DeployedServicePackageHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindDeployedServicePackages): - var dsphe DeployedServicePackagesHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindEvent): - var ehe EventHealthEvaluation - err := json.Unmarshal(body, &ehe) - return ehe, err - case string(KindNode): - var nhe NodeHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindNodes): - var nhe NodesHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindPartition): - var phe PartitionHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindPartitions): - var phe PartitionsHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindReplica): - var rhe ReplicaHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindReplicas): - var rhe ReplicasHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindService): - var she ServiceHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindServices): - var she ServicesHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindSystemApplication): - var sahe SystemApplicationHealthEvaluation - err := json.Unmarshal(body, &sahe) - return sahe, err - case string(KindUpgradeDomainDeltaNodesCheck): - var uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &uddnche) - return uddnche, err - case string(KindUpgradeDomainNodes): - var udnhe UpgradeDomainNodesHealthEvaluation - err := json.Unmarshal(body, &udnhe) - return udnhe, err - default: - var he HealthEvaluation - err := json.Unmarshal(body, &he) - return he, err - } -} -func unmarshalBasicHealthEvaluationArray(body []byte) ([]BasicHealthEvaluation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - heArray := make([]BasicHealthEvaluation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - he, err := unmarshalBasicHealthEvaluation(*rawMessage) - if err != nil { - return nil, err - } - heArray[index] = he - } - return heArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for HealthEvaluation. -func (he HealthEvaluation) MarshalJSON() ([]byte, error) { - he.Kind = KindHealthEvaluation - objectMap := make(map[string]interface{}) - if he.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = he.AggregatedHealthState - } - if he.Description != nil { - objectMap["Description"] = he.Description - } - if he.Kind != "" { - objectMap["Kind"] = he.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluationWrapper wrapper object for health evaluation. -type HealthEvaluationWrapper struct { - HealthEvaluation BasicHealthEvaluation `json:"HealthEvaluation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for HealthEvaluationWrapper struct. -func (hew *HealthEvaluationWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HealthEvaluation": - if v != nil { - healthEvaluation, err := unmarshalBasicHealthEvaluation(*v) - if err != nil { - return err - } - hew.HealthEvaluation = healthEvaluation - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvent represents health information reported on a health entity, such as cluster, application or node, -// with additional metadata added by the Health Manager. -type HealthEvent struct { - // IsExpired - Returns true if the health event is expired, otherwise false. - IsExpired *bool `json:"IsExpired,omitempty"` - // SourceUtcTimestamp - The date and time when the health report was sent by the source. - SourceUtcTimestamp *date.Time `json:"SourceUtcTimestamp,omitempty"` - // LastModifiedUtcTimestamp - The date and time when the health report was last modified by the health store. - LastModifiedUtcTimestamp *date.Time `json:"LastModifiedUtcTimestamp,omitempty"` - // LastOkTransitionAt - If the current health state is 'Ok', this property returns the time at which the health report was first reported with 'Ok'. - // For periodic reporting, many reports with the same state may have been generated. - // This property returns the date and time when the first 'Ok' health report was received. - // If the current health state is 'Error' or 'Warning', returns the date and time at which the health state was last in 'Ok', before transitioning to a different state. - // If the health state was never 'Ok', the value will be zero date-time. - LastOkTransitionAt *date.Time `json:"LastOkTransitionAt,omitempty"` - // LastWarningTransitionAt - If the current health state is 'Warning', this property returns the time at which the health report was first reported with 'Warning'. For periodic reporting, many reports with the same state may have been generated however, this property returns only the date and time at the first 'Warning' health report was received. - // If the current health state is 'Ok' or 'Error', returns the date and time at which the health state was last in 'Warning', before transitioning to a different state. - // If the health state was never 'Warning', the value will be zero date-time. - LastWarningTransitionAt *date.Time `json:"LastWarningTransitionAt,omitempty"` - // LastErrorTransitionAt - If the current health state is 'Error', this property returns the time at which the health report was first reported with 'Error'. For periodic reporting, many reports with the same state may have been generated however, this property returns only the date and time at the first 'Error' health report was received. - // If the current health state is 'Ok' or 'Warning', returns the date and time at which the health state was last in 'Error', before transitioning to a different state. - // If the health state was never 'Error', the value will be zero date-time. - LastErrorTransitionAt *date.Time `json:"LastErrorTransitionAt,omitempty"` - // SourceID - The source name which identifies the client/watchdog/system component which generated the health information. - SourceID *string `json:"SourceId,omitempty"` - // Property - The property of the health information. An entity can have health reports for different properties. - // The property is a string and not a fixed enumeration to allow the reporter flexibility to categorize the state condition that triggers the report. - // For example, a reporter with SourceId "LocalWatchdog" can monitor the state of the available disk on a node, - // so it can report "AvailableDisk" property on that node. - // The same reporter can monitor the node connectivity, so it can report a property "Connectivity" on the same node. - // In the health store, these reports are treated as separate health events for the specified node. - // Together with the SourceId, the property uniquely identifies the health information. - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState3Invalid', 'HealthState3Ok', 'HealthState3Warning', 'HealthState3Error', 'HealthState3Unknown' - HealthState HealthState3 `json:"HealthState,omitempty"` - // TimeToLiveInMilliSeconds - The duration for which this health report is valid. This field is using ISO8601 format for specifying the duration. - // When clients report periodically, they should send reports with higher frequency than time to live. - // If clients report on transition, they can set the time to live to infinite. - // When time to live expires, the health event that contains the health information - // is either removed from health store, if RemoveWhenExpired is true, or evaluated at error, if RemoveWhenExpired false. - // If not specified, time to live defaults to infinite value. - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - // Description - The description of the health information. It represents free text used to add human readable information about the report. - // The maximum string length for the description is 4096 characters. - // If the provided string is longer, it will be automatically truncated. - // When truncated, the last characters of the description contain a marker "[Truncated]", and total string size is 4096 characters. - // The presence of the marker indicates to users that truncation occurred. - // Note that when truncated, the description has less than 4096 characters from the original string. - Description *string `json:"Description,omitempty"` - // SequenceNumber - The sequence number for this health report as a numeric string. - // The report sequence number is used by the health store to detect stale reports. - // If not specified, a sequence number is auto-generated by the health client when a report is added. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - // RemoveWhenExpired - Value that indicates whether the report is removed from health store when it expires. - // If set to true, the report is remopved from the health store after it expires. - // If set to false, the report is treated as an error when expired. The value of this property is false by default. - // When clients report periodically, they should set RemoveWhenExpired false (default). - // This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires. - // This flags the entity as being in Error health state. - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthInformation represents common health report information. It is included in all health reports sent to -// health store and in all health events returned by health queries. -type HealthInformation struct { - // SourceID - The source name which identifies the client/watchdog/system component which generated the health information. - SourceID *string `json:"SourceId,omitempty"` - // Property - The property of the health information. An entity can have health reports for different properties. - // The property is a string and not a fixed enumeration to allow the reporter flexibility to categorize the state condition that triggers the report. - // For example, a reporter with SourceId "LocalWatchdog" can monitor the state of the available disk on a node, - // so it can report "AvailableDisk" property on that node. - // The same reporter can monitor the node connectivity, so it can report a property "Connectivity" on the same node. - // In the health store, these reports are treated as separate health events for the specified node. - // Together with the SourceId, the property uniquely identifies the health information. - Property *string `json:"Property,omitempty"` - // HealthState - Possible values include: 'HealthState3Invalid', 'HealthState3Ok', 'HealthState3Warning', 'HealthState3Error', 'HealthState3Unknown' - HealthState HealthState3 `json:"HealthState,omitempty"` - // TimeToLiveInMilliSeconds - The duration for which this health report is valid. This field is using ISO8601 format for specifying the duration. - // When clients report periodically, they should send reports with higher frequency than time to live. - // If clients report on transition, they can set the time to live to infinite. - // When time to live expires, the health event that contains the health information - // is either removed from health store, if RemoveWhenExpired is true, or evaluated at error, if RemoveWhenExpired false. - // If not specified, time to live defaults to infinite value. - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - // Description - The description of the health information. It represents free text used to add human readable information about the report. - // The maximum string length for the description is 4096 characters. - // If the provided string is longer, it will be automatically truncated. - // When truncated, the last characters of the description contain a marker "[Truncated]", and total string size is 4096 characters. - // The presence of the marker indicates to users that truncation occurred. - // Note that when truncated, the description has less than 4096 characters from the original string. - Description *string `json:"Description,omitempty"` - // SequenceNumber - The sequence number for this health report as a numeric string. - // The report sequence number is used by the health store to detect stale reports. - // If not specified, a sequence number is auto-generated by the health client when a report is added. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - // RemoveWhenExpired - Value that indicates whether the report is removed from health store when it expires. - // If set to true, the report is remopved from the health store after it expires. - // If set to false, the report is treated as an error when expired. The value of this property is false by default. - // When clients report periodically, they should set RemoveWhenExpired false (default). - // This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires. - // This flags the entity as being in Error health state. - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthStateCount represents information about how many health entities are in Ok, Warning and Error health -// state. -type HealthStateCount struct { - // OkCount - The number of health entities with aggregated health state Ok. - OkCount *int64 `json:"OkCount,omitempty"` - // WarningCount - The number of health entities with aggregated health state Warning. - WarningCount *int64 `json:"WarningCount,omitempty"` - // ErrorCount - The number of health entities with aggregated health state Error. - ErrorCount *int64 `json:"ErrorCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthStatistics the health statistics of an entity, returned as part of the health query result when the query -// description is configured to include statistics. -// The statistics include health state counts for all children types of the current entity. -// For example, for cluster, the health statistics include health state counts for nodes, applications, services, -// partitions, replicas, deployed applications and deployed service packages. -// For partition, the health statistics include health counts for replicas. -type HealthStatistics struct { - // HealthStateCountList - List of health state counts per entity kind, which keeps track of how many children of the queried entity are in Ok, Warning and Error state. - HealthStateCountList *[]EntityKindHealthStateCount `json:"HealthStateCountList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImageStoreContent information about the image store content. -type ImageStoreContent struct { - autorest.Response `json:"-"` - // StoreFiles - The list of image store file info objects represents files found under the given image store relative path. - StoreFiles *[]FileInfo `json:"StoreFiles,omitempty"` - // StoreFolders - The list of image store folder info objectes represents subfolders found under the given image store relative path. - StoreFolders *[]FolderInfo `json:"StoreFolders,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImageStoreCopyDescription information about how to copy image store content from one image store relative path -// to another image store relative path. -type ImageStoreCopyDescription struct { - // RemoteSource - The relative path of source image store content to be copied from. - RemoteSource *string `json:"RemoteSource,omitempty"` - // RemoteDestination - The relative path of destination image store content to be copied to. - RemoteDestination *string `json:"RemoteDestination,omitempty"` - // SkipFiles - The list of the file names to be skipped for copying. - SkipFiles *[]string `json:"SkipFiles,omitempty"` - // CheckMarkFile - Indicates whether to check mark file during copying. The property is true if checking mark file is required, false otherwise. The mark file is used to check whether the folder is well constructed. If the property is true and mark file does not exist, the copy is skipped. - CheckMarkFile *bool `json:"CheckMarkFile,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Int64PropertyValue describes a Service Fabric property value of type Int64. -type Int64PropertyValue struct { - // Data - The data of the property value. - Data *string `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for Int64PropertyValue. -func (i6pv Int64PropertyValue) MarshalJSON() ([]byte, error) { - i6pv.Kind = KindInt64 - objectMap := make(map[string]interface{}) - if i6pv.Data != nil { - objectMap["Data"] = i6pv.Data - } - if i6pv.Kind != "" { - objectMap["Kind"] = i6pv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return &i6pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &i6pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Int64RangePartitionInformation describes the partition information for the integer range that is based on -// partition schemes. -type Int64RangePartitionInformation struct { - // LowKey - Specifies the minimum key value handled by this partition. - LowKey *string `json:"LowKey,omitempty"` - // HighKey - Specifies the maximum key value handled by this partition. - HighKey *string `json:"HighKey,omitempty"` - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) MarshalJSON() ([]byte, error) { - i6rpi.ServicePartitionKind = ServicePartitionKindInt64Range - objectMap := make(map[string]interface{}) - if i6rpi.LowKey != nil { - objectMap["LowKey"] = i6rpi.LowKey - } - if i6rpi.HighKey != nil { - objectMap["HighKey"] = i6rpi.HighKey - } - if i6rpi.ID != nil { - objectMap["Id"] = i6rpi.ID - } - if i6rpi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = i6rpi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return &i6rpi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &i6rpi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeDataLossResult represents information about an operation in a terminal state (Completed or Faulted). -type InvokeDataLossResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeQuorumLossResult represents information about an operation in a terminal state (Completed or Faulted). -type InvokeQuorumLossResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KeyValueStoreReplicaStatus key value store related information for the replica. -type KeyValueStoreReplicaStatus struct { - // DatabaseRowCountEstimate - Value indicating the estimated number of rows in the underlying database. - DatabaseRowCountEstimate *string `json:"DatabaseRowCountEstimate,omitempty"` - // DatabaseLogicalSizeEstimate - Value indicating the estimated size of the underlying database. - DatabaseLogicalSizeEstimate *string `json:"DatabaseLogicalSizeEstimate,omitempty"` - // CopyNotificationCurrentKeyFilter - Value indicating the latest key-prefix filter applied to enumeration during the callback. Null if there is no pending callback. - CopyNotificationCurrentKeyFilter *string `json:"CopyNotificationCurrentKeyFilter,omitempty"` - // CopyNotificationCurrentProgress - Value indicating the latest number of keys enumerated during the callback. 0 if there is no pending callback. - CopyNotificationCurrentProgress *string `json:"CopyNotificationCurrentProgress,omitempty"` - // StatusDetails - Value indicating the current status details of the replica. - StatusDetails *string `json:"StatusDetails,omitempty"` - // Kind - Possible values include: 'KindReplicaStatusBase', 'KindKeyValueStore' - Kind KindBasicReplicaStatusBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) MarshalJSON() ([]byte, error) { - kvsrs.Kind = KindKeyValueStore - objectMap := make(map[string]interface{}) - if kvsrs.DatabaseRowCountEstimate != nil { - objectMap["DatabaseRowCountEstimate"] = kvsrs.DatabaseRowCountEstimate - } - if kvsrs.DatabaseLogicalSizeEstimate != nil { - objectMap["DatabaseLogicalSizeEstimate"] = kvsrs.DatabaseLogicalSizeEstimate - } - if kvsrs.CopyNotificationCurrentKeyFilter != nil { - objectMap["CopyNotificationCurrentKeyFilter"] = kvsrs.CopyNotificationCurrentKeyFilter - } - if kvsrs.CopyNotificationCurrentProgress != nil { - objectMap["CopyNotificationCurrentProgress"] = kvsrs.CopyNotificationCurrentProgress - } - if kvsrs.StatusDetails != nil { - objectMap["StatusDetails"] = kvsrs.StatusDetails - } - if kvsrs.Kind != "" { - objectMap["Kind"] = kvsrs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsKeyValueStoreReplicaStatus is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) { - return &kvsrs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaStatusBase is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsReplicaStatusBase() (*ReplicaStatusBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaStatusBase is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsBasicReplicaStatusBase() (BasicReplicaStatusBase, bool) { - return &kvsrs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedApplicationInfo ... -type ListDeployedApplicationInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedApplicationInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedCodePackageInfo ... -type ListDeployedCodePackageInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedCodePackageInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServicePackageInfo ... -type ListDeployedServicePackageInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedServicePackageInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServiceReplicaInfo ... -type ListDeployedServiceReplicaInfo struct { - autorest.Response `json:"-"` - Value *[]BasicDeployedServiceReplicaInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ListDeployedServiceReplicaInfo struct. -func (ldsri *ListDeployedServiceReplicaInfo) UnmarshalJSON(body []byte) error { - dsri, err := unmarshalBasicDeployedServiceReplicaInfoArray(body) - if err != nil { - return err - } - ldsri.Value = &dsri - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServiceTypeInfo ... -type ListDeployedServiceTypeInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedServiceTypeInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListFabricCodeVersionInfo ... -type ListFabricCodeVersionInfo struct { - autorest.Response `json:"-"` - Value *[]FabricCodeVersionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListFabricConfigVersionInfo ... -type ListFabricConfigVersionInfo struct { - autorest.Response `json:"-"` - Value *[]FabricConfigVersionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListOperationStatus ... -type ListOperationStatus struct { - autorest.Response `json:"-"` - Value *[]OperationStatus `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListRepairTask ... -type ListRepairTask struct { - autorest.Response `json:"-"` - Value *[]RepairTask `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListServiceTypeInfo ... -type ListServiceTypeInfo struct { - autorest.Response `json:"-"` - Value *[]ServiceTypeInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricReport represents the load metric report which contains the time metric was reported, its name and -// value. -type LoadMetricReport struct { - // LastReportedUtc - Gets the UTC time when the load was reported. - LastReportedUtc *date.Time `json:"LastReportedUtc,omitempty"` - // Name - The name of the load metric. - Name *string `json:"Name,omitempty"` - // Value - The value of the load metric. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricReportInfo information about load reported by replica. -type LoadMetricReportInfo struct { - // Name - The name of the metric. - Name *string `json:"Name,omitempty"` - // Value - The value of the load for the metric.. - Value *int32 `json:"Value,omitempty"` - // LastReportedUtc - The UTC time when the load is reported. - LastReportedUtc *date.Time `json:"LastReportedUtc,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MonitoringPolicyDescription describes the parameters for monitoring an upgrade in Monitored mode. -type MonitoringPolicyDescription struct { - // FailureAction - Possible values include: 'FailureActionInvalid', 'FailureActionRollback', 'FailureActionManual' - FailureAction FailureAction `json:"FailureAction,omitempty"` - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NameDescription describes a Service Fabric name. -type NameDescription struct { - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NamedPartitionInformation describes the partition information for the name as a string that is based on -// partition schemes. -type NamedPartitionInformation struct { - // Name - Name of the partition. - Name *string `json:"Name,omitempty"` - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NamedPartitionInformation. -func (npi NamedPartitionInformation) MarshalJSON() ([]byte, error) { - npi.ServicePartitionKind = ServicePartitionKindNamed - objectMap := make(map[string]interface{}) - if npi.Name != nil { - objectMap["Name"] = npi.Name - } - if npi.ID != nil { - objectMap["Id"] = npi.ID - } - if npi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = npi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return &npi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &npi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NamedPartitionSchemeDescription describes the named partition scheme of the service. -type NamedPartitionSchemeDescription struct { - // Count - The number of partitions. - Count *int32 `json:"Count,omitempty"` - // Names - Array of size specified by the ‘Count’ parameter, for the names of the partitions. - Names *[]string `json:"Names,omitempty"` - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) MarshalJSON() ([]byte, error) { - npsd.PartitionScheme = PartitionSchemeNamed - objectMap := make(map[string]interface{}) - if npsd.Count != nil { - objectMap["Count"] = npsd.Count - } - if npsd.Names != nil { - objectMap["Names"] = npsd.Names - } - if npsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = npsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return &npsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &npsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationInfo information about the node deactivation. This information is valid for a node that is -// undergoing deactivation or has already been deactivated. -type NodeDeactivationInfo struct { - // NodeDeactivationIntent - Possible values include: 'NodeDeactivationIntent1Invalid', 'NodeDeactivationIntent1Pause', 'NodeDeactivationIntent1Restart', 'NodeDeactivationIntent1RemoveData', 'NodeDeactivationIntent1RemoveNode' - NodeDeactivationIntent NodeDeactivationIntent1 `json:"NodeDeactivationIntent,omitempty"` - // NodeDeactivationStatus - Possible values include: 'NodeDeactivationStatusNone', 'NodeDeactivationStatusSafetyCheckInProgress', 'NodeDeactivationStatusSafetyCheckComplete', 'NodeDeactivationStatusCompleted' - NodeDeactivationStatus NodeDeactivationStatus `json:"NodeDeactivationStatus,omitempty"` - NodeDeactivationTask *[]NodeDeactivationTask `json:"NodeDeactivationTask,omitempty"` - PendingSafetyChecks *[]SafetyCheckWrapper `json:"PendingSafetyChecks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTask the task representing the deactivation operation on the node. -type NodeDeactivationTask struct { - NodeDeactivationTaskID *NodeDeactivationTaskID `json:"NodeDeactivationTaskId,omitempty"` - // NodeDeactivationIntent - Possible values include: 'NodeDeactivationIntentInvalid', 'NodeDeactivationIntentPause', 'NodeDeactivationIntentRestart', 'NodeDeactivationIntentRemoveData', 'NodeDeactivationIntentRemoveNode' - NodeDeactivationIntent NodeDeactivationIntent `json:"NodeDeactivationIntent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTaskID identity of the task related to deactivation operation on the node. -type NodeDeactivationTaskID struct { - // ID - Value of the task id. - ID *string `json:"Id,omitempty"` - // NodeDeactivationTaskType - Possible values include: 'NodeDeactivationTaskTypeInvalid', 'NodeDeactivationTaskTypeInfrastructure', 'NodeDeactivationTaskTypeRepair', 'NodeDeactivationTaskTypeClient' - NodeDeactivationTaskType NodeDeactivationTaskType `json:"NodeDeactivationTaskType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealth information about the health of a Service Fabric node. -type NodeHealth struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthEvaluation represents health evaluation for a node, containing information about the data and the -// algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated health -// state is either Error or Warning. -type NodeHealthEvaluation struct { - NodeName *string `json:"NodeName,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNode - objectMap := make(map[string]interface{}) - if nhe.NodeName != nil { - objectMap["NodeName"] = nhe.NodeName - } - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthState represents the health state of a node, which contains the node identifier and its aggregated -// health state. -type NodeHealthState struct { - Name *string `json:"Name,omitempty"` - ID *NodeID `json:"Id,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateChunk represents the health state chunk of a node, which contains the node name and its -// aggregated health state. -type NodeHealthStateChunk struct { - NodeName *string `json:"NodeName,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateChunkList the list of node health state chunks in the cluster that respect the input filters in -// the chunk query. Returned by get cluster health state chunks query. -type NodeHealthStateChunkList struct { - // Items - The list of node health state chunks that respect the input filters in the chunk query. - Items *[]NodeHealthStateChunk `json:"Items,omitempty"` - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateFilter defines matching criteria to determine whether a node should be included in the returned -// cluster health chunk. -// One filter can match zero, one or multiple nodes, depending on its properties. -// Can be specified in the cluster health chunk query description. -type NodeHealthStateFilter struct { - // NodeNameFilter - Name of the node that matches the filter. The filter is applied only to the specified node, if it exists. - // If the node doesn't exist, no node is returned in the cluster health chunk based on this filter. - // If the node exists, it is included in the cluster health chunk if the health state matches the other filter properties. - // If not specified, all nodes that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - NodeNameFilter *string `json:"NodeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the nodes. It allows selecting nodes if they match the desired health states. - // The possible values are integer value of one of the following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the node name is specified. If the filter has default value and node name is specified, the matching node is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches nodes with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeID an internal ID used by Service Fabric to uniquely identify a node. Node Id is deterministically generated -// from node name. -type NodeID struct { - // ID - Value of the node Id. This is a 128 bit integer. - ID *string `json:"Id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeImpact describes the expected impact of a repair to a particular node. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type NodeImpact struct { - // NodeName - The name of the impacted node. - NodeName *string `json:"NodeName,omitempty"` - // ImpactLevel - The level of impact expected. Possible values include: 'ImpactLevelInvalid', 'ImpactLevelNone', 'ImpactLevelRestart', 'ImpactLevelRemoveData', 'ImpactLevelRemoveNode' - ImpactLevel ImpactLevel `json:"ImpactLevel,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeInfo information about a node in Service Fabric cluster. -type NodeInfo struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - // IPAddressOrFQDN - The IP address or fully qualified domain name of the node. - IPAddressOrFQDN *string `json:"IpAddressOrFQDN,omitempty"` - // Type - The type of the node. - Type *string `json:"Type,omitempty"` - // CodeVersion - The version of Service Fabric binaries that the node is running. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The version of Service Fabric cluster manifest that the node is using. - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // NodeStatus - Possible values include: 'NodeStatusInvalid', 'NodeStatusUp', 'NodeStatusDown', 'NodeStatusEnabling', 'NodeStatusDisabling', 'NodeStatusDisabled', 'NodeStatusUnknown', 'NodeStatusRemoved' - NodeStatus NodeStatus `json:"NodeStatus,omitempty"` - // NodeUpTimeInSeconds - Time in seconds since the node has been in NodeStatus Up. Value ero indicates that the node is not Up. - NodeUpTimeInSeconds *string `json:"NodeUpTimeInSeconds,omitempty"` - // HealthState - Possible values include: 'HealthState4Invalid', 'HealthState4Ok', 'HealthState4Warning', 'HealthState4Error', 'HealthState4Unknown' - HealthState HealthState4 `json:"HealthState,omitempty"` - // IsSeedNode - Indicates if the node is a seed node or not. Returns true if the node is a seed node, otherwise false. A quorum of seed nodes are required for proper operation of Service Fabric cluster. - IsSeedNode *bool `json:"IsSeedNode,omitempty"` - // UpgradeDomain - The upgrade domain of the node. - UpgradeDomain *string `json:"UpgradeDomain,omitempty"` - // FaultDomain - The fault domain of the node. - FaultDomain *string `json:"FaultDomain,omitempty"` - ID *NodeID `json:"Id,omitempty"` - // InstanceID - The id representing the node instance. While the Id of the node is deterministically generated from the node name and remains same across restarts, the InstanceId changes every time node restarts. - InstanceID *string `json:"InstanceId,omitempty"` - NodeDeactivationInfo *NodeDeactivationInfo `json:"NodeDeactivationInfo,omitempty"` - // IsStopped - Indicates if the node is stopped by calling stop node API or not. Returns true if the node is stopped, otherwise false. - IsStopped *bool `json:"IsStopped,omitempty"` - // NodeDownTimeInSeconds - Time in seconds since the node has been in NodeStatus Down. Value zero indicates node is not NodeStatus Down. - NodeDownTimeInSeconds *string `json:"NodeDownTimeInSeconds,omitempty"` - // NodeUpAt - Date time in UTC when the node came up. If the node has never been up then this value will be zero date time. - NodeUpAt *date.Time `json:"NodeUpAt,omitempty"` - // NodeDownAt - Date time in UTC when the node went down. If node has never been down then this value will be zero date time. - NodeDownAt *date.Time `json:"NodeDownAt,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadInfo information about load on a Service Fabric node. It holds a summary of all metrics and their load -// on a node. -type NodeLoadInfo struct { - autorest.Response `json:"-"` - NodeName *string `json:"NodeName,omitempty"` - // NodeLoadMetricInformation - List that contains metrics and their load information on this node. - NodeLoadMetricInformation *[]NodeLoadMetricInformation `json:"NodeLoadMetricInformation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadMetricInformation represents data structure that contains load information for a certain metric on a -// node. -type NodeLoadMetricInformation struct { - // Name - Name of the metric for which this load information is provided. - Name *string `json:"Name,omitempty"` - // NodeCapacity - Total capacity on the node for this metric. - NodeCapacity *string `json:"NodeCapacity,omitempty"` - // NodeLoad - Current load on the node for this metric. - NodeLoad *string `json:"NodeLoad,omitempty"` - // NodeRemainingCapacity - The remaining capacity on the node for this metric. - NodeRemainingCapacity *string `json:"NodeRemainingCapacity,omitempty"` - // IsCapacityViolation - Indicates if there is a capacity violation for this metric on the node. - IsCapacityViolation *bool `json:"IsCapacityViolation,omitempty"` - // NodeBufferedCapacity - The value that indicates the reserved capacity for this metric on the node. - NodeBufferedCapacity *string `json:"NodeBufferedCapacity,omitempty"` - // NodeRemainingBufferedCapacity - The remaining reserved capacity for this metric on the node. - NodeRemainingBufferedCapacity *string `json:"NodeRemainingBufferedCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeRepairImpactDescription describes the expected impact of a repair on a set of nodes. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type NodeRepairImpactDescription struct { - // NodeImpactList - The list of nodes impacted by a repair action and their respective expected impact. - NodeImpactList *[]NodeImpact `json:"NodeImpactList,omitempty"` - // Kind - Possible values include: 'KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase', 'KindBasicRepairImpactDescriptionBaseKindNode' - Kind KindBasicRepairImpactDescriptionBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) MarshalJSON() ([]byte, error) { - nrid.Kind = KindBasicRepairImpactDescriptionBaseKindNode - objectMap := make(map[string]interface{}) - if nrid.NodeImpactList != nil { - objectMap["NodeImpactList"] = nrid.NodeImpactList - } - if nrid.Kind != "" { - objectMap["Kind"] = nrid.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairImpactDescription is the BasicRepairImpactDescriptionBase implementation for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) AsNodeRepairImpactDescription() (*NodeRepairImpactDescription, bool) { - return &nrid, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) AsRepairImpactDescriptionBase() (*RepairImpactDescriptionBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) AsBasicRepairImpactDescriptionBase() (BasicRepairImpactDescriptionBase, bool) { - return &nrid, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeRepairTargetDescription describes the list of nodes targeted by a repair action. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type NodeRepairTargetDescription struct { - // NodeNames - The list of nodes targeted by a repair action. - NodeNames *[]string `json:"NodeNames,omitempty"` - // Kind - Possible values include: 'KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase', 'KindBasicRepairTargetDescriptionBaseKindNode' - Kind KindBasicRepairTargetDescriptionBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) MarshalJSON() ([]byte, error) { - nrtd.Kind = KindBasicRepairTargetDescriptionBaseKindNode - objectMap := make(map[string]interface{}) - if nrtd.NodeNames != nil { - objectMap["NodeNames"] = nrtd.NodeNames - } - if nrtd.Kind != "" { - objectMap["Kind"] = nrtd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairTargetDescription is the BasicRepairTargetDescriptionBase implementation for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) AsNodeRepairTargetDescription() (*NodeRepairTargetDescription, bool) { - return &nrtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) AsRepairTargetDescriptionBase() (*RepairTargetDescriptionBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) AsBasicRepairTargetDescriptionBase() (BasicRepairTargetDescriptionBase, bool) { - return &nrtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeResult contains information about a node that was targeted by a user-induced operation. -type NodeResult struct { - NodeName *string `json:"NodeName,omitempty"` - // NodeInstanceID - The node instance id. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodesHealthEvaluation represents health evaluation for nodes, containing health evaluations for each unhealthy -// node that impacted current aggregated health state. Can be returned when evaluating cluster health and the -// aggregated health state is either Error or Warning. -type NodesHealthEvaluation struct { - // MaxPercentUnhealthyNodes - Maximum allowed percentage of unhealthy nodes from the ClusterHealthPolicy. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes found in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNodes - objectMap := make(map[string]interface{}) - if nhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = nhe.MaxPercentUnhealthyNodes - } - if nhe.TotalCount != nil { - objectMap["TotalCount"] = nhe.TotalCount - } - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeTransitionProgress information about an NodeTransition operation. This class contains an OperationState and -// a NodeTransitionResult. The NodeTransitionResult is not valid until OperationState -// is Completed or Faulted. -type NodeTransitionProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State1Invalid', 'State1Running', 'State1RollingBack', 'State1Completed', 'State1Faulted', 'State1Cancelled', 'State1ForceCancelled' - State State1 `json:"State,omitempty"` - NodeTransitionResult *NodeTransitionResult `json:"NodeTransitionResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeTransitionResult represents information about an operation in a terminal state (Completed or Faulted). -type NodeTransitionResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - NodeResult *NodeResult `json:"NodeResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeUpgradeProgressInfo information about the upgrading node and its status -type NodeUpgradeProgressInfo struct { - NodeName *string `json:"NodeName,omitempty"` - // UpgradePhase - Possible values include: 'UpgradePhaseInvalid', 'UpgradePhasePreUpgradeSafetyCheck', 'UpgradePhaseUpgrading', 'UpgradePhasePostUpgradeSafetyCheck' - UpgradePhase UpgradePhase `json:"UpgradePhase,omitempty"` - PendingSafetyChecks *[]SafetyCheckWrapper `json:"PendingSafetyChecks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// OperationStatus contains the OperationId, OperationState, and OperationType for user-induced operations. -type OperationStatus struct { - OperationID *uuid.UUID `json:"OperationId,omitempty"` - // State - Possible values include: 'State2Invalid', 'State2Running', 'State2RollingBack', 'State2Completed', 'State2Faulted', 'State2Cancelled', 'State2ForceCancelled' - State State2 `json:"State,omitempty"` - // Type - Possible values include: 'TypeInvalid', 'TypePartitionDataLoss', 'TypePartitionQuorumLoss', 'TypePartitionRestart', 'TypeNodeTransition' - Type Type `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PackageSharingPolicyInfo represents a policy for the package sharing. -type PackageSharingPolicyInfo struct { - // SharedPackageName - The name of code, configuration or data package that should be shared. - SharedPackageName *string `json:"SharedPackageName,omitempty"` - // PackageSharingScope - Possible values include: 'PackageSharingScopeNone', 'PackageSharingScopeAll', 'PackageSharingScopeCode', 'PackageSharingScopeConfig', 'PackageSharingScopeData' - PackageSharingScope PackageSharingScope `json:"PackageSharingScope,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedApplicationInfoList the list of applications in the cluster. The list is paged when all of the results -// cannot fit in a single message. The next set of results can be obtained by executing the same query with the -// continuation token provided in this list. -type PagedApplicationInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]ApplicationInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedApplicationTypeInfoList the list of application types that are provisioned or being provisioned in the -// cluster. The list is paged when all of the results cannot fit in a single message. The next set of results can -// be obtained by executing the same query with the continuation token provided in this list. -type PagedApplicationTypeInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]ApplicationTypeInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedComposeDeploymentStatusInfoList the list of compose deployments in the cluster. The list is paged when all -// of the results cannot fit in a single message. The next set of results can be obtained by executing the same -// query with the continuation token provided in this list. -type PagedComposeDeploymentStatusInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]ComposeDeploymentStatusInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedNodeInfoList the list of nodes in the cluster. The list is paged when all of the results cannot fit in a -// single message. The next set of results can be obtained by executing the same query with the continuation token -// provided in this list. -type PagedNodeInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]NodeInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedPropertyInfoList the paged list of Service Fabric properties under a given name. The list is paged when all -// of the results cannot fit in a single message. The next set of results can be obtained by executing the same -// query with the continuation token provided in this list. -type PagedPropertyInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // IsConsistent - Indicates whether any property under the given name has been modified during the enumeration. If there was a modification, this property value is false. - IsConsistent *bool `json:"IsConsistent,omitempty"` - Properties *[]PropertyInfo `json:"Properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedReplicaInfoList the list of replicas in the cluster for a given partition. The list is paged when all of -// the results cannot fit in a single message. The next set of results can be obtained by executing the same query -// with the continuation token provided in this list. -type PagedReplicaInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]BasicReplicaInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedReplicaInfoList struct. -func (pril *PagedReplicaInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - pril.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicReplicaInfoArray(*v) - if err != nil { - return err - } - pril.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedServiceInfoList the list of services in the cluster for an application. The list is paged when all of the -// results cannot fit in a single message. The next set of results can be obtained by executing the same query with -// the continuation token provided in this list. -type PagedServiceInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]BasicServiceInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedServiceInfoList struct. -func (psil *PagedServiceInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - psil.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicServiceInfoArray(*v) - if err != nil { - return err - } - psil.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedServicePartitionInfoList the list of partition in the cluster for a service. The list is paged when all of -// the results cannot fit in a single message. The next set of results can be obtained by executing the same query -// with the continuation token provided in this list. -type PagedServicePartitionInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - Items *[]BasicServicePartitionInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedServicePartitionInfoList struct. -func (pspil *PagedServicePartitionInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - pspil.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicServicePartitionInfoArray(*v) - if err != nil { - return err - } - pspil.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedSubNameInfoList a paged list of Service Fabric names. The list is paged when all of the results cannot fit -// in a single message. The next set of results can be obtained by executing the same query with the continuation -// token provided in this list. -type PagedSubNameInfoList struct { - autorest.Response `json:"-"` - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // IsConsistent - Indicates whether any name under the given name has been modified during the enumeration. If there was a modification, this property value is false. - IsConsistent *bool `json:"IsConsistent,omitempty"` - SubNames *[]string `json:"SubNames,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionDataLossProgress information about a partition data loss user-induced operation. -type PartitionDataLossProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State3Invalid', 'State3Running', 'State3RollingBack', 'State3Completed', 'State3Faulted', 'State3Cancelled', 'State3ForceCancelled' - State State3 `json:"State,omitempty"` - InvokeDataLossResult *InvokeDataLossResult `json:"InvokeDataLossResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealth information about the health of a Service Fabric partition. -type PartitionHealth struct { - autorest.Response `json:"-"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaHealthStates - The list of replica health states associated with the partition. - ReplicaHealthStates *[]BasicReplicaHealthState `json:"ReplicaHealthStates,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PartitionHealth struct. -func (ph *PartitionHealth) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "PartitionId": - if v != nil { - var partitionID uuid.UUID - err = json.Unmarshal(*v, &partitionID) - if err != nil { - return err - } - ph.PartitionID = &partitionID - } - case "ReplicaHealthStates": - if v != nil { - replicaHealthStates, err := unmarshalBasicReplicaHealthStateArray(*v) - if err != nil { - return err - } - ph.ReplicaHealthStates = &replicaHealthStates - } - case "AggregatedHealthState": - if v != nil { - var aggregatedHealthState AggregatedHealthState1 - err = json.Unmarshal(*v, &aggregatedHealthState) - if err != nil { - return err - } - ph.AggregatedHealthState = aggregatedHealthState - } - case "HealthEvents": - if v != nil { - var healthEvents []HealthEvent - err = json.Unmarshal(*v, &healthEvents) - if err != nil { - return err - } - ph.HealthEvents = &healthEvents - } - case "UnhealthyEvaluations": - if v != nil { - var unhealthyEvaluations []HealthEvaluationWrapper - err = json.Unmarshal(*v, &unhealthyEvaluations) - if err != nil { - return err - } - ph.UnhealthyEvaluations = &unhealthyEvaluations - } - case "HealthStatistics": - if v != nil { - var healthStatistics HealthStatistics - err = json.Unmarshal(*v, &healthStatistics) - if err != nil { - return err - } - ph.HealthStatistics = &healthStatistics - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthEvaluation represents health evaluation for a partition, containing information about the data -// and the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type PartitionHealthEvaluation struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartition - objectMap := make(map[string]interface{}) - if phe.PartitionID != nil { - objectMap["PartitionId"] = phe.PartitionID - } - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthState represents the health state of a partition, which contains the partition identifier and its -// aggregated health state. -type PartitionHealthState struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateChunk represents the health state chunk of a partition, which contains the partition id, its -// aggregated health state and any replicas that respect the filters in the cluster health chunk query description. -type PartitionHealthStateChunk struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - ReplicaHealthStateChunks *ReplicaHealthStateChunkList `json:"ReplicaHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateChunkList the list of partition health state chunks that respect the input filters in the -// chunk query description. -// Returned by get cluster health state chunks query as part of the parent application hierarchy. -type PartitionHealthStateChunkList struct { - // Items - The list of partition health state chunks that respect the input filters in the chunk query. - Items *[]PartitionHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateFilter defines matching criteria to determine whether a partition should be included as a -// child of a service in the cluster health chunk. -// The partitions are only returned if the parent entities match a filter specified in the cluster health chunk -// query description. The parent service and application must be included in the cluster health chunk. -// One filter can match zero, one or multiple partitions, depending on its properties. -type PartitionHealthStateFilter struct { - // PartitionIDFilter - ID of the partition that matches the filter. The filter is applied only to the specified partition, if it exists. - // If the partition doesn't exist, no partition is returned in the cluster health chunk based on this filter. - // If the partition exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all partitions that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - PartitionIDFilter *uuid.UUID `json:"PartitionIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the partitions. It allows selecting partitions if they match the desired health states. - // The possible values are integer value of one of the following health states. Only partitions that match the filter are returned. All partitions are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the partition id is specified. If the filter has default value and partition id is specified, the matching partition is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches partitions with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // ReplicaFilters - Defines a list of filters that specify which replicas to be included in the returned cluster health chunk as children of the parent partition. The replicas are returned only if the parent partition matches a filter. - // If the list is empty, no replicas are returned. All the replicas are used to evaluate the parent partition aggregated health state, regardless of the input filters. - // The partition filter may specify multiple replica filters. - // For example, it can specify a filter to return all replicas with health state Error and another filter to always include a replica identified by its replica id. - ReplicaFilters *[]ReplicaHealthStateFilter `json:"ReplicaFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionInformation information about the partition identity, partitioning scheme and keys supported by it. -type BasicPartitionInformation interface { - AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) - AsNamedPartitionInformation() (*NamedPartitionInformation, bool) - AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) - AsPartitionInformation() (*PartitionInformation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionInformation information about the partition identity, partitioning scheme and keys supported by it. -type PartitionInformation struct { - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -func unmarshalBasicPartitionInformation(body []byte) (BasicPartitionInformation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServicePartitionKind"] { - case string(ServicePartitionKindInt64Range): - var i6rpi Int64RangePartitionInformation - err := json.Unmarshal(body, &i6rpi) - return i6rpi, err - case string(ServicePartitionKindNamed): - var npi NamedPartitionInformation - err := json.Unmarshal(body, &npi) - return npi, err - case string(ServicePartitionKindSingleton): - var spi SingletonPartitionInformation - err := json.Unmarshal(body, &spi) - return spi, err - default: - var pi PartitionInformation - err := json.Unmarshal(body, &pi) - return pi, err - } -} -func unmarshalBasicPartitionInformationArray(body []byte) ([]BasicPartitionInformation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - piArray := make([]BasicPartitionInformation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pi, err := unmarshalBasicPartitionInformation(*rawMessage) - if err != nil { - return nil, err - } - piArray[index] = pi - } - return piArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionInformation. -func (pi PartitionInformation) MarshalJSON() ([]byte, error) { - pi.ServicePartitionKind = ServicePartitionKindPartitionInformation - objectMap := make(map[string]interface{}) - if pi.ID != nil { - objectMap["Id"] = pi.ID - } - if pi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = pi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return &pi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &pi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionLoadInformation represents load information for a partition, which contains the primary and secondary -// reported load metrics. -// In case there is no load reported, PartitionLoadInformation will contain the default load for the service of the -// partition. -// For default loads, LoadMetricReport's LastReportedUtc is set to 0. -type PartitionLoadInformation struct { - autorest.Response `json:"-"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // PrimaryLoadMetricReports - Array of load reports from the primary replica for this partition. - PrimaryLoadMetricReports *[]LoadMetricReport `json:"PrimaryLoadMetricReports,omitempty"` - // SecondaryLoadMetricReports - Array of aggregated load reports from all secondary replicas for this partition. - // Array only contains the latest reported load for each metric. - SecondaryLoadMetricReports *[]LoadMetricReport `json:"SecondaryLoadMetricReports,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionQuorumLossProgress information about a partition quorum loss user-induced operation. -type PartitionQuorumLossProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State4Invalid', 'State4Running', 'State4RollingBack', 'State4Completed', 'State4Faulted', 'State4Cancelled', 'State4ForceCancelled' - State State4 `json:"State,omitempty"` - InvokeQuorumLossResult *InvokeQuorumLossResult `json:"InvokeQuorumLossResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionRestartProgress information about a partition restart user-induced operation. -type PartitionRestartProgress struct { - autorest.Response `json:"-"` - // State - Possible values include: 'State5Invalid', 'State5Running', 'State5RollingBack', 'State5Completed', 'State5Faulted', 'State5Cancelled', 'State5ForceCancelled' - State State5 `json:"State,omitempty"` - RestartPartitionResult *RestartPartitionResult `json:"RestartPartitionResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionSafetyCheck represents a safety check for the service partition being performed by service fabric -// before continuing with operations. -type BasicPartitionSafetyCheck interface { - AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) - AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) - AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) - AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) - AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) - AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) - AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionSafetyCheck represents a safety check for the service partition being performed by service fabric -// before continuing with operations. -type PartitionSafetyCheck struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -func unmarshalBasicPartitionSafetyCheck(body []byte) (BasicPartitionSafetyCheck, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindEnsureAvailability): - var easc EnsureAvailabilitySafetyCheck - err := json.Unmarshal(body, &easc) - return easc, err - case string(KindEnsurePartitionQuorum): - var epqsc EnsurePartitionQurumSafetyCheck - err := json.Unmarshal(body, &epqsc) - return epqsc, err - case string(KindWaitForInbuildReplica): - var wfirsc WaitForInbuildReplicaSafetyCheck - err := json.Unmarshal(body, &wfirsc) - return wfirsc, err - case string(KindWaitForPrimaryPlacement): - var wfppsc WaitForPrimaryPlacementSafetyCheck - err := json.Unmarshal(body, &wfppsc) - return wfppsc, err - case string(KindWaitForPrimarySwap): - var wfpssc WaitForPrimarySwapSafetyCheck - err := json.Unmarshal(body, &wfpssc) - return wfpssc, err - case string(KindWaitForReconfiguration): - var wfrsc WaitForReconfigurationSafetyCheck - err := json.Unmarshal(body, &wfrsc) - return wfrsc, err - default: - var psc PartitionSafetyCheck - err := json.Unmarshal(body, &psc) - return psc, err - } -} -func unmarshalBasicPartitionSafetyCheckArray(body []byte) ([]BasicPartitionSafetyCheck, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pscArray := make([]BasicPartitionSafetyCheck, len(rawMessages)) - - for index, rawMessage := range rawMessages { - psc, err := unmarshalBasicPartitionSafetyCheck(*rawMessage) - if err != nil { - return nil, err - } - pscArray[index] = psc - } - return pscArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) MarshalJSON() ([]byte, error) { - psc.Kind = KindPartitionSafetyCheck - objectMap := make(map[string]interface{}) - if psc.PartitionID != nil { - objectMap["PartitionId"] = psc.PartitionID - } - if psc.Kind != "" { - objectMap["Kind"] = psc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionSchemeDescription describes how the service is partitioned. -type BasicPartitionSchemeDescription interface { - AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) - AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) - AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) - AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionSchemeDescription describes how the service is partitioned. -type PartitionSchemeDescription struct { - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -func unmarshalBasicPartitionSchemeDescription(body []byte) (BasicPartitionSchemeDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["PartitionScheme"] { - case string(PartitionSchemeNamed): - var npsd NamedPartitionSchemeDescription - err := json.Unmarshal(body, &npsd) - return npsd, err - case string(PartitionSchemeSingleton): - var spsd SingletonPartitionSchemeDescription - err := json.Unmarshal(body, &spsd) - return spsd, err - case string(PartitionSchemeUniformInt64Range): - var ui6rpsd UniformInt64RangePartitionSchemeDescription - err := json.Unmarshal(body, &ui6rpsd) - return ui6rpsd, err - default: - var psd PartitionSchemeDescription - err := json.Unmarshal(body, &psd) - return psd, err - } -} -func unmarshalBasicPartitionSchemeDescriptionArray(body []byte) ([]BasicPartitionSchemeDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - psdArray := make([]BasicPartitionSchemeDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - psd, err := unmarshalBasicPartitionSchemeDescription(*rawMessage) - if err != nil { - return nil, err - } - psdArray[index] = psd - } - return psdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) MarshalJSON() ([]byte, error) { - psd.PartitionScheme = PartitionSchemePartitionSchemeDescription - objectMap := make(map[string]interface{}) - if psd.PartitionScheme != "" { - objectMap["PartitionScheme"] = psd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return &psd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &psd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionsHealthEvaluation represents health evaluation for the partitions of a service, containing health -// evaluations for each unhealthy partition that impacts current aggregated health state. Can be returned when -// evaluating service health and the aggregated health state is either Error or Warning. -type PartitionsHealthEvaluation struct { - // MaxPercentUnhealthyPartitionsPerService - Maximum allowed percentage of unhealthy partitions per service from the ServiceTypeHealthPolicy. - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - // TotalCount - Total number of partitions of the service from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartitions - objectMap := make(map[string]interface{}) - if phe.MaxPercentUnhealthyPartitionsPerService != nil { - objectMap["MaxPercentUnhealthyPartitionsPerService"] = phe.MaxPercentUnhealthyPartitionsPerService - } - if phe.TotalCount != nil { - objectMap["TotalCount"] = phe.TotalCount - } - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PrimaryReplicatorStatus ... -type PrimaryReplicatorStatus struct { - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - RemoteReplicators *[]RemoteReplicatorStatus `json:"RemoteReplicators,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) MarshalJSON() ([]byte, error) { - prs.Kind = KindPrimary - objectMap := make(map[string]interface{}) - if prs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = prs.ReplicationQueueStatus - } - if prs.RemoteReplicators != nil { - objectMap["RemoteReplicators"] = prs.RemoteReplicators - } - if prs.Kind != "" { - objectMap["Kind"] = prs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return &prs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &prs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchDescriptionList describes a list of property batch operations to be executed. Either all or none of -// the operations will be committed. -type PropertyBatchDescriptionList struct { - // Operations - A list of the property batch operations to be executed. - Operations *[]BasicPropertyBatchOperation `json:"Operations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyBatchDescriptionList struct. -func (pbdl *PropertyBatchDescriptionList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Operations": - if v != nil { - operations, err := unmarshalBasicPropertyBatchOperationArray(*v) - if err != nil { - return err - } - pbdl.Operations = &operations - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPropertyBatchInfo information about the results of a property batch. -type BasicPropertyBatchInfo interface { - AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) - AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) - AsPropertyBatchInfo() (*PropertyBatchInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchInfo information about the results of a property batch. -type PropertyBatchInfo struct { - autorest.Response `json:"-"` - // Kind - Possible values include: 'KindPropertyBatchInfo', 'KindSuccessful', 'KindFailed' - Kind KindBasicPropertyBatchInfo `json:"Kind,omitempty"` -} - -func unmarshalBasicPropertyBatchInfo(body []byte) (BasicPropertyBatchInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindSuccessful): - var spbi SuccessfulPropertyBatchInfo - err := json.Unmarshal(body, &spbi) - return spbi, err - case string(KindFailed): - var fpbi FailedPropertyBatchInfo - err := json.Unmarshal(body, &fpbi) - return fpbi, err - default: - var pbi PropertyBatchInfo - err := json.Unmarshal(body, &pbi) - return pbi, err - } -} -func unmarshalBasicPropertyBatchInfoArray(body []byte) ([]BasicPropertyBatchInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pbiArray := make([]BasicPropertyBatchInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pbi, err := unmarshalBasicPropertyBatchInfo(*rawMessage) - if err != nil { - return nil, err - } - pbiArray[index] = pbi - } - return pbiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PropertyBatchInfo. -func (pbi PropertyBatchInfo) MarshalJSON() ([]byte, error) { - pbi.Kind = KindPropertyBatchInfo - objectMap := make(map[string]interface{}) - if pbi.Kind != "" { - objectMap["Kind"] = pbi.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSuccessfulPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsFailedPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsPropertyBatchInfo() (*PropertyBatchInfo, bool) { - return &pbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsBasicPropertyBatchInfo() (BasicPropertyBatchInfo, bool) { - return &pbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchInfoModel ... -type PropertyBatchInfoModel struct { - autorest.Response `json:"-"` - Value BasicPropertyBatchInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyBatchInfoModel struct. -func (pbim *PropertyBatchInfoModel) UnmarshalJSON(body []byte) error { - pbi, err := unmarshalBasicPropertyBatchInfo(body) - if err != nil { - return err - } - pbim.Value = pbi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPropertyBatchOperation represents the base type for property operations that can be put into a batch and -// submitted. -type BasicPropertyBatchOperation interface { - AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) - AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) - AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) - AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) - AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) - AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) - AsPropertyBatchOperation() (*PropertyBatchOperation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchOperation represents the base type for property operations that can be put into a batch and -// submitted. -type PropertyBatchOperation struct { - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -func unmarshalBasicPropertyBatchOperation(body []byte) (BasicPropertyBatchOperation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindCheckExists): - var cepbo CheckExistsPropertyBatchOperation - err := json.Unmarshal(body, &cepbo) - return cepbo, err - case string(KindCheckSequence): - var cspbo CheckSequencePropertyBatchOperation - err := json.Unmarshal(body, &cspbo) - return cspbo, err - case string(KindCheckValue): - var cvpbo CheckValuePropertyBatchOperation - err := json.Unmarshal(body, &cvpbo) - return cvpbo, err - case string(KindDelete): - var dpbo DeletePropertyBatchOperation - err := json.Unmarshal(body, &dpbo) - return dpbo, err - case string(KindGet): - var gpbo GetPropertyBatchOperation - err := json.Unmarshal(body, &gpbo) - return gpbo, err - case string(KindPut): - var ppbo PutPropertyBatchOperation - err := json.Unmarshal(body, &ppbo) - return ppbo, err - default: - var pbo PropertyBatchOperation - err := json.Unmarshal(body, &pbo) - return pbo, err - } -} -func unmarshalBasicPropertyBatchOperationArray(body []byte) ([]BasicPropertyBatchOperation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pboArray := make([]BasicPropertyBatchOperation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pbo, err := unmarshalBasicPropertyBatchOperation(*rawMessage) - if err != nil { - return nil, err - } - pboArray[index] = pbo - } - return pboArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PropertyBatchOperation. -func (pbo PropertyBatchOperation) MarshalJSON() ([]byte, error) { - pbo.Kind = KindPropertyBatchOperation - objectMap := make(map[string]interface{}) - if pbo.PropertyName != nil { - objectMap["PropertyName"] = pbo.PropertyName - } - if pbo.Kind != "" { - objectMap["Kind"] = pbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return &pbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &pbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyDescription description of a Service Fabric property. -type PropertyDescription struct { - PropertyName *string `json:"PropertyName,omitempty"` - CustomTypeID *string `json:"CustomTypeId,omitempty"` - Value BasicPropertyValue `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyDescription struct. -func (pd *PropertyDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "PropertyName": - if v != nil { - var propertyName string - err = json.Unmarshal(*v, &propertyName) - if err != nil { - return err - } - pd.PropertyName = &propertyName - } - case "CustomTypeId": - if v != nil { - var customTypeID string - err = json.Unmarshal(*v, &customTypeID) - if err != nil { - return err - } - pd.CustomTypeID = &customTypeID - } - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - pd.Value = value - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyInfo information about a Service Fabric property. -type PropertyInfo struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - Value BasicPropertyValue `json:"Value,omitempty"` - Metadata *PropertyMetadata `json:"Metadata,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyInfo struct. -func (pi *PropertyInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pi.Name = &name - } - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - pi.Value = value - } - case "Metadata": - if v != nil { - var metadata PropertyMetadata - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - pi.Metadata = &metadata - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyMetadata the metadata associated with a property, including the property's name. -type PropertyMetadata struct { - // TypeID - Possible values include: 'TypeIDInvalid', 'TypeIDBinary', 'TypeIDInt64', 'TypeIDDouble', 'TypeIDString', 'TypeIDGUID' - TypeID TypeID `json:"TypeId,omitempty"` - CustomTypeID *string `json:"CustomTypeId,omitempty"` - Parent *string `json:"Parent,omitempty"` - // SizeInBytes - The length of the serialized property value. - SizeInBytes *int32 `json:"SizeInBytes,omitempty"` - // LastModifiedUtcTimestamp - Represents when the Property was last modified. Only write operations will cause this field to be updated. - LastModifiedUtcTimestamp *date.Time `json:"LastModifiedUtcTimestamp,omitempty"` - // SequenceNumber - The version of the property. Every time a property is modified, its sequence number is increased. - SequenceNumber *string `json:"SequenceNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPropertyValue describes a Service Fabric property value. -type BasicPropertyValue interface { - AsBinaryPropertyValue() (*BinaryPropertyValue, bool) - AsInt64PropertyValue() (*Int64PropertyValue, bool) - AsDoublePropertyValue() (*DoublePropertyValue, bool) - AsStringPropertyValue() (*StringPropertyValue, bool) - AsGUIDPropertyValue() (*GUIDPropertyValue, bool) - AsPropertyValue() (*PropertyValue, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyValue describes a Service Fabric property value. -type PropertyValue struct { - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -func unmarshalBasicPropertyValue(body []byte) (BasicPropertyValue, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindBinary): - var bpv BinaryPropertyValue - err := json.Unmarshal(body, &bpv) - return bpv, err - case string(KindInt64): - var i6pv Int64PropertyValue - err := json.Unmarshal(body, &i6pv) - return i6pv, err - case string(KindDouble): - var dpv DoublePropertyValue - err := json.Unmarshal(body, &dpv) - return dpv, err - case string(KindString): - var spv StringPropertyValue - err := json.Unmarshal(body, &spv) - return spv, err - case string(KindGUID): - var gpv GUIDPropertyValue - err := json.Unmarshal(body, &gpv) - return gpv, err - default: - var pv PropertyValue - err := json.Unmarshal(body, &pv) - return pv, err - } -} -func unmarshalBasicPropertyValueArray(body []byte) ([]BasicPropertyValue, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pvArray := make([]BasicPropertyValue, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pv, err := unmarshalBasicPropertyValue(*rawMessage) - if err != nil { - return nil, err - } - pvArray[index] = pv - } - return pvArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PropertyValue. -func (pv PropertyValue) MarshalJSON() ([]byte, error) { - pv.Kind = KindPropertyValue - objectMap := make(map[string]interface{}) - if pv.Kind != "" { - objectMap["Kind"] = pv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return &pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionFabricDescription describes the parameters for provisioning a cluster. -type ProvisionFabricDescription struct { - // CodeFilePath - The cluster code package file path. - CodeFilePath *string `json:"CodeFilePath,omitempty"` - // ClusterManifestFilePath - The cluster manifest file path. - ClusterManifestFilePath *string `json:"ClusterManifestFilePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertyBatchOperation puts the specified property under the specified name. Note that if one -// PropertyBatchOperation in a PropertyBatch fails, the entire batch fails and cannot be committed in a -// transactional manner. -type PutPropertyBatchOperation struct { - Value BasicPropertyValue `json:"Value,omitempty"` - CustomTypeID *string `json:"CustomTypeId,omitempty"` - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) MarshalJSON() ([]byte, error) { - ppbo.Kind = KindPut - objectMap := make(map[string]interface{}) - objectMap["Value"] = ppbo.Value - if ppbo.CustomTypeID != nil { - objectMap["CustomTypeId"] = ppbo.CustomTypeID - } - if ppbo.PropertyName != nil { - objectMap["PropertyName"] = ppbo.PropertyName - } - if ppbo.Kind != "" { - objectMap["Kind"] = ppbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return &ppbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &ppbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PutPropertyBatchOperation struct. -func (ppbo *PutPropertyBatchOperation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - ppbo.Value = value - } - case "CustomTypeId": - if v != nil { - var customTypeID string - err = json.Unmarshal(*v, &customTypeID) - if err != nil { - return err - } - ppbo.CustomTypeID = &customTypeID - } - case "PropertyName": - if v != nil { - var propertyName string - err = json.Unmarshal(*v, &propertyName) - if err != nil { - return err - } - ppbo.PropertyName = &propertyName - } - case "Kind": - if v != nil { - var kind KindBasicPropertyBatchOperation - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - ppbo.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReconfigurationInformation information about current reconfiguration like phase, type, previous configuration -// role of replica and reconfiguration start date time. -type ReconfigurationInformation struct { - // PreviousConfigurationRole - Possible values include: 'PreviousConfigurationRoleUnknown', 'PreviousConfigurationRoleNone', 'PreviousConfigurationRolePrimary', 'PreviousConfigurationRoleIdleSecondary', 'PreviousConfigurationRoleActiveSecondary' - PreviousConfigurationRole PreviousConfigurationRole `json:"PreviousConfigurationRole,omitempty"` - // ReconfigurationPhase - Possible values include: 'ReconfigurationPhaseUnknown', 'ReconfigurationPhaseNone', 'ReconfigurationPhasePhase0', 'ReconfigurationPhasePhase1', 'ReconfigurationPhasePhase2', 'ReconfigurationPhasePhase3', 'ReconfigurationPhasePhase4', 'ReconfigurationPhaseAbortPhaseZero' - ReconfigurationPhase ReconfigurationPhase `json:"ReconfigurationPhase,omitempty"` - // ReconfigurationType - Possible values include: 'ReconfigurationTypeUnknown', 'ReconfigurationTypeSwapPrimary', 'ReconfigurationTypeFailover', 'ReconfigurationTypeOther' - ReconfigurationType ReconfigurationType `json:"ReconfigurationType,omitempty"` - // ReconfigurationStartTimeUtc - Start time (in UTC) of the ongoing reconfiguration. If no reconfiguration is taking place then this value will be zero date-time. - ReconfigurationStartTimeUtc *date.Time `json:"ReconfigurationStartTimeUtc,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegistryCredential credential information to connect to container registry. -type RegistryCredential struct { - // RegistryUserName - The user name to connect to container registry. - RegistryUserName *string `json:"RegistryUserName,omitempty"` - // RegistryPassword - The password for supplied username to connect to container registry. - RegistryPassword *string `json:"RegistryPassword,omitempty"` - // PasswordEncrypted - Indicates that supplied container registry password is encrypted. - PasswordEncrypted *bool `json:"PasswordEncrypted,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorAcknowledgementDetail provides various statistics of the acknowledgements that are being -// received from the remote replicator. -type RemoteReplicatorAcknowledgementDetail struct { - // AverageReceiveDuration - Represents the average duration it takes for the remote replicator to receive an operation. - AverageReceiveDuration *string `json:"AverageReceiveDuration,omitempty"` - // AverageApplyDuration - Represents the average duration it takes for the remote replicator to apply an operation. This usually entails writing the operation to disk. - AverageApplyDuration *string `json:"AverageApplyDuration,omitempty"` - // NotReceivedCount - Represents the number of operations not yet received by a remote replicator. - NotReceivedCount *string `json:"NotReceivedCount,omitempty"` - // ReceivedAndNotAppliedCount - Represents the number of operations received and not yet applied by a remote replicator. - ReceivedAndNotAppliedCount *string `json:"ReceivedAndNotAppliedCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorAcknowledgementStatus provides details about the remote replicators from the primary -// replicator's point of view. -type RemoteReplicatorAcknowledgementStatus struct { - ReplicationStreamAcknowledgementDetail *RemoteReplicatorAcknowledgementDetail `json:"ReplicationStreamAcknowledgementDetail,omitempty"` - CopyStreamAcknowledgementDetail *RemoteReplicatorAcknowledgementDetail `json:"CopyStreamAcknowledgementDetail,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorStatus represents the state of the secondary replicator from the primary replicator’s point of -// view. -type RemoteReplicatorStatus struct { - ReplicaID *string `json:"ReplicaId,omitempty"` - // LastAcknowledgementProcessedTimeUtc - The last timestamp (in UTC) when an acknowledgement from the secondary replicator was processed on the primary. - // UTC 0 represents an invalid value, indicating that no acknowledgement messages were ever processed. - LastAcknowledgementProcessedTimeUtc *date.Time `json:"LastAcknowledgementProcessedTimeUtc,omitempty"` - // LastReceivedReplicationSequenceNumber - The highest replication operation sequence number that the secondary has received from the primary. - LastReceivedReplicationSequenceNumber *string `json:"LastReceivedReplicationSequenceNumber,omitempty"` - // LastAppliedReplicationSequenceNumber - The highest replication operation sequence number that the secondary has applied to its state. - LastAppliedReplicationSequenceNumber *string `json:"LastAppliedReplicationSequenceNumber,omitempty"` - // IsInBuild - A value that indicates whether the secondary replica is in the process of being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // LastReceivedCopySequenceNumber - The highest copy operation sequence number that the secondary has received from the primary. - // A value of -1 implies that the secondary has received all copy operations. - LastReceivedCopySequenceNumber *string `json:"LastReceivedCopySequenceNumber,omitempty"` - // LastAppliedCopySequenceNumber - The highest copy operation sequence number that the secondary has applied to its state. - // A value of -1 implies that the secondary has applied all copy operations and the copy process is complete. - LastAppliedCopySequenceNumber *string `json:"LastAppliedCopySequenceNumber,omitempty"` - RemoteReplicatorAcknowledgementStatus *RemoteReplicatorAcknowledgementStatus `json:"RemoteReplicatorAcknowledgementStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicRepairImpactDescriptionBase describes the expected impact of executing a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type BasicRepairImpactDescriptionBase interface { - AsNodeRepairImpactDescription() (*NodeRepairImpactDescription, bool) - AsRepairImpactDescriptionBase() (*RepairImpactDescriptionBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairImpactDescriptionBase describes the expected impact of executing a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairImpactDescriptionBase struct { - // Kind - Possible values include: 'KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase', 'KindBasicRepairImpactDescriptionBaseKindNode' - Kind KindBasicRepairImpactDescriptionBase `json:"Kind,omitempty"` -} - -func unmarshalBasicRepairImpactDescriptionBase(body []byte) (BasicRepairImpactDescriptionBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindBasicRepairImpactDescriptionBaseKindNode): - var nrid NodeRepairImpactDescription - err := json.Unmarshal(body, &nrid) - return nrid, err - default: - var ridb RepairImpactDescriptionBase - err := json.Unmarshal(body, &ridb) - return ridb, err - } -} -func unmarshalBasicRepairImpactDescriptionBaseArray(body []byte) ([]BasicRepairImpactDescriptionBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - ridbArray := make([]BasicRepairImpactDescriptionBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ridb, err := unmarshalBasicRepairImpactDescriptionBase(*rawMessage) - if err != nil { - return nil, err - } - ridbArray[index] = ridb - } - return ridbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) MarshalJSON() ([]byte, error) { - ridb.Kind = KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase - objectMap := make(map[string]interface{}) - if ridb.Kind != "" { - objectMap["Kind"] = ridb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairImpactDescription is the BasicRepairImpactDescriptionBase implementation for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) AsNodeRepairImpactDescription() (*NodeRepairImpactDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) AsRepairImpactDescriptionBase() (*RepairImpactDescriptionBase, bool) { - return &ridb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) AsBasicRepairImpactDescriptionBase() (BasicRepairImpactDescriptionBase, bool) { - return &ridb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicRepairTargetDescriptionBase describes the entities targeted by a repair action. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type BasicRepairTargetDescriptionBase interface { - AsNodeRepairTargetDescription() (*NodeRepairTargetDescription, bool) - AsRepairTargetDescriptionBase() (*RepairTargetDescriptionBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTargetDescriptionBase describes the entities targeted by a repair action. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTargetDescriptionBase struct { - // Kind - Possible values include: 'KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase', 'KindBasicRepairTargetDescriptionBaseKindNode' - Kind KindBasicRepairTargetDescriptionBase `json:"Kind,omitempty"` -} - -func unmarshalBasicRepairTargetDescriptionBase(body []byte) (BasicRepairTargetDescriptionBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindBasicRepairTargetDescriptionBaseKindNode): - var nrtd NodeRepairTargetDescription - err := json.Unmarshal(body, &nrtd) - return nrtd, err - default: - var rtdb RepairTargetDescriptionBase - err := json.Unmarshal(body, &rtdb) - return rtdb, err - } -} -func unmarshalBasicRepairTargetDescriptionBaseArray(body []byte) ([]BasicRepairTargetDescriptionBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rtdbArray := make([]BasicRepairTargetDescriptionBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rtdb, err := unmarshalBasicRepairTargetDescriptionBase(*rawMessage) - if err != nil { - return nil, err - } - rtdbArray[index] = rtdb - } - return rtdbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) MarshalJSON() ([]byte, error) { - rtdb.Kind = KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase - objectMap := make(map[string]interface{}) - if rtdb.Kind != "" { - objectMap["Kind"] = rtdb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairTargetDescription is the BasicRepairTargetDescriptionBase implementation for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) AsNodeRepairTargetDescription() (*NodeRepairTargetDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) AsRepairTargetDescriptionBase() (*RepairTargetDescriptionBase, bool) { - return &rtdb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) AsBasicRepairTargetDescriptionBase() (BasicRepairTargetDescriptionBase, bool) { - return &rtdb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTask represents a repair task, which includes information about what kind of repair was requested, what -// its progress is, and what its final result was. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTask struct { - // TaskID - The ID of the repair task. - TaskID *string `json:"TaskId,omitempty"` - // Version - The version of the repair task. - // When creating a new repair task, the version must be set to zero. When updating a repair task, - // the version is used for optimistic concurrency checks. If the version is - // set to zero, the update will not check for write conflicts. If the version is set to a non-zero value, then the - // update will only succeed if the actual current version of the repair task matches this value. - Version *string `json:"Version,omitempty"` - // Description - A description of the purpose of the repair task, or other informational details. - // May be set when the repair task is created, and is immutable once set. - Description *string `json:"Description,omitempty"` - // State - The workflow state of the repair task. Valid initial states are Created, Claimed, and Preparing. - // - Invalid - Indicates that the repair task state is invalid. All Service Fabric enumerations have the invalid value. - // - Created - Indicates that the repair task has been created. - // - Claimed - Indicates that the repair task has been claimed by a repair executor. - // - Preparing - Indicates that the Repair Manager is preparing the system to handle the impact of the repair task, usually by taking resources offline gracefully. - // - Approved - Indicates that the repair task has been approved by the Repair Manager and is safe to execute. - // - Executing - Indicates that execution of the repair task is in progress. - // - Restoring - Indicates that the Repair Manager is restoring the system to its pre-repair state, usually by bringing resources back online. - // - Completed - Indicates that the repair task has completed, and no further state changes will occur. - // . Possible values include: 'State6Invalid', 'State6Created', 'State6Claimed', 'State6Preparing', 'State6Approved', 'State6Executing', 'State6Restoring', 'State6Completed' - State State6 `json:"State,omitempty"` - // Flags - A bitwise-OR of the following values, which gives additional details about the status of the repair task. - // - 1 - Cancellation of the repair has been requested - // - 2 - Abort of the repair has been requested - // - 4 - Approval of the repair was forced via client request - Flags *int32 `json:"Flags,omitempty"` - // Action - The requested repair action. Must be specified when the repair task is created, and is immutable once set. - Action *string `json:"Action,omitempty"` - Target BasicRepairTargetDescriptionBase `json:"Target,omitempty"` - // Executor - The name of the repair executor. Must be specified in Claimed and later states, and is immutable once set. - Executor *string `json:"Executor,omitempty"` - // ExecutorData - A data string that the repair executor can use to store its internal state. - ExecutorData *string `json:"ExecutorData,omitempty"` - Impact BasicRepairImpactDescriptionBase `json:"Impact,omitempty"` - // ResultStatus - A value describing the overall result of the repair task execution. - // Must be specified in the Restoring and later states, and is immutable once set. - // - Invalid - Indicates that the repair task result is invalid. All Service Fabric enumerations have the invalid value. - // - Succeeded - Indicates that the repair task completed execution successfully. - // - Cancelled - Indicates that the repair task was cancelled prior to execution. - // - Interrupted - Indicates that execution of the repair task was interrupted by a cancellation request after some work had already been performed. - // - Failed - Indicates that there was a failure during execution of the repair task. Some work may have been performed. - // - Pending - Indicates that the repair task result is not yet available, because the repair task has not finished executing. - // . Possible values include: 'ResultStatusInvalid', 'ResultStatusSucceeded', 'ResultStatusCancelled', 'ResultStatusInterrupted', 'ResultStatusFailed', 'ResultStatusPending' - ResultStatus ResultStatus `json:"ResultStatus,omitempty"` - // ResultCode - A numeric value providing additional details about the result of the repair task execution. - // May be specified in the Restoring and later states, and is immutable once set. - ResultCode *int32 `json:"ResultCode,omitempty"` - // ResultDetails - A string providing additional details about the result of the repair task execution. - // May be specified in the Restoring and later states, and is immutable once set. - ResultDetails *string `json:"ResultDetails,omitempty"` - History *RepairTaskHistory `json:"History,omitempty"` - // PreparingHealthCheckState - Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Skipped', 'TimedOut' - PreparingHealthCheckState PreparingHealthCheckState `json:"PreparingHealthCheckState,omitempty"` - // RestoringHealthCheckState - Possible values include: 'RestoringHealthCheckStateNotStarted', 'RestoringHealthCheckStateInProgress', 'RestoringHealthCheckStateSucceeded', 'RestoringHealthCheckStateSkipped', 'RestoringHealthCheckStateTimedOut' - RestoringHealthCheckState RestoringHealthCheckState `json:"RestoringHealthCheckState,omitempty"` - // PerformPreparingHealthCheck - A value to determine if health checks will be performed when the repair task enters the Preparing state. - PerformPreparingHealthCheck *bool `json:"PerformPreparingHealthCheck,omitempty"` - // PerformRestoringHealthCheck - A value to determine if health checks will be performed when the repair task enters the Restoring state. - PerformRestoringHealthCheck *bool `json:"PerformRestoringHealthCheck,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for RepairTask struct. -func (rt *RepairTask) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TaskId": - if v != nil { - var taskID string - err = json.Unmarshal(*v, &taskID) - if err != nil { - return err - } - rt.TaskID = &taskID - } - case "Version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - rt.Version = &version - } - case "Description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rt.Description = &description - } - case "State": - if v != nil { - var state State6 - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - rt.State = state - } - case "Flags": - if v != nil { - var flags int32 - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - rt.Flags = &flags - } - case "Action": - if v != nil { - var action string - err = json.Unmarshal(*v, &action) - if err != nil { - return err - } - rt.Action = &action - } - case "Target": - if v != nil { - target, err := unmarshalBasicRepairTargetDescriptionBase(*v) - if err != nil { - return err - } - rt.Target = target - } - case "Executor": - if v != nil { - var executor string - err = json.Unmarshal(*v, &executor) - if err != nil { - return err - } - rt.Executor = &executor - } - case "ExecutorData": - if v != nil { - var executorData string - err = json.Unmarshal(*v, &executorData) - if err != nil { - return err - } - rt.ExecutorData = &executorData - } - case "Impact": - if v != nil { - impact, err := unmarshalBasicRepairImpactDescriptionBase(*v) - if err != nil { - return err - } - rt.Impact = impact - } - case "ResultStatus": - if v != nil { - var resultStatus ResultStatus - err = json.Unmarshal(*v, &resultStatus) - if err != nil { - return err - } - rt.ResultStatus = resultStatus - } - case "ResultCode": - if v != nil { - var resultCode int32 - err = json.Unmarshal(*v, &resultCode) - if err != nil { - return err - } - rt.ResultCode = &resultCode - } - case "ResultDetails": - if v != nil { - var resultDetails string - err = json.Unmarshal(*v, &resultDetails) - if err != nil { - return err - } - rt.ResultDetails = &resultDetails - } - case "History": - if v != nil { - var history RepairTaskHistory - err = json.Unmarshal(*v, &history) - if err != nil { - return err - } - rt.History = &history - } - case "PreparingHealthCheckState": - if v != nil { - var preparingHealthCheckState PreparingHealthCheckState - err = json.Unmarshal(*v, &preparingHealthCheckState) - if err != nil { - return err - } - rt.PreparingHealthCheckState = preparingHealthCheckState - } - case "RestoringHealthCheckState": - if v != nil { - var restoringHealthCheckState RestoringHealthCheckState - err = json.Unmarshal(*v, &restoringHealthCheckState) - if err != nil { - return err - } - rt.RestoringHealthCheckState = restoringHealthCheckState - } - case "PerformPreparingHealthCheck": - if v != nil { - var performPreparingHealthCheck bool - err = json.Unmarshal(*v, &performPreparingHealthCheck) - if err != nil { - return err - } - rt.PerformPreparingHealthCheck = &performPreparingHealthCheck - } - case "PerformRestoringHealthCheck": - if v != nil { - var performRestoringHealthCheck bool - err = json.Unmarshal(*v, &performRestoringHealthCheck) - if err != nil { - return err - } - rt.PerformRestoringHealthCheck = &performRestoringHealthCheck - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskApproveDescription describes a request for forced approval of a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskApproveDescription struct { - // TaskID - The ID of the repair task. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskCancelDescription describes a request to cancel a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskCancelDescription struct { - // TaskID - The ID of the repair task. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` - // RequestAbort - _True_ if the repair should be stopped as soon as possible even if it has already started executing. _False_ if the repair should be cancelled only if execution has not yet started. - RequestAbort *bool `json:"RequestAbort,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskDeleteDescription describes a request to delete a completed repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskDeleteDescription struct { - // TaskID - The ID of the completed repair task to be deleted. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskHistory a record of the times when the repair task entered each state. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskHistory struct { - // CreatedUtcTimestamp - The time when the repair task entered the Created state. - CreatedUtcTimestamp *date.Time `json:"CreatedUtcTimestamp,omitempty"` - // ClaimedUtcTimestamp - The time when the repair task entered the Claimed state. - ClaimedUtcTimestamp *date.Time `json:"ClaimedUtcTimestamp,omitempty"` - // PreparingUtcTimestamp - The time when the repair task entered the Preparing state. - PreparingUtcTimestamp *date.Time `json:"PreparingUtcTimestamp,omitempty"` - // ApprovedUtcTimestamp - The time when the repair task entered the Approved state - ApprovedUtcTimestamp *date.Time `json:"ApprovedUtcTimestamp,omitempty"` - // ExecutingUtcTimestamp - The time when the repair task entered the Executing state - ExecutingUtcTimestamp *date.Time `json:"ExecutingUtcTimestamp,omitempty"` - // RestoringUtcTimestamp - The time when the repair task entered the Restoring state - RestoringUtcTimestamp *date.Time `json:"RestoringUtcTimestamp,omitempty"` - // CompletedUtcTimestamp - The time when the repair task entered the Completed state - CompletedUtcTimestamp *date.Time `json:"CompletedUtcTimestamp,omitempty"` - // PreparingHealthCheckStartUtcTimestamp - The time when the repair task started the health check in the Preparing state. - PreparingHealthCheckStartUtcTimestamp *date.Time `json:"PreparingHealthCheckStartUtcTimestamp,omitempty"` - // PreparingHealthCheckEndUtcTimestamp - The time when the repair task completed the health check in the Preparing state. - PreparingHealthCheckEndUtcTimestamp *date.Time `json:"PreparingHealthCheckEndUtcTimestamp,omitempty"` - // RestoringHealthCheckStartUtcTimestamp - The time when the repair task started the health check in the Restoring state. - RestoringHealthCheckStartUtcTimestamp *date.Time `json:"RestoringHealthCheckStartUtcTimestamp,omitempty"` - // RestoringHealthCheckEndUtcTimestamp - The time when the repair task completed the health check in the Restoring state. - RestoringHealthCheckEndUtcTimestamp *date.Time `json:"RestoringHealthCheckEndUtcTimestamp,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskUpdateHealthPolicyDescription describes a request to update the health policy of a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskUpdateHealthPolicyDescription struct { - // TaskID - The ID of the repair task to be updated. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` - // PerformPreparingHealthCheck - A boolean indicating if health check is to be performed in the Preparing stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value. - PerformPreparingHealthCheck *bool `json:"PerformPreparingHealthCheck,omitempty"` - // PerformRestoringHealthCheck - A boolean indicating if health check is to be performed in the Restoring stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value. - PerformRestoringHealthCheck *bool `json:"PerformRestoringHealthCheck,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskUpdateInfo describes the result of an operation that created or updated a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskUpdateInfo struct { - autorest.Response `json:"-"` - // Version - The new version of the repair task. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaHealth represents a base class for stateful service replica or stateless service instance health. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type BasicReplicaHealth interface { - AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) - AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) - AsReplicaHealth() (*ReplicaHealth, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealth represents a base class for stateful service replica or stateless service instance health. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type ReplicaHealth struct { - autorest.Response `json:"-"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -func unmarshalBasicReplicaHealth(body []byte) (BasicReplicaHealth, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaHealthServiceKindStateful): - var ssrh StatefulServiceReplicaHealth - err := json.Unmarshal(body, &ssrh) - return ssrh, err - case string(ServiceKindBasicReplicaHealthServiceKindStateless): - var ssih StatelessServiceInstanceHealth - err := json.Unmarshal(body, &ssih) - return ssih, err - default: - var rh ReplicaHealth - err := json.Unmarshal(body, &rh) - return rh, err - } -} -func unmarshalBasicReplicaHealthArray(body []byte) ([]BasicReplicaHealth, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rhArray := make([]BasicReplicaHealth, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rh, err := unmarshalBasicReplicaHealth(*rawMessage) - if err != nil { - return nil, err - } - rhArray[index] = rh - } - return rhArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealth. -func (rh ReplicaHealth) MarshalJSON() ([]byte, error) { - rh.ServiceKind = ServiceKindBasicReplicaHealthServiceKindReplicaHealth - objectMap := make(map[string]interface{}) - if rh.PartitionID != nil { - objectMap["PartitionId"] = rh.PartitionID - } - if rh.ServiceKind != "" { - objectMap["ServiceKind"] = rh.ServiceKind - } - if rh.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rh.AggregatedHealthState - } - if rh.HealthEvents != nil { - objectMap["HealthEvents"] = rh.HealthEvents - } - if rh.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rh.UnhealthyEvaluations - } - if rh.HealthStatistics != nil { - objectMap["HealthStatistics"] = rh.HealthStatistics - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return &rh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &rh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthEvaluation represents health evaluation for a replica, containing information about the data and -// the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type ReplicaHealthEvaluation struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplica - objectMap := make(map[string]interface{}) - if rhe.PartitionID != nil { - objectMap["PartitionId"] = rhe.PartitionID - } - if rhe.ReplicaOrInstanceID != nil { - objectMap["ReplicaOrInstanceId"] = rhe.ReplicaOrInstanceID - } - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthModel ... -type ReplicaHealthModel struct { - autorest.Response `json:"-"` - Value BasicReplicaHealth `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ReplicaHealthModel struct. -func (rhm *ReplicaHealthModel) UnmarshalJSON(body []byte) error { - rh, err := unmarshalBasicReplicaHealth(body) - if err != nil { - return err - } - rhm.Value = rh - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaHealthState represents a base class for stateful service replica or stateless service instance health -// state. -type BasicReplicaHealthState interface { - AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) - AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) - AsReplicaHealthState() (*ReplicaHealthState, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthState represents a base class for stateful service replica or stateless service instance health -// state. -type ReplicaHealthState struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -func unmarshalBasicReplicaHealthState(body []byte) (BasicReplicaHealthState, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaHealthStateServiceKindStateful): - var ssrhs StatefulServiceReplicaHealthState - err := json.Unmarshal(body, &ssrhs) - return ssrhs, err - case string(ServiceKindBasicReplicaHealthStateServiceKindStateless): - var ssihs StatelessServiceInstanceHealthState - err := json.Unmarshal(body, &ssihs) - return ssihs, err - default: - var RHS ReplicaHealthState - err := json.Unmarshal(body, &RHS) - return RHS, err - } -} -func unmarshalBasicReplicaHealthStateArray(body []byte) ([]BasicReplicaHealthState, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - RHSArray := make([]BasicReplicaHealthState, len(rawMessages)) - - for index, rawMessage := range rawMessages { - RHS, err := unmarshalBasicReplicaHealthState(*rawMessage) - if err != nil { - return nil, err - } - RHSArray[index] = RHS - } - return RHSArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealthState. -func (RHS ReplicaHealthState) MarshalJSON() ([]byte, error) { - RHS.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState - objectMap := make(map[string]interface{}) - if RHS.PartitionID != nil { - objectMap["PartitionId"] = RHS.PartitionID - } - if RHS.ServiceKind != "" { - objectMap["ServiceKind"] = RHS.ServiceKind - } - if RHS.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = RHS.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return &RHS, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &RHS, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateChunk represents the health state chunk of a stateful service replica or a stateless service -// instance. -// The replica health state contains the replica ID and its aggregated health state. -type ReplicaHealthStateChunk struct { - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateChunkList the list of replica health state chunks that respect the input filters in the chunk -// query. Returned by get cluster health state chunks query. -type ReplicaHealthStateChunkList struct { - // Items - The list of replica health state chunks that respect the input filters in the chunk query. - Items *[]ReplicaHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateFilter defines matching criteria to determine whether a replica should be included as a child -// of a partition in the cluster health chunk. -// The replicas are only returned if the parent entities match a filter specified in the cluster health chunk query -// description. The parent partition, service and application must be included in the cluster health chunk. -// One filter can match zero, one or multiple replicas, depending on its properties. -type ReplicaHealthStateFilter struct { - // ReplicaOrInstanceIDFilter - Id of the stateful service replica or stateles service instance that matches the filter. The filter is applied only to the specified replica, if it exists. - // If the replica doesn't exist, no replica is returned in the cluster health chunk based on this filter. - // If the replica exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all replicas that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ReplicaOrInstanceIDFilter *string `json:"ReplicaOrInstanceIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the replicas. It allows selecting replicas if they match the desired health states. - // The possible values are integer value of one of the following health states. Only replicas that match the filter are returned. All replicas are used to evaluate the parent partition aggregated health state. - // If not specified, default value is None, unless the replica id is specified. If the filter has default value and replica id is specified, the matching replica is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches replicas with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaInfo information about the identity, status, health, node name, uptime, and other details about the -// replica. -type BasicReplicaInfo interface { - AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) - AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) - AsReplicaInfo() (*ReplicaInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaInfo information about the identity, status, health, node name, uptime, and other details about the -// replica. -type ReplicaInfo struct { - autorest.Response `json:"-"` - // ReplicaStatus - Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - Possible values include: 'HealthState6Invalid', 'HealthState6Ok', 'HealthState6Warning', 'HealthState6Error', 'HealthState6Unknown' - HealthState HealthState6 `json:"HealthState,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicReplicaInfo(body []byte) (BasicReplicaInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaInfoServiceKindStateful): - var ssri StatefulServiceReplicaInfo - err := json.Unmarshal(body, &ssri) - return ssri, err - case string(ServiceKindBasicReplicaInfoServiceKindStateless): - var ssii StatelessServiceInstanceInfo - err := json.Unmarshal(body, &ssii) - return ssii, err - default: - var ri ReplicaInfo - err := json.Unmarshal(body, &ri) - return ri, err - } -} -func unmarshalBasicReplicaInfoArray(body []byte) ([]BasicReplicaInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - riArray := make([]BasicReplicaInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ri, err := unmarshalBasicReplicaInfo(*rawMessage) - if err != nil { - return nil, err - } - riArray[index] = ri - } - return riArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaInfo. -func (ri ReplicaInfo) MarshalJSON() ([]byte, error) { - ri.ServiceKind = ServiceKindBasicReplicaInfoServiceKindReplicaInfo - objectMap := make(map[string]interface{}) - if ri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ri.ReplicaStatus - } - if ri.HealthState != "" { - objectMap["HealthState"] = ri.HealthState - } - if ri.NodeName != nil { - objectMap["NodeName"] = ri.NodeName - } - if ri.Address != nil { - objectMap["Address"] = ri.Address - } - if ri.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ri.LastInBuildDurationInSeconds - } - if ri.ServiceKind != "" { - objectMap["ServiceKind"] = ri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return &ri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaInfoModel ... -type ReplicaInfoModel struct { - autorest.Response `json:"-"` - Value BasicReplicaInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ReplicaInfoModel struct. -func (rim *ReplicaInfoModel) UnmarshalJSON(body []byte) error { - ri, err := unmarshalBasicReplicaInfo(body) - if err != nil { - return err - } - rim.Value = ri - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicasHealthEvaluation represents health evaluation for replicas, containing health evaluations for each -// unhealthy replica that impacted current aggregated health state. Can be returned when evaluating partition -// health and the aggregated health state is either Error or Warning. -type ReplicasHealthEvaluation struct { - // MaxPercentUnhealthyReplicasPerPartition - Maximum allowed percentage of unhealthy replicas per partition from the ApplicationHealthPolicy. - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` - // TotalCount - Total number of replicas in the partition from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplicas - objectMap := make(map[string]interface{}) - if rhe.MaxPercentUnhealthyReplicasPerPartition != nil { - objectMap["MaxPercentUnhealthyReplicasPerPartition"] = rhe.MaxPercentUnhealthyReplicasPerPartition - } - if rhe.TotalCount != nil { - objectMap["TotalCount"] = rhe.TotalCount - } - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaStatusBase information about the replica. -type BasicReplicaStatusBase interface { - AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) - AsReplicaStatusBase() (*ReplicaStatusBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatusBase information about the replica. -type ReplicaStatusBase struct { - // Kind - Possible values include: 'KindReplicaStatusBase', 'KindKeyValueStore' - Kind KindBasicReplicaStatusBase `json:"Kind,omitempty"` -} - -func unmarshalBasicReplicaStatusBase(body []byte) (BasicReplicaStatusBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindKeyValueStore): - var kvsrs KeyValueStoreReplicaStatus - err := json.Unmarshal(body, &kvsrs) - return kvsrs, err - default: - var rsb ReplicaStatusBase - err := json.Unmarshal(body, &rsb) - return rsb, err - } -} -func unmarshalBasicReplicaStatusBaseArray(body []byte) ([]BasicReplicaStatusBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rsbArray := make([]BasicReplicaStatusBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rsb, err := unmarshalBasicReplicaStatusBase(*rawMessage) - if err != nil { - return nil, err - } - rsbArray[index] = rsb - } - return rsbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaStatusBase. -func (rsb ReplicaStatusBase) MarshalJSON() ([]byte, error) { - rsb.Kind = KindReplicaStatusBase - objectMap := make(map[string]interface{}) - if rsb.Kind != "" { - objectMap["Kind"] = rsb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsKeyValueStoreReplicaStatus is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaStatusBase is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsReplicaStatusBase() (*ReplicaStatusBase, bool) { - return &rsb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaStatusBase is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsBasicReplicaStatusBase() (BasicReplicaStatusBase, bool) { - return &rsb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicatorQueueStatus provides various statistics of the queue used in the service fabric replicator. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -// Depending on the role of the replicator, the properties in this type imply different meanings. -type ReplicatorQueueStatus struct { - // QueueUtilizationPercentage - Represents the utilization of the queue. A value of 0 indicates that the queue is empty and a value of 100 indicates the queue is full. - QueueUtilizationPercentage *int32 `json:"QueueUtilizationPercentage,omitempty"` - // QueueMemorySize - Represents the virtual memory consumed by the queue in bytes. - QueueMemorySize *string `json:"QueueMemorySize,omitempty"` - // FirstSequenceNumber - On a primary replicator, this is semantically the sequence number of the operation for which all the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is the smallest sequence number of the operation that is present in the queue. - FirstSequenceNumber *string `json:"FirstSequenceNumber,omitempty"` - // CompletedSequenceNumber - On a primary replicator, this is semantically the highest sequence number of the operation for which all the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is semantically the highest sequence number that has been applied to the persistent state. - CompletedSequenceNumber *string `json:"CompletedSequenceNumber,omitempty"` - // CommittedSequenceNumber - On a primary replicator, this is semantically the highest sequence number of the operation for which a write quorum of the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is semantically the highest sequence number of the in-order operation received from the primary. - CommittedSequenceNumber *string `json:"CommittedSequenceNumber,omitempty"` - // LastSequenceNumber - Represents the latest sequence number of the operation that is available in the queue. - LastSequenceNumber *string `json:"LastSequenceNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicatorStatus represents a base class for primary or secondary replicator status. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -type BasicReplicatorStatus interface { - AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) - AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) - AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) - AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) - AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) - AsReplicatorStatus() (*ReplicatorStatus, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicatorStatus represents a base class for primary or secondary replicator status. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -type ReplicatorStatus struct { - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -func unmarshalBasicReplicatorStatus(body []byte) (BasicReplicatorStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindPrimary): - var prs PrimaryReplicatorStatus - err := json.Unmarshal(body, &prs) - return prs, err - case string(KindSecondaryReplicatorStatus): - var srs SecondaryReplicatorStatus - err := json.Unmarshal(body, &srs) - return srs, err - case string(KindActiveSecondary): - var sars SecondaryActiveReplicatorStatus - err := json.Unmarshal(body, &sars) - return sars, err - case string(KindIdleSecondary): - var sirs SecondaryIdleReplicatorStatus - err := json.Unmarshal(body, &sirs) - return sirs, err - default: - var rs ReplicatorStatus - err := json.Unmarshal(body, &rs) - return rs, err - } -} -func unmarshalBasicReplicatorStatusArray(body []byte) ([]BasicReplicatorStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rsArray := make([]BasicReplicatorStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rs, err := unmarshalBasicReplicatorStatus(*rawMessage) - if err != nil { - return nil, err - } - rsArray[index] = rs - } - return rsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicatorStatus. -func (rs ReplicatorStatus) MarshalJSON() ([]byte, error) { - rs.Kind = KindReplicatorStatus - objectMap := make(map[string]interface{}) - if rs.Kind != "" { - objectMap["Kind"] = rs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServiceEndpoint endpoint of a resolved service partition. -type ResolvedServiceEndpoint struct { - // Kind - Possible values include: 'KindInvalid', 'KindStateless', 'KindStatefulPrimary', 'KindStatefulSecondary' - Kind Kind `json:"Kind,omitempty"` - // Address - The address of the endpoint. If the endpoint has multiple listeners the address is a JSON object with one property per listener with the value as the address of that listener. - Address *string `json:"Address,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServicePartition information about a service partition and its associated endpoints. -type ResolvedServicePartition struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - Endpoints *[]ResolvedServiceEndpoint `json:"Endpoints,omitempty"` - // Version - The version of this resolved service partition result. This version should be passed in the next time the ResolveService call is made via the PreviousRspVersion query parameter. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ResolvedServicePartition struct. -func (rsp *ResolvedServicePartition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - rsp.Name = &name - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - rsp.PartitionInformation = partitionInformation - } - case "Endpoints": - if v != nil { - var endpoints []ResolvedServiceEndpoint - err = json.Unmarshal(*v, &endpoints) - if err != nil { - return err - } - rsp.Endpoints = &endpoints - } - case "Version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - rsp.Version = &version - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageDescription defines description for restarting a deloyed code package on Service -// Fabric node. -type RestartDeployedCodePackageDescription struct { - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - CodePackageName *string `json:"CodePackageName,omitempty"` - CodePackageInstanceID *string `json:"CodePackageInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeDescription describes the parameters to restart a Service Fabric node. -type RestartNodeDescription struct { - // NodeInstanceID - The instance id of the target node. If instance id is specified the node is restarted only if it matches with the current instance of the node. A default value of "0" would match any instance id. The instance id can be obtained using get node query. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` - // CreateFabricDump - Specify True to create a dump of the fabric node process. This is case sensitive. Possible values include: 'False', 'True' - CreateFabricDump CreateFabricDump `json:"CreateFabricDump,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartPartitionResult represents information about an operation in a terminal state (Completed or Faulted). -type RestartPartitionResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeDescription describes the parameters for resuming an unmonitored manual Service Fabric -// application upgrade -type ResumeApplicationUpgradeDescription struct { - // UpgradeDomainName - The name of the upgrade domain in which to resume the upgrade. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradeDescription describes the parameters for resuming a cluster upgrade. -type ResumeClusterUpgradeDescription struct { - // UpgradeDomain - The next upgrade domain for this cluster upgrade. - UpgradeDomain *string `json:"UpgradeDomain,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeUpdateDescription describes the parameters for updating a rolling upgrade of application or -// cluster. -type RollingUpgradeUpdateDescription struct { - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode3Invalid', 'RollingUpgradeMode3UnmonitoredAuto', 'RollingUpgradeMode3UnmonitoredManual', 'RollingUpgradeMode3Monitored' - RollingUpgradeMode RollingUpgradeMode3 `json:"RollingUpgradeMode,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - ReplicaSetCheckTimeoutInMilliseconds *int64 `json:"ReplicaSetCheckTimeoutInMilliseconds,omitempty"` - // FailureAction - Possible values include: 'FailureAction1Invalid', 'FailureAction1Rollback', 'FailureAction1Manual' - FailureAction FailureAction1 `json:"FailureAction,omitempty"` - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicSafetyCheck represents a safety check performed by service fabric before continuing with the operations. These -// checks ensure the availability of the service and the reliability of the state. -type BasicSafetyCheck interface { - AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) - AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) - AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) - AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) - AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) - AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) - AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) - AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) - AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) - AsSafetyCheck() (*SafetyCheck, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SafetyCheck represents a safety check performed by service fabric before continuing with the operations. These -// checks ensure the availability of the service and the reliability of the state. -type SafetyCheck struct { - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -func unmarshalBasicSafetyCheck(body []byte) (BasicSafetyCheck, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindPartitionSafetyCheck): - var psc PartitionSafetyCheck - err := json.Unmarshal(body, &psc) - return psc, err - case string(KindEnsureAvailability): - var easc EnsureAvailabilitySafetyCheck - err := json.Unmarshal(body, &easc) - return easc, err - case string(KindEnsurePartitionQuorum): - var epqsc EnsurePartitionQurumSafetyCheck - err := json.Unmarshal(body, &epqsc) - return epqsc, err - case string(KindEnsureSeedNodeQuorum): - var snsc SeedNodeSafetyCheck - err := json.Unmarshal(body, &snsc) - return snsc, err - case string(KindWaitForInbuildReplica): - var wfirsc WaitForInbuildReplicaSafetyCheck - err := json.Unmarshal(body, &wfirsc) - return wfirsc, err - case string(KindWaitForPrimaryPlacement): - var wfppsc WaitForPrimaryPlacementSafetyCheck - err := json.Unmarshal(body, &wfppsc) - return wfppsc, err - case string(KindWaitForPrimarySwap): - var wfpssc WaitForPrimarySwapSafetyCheck - err := json.Unmarshal(body, &wfpssc) - return wfpssc, err - case string(KindWaitForReconfiguration): - var wfrsc WaitForReconfigurationSafetyCheck - err := json.Unmarshal(body, &wfrsc) - return wfrsc, err - default: - var sc SafetyCheck - err := json.Unmarshal(body, &sc) - return sc, err - } -} -func unmarshalBasicSafetyCheckArray(body []byte) ([]BasicSafetyCheck, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - scArray := make([]BasicSafetyCheck, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sc, err := unmarshalBasicSafetyCheck(*rawMessage) - if err != nil { - return nil, err - } - scArray[index] = sc - } - return scArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SafetyCheck. -func (sc SafetyCheck) MarshalJSON() ([]byte, error) { - sc.Kind = KindSafetyCheck - objectMap := make(map[string]interface{}) - if sc.Kind != "" { - objectMap["Kind"] = sc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return &sc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &sc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SafetyCheckWrapper a wrapper for the safety check object. Safety checks are performed by service fabric before -// continuing with the operations. These checks ensure the availability of the service and the reliability of the -// state. -type SafetyCheckWrapper struct { - SafetyCheck BasicSafetyCheck `json:"SafetyCheck,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for SafetyCheckWrapper struct. -func (scw *SafetyCheckWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "SafetyCheck": - if v != nil { - safetyCheck, err := unmarshalBasicSafetyCheck(*v) - if err != nil { - return err - } - scw.SafetyCheck = safetyCheck - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryActiveReplicatorStatus status of the secondary replicator when it is in active mode and is part of the -// replica set. -type SecondaryActiveReplicatorStatus struct { - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) MarshalJSON() ([]byte, error) { - sars.Kind = KindActiveSecondary - objectMap := make(map[string]interface{}) - if sars.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = sars.ReplicationQueueStatus - } - if sars.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = sars.LastReplicationOperationReceivedTimeUtc - } - if sars.IsInBuild != nil { - objectMap["IsInBuild"] = sars.IsInBuild - } - if sars.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = sars.CopyQueueStatus - } - if sars.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = sars.LastCopyOperationReceivedTimeUtc - } - if sars.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = sars.LastAcknowledgementSentTimeUtc - } - if sars.Kind != "" { - objectMap["Kind"] = sars.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryIdleReplicatorStatus status of the secondary replicator when it is in idle mode and is being built by -// the primary. -type SecondaryIdleReplicatorStatus struct { - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) MarshalJSON() ([]byte, error) { - sirs.Kind = KindIdleSecondary - objectMap := make(map[string]interface{}) - if sirs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = sirs.ReplicationQueueStatus - } - if sirs.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = sirs.LastReplicationOperationReceivedTimeUtc - } - if sirs.IsInBuild != nil { - objectMap["IsInBuild"] = sirs.IsInBuild - } - if sirs.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = sirs.CopyQueueStatus - } - if sirs.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = sirs.LastCopyOperationReceivedTimeUtc - } - if sirs.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = sirs.LastAcknowledgementSentTimeUtc - } - if sirs.Kind != "" { - objectMap["Kind"] = sirs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicSecondaryReplicatorStatus ... -type BasicSecondaryReplicatorStatus interface { - AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) - AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) - AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryReplicatorStatus ... -type SecondaryReplicatorStatus struct { - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -func unmarshalBasicSecondaryReplicatorStatus(body []byte) (BasicSecondaryReplicatorStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindActiveSecondary): - var sars SecondaryActiveReplicatorStatus - err := json.Unmarshal(body, &sars) - return sars, err - case string(KindIdleSecondary): - var sirs SecondaryIdleReplicatorStatus - err := json.Unmarshal(body, &sirs) - return sirs, err - default: - var srs SecondaryReplicatorStatus - err := json.Unmarshal(body, &srs) - return srs, err - } -} -func unmarshalBasicSecondaryReplicatorStatusArray(body []byte) ([]BasicSecondaryReplicatorStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - srsArray := make([]BasicSecondaryReplicatorStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - srs, err := unmarshalBasicSecondaryReplicatorStatus(*rawMessage) - if err != nil { - return nil, err - } - srsArray[index] = srs - } - return srsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) MarshalJSON() ([]byte, error) { - srs.Kind = KindSecondaryReplicatorStatus - objectMap := make(map[string]interface{}) - if srs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = srs.ReplicationQueueStatus - } - if srs.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = srs.LastReplicationOperationReceivedTimeUtc - } - if srs.IsInBuild != nil { - objectMap["IsInBuild"] = srs.IsInBuild - } - if srs.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = srs.CopyQueueStatus - } - if srs.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = srs.LastCopyOperationReceivedTimeUtc - } - if srs.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = srs.LastAcknowledgementSentTimeUtc - } - if srs.Kind != "" { - objectMap["Kind"] = srs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SeedNodeSafetyCheck represents a safety check for the seed nodes being performed by service fabric before -// continuing with node level operations. -type SeedNodeSafetyCheck struct { - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) MarshalJSON() ([]byte, error) { - snsc.Kind = KindEnsureSeedNodeQuorum - objectMap := make(map[string]interface{}) - if snsc.Kind != "" { - objectMap["Kind"] = snsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return &snsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &snsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SelectedPartition this class returns information about the partition that the user-induced operation acted upon. -type SelectedPartition struct { - ServiceName *string `json:"ServiceName,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceCorrelationDescription creates a particular correlation between services. -type ServiceCorrelationDescription struct { - // Scheme - Possible values include: 'SchemeInvalid', 'SchemeAffinity', 'SchemeAlignedAffinity', 'SchemeNonAlignedAffinity' - Scheme Scheme `json:"Scheme,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceDescription a ServiceDescription contains all of the information necessary to create a service. -type BasicServiceDescription interface { - AsStatefulServiceDescription() (*StatefulServiceDescription, bool) - AsStatelessServiceDescription() (*StatelessServiceDescription, bool) - AsServiceDescription() (*ServiceDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescription a ServiceDescription contains all of the information necessary to create a service. -type ServiceDescription struct { - autorest.Response `json:"-"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - InitializationData *[]int32 `json:"InitializationData,omitempty"` - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost DefaultMoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - Possible values include: 'ServicePackageActivationMode1SharedProcess', 'ServicePackageActivationMode1ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode1 `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceDescription(body []byte) (BasicServiceDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceDescriptionServiceKindStateful): - var ssd StatefulServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - case string(ServiceKindBasicServiceDescriptionServiceKindStateless): - var ssd StatelessServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - default: - var sd ServiceDescription - err := json.Unmarshal(body, &sd) - return sd, err - } -} -func unmarshalBasicServiceDescriptionArray(body []byte) ([]BasicServiceDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sdArray := make([]BasicServiceDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sd, err := unmarshalBasicServiceDescription(*rawMessage) - if err != nil { - return nil, err - } - sdArray[index] = sd - } - return sdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceDescription. -func (sd ServiceDescription) MarshalJSON() ([]byte, error) { - sd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindServiceDescription - objectMap := make(map[string]interface{}) - if sd.ApplicationName != nil { - objectMap["ApplicationName"] = sd.ApplicationName - } - if sd.ServiceName != nil { - objectMap["ServiceName"] = sd.ServiceName - } - if sd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sd.ServiceTypeName - } - if sd.InitializationData != nil { - objectMap["InitializationData"] = sd.InitializationData - } - objectMap["PartitionDescription"] = sd.PartitionDescription - if sd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sd.PlacementConstraints - } - if sd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sd.CorrelationScheme - } - if sd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = sd.ServiceLoadMetrics - } - if sd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sd.ServicePlacementPolicies - } - if sd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = sd.DefaultMoveCost - } - if sd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = sd.IsDefaultMoveCostSpecified - } - if sd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = sd.ServicePackageActivationMode - } - if sd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = sd.ServiceDNSName - } - if sd.ServiceKind != "" { - objectMap["ServiceKind"] = sd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceDescription struct. -func (sd *ServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - sd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - sd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - sd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - sd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - sd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - sd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - sd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - sd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode1 - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - sd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - sd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescriptionModel ... -type ServiceDescriptionModel struct { - autorest.Response `json:"-"` - Value BasicServiceDescription `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceDescriptionModel struct. -func (sdm *ServiceDescriptionModel) UnmarshalJSON(body []byte) error { - sd, err := unmarshalBasicServiceDescription(body) - if err != nil { - return err - } - sdm.Value = sd - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceFromTemplateDescription defines description for creating a Service Fabric service from a template defined -// in the application manifest. -type ServiceFromTemplateDescription struct { - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // ServicePackageActivationMode - Possible values include: 'SharedProcess', 'ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealth information about the health of a Service Fabric service. -type ServiceHealth struct { - autorest.Response `json:"-"` - Name *string `json:"Name,omitempty"` - // PartitionHealthStates - The list of partition health states associated with the service. - PartitionHealthStates *[]PartitionHealthState `json:"PartitionHealthStates,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthEvaluation represents health evaluation for a service, containing information about the data and -// the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type ServiceHealthEvaluation struct { - ServiceName *string `json:"ServiceName,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindService - objectMap := make(map[string]interface{}) - if she.ServiceName != nil { - objectMap["ServiceName"] = she.ServiceName - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthState represents the health state of a service, which contains the service identifier and its -// aggregated health state. -type ServiceHealthState struct { - ServiceName *string `json:"ServiceName,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateChunk represents the health state chunk of a service, which contains the service name, its -// aggregated health state and any partitions that respect the filters in the cluster health chunk query -// description. -type ServiceHealthStateChunk struct { - ServiceName *string `json:"ServiceName,omitempty"` - PartitionHealthStateChunks *PartitionHealthStateChunkList `json:"PartitionHealthStateChunks,omitempty"` - // HealthState - Possible values include: 'HealthState2Invalid', 'HealthState2Ok', 'HealthState2Warning', 'HealthState2Error', 'HealthState2Unknown' - HealthState HealthState2 `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateChunkList the list of service health state chunks that respect the input filters in the chunk -// query. Returned by get cluster health state chunks query. -type ServiceHealthStateChunkList struct { - // Items - The list of service health state chunks that respect the input filters in the chunk query. - Items *[]ServiceHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateFilter defines matching criteria to determine whether a service should be included as a child -// of an application in the cluster health chunk. -// The services are only returned if the parent application matches a filter specified in the cluster health chunk -// query description. -// One filter can match zero, one or multiple services, depending on its properties. -type ServiceHealthStateFilter struct { - // ServiceNameFilter - The name of the service that matches the filter. The filter is applied only to the specified service, if it exists. - // If the service doesn't exist, no service is returned in the cluster health chunk based on this filter. - // If the service exists, it is included as the application's child if the health state matches the other filter properties. - // If not specified, all services that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ServiceNameFilter *string `json:"ServiceNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the services. It allows selecting services if they match the desired health states. - // The possible values are integer value of one of the following health states. Only services that match the filter are returned. All services are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the service name is specified. If the filter has default value and service name is specified, the matching service is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches services with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // PartitionFilters - Defines a list of filters that specify which partitions to be included in the returned cluster health chunk as children of the service. The partitions are returned only if the parent service matches a filter. - // If the list is empty, no partitions are returned. All the partitions are used to evaluate the parent service aggregated health state, regardless of the input filters. - // The service filter may specify multiple partition filters. - // For example, it can specify a filter to return all partitions with health state Error and another filter to always include a partition identified by its partition id. - PartitionFilters *[]PartitionHealthStateFilter `json:"PartitionFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceInfo information about a Service Fabric service. -type BasicServiceInfo interface { - AsStatefulServiceInfo() (*StatefulServiceInfo, bool) - AsStatelessServiceInfo() (*StatelessServiceInfo, bool) - AsServiceInfo() (*ServiceInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceInfo information about a Service Fabric service. -type ServiceInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - Possible values include: 'HealthState7Invalid', 'HealthState7Ok', 'HealthState7Warning', 'HealthState7Error', 'HealthState7Unknown' - HealthState HealthState7 `json:"HealthState,omitempty"` - // ServiceStatus - Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceInfo(body []byte) (BasicServiceInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceInfoServiceKindStateful): - var ssi StatefulServiceInfo - err := json.Unmarshal(body, &ssi) - return ssi, err - case string(ServiceKindBasicServiceInfoServiceKindStateless): - var ssi StatelessServiceInfo - err := json.Unmarshal(body, &ssi) - return ssi, err - default: - var si ServiceInfo - err := json.Unmarshal(body, &si) - return si, err - } -} -func unmarshalBasicServiceInfoArray(body []byte) ([]BasicServiceInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - siArray := make([]BasicServiceInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - si, err := unmarshalBasicServiceInfo(*rawMessage) - if err != nil { - return nil, err - } - siArray[index] = si - } - return siArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceInfo. -func (si ServiceInfo) MarshalJSON() ([]byte, error) { - si.ServiceKind = ServiceKindBasicServiceInfoServiceKindServiceInfo - objectMap := make(map[string]interface{}) - if si.ID != nil { - objectMap["Id"] = si.ID - } - if si.Name != nil { - objectMap["Name"] = si.Name - } - if si.TypeName != nil { - objectMap["TypeName"] = si.TypeName - } - if si.ManifestVersion != nil { - objectMap["ManifestVersion"] = si.ManifestVersion - } - if si.HealthState != "" { - objectMap["HealthState"] = si.HealthState - } - if si.ServiceStatus != "" { - objectMap["ServiceStatus"] = si.ServiceStatus - } - if si.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = si.IsServiceGroup - } - if si.ServiceKind != "" { - objectMap["ServiceKind"] = si.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return &si, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &si, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceInfoModel ... -type ServiceInfoModel struct { - autorest.Response `json:"-"` - Value BasicServiceInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceInfoModel struct. -func (sim *ServiceInfoModel) UnmarshalJSON(body []byte) error { - si, err := unmarshalBasicServiceInfo(body) - if err != nil { - return err - } - sim.Value = si - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceLoadMetricDescription specifies a metric to load balance a service during runtime. -type ServiceLoadMetricDescription struct { - // Name - The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. - Name *string `json:"Name,omitempty"` - // Weight - Possible values include: 'WeightZero', 'WeightLow', 'WeightMedium', 'WeightHigh' - Weight Weight `json:"Weight,omitempty"` - // PrimaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. - PrimaryDefaultLoad *int32 `json:"PrimaryDefaultLoad,omitempty"` - // SecondaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. - SecondaryDefaultLoad *int32 `json:"SecondaryDefaultLoad,omitempty"` - // DefaultLoad - Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. - DefaultLoad *int32 `json:"DefaultLoad,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceNameInfo information about the service name. -type ServiceNameInfo struct { - autorest.Response `json:"-"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServicePartitionInfo information about a partition of a Service Fabric service. -type BasicServicePartitionInfo interface { - AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) - AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) - AsServicePartitionInfo() (*ServicePartitionInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionInfo information about a partition of a Service Fabric service. -type ServicePartitionInfo struct { - autorest.Response `json:"-"` - // HealthState - Possible values include: 'HealthState5Invalid', 'HealthState5Ok', 'HealthState5Warning', 'HealthState5Error', 'HealthState5Unknown' - HealthState HealthState5 `json:"HealthState,omitempty"` - // PartitionStatus - Possible values include: 'PartitionStatusInvalid', 'PartitionStatusReady', 'PartitionStatusNotReady', 'PartitionStatusInQuorumLoss', 'PartitionStatusReconfiguring', 'PartitionStatusDeleting' - PartitionStatus PartitionStatus `json:"PartitionStatus,omitempty"` - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServicePartitionInfo(body []byte) (BasicServicePartitionInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServicePartitionInfoServiceKindStateful): - var sspi StatefulServicePartitionInfo - err := json.Unmarshal(body, &sspi) - return sspi, err - case string(ServiceKindBasicServicePartitionInfoServiceKindStateless): - var sspi StatelessServicePartitionInfo - err := json.Unmarshal(body, &sspi) - return sspi, err - default: - var spi ServicePartitionInfo - err := json.Unmarshal(body, &spi) - return spi, err - } -} -func unmarshalBasicServicePartitionInfoArray(body []byte) ([]BasicServicePartitionInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - spiArray := make([]BasicServicePartitionInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - spi, err := unmarshalBasicServicePartitionInfo(*rawMessage) - if err != nil { - return nil, err - } - spiArray[index] = spi - } - return spiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePartitionInfo. -func (spi ServicePartitionInfo) MarshalJSON() ([]byte, error) { - spi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo - objectMap := make(map[string]interface{}) - if spi.HealthState != "" { - objectMap["HealthState"] = spi.HealthState - } - if spi.PartitionStatus != "" { - objectMap["PartitionStatus"] = spi.PartitionStatus - } - objectMap["PartitionInformation"] = spi.PartitionInformation - if spi.ServiceKind != "" { - objectMap["ServiceKind"] = spi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServicePartitionInfo struct. -func (spi *ServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HealthState": - if v != nil { - var healthState HealthState5 - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - spi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus PartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - spi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - spi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - spi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionInfoModel ... -type ServicePartitionInfoModel struct { - autorest.Response `json:"-"` - Value BasicServicePartitionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServicePartitionInfoModel struct. -func (spim *ServicePartitionInfoModel) UnmarshalJSON(body []byte) error { - spi, err := unmarshalBasicServicePartitionInfo(body) - if err != nil { - return err - } - spim.Value = spi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementInvalidDomainPolicyDescription describes the policy to be used for placement of a Service Fabric -// service where a particular fault or upgrade domain should not be used for placement of the instances or replicas -// of that service. -type ServicePlacementInvalidDomainPolicyDescription struct { - // DomainName - The name of the domain that should not be used for placement. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) MarshalJSON() ([]byte, error) { - spidpd.Type = TypeInvalidDomain - objectMap := make(map[string]interface{}) - if spidpd.DomainName != nil { - objectMap["DomainName"] = spidpd.DomainName - } - if spidpd.Type != "" { - objectMap["Type"] = spidpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return &spidpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spidpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementNonPartiallyPlaceServicePolicyDescription describes the policy to be used for placement of a -// Service Fabric service where all replicas must be able to be placed in order for any replicas to be created. -type ServicePlacementNonPartiallyPlaceServicePolicyDescription struct { - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) MarshalJSON() ([]byte, error) { - spnppspd.Type = TypeNonPartiallyPlaceService - objectMap := make(map[string]interface{}) - if spnppspd.Type != "" { - objectMap["Type"] = spnppspd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return &spnppspd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spnppspd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service. -type BasicServicePlacementPolicyDescription interface { - AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) - AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) - AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) - AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) - AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) - AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service. -type ServicePlacementPolicyDescription struct { - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -func unmarshalBasicServicePlacementPolicyDescription(body []byte) (BasicServicePlacementPolicyDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Type"] { - case string(TypeInvalidDomain): - var spidpd ServicePlacementInvalidDomainPolicyDescription - err := json.Unmarshal(body, &spidpd) - return spidpd, err - case string(TypeNonPartiallyPlaceService): - var spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription - err := json.Unmarshal(body, &spnppspd) - return spnppspd, err - case string(TypePreferPrimaryDomain): - var spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription - err := json.Unmarshal(body, &spppdpd) - return spppdpd, err - case string(TypeRequireDomain): - var sprdpd ServicePlacementRequiredDomainPolicyDescription - err := json.Unmarshal(body, &sprdpd) - return sprdpd, err - case string(TypeRequireDomainDistribution): - var sprddpd ServicePlacementRequireDomainDistributionPolicyDescription - err := json.Unmarshal(body, &sprddpd) - return sprddpd, err - default: - var sppd ServicePlacementPolicyDescription - err := json.Unmarshal(body, &sppd) - return sppd, err - } -} -func unmarshalBasicServicePlacementPolicyDescriptionArray(body []byte) ([]BasicServicePlacementPolicyDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sppdArray := make([]BasicServicePlacementPolicyDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sppd, err := unmarshalBasicServicePlacementPolicyDescription(*rawMessage) - if err != nil { - return nil, err - } - sppdArray[index] = sppd - } - return sppdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) MarshalJSON() ([]byte, error) { - sppd.Type = TypeServicePlacementPolicyDescription - objectMap := make(map[string]interface{}) - if sppd.Type != "" { - objectMap["Type"] = sppd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return &sppd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sppd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPreferPrimaryDomainPolicyDescription describes the policy to be used for placement of a Service -// Fabric service where the service's Primary replicas should optimally be placed in a particular domain. -// -// This placement policy is usually used with fault domains in scenarios where the Service Fabric cluster is -// geographically distributed in order to indicate that a service's primary replica should be located in a -// particular fault domain, which in geo-distributed scenarios usually aligns with regional or datacenter -// boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up -// located in this domain due to failures, capacity limits, or other constraints. -type ServicePlacementPreferPrimaryDomainPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) MarshalJSON() ([]byte, error) { - spppdpd.Type = TypePreferPrimaryDomain - objectMap := make(map[string]interface{}) - if spppdpd.DomainName != nil { - objectMap["DomainName"] = spppdpd.DomainName - } - if spppdpd.Type != "" { - objectMap["Type"] = spppdpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return &spppdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spppdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementRequiredDomainPolicyDescription describes the policy to be used for placement of a Service -// Fabric service where the instances or replicas of that service must be placed in a particular domain -type ServicePlacementRequiredDomainPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) MarshalJSON() ([]byte, error) { - sprdpd.Type = TypeRequireDomain - objectMap := make(map[string]interface{}) - if sprdpd.DomainName != nil { - objectMap["DomainName"] = sprdpd.DomainName - } - if sprdpd.Type != "" { - objectMap["Type"] = sprdpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return &sprdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sprdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementRequireDomainDistributionPolicyDescription describes the policy to be used for placement of a -// Service Fabric service where two replicas from the same partition should never be placed in the same fault or -// upgrade domain. -// -// While this is not common it can expose the service to an increased risk of concurrent failures due to unplanned -// outages or other cases of subsequent/concurrent failures. As an example, consider a case where replicas are -// deployed across different data center, with one replica per location. In the event that one of the datacenters -// goes offline, normally the replica that was placed in that datacenter will be packed into one of the remaining -// datacenters. If this is not desirable then this policy should be set. -type ServicePlacementRequireDomainDistributionPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type TypeBasicServicePlacementPolicyDescription `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) MarshalJSON() ([]byte, error) { - sprddpd.Type = TypeRequireDomainDistribution - objectMap := make(map[string]interface{}) - if sprddpd.DomainName != nil { - objectMap["DomainName"] = sprddpd.DomainName - } - if sprddpd.Type != "" { - objectMap["Type"] = sprddpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return &sprddpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sprddpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicesHealthEvaluation represents health evaluation for services of a certain service type belonging to an -// application, containing health evaluations for each unhealthy service that impacted current aggregated health -// state. Can be returned when evaluating application health and the aggregated health state is either Error or -// Warning. -type ServicesHealthEvaluation struct { - // ServiceTypeName - Name of the service type of the services. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // MaxPercentUnhealthyServices - Maximum allowed percentage of unhealthy services from the ServiceTypeHealthPolicy. - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` - // TotalCount - Total number of services of the current service type in the application from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindServices - objectMap := make(map[string]interface{}) - if she.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = she.ServiceTypeName - } - if she.MaxPercentUnhealthyServices != nil { - objectMap["MaxPercentUnhealthyServices"] = she.MaxPercentUnhealthyServices - } - if she.TotalCount != nil { - objectMap["TotalCount"] = she.TotalCount - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceTypeDescription describes a service type defined in the service manifest of a provisioned application -// type. The properties the the ones defined in the service manifest. -type BasicServiceTypeDescription interface { - AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) - AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) - AsServiceTypeDescription() (*ServiceTypeDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeDescription describes a service type defined in the service manifest of a provisioned application -// type. The properties the the ones defined in the service manifest. -type ServiceTypeDescription struct { - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless1' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -func unmarshalBasicServiceTypeDescription(body []byte) (BasicServiceTypeDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindStateful): - var sstd StatefulServiceTypeDescription - err := json.Unmarshal(body, &sstd) - return sstd, err - case string(KindStateless1): - var sstd StatelessServiceTypeDescription - err := json.Unmarshal(body, &sstd) - return sstd, err - default: - var std ServiceTypeDescription - err := json.Unmarshal(body, &std) - return std, err - } -} -func unmarshalBasicServiceTypeDescriptionArray(body []byte) ([]BasicServiceTypeDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - stdArray := make([]BasicServiceTypeDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - std, err := unmarshalBasicServiceTypeDescription(*rawMessage) - if err != nil { - return nil, err - } - stdArray[index] = std - } - return stdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceTypeDescription. -func (std ServiceTypeDescription) MarshalJSON() ([]byte, error) { - std.Kind = KindServiceTypeDescription - objectMap := make(map[string]interface{}) - if std.IsStateful != nil { - objectMap["IsStateful"] = std.IsStateful - } - if std.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = std.ServiceTypeName - } - if std.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = std.PlacementConstraints - } - if std.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = std.ServicePlacementPolicies - } - if std.Extensions != nil { - objectMap["Extensions"] = std.Extensions - } - if std.Kind != "" { - objectMap["Kind"] = std.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return &std, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &std, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceTypeDescription struct. -func (std *ServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - std.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - std.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - std.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - std.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - std.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - std.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeExtensionDescription describes extension of a service type defined in the service manifest. -type ServiceTypeExtensionDescription struct { - // Key - The name of the extension. - Key *string `json:"Key,omitempty"` - // Value - The extension value. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to a -// service type. -type ServiceTypeHealthPolicy struct { - // MaxPercentUnhealthyPartitionsPerService - The maximum allowed percentage of unhealthy partitions per service. Allowed values are Byte values from zero to 100 - // The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error. - // If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. - // The computation rounds up to tolerate one failure on small numbers of partitions. Default percentage is zero. - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - // MaxPercentUnhealthyReplicasPerPartition - The maximum allowed percentage of unhealthy replicas per partition. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. - // If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. - // The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage is zero. - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` - // MaxPercentUnhealthyServices - The maximum maximum allowed percentage of unhealthy services. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. - // If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. - // This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type. - // The computation rounds up to tolerate one failure on small numbers of services. Default percentage is zero. - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeHealthPolicyMapItem defines an item in ServiceTypeHealthPolicyMap. -type ServiceTypeHealthPolicyMapItem struct { - // Key - The key of the service type health policy map item. This is the name of the service type. - Key *string `json:"Key,omitempty"` - Value *ServiceTypeHealthPolicy `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeInfo information about a service type that is defined in a service manifest of a provisioned -// application type. -type ServiceTypeInfo struct { - ServiceTypeDescription BasicServiceTypeDescription `json:"ServiceTypeDescription,omitempty"` - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ServiceManifestVersion - The version of the service manifest in which this service type is defined. - ServiceManifestVersion *string `json:"ServiceManifestVersion,omitempty"` - // IsServiceGroup - Indicates whether the service is a service group. If it is, the property value is true otherwise false. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceTypeInfo struct. -func (sti *ServiceTypeInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ServiceTypeDescription": - if v != nil { - serviceTypeDescription, err := unmarshalBasicServiceTypeDescription(*v) - if err != nil { - return err - } - sti.ServiceTypeDescription = serviceTypeDescription - } - case "ServiceManifestName": - if v != nil { - var serviceManifestName string - err = json.Unmarshal(*v, &serviceManifestName) - if err != nil { - return err - } - sti.ServiceManifestName = &serviceManifestName - } - case "ServiceManifestVersion": - if v != nil { - var serviceManifestVersion string - err = json.Unmarshal(*v, &serviceManifestVersion) - if err != nil { - return err - } - sti.ServiceManifestVersion = &serviceManifestVersion - } - case "IsServiceGroup": - if v != nil { - var isServiceGroup bool - err = json.Unmarshal(*v, &isServiceGroup) - if err != nil { - return err - } - sti.IsServiceGroup = &isServiceGroup - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeManifest contains the manifest describing a service type registered as part of an application in a -// Service Fabric cluster. -type ServiceTypeManifest struct { - autorest.Response `json:"-"` - // Manifest - The XML manifest as a string. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceUpdateDescription a ServiceUpdateDescription contains all of the information necessary to update a -// service. -type BasicServiceUpdateDescription interface { - AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) - AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) - AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceUpdateDescription a ServiceUpdateDescription contains all of the information necessary to update a -// service. -type ServiceUpdateDescription struct { - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - Possible values include: 'DefaultMoveCost1Zero', 'DefaultMoveCost1Low', 'DefaultMoveCost1Medium', 'DefaultMoveCost1High' - DefaultMoveCost DefaultMoveCost1 `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceUpdateDescription(body []byte) (BasicServiceUpdateDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceUpdateDescriptionServiceKindStateful): - var ssud StatefulServiceUpdateDescription - err := json.Unmarshal(body, &ssud) - return ssud, err - case string(ServiceKindBasicServiceUpdateDescriptionServiceKindStateless): - var ssud StatelessServiceUpdateDescription - err := json.Unmarshal(body, &ssud) - return ssud, err - default: - var sud ServiceUpdateDescription - err := json.Unmarshal(body, &sud) - return sud, err - } -} -func unmarshalBasicServiceUpdateDescriptionArray(body []byte) ([]BasicServiceUpdateDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sudArray := make([]BasicServiceUpdateDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sud, err := unmarshalBasicServiceUpdateDescription(*rawMessage) - if err != nil { - return nil, err - } - sudArray[index] = sud - } - return sudArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) MarshalJSON() ([]byte, error) { - sud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription - objectMap := make(map[string]interface{}) - if sud.Flags != nil { - objectMap["Flags"] = sud.Flags - } - if sud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sud.PlacementConstraints - } - if sud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sud.CorrelationScheme - } - if sud.LoadMetrics != nil { - objectMap["LoadMetrics"] = sud.LoadMetrics - } - if sud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sud.ServicePlacementPolicies - } - if sud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = sud.DefaultMoveCost - } - if sud.ServiceKind != "" { - objectMap["ServiceKind"] = sud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return &sud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &sud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceUpdateDescription struct. -func (sud *ServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - sud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - sud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - sud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost1 - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - sud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SingletonPartitionInformation information about a partition that is singleton. The services with singletone -// partitioning scheme are effectively non-partitioned. They only have one partition. -type SingletonPartitionInformation struct { - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) MarshalJSON() ([]byte, error) { - spi.ServicePartitionKind = ServicePartitionKindSingleton - objectMap := make(map[string]interface{}) - if spi.ID != nil { - objectMap["Id"] = spi.ID - } - if spi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = spi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SingletonPartitionSchemeDescription describes the partition scheme of a singleton-partitioned, or -// non-partitioned service. -type SingletonPartitionSchemeDescription struct { - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) MarshalJSON() ([]byte, error) { - spsd.PartitionScheme = PartitionSchemeSingleton - objectMap := make(map[string]interface{}) - if spsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = spsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return &spsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &spsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradeDescription describes the parameters for starting a cluster upgrade. -type StartClusterUpgradeDescription struct { - // CodeVersion - The cluster code version. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The cluster configuration version. - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // UpgradeKind - Possible values include: 'UpgradeKind1Invalid', 'UpgradeKind1Rolling' - UpgradeKind UpgradeKind1 `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - Possible values include: 'RollingUpgradeMode2Invalid', 'RollingUpgradeMode2UnmonitoredAuto', 'RollingUpgradeMode2UnmonitoredManual', 'RollingUpgradeMode2Monitored' - RollingUpgradeMode RollingUpgradeMode2 `json:"RollingUpgradeMode,omitempty"` - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - ForceRestart *bool `json:"ForceRestart,omitempty"` - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - // EnableDeltaHealthEvaluation - When true, enables delta health evaluation rather than absolute health evaluation after completion of each upgrade domain. - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicyObject `json:"ClusterUpgradeHealthPolicy,omitempty"` - ApplicationHealthPolicyMap *ApplicationHealthPolicies `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartedChaosEvent describes a Chaos event that gets generated when Chaos is started. -type StartedChaosEvent struct { - ChaosParameters *ChaosParameters `json:"ChaosParameters,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StartedChaosEvent. -func (sce StartedChaosEvent) MarshalJSON() ([]byte, error) { - sce.Kind = KindStarted - objectMap := make(map[string]interface{}) - if sce.ChaosParameters != nil { - objectMap["ChaosParameters"] = sce.ChaosParameters - } - if sce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = sce.TimeStampUtc - } - if sce.Kind != "" { - objectMap["Kind"] = sce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceDescription describes a stateful service. -type StatefulServiceDescription struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for QuorumLossWaitDuration (2) and StandByReplicaKeepDuration(4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 1. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 2. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 4. - Flags *int32 `json:"Flags,omitempty"` - // ReplicaRestartWaitDurationSeconds - The duration, in seconds, between when a replica goes down and when a new replica is created. - ReplicaRestartWaitDurationSeconds *int64 `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - // QuorumLossWaitDurationSeconds - The maximum duration, in seconds, for which a partition is allowed to be in a state of quorum loss. - QuorumLossWaitDurationSeconds *int64 `json:"QuorumLossWaitDurationSeconds,omitempty"` - // StandByReplicaKeepDurationSeconds - The definition on how long StandBy replicas should be maintained before being removed. - StandByReplicaKeepDurationSeconds *int64 `json:"StandByReplicaKeepDurationSeconds,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - InitializationData *[]int32 `json:"InitializationData,omitempty"` - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost DefaultMoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - Possible values include: 'ServicePackageActivationMode1SharedProcess', 'ServicePackageActivationMode1ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode1 `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceDescription. -func (ssd StatefulServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssd.TargetReplicaSetSize - } - if ssd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssd.MinReplicaSetSize - } - if ssd.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssd.HasPersistedState - } - if ssd.Flags != nil { - objectMap["Flags"] = ssd.Flags - } - if ssd.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssd.ReplicaRestartWaitDurationSeconds - } - if ssd.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssd.QuorumLossWaitDurationSeconds - } - if ssd.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssd.StandByReplicaKeepDurationSeconds - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.InitializationData != nil { - objectMap["InitializationData"] = ssd.InitializationData - } - objectMap["PartitionDescription"] = ssd.PartitionDescription - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssd.DefaultMoveCost - } - if ssd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssd.IsDefaultMoveCostSpecified - } - if ssd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = ssd.ServicePackageActivationMode - } - if ssd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = ssd.ServiceDNSName - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceDescription struct. -func (ssd *StatefulServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int32 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - ssd.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int32 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - ssd.MinReplicaSetSize = &minReplicaSetSize - } - case "HasPersistedState": - if v != nil { - var hasPersistedState bool - err = json.Unmarshal(*v, &hasPersistedState) - if err != nil { - return err - } - ssd.HasPersistedState = &hasPersistedState - } - case "Flags": - if v != nil { - var flags int32 - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssd.Flags = &flags - } - case "ReplicaRestartWaitDurationSeconds": - if v != nil { - var replicaRestartWaitDurationSeconds int64 - err = json.Unmarshal(*v, &replicaRestartWaitDurationSeconds) - if err != nil { - return err - } - ssd.ReplicaRestartWaitDurationSeconds = &replicaRestartWaitDurationSeconds - } - case "QuorumLossWaitDurationSeconds": - if v != nil { - var quorumLossWaitDurationSeconds int64 - err = json.Unmarshal(*v, &quorumLossWaitDurationSeconds) - if err != nil { - return err - } - ssd.QuorumLossWaitDurationSeconds = &quorumLossWaitDurationSeconds - } - case "StandByReplicaKeepDurationSeconds": - if v != nil { - var standByReplicaKeepDurationSeconds int64 - err = json.Unmarshal(*v, &standByReplicaKeepDurationSeconds) - if err != nil { - return err - } - ssd.StandByReplicaKeepDurationSeconds = &standByReplicaKeepDurationSeconds - } - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - ssd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - ssd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - ssd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - ssd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - ssd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - ssd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - ssd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode1 - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - ssd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - ssd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceInfo information about a stateful Service Fabric service. -type StatefulServiceInfo struct { - // HasPersistedState - Whether the service has persisted state. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - Possible values include: 'HealthState7Invalid', 'HealthState7Ok', 'HealthState7Warning', 'HealthState7Error', 'HealthState7Unknown' - HealthState HealthState7 `json:"HealthState,omitempty"` - // ServiceStatus - Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceInfo. -func (ssi StatefulServiceInfo) MarshalJSON() ([]byte, error) { - ssi.ServiceKind = ServiceKindBasicServiceInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if ssi.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssi.HasPersistedState - } - if ssi.ID != nil { - objectMap["Id"] = ssi.ID - } - if ssi.Name != nil { - objectMap["Name"] = ssi.Name - } - if ssi.TypeName != nil { - objectMap["TypeName"] = ssi.TypeName - } - if ssi.ManifestVersion != nil { - objectMap["ManifestVersion"] = ssi.ManifestVersion - } - if ssi.HealthState != "" { - objectMap["HealthState"] = ssi.HealthState - } - if ssi.ServiceStatus != "" { - objectMap["ServiceStatus"] = ssi.ServiceStatus - } - if ssi.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = ssi.IsServiceGroup - } - if ssi.ServiceKind != "" { - objectMap["ServiceKind"] = ssi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServicePartitionInfo information about a partition of a stateful Service Fabric service.. -type StatefulServicePartitionInfo struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int64 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int64 `json:"MinReplicaSetSize,omitempty"` - // LastQuorumLossDuration - The duration for which this partition was in quorum loss. If the partition is currently in quorum loss, it returns the duration since it has been in that state. This field is using ISO8601 format for specifying the duration. - LastQuorumLossDuration *string `json:"LastQuorumLossDuration,omitempty"` - CurrentConfigurationEpoch *Epoch `json:"CurrentConfigurationEpoch,omitempty"` - // HealthState - Possible values include: 'HealthState5Invalid', 'HealthState5Ok', 'HealthState5Warning', 'HealthState5Error', 'HealthState5Unknown' - HealthState HealthState5 `json:"HealthState,omitempty"` - // PartitionStatus - Possible values include: 'PartitionStatusInvalid', 'PartitionStatusReady', 'PartitionStatusNotReady', 'PartitionStatusInQuorumLoss', 'PartitionStatusReconfiguring', 'PartitionStatusDeleting' - PartitionStatus PartitionStatus `json:"PartitionStatus,omitempty"` - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) MarshalJSON() ([]byte, error) { - sspi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if sspi.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = sspi.TargetReplicaSetSize - } - if sspi.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = sspi.MinReplicaSetSize - } - if sspi.LastQuorumLossDuration != nil { - objectMap["LastQuorumLossDuration"] = sspi.LastQuorumLossDuration - } - if sspi.CurrentConfigurationEpoch != nil { - objectMap["CurrentConfigurationEpoch"] = sspi.CurrentConfigurationEpoch - } - if sspi.HealthState != "" { - objectMap["HealthState"] = sspi.HealthState - } - if sspi.PartitionStatus != "" { - objectMap["PartitionStatus"] = sspi.PartitionStatus - } - objectMap["PartitionInformation"] = sspi.PartitionInformation - if sspi.ServiceKind != "" { - objectMap["ServiceKind"] = sspi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServicePartitionInfo struct. -func (sspi *StatefulServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int64 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - sspi.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int64 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - sspi.MinReplicaSetSize = &minReplicaSetSize - } - case "LastQuorumLossDuration": - if v != nil { - var lastQuorumLossDuration string - err = json.Unmarshal(*v, &lastQuorumLossDuration) - if err != nil { - return err - } - sspi.LastQuorumLossDuration = &lastQuorumLossDuration - } - case "CurrentConfigurationEpoch": - if v != nil { - var currentConfigurationEpoch Epoch - err = json.Unmarshal(*v, ¤tConfigurationEpoch) - if err != nil { - return err - } - sspi.CurrentConfigurationEpoch = ¤tConfigurationEpoch - } - case "HealthState": - if v != nil { - var healthState HealthState5 - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - sspi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus PartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - sspi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - sspi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sspi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaHealth represents the health of the stateful service replica. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type StatefulServiceReplicaHealth struct { - ReplicaID *string `json:"ReplicaId,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) MarshalJSON() ([]byte, error) { - ssrh.ServiceKind = ServiceKindBasicReplicaHealthServiceKindStateful - objectMap := make(map[string]interface{}) - if ssrh.ReplicaID != nil { - objectMap["ReplicaId"] = ssrh.ReplicaID - } - if ssrh.PartitionID != nil { - objectMap["PartitionId"] = ssrh.PartitionID - } - if ssrh.ServiceKind != "" { - objectMap["ServiceKind"] = ssrh.ServiceKind - } - if ssrh.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssrh.AggregatedHealthState - } - if ssrh.HealthEvents != nil { - objectMap["HealthEvents"] = ssrh.HealthEvents - } - if ssrh.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ssrh.UnhealthyEvaluations - } - if ssrh.HealthStatistics != nil { - objectMap["HealthStatistics"] = ssrh.HealthStatistics - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return &ssrh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &ssrh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaHealthState represents the health state of the stateful service replica, which contains -// the replica id and the aggregated health state. -type StatefulServiceReplicaHealthState struct { - ReplicaID *string `json:"ReplicaId,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) MarshalJSON() ([]byte, error) { - ssrhs.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindStateful - objectMap := make(map[string]interface{}) - if ssrhs.ReplicaID != nil { - objectMap["ReplicaId"] = ssrhs.ReplicaID - } - if ssrhs.PartitionID != nil { - objectMap["PartitionId"] = ssrhs.PartitionID - } - if ssrhs.ServiceKind != "" { - objectMap["ServiceKind"] = ssrhs.ServiceKind - } - if ssrhs.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssrhs.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return &ssrhs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &ssrhs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaInfo represents a stateful service replica. This includes information about the identity, -// role, status, health, node name, uptime, and other details about the replica. -type StatefulServiceReplicaInfo struct { - // ReplicaRole - Possible values include: 'ReplicaRole1Unknown', 'ReplicaRole1None', 'ReplicaRole1Primary', 'ReplicaRole1IdleSecondary', 'ReplicaRole1ActiveSecondary' - ReplicaRole ReplicaRole1 `json:"ReplicaRole,omitempty"` - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - Possible values include: 'HealthState6Invalid', 'HealthState6Ok', 'HealthState6Warning', 'HealthState6Error', 'HealthState6Unknown' - HealthState HealthState6 `json:"HealthState,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) MarshalJSON() ([]byte, error) { - ssri.ServiceKind = ServiceKindBasicReplicaInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if ssri.ReplicaRole != "" { - objectMap["ReplicaRole"] = ssri.ReplicaRole - } - if ssri.ReplicaID != nil { - objectMap["ReplicaId"] = ssri.ReplicaID - } - if ssri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ssri.ReplicaStatus - } - if ssri.HealthState != "" { - objectMap["HealthState"] = ssri.HealthState - } - if ssri.NodeName != nil { - objectMap["NodeName"] = ssri.NodeName - } - if ssri.Address != nil { - objectMap["Address"] = ssri.Address - } - if ssri.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ssri.LastInBuildDurationInSeconds - } - if ssri.ServiceKind != "" { - objectMap["ServiceKind"] = ssri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return &ssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceTypeDescription describes a stateful service type defined in the service manifest of a -// provisioned application type. -type StatefulServiceTypeDescription struct { - // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless1' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) MarshalJSON() ([]byte, error) { - sstd.Kind = KindStateful - objectMap := make(map[string]interface{}) - if sstd.HasPersistedState != nil { - objectMap["HasPersistedState"] = sstd.HasPersistedState - } - if sstd.IsStateful != nil { - objectMap["IsStateful"] = sstd.IsStateful - } - if sstd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sstd.ServiceTypeName - } - if sstd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sstd.PlacementConstraints - } - if sstd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sstd.ServicePlacementPolicies - } - if sstd.Extensions != nil { - objectMap["Extensions"] = sstd.Extensions - } - if sstd.Kind != "" { - objectMap["Kind"] = sstd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceTypeDescription struct. -func (sstd *StatefulServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HasPersistedState": - if v != nil { - var hasPersistedState bool - err = json.Unmarshal(*v, &hasPersistedState) - if err != nil { - return err - } - sstd.HasPersistedState = &hasPersistedState - } - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - sstd.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sstd.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sstd.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sstd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - sstd.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - sstd.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceUpdateDescription describes an update for a stateful service. -type StatefulServiceUpdateDescription struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - // ReplicaRestartWaitDurationSeconds - The duration, in seconds, between when a replica goes down and when a new replica is created. - ReplicaRestartWaitDurationSeconds *string `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - // QuorumLossWaitDurationSeconds - The maximum duration, in seconds, for which a partition is allowed to be in a state of quorum loss. - QuorumLossWaitDurationSeconds *string `json:"QuorumLossWaitDurationSeconds,omitempty"` - // StandByReplicaKeepDurationSeconds - The definition on how long StandBy replicas should be maintained before being removed. - StandByReplicaKeepDurationSeconds *string `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - Possible values include: 'DefaultMoveCost1Zero', 'DefaultMoveCost1Low', 'DefaultMoveCost1Medium', 'DefaultMoveCost1High' - DefaultMoveCost DefaultMoveCost1 `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) MarshalJSON() ([]byte, error) { - ssud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssud.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssud.TargetReplicaSetSize - } - if ssud.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssud.MinReplicaSetSize - } - if ssud.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssud.ReplicaRestartWaitDurationSeconds - } - if ssud.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssud.QuorumLossWaitDurationSeconds - } - if ssud.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssud.StandByReplicaKeepDurationSeconds - } - if ssud.Flags != nil { - objectMap["Flags"] = ssud.Flags - } - if ssud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssud.PlacementConstraints - } - if ssud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssud.CorrelationScheme - } - if ssud.LoadMetrics != nil { - objectMap["LoadMetrics"] = ssud.LoadMetrics - } - if ssud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssud.ServicePlacementPolicies - } - if ssud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssud.DefaultMoveCost - } - if ssud.ServiceKind != "" { - objectMap["ServiceKind"] = ssud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceUpdateDescription struct. -func (ssud *StatefulServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int32 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - ssud.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int32 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - ssud.MinReplicaSetSize = &minReplicaSetSize - } - case "ReplicaRestartWaitDurationSeconds": - if v != nil { - var replicaRestartWaitDurationSeconds string - err = json.Unmarshal(*v, &replicaRestartWaitDurationSeconds) - if err != nil { - return err - } - ssud.ReplicaRestartWaitDurationSeconds = &replicaRestartWaitDurationSeconds - } - case "QuorumLossWaitDurationSeconds": - if v != nil { - var quorumLossWaitDurationSeconds string - err = json.Unmarshal(*v, &quorumLossWaitDurationSeconds) - if err != nil { - return err - } - ssud.QuorumLossWaitDurationSeconds = &quorumLossWaitDurationSeconds - } - case "StandByReplicaKeepDurationSeconds": - if v != nil { - var standByReplicaKeepDurationSeconds string - err = json.Unmarshal(*v, &standByReplicaKeepDurationSeconds) - if err != nil { - return err - } - ssud.StandByReplicaKeepDurationSeconds = &standByReplicaKeepDurationSeconds - } - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - ssud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost1 - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceDescription describes a stateless service. -type StatelessServiceDescription struct { - // InstanceCount - The instance count. - InstanceCount *int32 `json:"InstanceCount,omitempty"` - ApplicationName *string `json:"ApplicationName,omitempty"` - ServiceName *string `json:"ServiceName,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - InitializationData *[]int32 `json:"InitializationData,omitempty"` - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost DefaultMoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - Possible values include: 'ServicePackageActivationMode1SharedProcess', 'ServicePackageActivationMode1ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode1 `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceDescription. -func (ssd StatelessServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssd.InstanceCount != nil { - objectMap["InstanceCount"] = ssd.InstanceCount - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.InitializationData != nil { - objectMap["InitializationData"] = ssd.InitializationData - } - objectMap["PartitionDescription"] = ssd.PartitionDescription - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssd.DefaultMoveCost - } - if ssd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssd.IsDefaultMoveCostSpecified - } - if ssd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = ssd.ServicePackageActivationMode - } - if ssd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = ssd.ServiceDNSName - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceDescription struct. -func (ssd *StatelessServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int32 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - ssd.InstanceCount = &instanceCount - } - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - ssd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - ssd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - ssd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - ssd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - ssd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - ssd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - ssd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode1 - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - ssd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - ssd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInfo information about a stateless Service Fabric service. -type StatelessServiceInfo struct { - ID *string `json:"Id,omitempty"` - Name *string `json:"Name,omitempty"` - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - Possible values include: 'HealthState7Invalid', 'HealthState7Ok', 'HealthState7Warning', 'HealthState7Error', 'HealthState7Unknown' - HealthState HealthState7 `json:"HealthState,omitempty"` - // ServiceStatus - Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInfo. -func (ssi StatelessServiceInfo) MarshalJSON() ([]byte, error) { - ssi.ServiceKind = ServiceKindBasicServiceInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if ssi.ID != nil { - objectMap["Id"] = ssi.ID - } - if ssi.Name != nil { - objectMap["Name"] = ssi.Name - } - if ssi.TypeName != nil { - objectMap["TypeName"] = ssi.TypeName - } - if ssi.ManifestVersion != nil { - objectMap["ManifestVersion"] = ssi.ManifestVersion - } - if ssi.HealthState != "" { - objectMap["HealthState"] = ssi.HealthState - } - if ssi.ServiceStatus != "" { - objectMap["ServiceStatus"] = ssi.ServiceStatus - } - if ssi.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = ssi.IsServiceGroup - } - if ssi.ServiceKind != "" { - objectMap["ServiceKind"] = ssi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceHealth represents the health of the statelss service instance. -// Contains the instance aggregated health state, the health events and the unhealthy evaluations. -type StatelessServiceInstanceHealth struct { - InstanceID *string `json:"InstanceId,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState1Invalid', 'AggregatedHealthState1Ok', 'AggregatedHealthState1Warning', 'AggregatedHealthState1Error', 'AggregatedHealthState1Unknown' - AggregatedHealthState AggregatedHealthState1 `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) MarshalJSON() ([]byte, error) { - ssih.ServiceKind = ServiceKindBasicReplicaHealthServiceKindStateless - objectMap := make(map[string]interface{}) - if ssih.InstanceID != nil { - objectMap["InstanceId"] = ssih.InstanceID - } - if ssih.PartitionID != nil { - objectMap["PartitionId"] = ssih.PartitionID - } - if ssih.ServiceKind != "" { - objectMap["ServiceKind"] = ssih.ServiceKind - } - if ssih.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssih.AggregatedHealthState - } - if ssih.HealthEvents != nil { - objectMap["HealthEvents"] = ssih.HealthEvents - } - if ssih.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ssih.UnhealthyEvaluations - } - if ssih.HealthStatistics != nil { - objectMap["HealthStatistics"] = ssih.HealthStatistics - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return &ssih, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &ssih, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceHealthState represents the health state of the stateless service instance, which -// contains the instance id and the aggregated health state. -type StatelessServiceInstanceHealthState struct { - ReplicaID *string `json:"ReplicaId,omitempty"` - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - Possible values include: 'AggregatedHealthState2Invalid', 'AggregatedHealthState2Ok', 'AggregatedHealthState2Warning', 'AggregatedHealthState2Error', 'AggregatedHealthState2Unknown' - AggregatedHealthState AggregatedHealthState2 `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) MarshalJSON() ([]byte, error) { - ssihs.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindStateless - objectMap := make(map[string]interface{}) - if ssihs.ReplicaID != nil { - objectMap["ReplicaId"] = ssihs.ReplicaID - } - if ssihs.PartitionID != nil { - objectMap["PartitionId"] = ssihs.PartitionID - } - if ssihs.ServiceKind != "" { - objectMap["ServiceKind"] = ssihs.ServiceKind - } - if ssihs.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssihs.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return &ssihs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &ssihs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceInfo represents a stateless service instance. This includes information about the -// identity, status, health, node name, uptime, and other details about the instance. -type StatelessServiceInstanceInfo struct { - InstanceID *string `json:"InstanceId,omitempty"` - // ReplicaStatus - Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - Possible values include: 'HealthState6Invalid', 'HealthState6Ok', 'HealthState6Warning', 'HealthState6Error', 'HealthState6Unknown' - HealthState HealthState6 `json:"HealthState,omitempty"` - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) MarshalJSON() ([]byte, error) { - ssii.ServiceKind = ServiceKindBasicReplicaInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if ssii.InstanceID != nil { - objectMap["InstanceId"] = ssii.InstanceID - } - if ssii.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ssii.ReplicaStatus - } - if ssii.HealthState != "" { - objectMap["HealthState"] = ssii.HealthState - } - if ssii.NodeName != nil { - objectMap["NodeName"] = ssii.NodeName - } - if ssii.Address != nil { - objectMap["Address"] = ssii.Address - } - if ssii.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ssii.LastInBuildDurationInSeconds - } - if ssii.ServiceKind != "" { - objectMap["ServiceKind"] = ssii.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return &ssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServicePartitionInfo information about a partition of a stateless Service Fabric service. -type StatelessServicePartitionInfo struct { - // InstanceCount - Number of instances of this partition. - InstanceCount *int64 `json:"InstanceCount,omitempty"` - // HealthState - Possible values include: 'HealthState5Invalid', 'HealthState5Ok', 'HealthState5Warning', 'HealthState5Error', 'HealthState5Unknown' - HealthState HealthState5 `json:"HealthState,omitempty"` - // PartitionStatus - Possible values include: 'PartitionStatusInvalid', 'PartitionStatusReady', 'PartitionStatusNotReady', 'PartitionStatusInQuorumLoss', 'PartitionStatusReconfiguring', 'PartitionStatusDeleting' - PartitionStatus PartitionStatus `json:"PartitionStatus,omitempty"` - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) MarshalJSON() ([]byte, error) { - sspi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if sspi.InstanceCount != nil { - objectMap["InstanceCount"] = sspi.InstanceCount - } - if sspi.HealthState != "" { - objectMap["HealthState"] = sspi.HealthState - } - if sspi.PartitionStatus != "" { - objectMap["PartitionStatus"] = sspi.PartitionStatus - } - objectMap["PartitionInformation"] = sspi.PartitionInformation - if sspi.ServiceKind != "" { - objectMap["ServiceKind"] = sspi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServicePartitionInfo struct. -func (sspi *StatelessServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int64 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - sspi.InstanceCount = &instanceCount - } - case "HealthState": - if v != nil { - var healthState HealthState5 - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - sspi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus PartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - sspi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - sspi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sspi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceTypeDescription describes a stateless service type defined in the service manifest of a -// provisioned application type. -type StatelessServiceTypeDescription struct { - // UseImplicitHost - A flag indicating if this type is not implemented and hosted by a user service process, but is implicitly hosted by a system created process. This value is true for services using the guest executable services, false otherwise. - UseImplicitHost *bool `json:"UseImplicitHost,omitempty"` - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless1' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) MarshalJSON() ([]byte, error) { - sstd.Kind = KindStateless1 - objectMap := make(map[string]interface{}) - if sstd.UseImplicitHost != nil { - objectMap["UseImplicitHost"] = sstd.UseImplicitHost - } - if sstd.IsStateful != nil { - objectMap["IsStateful"] = sstd.IsStateful - } - if sstd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sstd.ServiceTypeName - } - if sstd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sstd.PlacementConstraints - } - if sstd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sstd.ServicePlacementPolicies - } - if sstd.Extensions != nil { - objectMap["Extensions"] = sstd.Extensions - } - if sstd.Kind != "" { - objectMap["Kind"] = sstd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceTypeDescription struct. -func (sstd *StatelessServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "UseImplicitHost": - if v != nil { - var useImplicitHost bool - err = json.Unmarshal(*v, &useImplicitHost) - if err != nil { - return err - } - sstd.UseImplicitHost = &useImplicitHost - } - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - sstd.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sstd.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sstd.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sstd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - sstd.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - sstd.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceUpdateDescription describes an update for a stateless service. -type StatelessServiceUpdateDescription struct { - // InstanceCount - The instance count. - InstanceCount *int32 `json:"InstanceCount,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - Possible values include: 'DefaultMoveCost1Zero', 'DefaultMoveCost1Low', 'DefaultMoveCost1Medium', 'DefaultMoveCost1High' - DefaultMoveCost DefaultMoveCost1 `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) MarshalJSON() ([]byte, error) { - ssud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssud.InstanceCount != nil { - objectMap["InstanceCount"] = ssud.InstanceCount - } - if ssud.Flags != nil { - objectMap["Flags"] = ssud.Flags - } - if ssud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssud.PlacementConstraints - } - if ssud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssud.CorrelationScheme - } - if ssud.LoadMetrics != nil { - objectMap["LoadMetrics"] = ssud.LoadMetrics - } - if ssud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssud.ServicePlacementPolicies - } - if ssud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssud.DefaultMoveCost - } - if ssud.ServiceKind != "" { - objectMap["ServiceKind"] = ssud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceUpdateDescription struct. -func (ssud *StatelessServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int32 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - ssud.InstanceCount = &instanceCount - } - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - ssud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost DefaultMoveCost1 - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StoppedChaosEvent describes a Chaos event that gets generated when Chaos stops because either the user issued a -// stop or the time to run was up. -type StoppedChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StoppedChaosEvent. -func (sce StoppedChaosEvent) MarshalJSON() ([]byte, error) { - sce.Kind = KindStopped - objectMap := make(map[string]interface{}) - if sce.Reason != nil { - objectMap["Reason"] = sce.Reason - } - if sce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = sce.TimeStampUtc - } - if sce.Kind != "" { - objectMap["Kind"] = sce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// String ... -type String struct { - autorest.Response `json:"-"` - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StringPropertyValue describes a Service Fabric property value of type String. -type StringPropertyValue struct { - // Data - The data of the property value. - Data *string `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StringPropertyValue. -func (spv StringPropertyValue) MarshalJSON() ([]byte, error) { - spv.Kind = KindString - objectMap := make(map[string]interface{}) - if spv.Data != nil { - objectMap["Data"] = spv.Data - } - if spv.Kind != "" { - objectMap["Kind"] = spv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return &spv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &spv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SuccessfulPropertyBatchInfo derived from PropertyBatchInfo. Represents the property batch succeeding. Contains -// the results of any "Get" operations in the batch. -type SuccessfulPropertyBatchInfo struct { - // Properties - A map containing the properties that were requested through any "Get" property batch operations. The key represents the index of the "Get" operation in the original request, in string form. The value is the property. If a property is not found, it will not be in the map. - Properties map[string]*PropertyInfo `json:"Properties"` - // Kind - Possible values include: 'KindPropertyBatchInfo', 'KindSuccessful', 'KindFailed' - Kind KindBasicPropertyBatchInfo `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) MarshalJSON() ([]byte, error) { - spbi.Kind = KindSuccessful - objectMap := make(map[string]interface{}) - if spbi.Properties != nil { - objectMap["Properties"] = spbi.Properties - } - if spbi.Kind != "" { - objectMap["Kind"] = spbi.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSuccessfulPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) { - return &spbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsFailedPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsPropertyBatchInfo() (*PropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsBasicPropertyBatchInfo() (BasicPropertyBatchInfo, bool) { - return &spbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SystemApplicationHealthEvaluation represents health evaluation for the fabric:/System application, containing -// information about the data and the algorithm used by health store to evaluate health. The evaluation is returned -// only when the aggregated health state of the cluster is either Error or Warning. -type SystemApplicationHealthEvaluation struct { - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - sahe.Kind = KindSystemApplication - objectMap := make(map[string]interface{}) - if sahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = sahe.UnhealthyEvaluations - } - if sahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = sahe.AggregatedHealthState - } - if sahe.Description != nil { - objectMap["Description"] = sahe.Description - } - if sahe.Kind != "" { - objectMap["Kind"] = sahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// TestErrorChaosEvent describes a Chaos event that gets generated when an unexpected event occurs in the Chaos -// engine. -// For example, due to the cluster snapshot being inconsistent, while faulting a faultable entity, Chaos found that -// the entity was alreay faulted -- which would be an unexpected event. -type TestErrorChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) MarshalJSON() ([]byte, error) { - tece.Kind = KindTestError - objectMap := make(map[string]interface{}) - if tece.Reason != nil { - objectMap["Reason"] = tece.Reason - } - if tece.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = tece.TimeStampUtc - } - if tece.Kind != "" { - objectMap["Kind"] = tece.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return &tece, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &tece, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UniformInt64RangePartitionSchemeDescription describes a partitioning scheme where an integer range is allocated -// evenly across a number of partitions. -type UniformInt64RangePartitionSchemeDescription struct { - // Count - The number of partitions. - Count *int32 `json:"Count,omitempty"` - // LowKey - String indicating the lower bound of the partition key range that - // should be split between the partition ‘Count’ - LowKey *string `json:"LowKey,omitempty"` - // HighKey - String indicating the upper bound of the partition key range that - // should be split between the partition ‘Count’ - HighKey *string `json:"HighKey,omitempty"` - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' - PartitionScheme PartitionScheme `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) MarshalJSON() ([]byte, error) { - ui6rpsd.PartitionScheme = PartitionSchemeUniformInt64Range - objectMap := make(map[string]interface{}) - if ui6rpsd.Count != nil { - objectMap["Count"] = ui6rpsd.Count - } - if ui6rpsd.LowKey != nil { - objectMap["LowKey"] = ui6rpsd.LowKey - } - if ui6rpsd.HighKey != nil { - objectMap["HighKey"] = ui6rpsd.HighKey - } - if ui6rpsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = ui6rpsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return &ui6rpsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &ui6rpsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionFabricDescription describes the parameters for unprovisioning a cluster. -type UnprovisionFabricDescription struct { - // CodeVersion - The cluster code package version. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The cluster manifest version. - ConfigVersion *string `json:"ConfigVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradeDescription parameters for updating a cluster upgrade. -type UpdateClusterUpgradeDescription struct { - // UpgradeKind - Possible values include: 'UpgradeKind2Invalid', 'UpgradeKind2Rolling', 'UpgradeKind2RollingForceRestart' - UpgradeKind UpgradeKind2 `json:"UpgradeKind,omitempty"` - UpdateDescription *RollingUpgradeUpdateDescription `json:"UpdateDescription,omitempty"` - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicyObject `json:"ClusterUpgradeHealthPolicy,omitempty"` - ApplicationHealthPolicyMap *ApplicationHealthPolicies `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainDeltaNodesCheckHealthEvaluation represents health evaluation for delta unhealthy cluster nodes in -// an upgrade domain, containing health evaluations for each unhealthy node that impacted current aggregated health -// state. -// Can be returned during cluster upgrade when cluster aggregated health state is Warning or Error. -type UpgradeDomainDeltaNodesCheckHealthEvaluation struct { - // UpgradeDomainName - Name of the upgrade domain where nodes health is currently evaluated. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - // BaselineErrorCount - Number of upgrade domain nodes with aggregated heath state Error in the health store at the beginning of the cluster upgrade. - BaselineErrorCount *int64 `json:"BaselineErrorCount,omitempty"` - // BaselineTotalCount - Total number of upgrade domain nodes in the health store at the beginning of the cluster upgrade. - BaselineTotalCount *int64 `json:"BaselineTotalCount,omitempty"` - // MaxPercentDeltaUnhealthyNodes - Maximum allowed percentage of upgrade domain delta unhealthy nodes from the ClusterUpgradeHealthPolicy. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // TotalCount - Total number of upgrade domain nodes in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - uddnche.Kind = KindUpgradeDomainDeltaNodesCheck - objectMap := make(map[string]interface{}) - if uddnche.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = uddnche.UpgradeDomainName - } - if uddnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = uddnche.BaselineErrorCount - } - if uddnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = uddnche.BaselineTotalCount - } - if uddnche.MaxPercentDeltaUnhealthyNodes != nil { - objectMap["MaxPercentDeltaUnhealthyNodes"] = uddnche.MaxPercentDeltaUnhealthyNodes - } - if uddnche.TotalCount != nil { - objectMap["TotalCount"] = uddnche.TotalCount - } - if uddnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = uddnche.UnhealthyEvaluations - } - if uddnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = uddnche.AggregatedHealthState - } - if uddnche.Description != nil { - objectMap["Description"] = uddnche.Description - } - if uddnche.Kind != "" { - objectMap["Kind"] = uddnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainInfo information about an upgrade domain. -type UpgradeDomainInfo struct { - Name *string `json:"Name,omitempty"` - // State - Possible values include: 'StateInvalid', 'StatePending', 'StateInProgress', 'StateCompleted' - State State `json:"State,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainNodesHealthEvaluation represents health evaluation for cluster nodes in an upgrade domain, -// containing health evaluations for each unhealthy node that impacted current aggregated health state. Can be -// returned when evaluating cluster health during cluster upgrade and the aggregated health state is either Error -// or Warning. -type UpgradeDomainNodesHealthEvaluation struct { - // UpgradeDomainName - Name of the upgrade domain where nodes health is currently evaluated. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - // MaxPercentUnhealthyNodes - Maximum allowed percentage of unhealthy nodes from the ClusterHealthPolicy. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes in the current upgrade domain. - TotalCount *int64 `json:"TotalCount,omitempty"` - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - AggregatedHealthState AggregatedHealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind KindBasicHealthEvaluation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) MarshalJSON() ([]byte, error) { - udnhe.Kind = KindUpgradeDomainNodes - objectMap := make(map[string]interface{}) - if udnhe.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = udnhe.UpgradeDomainName - } - if udnhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = udnhe.MaxPercentUnhealthyNodes - } - if udnhe.TotalCount != nil { - objectMap["TotalCount"] = udnhe.TotalCount - } - if udnhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = udnhe.UnhealthyEvaluations - } - if udnhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = udnhe.AggregatedHealthState - } - if udnhe.Description != nil { - objectMap["Description"] = udnhe.Description - } - if udnhe.Kind != "" { - objectMap["Kind"] = udnhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return &udnhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &udnhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ValidationFailedChaosEvent chaos event corresponding to a failure during validation. -type ValidationFailedChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) MarshalJSON() ([]byte, error) { - vfce.Kind = KindValidationFailed - objectMap := make(map[string]interface{}) - if vfce.Reason != nil { - objectMap["Reason"] = vfce.Reason - } - if vfce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = vfce.TimeStampUtc - } - if vfce.Kind != "" { - objectMap["Kind"] = vfce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return &vfce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &vfce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForInbuildReplicaSafetyCheck safety check that waits for the replica build operation to finish. This -// indiciates that there is a replica that is going through the copy or is providing data for building another -// replica. Bring the node down will abort this copy operation which are typoically expensive involving data -// movements. -type WaitForInbuildReplicaSafetyCheck struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) MarshalJSON() ([]byte, error) { - wfirsc.Kind = KindWaitForInbuildReplica - objectMap := make(map[string]interface{}) - if wfirsc.PartitionID != nil { - objectMap["PartitionId"] = wfirsc.PartitionID - } - if wfirsc.Kind != "" { - objectMap["Kind"] = wfirsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForPrimaryPlacementSafetyCheck safety check that waits for the primary replica that was moved out of the -// node due to upgrade to be placed back again on that node. -type WaitForPrimaryPlacementSafetyCheck struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) MarshalJSON() ([]byte, error) { - wfppsc.Kind = KindWaitForPrimaryPlacement - objectMap := make(map[string]interface{}) - if wfppsc.PartitionID != nil { - objectMap["PartitionId"] = wfppsc.PartitionID - } - if wfppsc.Kind != "" { - objectMap["Kind"] = wfppsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForPrimarySwapSafetyCheck safety check that waits for the primary replica to be moved out of the node before -// starting an upgrade to ensure the availability of the primary replica for the partition. -type WaitForPrimarySwapSafetyCheck struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) MarshalJSON() ([]byte, error) { - wfpssc.Kind = KindWaitForPrimarySwap - objectMap := make(map[string]interface{}) - if wfpssc.PartitionID != nil { - objectMap["PartitionId"] = wfpssc.PartitionID - } - if wfpssc.Kind != "" { - objectMap["Kind"] = wfpssc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForReconfigurationSafetyCheck safety check that waits for the current reconfiguration of the partition to be -// completed before starting an upgrade. -type WaitForReconfigurationSafetyCheck struct { - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) MarshalJSON() ([]byte, error) { - wfrsc.Kind = KindWaitForReconfiguration - objectMap := make(map[string]interface{}) - if wfrsc.PartitionID != nil { - objectMap["PartitionId"] = wfrsc.PartitionID - } - if wfrsc.Kind != "" { - objectMap["Kind"] = wfrsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitingChaosEvent describes a Chaos event that gets generated when Chaos is waiting for the cluster to become -// ready for faulting, for example, Chaos may be waiting for the on-going upgrade to finish. -type WaitingChaosEvent struct { - Reason *string `json:"Reason,omitempty"` - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitingChaosEvent. -func (wce WaitingChaosEvent) MarshalJSON() ([]byte, error) { - wce.Kind = KindWaiting - objectMap := make(map[string]interface{}) - if wce.Reason != nil { - objectMap["Reason"] = wce.Reason - } - if wce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = wce.TimeStampUtc - } - if wce.Kind != "" { - objectMap["Kind"] = wce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return &wce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &wce, true -} diff --git a/services/servicefabric/6.0/servicefabric/version.go b/services/servicefabric/6.0/servicefabric/version.go deleted file mode 100644 index b9606bbaf2bb..000000000000 --- a/services/servicefabric/6.0/servicefabric/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package servicefabric - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " servicefabric/6.0.0.1" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/services/servicefabric/6.1/servicefabric/client.go b/services/servicefabric/6.1/servicefabric/client.go deleted file mode 100644 index f033892bb6f5..000000000000 --- a/services/servicefabric/6.1/servicefabric/client.go +++ /dev/null @@ -1,14651 +0,0 @@ -// Package servicefabric implements the Azure ARM Servicefabric service API version 6.1.2. -// -// Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services. -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "context" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "github.com/satori/go.uuid" - "net/http" -) - -const ( - // DefaultBaseURI is the default URI used for the service Servicefabric - DefaultBaseURI = "http://localhost:19080" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BaseClient is the base client for Servicefabric. -type BaseClient struct { - autorest.Client - BaseURI string -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// New creates an instance of the BaseClient client. -func New() BaseClient { - return NewWithBaseURI(DefaultBaseURI) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NewWithBaseURI creates an instance of the BaseClient client. -func NewWithBaseURI(baseURI string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - BaseURI: baseURI, - } -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperation the following is a list of APIs that start fault operations that may be cancelled using -// CancelOperation - -// - StartDataLoss -// - StartQuorumLoss -// - StartPartitionRestart -// - StartNodeTransition -// -// If force is false, then the specified user-induced operation will be gracefully stopped and cleaned up. If force is -// true, the command will be aborted, and some internal state -// may be left behind. Specifying force as true should be used with care. Calling this API with force set to true is -// not allowed until this API has already -// been called on the same test command with force set to false first, or unless the test command already has an -// OperationState of OperationState.RollingBack. -// Clarification: OperationState.RollingBack means that the system will/is be cleaning up internal system state caused -// by executing the command. It will not restore data if the -// test command was to cause data loss. For example, if you call StartDataLoss then call this API, the system will -// only clean up internal state from running the command. -// It will not restore the target partition's data, if the command progressed far enough to cause data loss. -// -// Important note: if this API is invoked with force==true, internal state may be left behind. -// Parameters: -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// force - indicates whether to gracefully rollback and clean up internal system state modified by executing -// the user-induced operation. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CancelOperation(ctx context.Context, operationID uuid.UUID, force bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CancelOperation", err.Error()) - } - - req, err := client.CancelOperationPreparer(ctx, operationID, force, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", nil, "Failure preparing request") - return - } - - resp, err := client.CancelOperationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure sending request") - return - } - - result, err = client.CancelOperationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelOperation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationPreparer prepares the CancelOperation request. -func (client BaseClient) CancelOperationPreparer(ctx context.Context, operationID uuid.UUID, force bool, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Force": autorest.Encode("query", force), - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Faults/$/Cancel"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationSender sends the CancelOperation request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CancelOperationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelOperationResponder handles the response to the CancelOperation request. The method always -// closes the http.Response Body. -func (client BaseClient) CancelOperationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTask this API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// repairTaskCancelDescription - describes the repair task to be cancelled. -func (client BaseClient) CancelRepairTask(ctx context.Context, repairTaskCancelDescription RepairTaskCancelDescription) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskCancelDescription, - Constraints: []validation.Constraint{{Target: "repairTaskCancelDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CancelRepairTask", err.Error()) - } - - req, err := client.CancelRepairTaskPreparer(ctx, repairTaskCancelDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.CancelRepairTaskSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure sending request") - return - } - - result, err = client.CancelRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CancelRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTaskPreparer prepares the CancelRepairTask request. -func (client BaseClient) CancelRepairTaskPreparer(ctx context.Context, repairTaskCancelDescription RepairTaskCancelDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/CancelRepairTask"), - autorest.WithJSON(repairTaskCancelDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTaskSender sends the CancelRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CancelRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CancelRepairTaskResponder handles the response to the CancelRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) CancelRepairTaskResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CommitImageStoreUploadSession when all file chunks have been uploaded, the upload session needs to be committed -// explicitly to complete the upload. Image store preserves the upload session until the expiration time, which is 30 -// minutes after the last chunk received. -// Parameters: -// sessionID - a GUID generated by the user for a file uploading. It identifies an image store upload session -// which keeps track of all file chunks until it is committed. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CommitImageStoreUploadSession(ctx context.Context, sessionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CommitImageStoreUploadSession", err.Error()) - } - - req, err := client.CommitImageStoreUploadSessionPreparer(ctx, sessionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", nil, "Failure preparing request") - return - } - - resp, err := client.CommitImageStoreUploadSessionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure sending request") - return - } - - result, err = client.CommitImageStoreUploadSessionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CommitImageStoreUploadSession", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CommitImageStoreUploadSessionPreparer prepares the CommitImageStoreUploadSession request. -func (client BaseClient) CommitImageStoreUploadSessionPreparer(ctx context.Context, sessionID uuid.UUID, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "session-id": autorest.Encode("query", sessionID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore/$/CommitUploadSession"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CommitImageStoreUploadSessionSender sends the CommitImageStoreUploadSession request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CommitImageStoreUploadSessionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CommitImageStoreUploadSessionResponder handles the response to the CommitImageStoreUploadSession request. The method always -// closes the http.Response Body. -func (client BaseClient) CommitImageStoreUploadSessionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContent copies the image store content from the source image store relative path to the destination -// image store relative path. -// Parameters: -// imageStoreCopyDescription - describes the copy description for the image store. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CopyImageStoreContent(ctx context.Context, imageStoreCopyDescription ImageStoreCopyDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: imageStoreCopyDescription, - Constraints: []validation.Constraint{{Target: "imageStoreCopyDescription.RemoteSource", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "imageStoreCopyDescription.RemoteDestination", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CopyImageStoreContent", err.Error()) - } - - req, err := client.CopyImageStoreContentPreparer(ctx, imageStoreCopyDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.CopyImageStoreContentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.CopyImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CopyImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentPreparer prepares the CopyImageStoreContent request. -func (client BaseClient) CopyImageStoreContentPreparer(ctx context.Context, imageStoreCopyDescription ImageStoreCopyDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore/$/Copy"), - autorest.WithJSON(imageStoreCopyDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentSender sends the CopyImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CopyImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CopyImageStoreContentResponder handles the response to the CopyImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) CopyImageStoreContentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplication creates a Service Fabric application using the specified description. -// Parameters: -// applicationDescription - description for creating an application. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateApplication(ctx context.Context, applicationDescription ApplicationDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationDescription, - Constraints: []validation.Constraint{{Target: "applicationDescription.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.TypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.TypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationDescription.ApplicationCapacity", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MinimumNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MinimumNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - {Target: "applicationDescription.ApplicationCapacity.MaximumNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "applicationDescription.ApplicationCapacity.MaximumNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateApplication", err.Error()) - } - - req, err := client.CreateApplicationPreparer(ctx, applicationDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", nil, "Failure preparing request") - return - } - - resp, err := client.CreateApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure sending request") - return - } - - result, err = client.CreateApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationPreparer prepares the CreateApplication request. -func (client BaseClient) CreateApplicationPreparer(ctx context.Context, applicationDescription ApplicationDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications/$/Create"), - autorest.WithJSON(applicationDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationSender sends the CreateApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateApplicationResponder handles the response to the CreateApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeployment compose is a file format that describes multi-container applications. This API allows -// deploying container based applications defined in compose format in a Service Fabric cluster. Once the deployment is -// created it's status can be tracked via `GetComposeDeploymentStatus` API. -// Parameters: -// createComposeDeploymentDescription - describes the compose deployment that needs to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateComposeDeployment(ctx context.Context, createComposeDeploymentDescription CreateComposeDeploymentDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: createComposeDeploymentDescription, - Constraints: []validation.Constraint{{Target: "createComposeDeploymentDescription.DeploymentName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "createComposeDeploymentDescription.ComposeFileContent", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateComposeDeployment", err.Error()) - } - - req, err := client.CreateComposeDeploymentPreparer(ctx, createComposeDeploymentDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", nil, "Failure preparing request") - return - } - - resp, err := client.CreateComposeDeploymentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure sending request") - return - } - - result, err = client.CreateComposeDeploymentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateComposeDeployment", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentPreparer prepares the CreateComposeDeployment request. -func (client BaseClient) CreateComposeDeploymentPreparer(ctx context.Context, createComposeDeploymentDescription CreateComposeDeploymentDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ComposeDeployments/$/Create"), - autorest.WithJSON(createComposeDeploymentDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentSender sends the CreateComposeDeployment request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateComposeDeploymentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentResponder handles the response to the CreateComposeDeployment request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateComposeDeploymentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateName creates the specified Service Fabric name. -// Parameters: -// nameDescription - describes the Service Fabric name to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateName(ctx context.Context, nameDescription NameDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: nameDescription, - Constraints: []validation.Constraint{{Target: "nameDescription.Name", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateName", err.Error()) - } - - req, err := client.CreateNamePreparer(ctx, nameDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", nil, "Failure preparing request") - return - } - - resp, err := client.CreateNameSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure sending request") - return - } - - result, err = client.CreateNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateNamePreparer prepares the CreateName request. -func (client BaseClient) CreateNamePreparer(ctx context.Context, nameDescription NameDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Names/$/Create"), - autorest.WithJSON(nameDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateNameSender sends the CreateName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateNameResponder handles the response to the CreateName request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateNameResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTask for clusters that have the Repair Manager Service configured, -// this API provides a way to create repair tasks that run automatically or manually. -// For repair tasks that run automatically, an appropriate repair executor -// must be running for each repair action to run automatically. -// These are currently only available in specially-configured Azure Cloud Services. -// -// To create a manual repair task, provide the set of impacted node names and the -// expected impact. When the state of the created repair task changes to approved, -// you can safely perform repair actions on those nodes. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// repairTask - describes the repair task to be created or updated. -func (client BaseClient) CreateRepairTask(ctx context.Context, repairTask RepairTask) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTask, - Constraints: []validation.Constraint{{Target: "repairTask.TaskID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "repairTask.Action", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateRepairTask", err.Error()) - } - - req, err := client.CreateRepairTaskPreparer(ctx, repairTask) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.CreateRepairTaskSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure sending request") - return - } - - result, err = client.CreateRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTaskPreparer prepares the CreateRepairTask request. -func (client BaseClient) CreateRepairTaskPreparer(ctx context.Context, repairTask RepairTask) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/CreateRepairTask"), - autorest.WithJSON(repairTask), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTaskSender sends the CreateRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateRepairTaskResponder handles the response to the CreateRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateRepairTaskResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateService this api allows creating a new Service Fabric stateless or stateful service under a specified Service -// Fabric application. The description for creating the service includes partitioning information and optional -// properties for placement and load balancing. Some of the properties can later be modified using `UpdateService` API. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceDescription - the information necessary to create a service. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateService(ctx context.Context, applicationID string, serviceDescription BasicServiceDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceDescription, - Constraints: []validation.Constraint{{Target: "serviceDescription.ServiceName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceDescription.ServiceTypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceDescription.PartitionDescription", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateService", err.Error()) - } - - req, err := client.CreateServicePreparer(ctx, applicationID, serviceDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", nil, "Failure preparing request") - return - } - - resp, err := client.CreateServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure sending request") - return - } - - result, err = client.CreateServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServicePreparer prepares the CreateService request. -func (client BaseClient) CreateServicePreparer(ctx context.Context, applicationID string, serviceDescription BasicServiceDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/$/Create", pathParameters), - autorest.WithJSON(serviceDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceSender sends the CreateService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceResponder handles the response to the CreateService request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplate creates a Service Fabric service from the service template defined in the application -// manifest. A service template contains the properties that will be same for the service instance of the same type. -// The API allows overriding the properties that are usually different for different services of the same service type. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceFromTemplateDescription - describes the service that needs to be created from the template defined in -// the application manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) CreateServiceFromTemplate(ctx context.Context, applicationID string, serviceFromTemplateDescription ServiceFromTemplateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: serviceFromTemplateDescription, - Constraints: []validation.Constraint{{Target: "serviceFromTemplateDescription.ApplicationName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceFromTemplateDescription.ServiceName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "serviceFromTemplateDescription.ServiceTypeName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "CreateServiceFromTemplate", err.Error()) - } - - req, err := client.CreateServiceFromTemplatePreparer(ctx, applicationID, serviceFromTemplateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", nil, "Failure preparing request") - return - } - - resp, err := client.CreateServiceFromTemplateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure sending request") - return - } - - result, err = client.CreateServiceFromTemplateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "CreateServiceFromTemplate", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplatePreparer prepares the CreateServiceFromTemplate request. -func (client BaseClient) CreateServiceFromTemplatePreparer(ctx context.Context, applicationID string, serviceFromTemplateDescription ServiceFromTemplateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/$/CreateFromTemplate", pathParameters), - autorest.WithJSON(serviceFromTemplateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplateSender sends the CreateServiceFromTemplate request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) CreateServiceFromTemplateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateServiceFromTemplateResponder handles the response to the CreateServiceFromTemplate request. The method always -// closes the http.Response Body. -func (client BaseClient) CreateServiceFromTemplateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplication deletes an existing Service Fabric application. An application must be created before it can be -// deleted. Deleting an application will delete all services that are part of that application. By default Service -// Fabric will try to close service replicas in a graceful manner and then delete the service. However if service is -// having issues closing the replica gracefully, the delete operation may take a long time or get stuck. Use the -// optional ForceRemove flag to skip the graceful close sequence and forcefully delete the application and all of the -// its services. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteApplication(ctx context.Context, applicationID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteApplication", err.Error()) - } - - req, err := client.DeleteApplicationPreparer(ctx, applicationID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteApplicationSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure sending request") - return - } - - result, err = client.DeleteApplicationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteApplication", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationPreparer prepares the DeleteApplication request. -func (client BaseClient) DeleteApplicationPreparer(ctx context.Context, applicationID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationSender sends the DeleteApplication request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteApplicationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteApplicationResponder handles the response to the DeleteApplication request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteApplicationResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContent deletes existing image store content being found within the given image store relative path. -// This can be used to delete uploaded application packages once they are provisioned. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteImageStoreContent(ctx context.Context, contentPath string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteImageStoreContent", err.Error()) - } - - req, err := client.DeleteImageStoreContentPreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteImageStoreContentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.DeleteImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentPreparer prepares the DeleteImageStoreContent request. -func (client BaseClient) DeleteImageStoreContentPreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentSender sends the DeleteImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreContentResponder handles the response to the DeleteImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteImageStoreContentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreUploadSession the DELETE request will cause the existing upload session to expire and remove any -// previously uploaded file chunks. -// Parameters: -// sessionID - a GUID generated by the user for a file uploading. It identifies an image store upload session -// which keeps track of all file chunks until it is committed. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteImageStoreUploadSession(ctx context.Context, sessionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteImageStoreUploadSession", err.Error()) - } - - req, err := client.DeleteImageStoreUploadSessionPreparer(ctx, sessionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteImageStoreUploadSessionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure sending request") - return - } - - result, err = client.DeleteImageStoreUploadSessionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteImageStoreUploadSession", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreUploadSessionPreparer prepares the DeleteImageStoreUploadSession request. -func (client BaseClient) DeleteImageStoreUploadSessionPreparer(ctx context.Context, sessionID uuid.UUID, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "session-id": autorest.Encode("query", sessionID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore/$/DeleteUploadSession"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreUploadSessionSender sends the DeleteImageStoreUploadSession request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteImageStoreUploadSessionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteImageStoreUploadSessionResponder handles the response to the DeleteImageStoreUploadSession request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteImageStoreUploadSessionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteName deletes the specified Service Fabric name. A name must be created before it can be deleted. Deleting a -// name with child properties will fail. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteName(ctx context.Context, nameID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteName", err.Error()) - } - - req, err := client.DeleteNamePreparer(ctx, nameID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteNameSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure sending request") - return - } - - result, err = client.DeleteNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteNamePreparer prepares the DeleteName request. -func (client BaseClient) DeleteNamePreparer(ctx context.Context, nameID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteNameSender sends the DeleteName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteNameResponder handles the response to the DeleteName request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteNameResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteProperty deletes the specified Service Fabric property under a given name. A property must be created before -// it can be deleted. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyName - specifies the name of the property to get. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteProperty(ctx context.Context, nameID string, propertyName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteProperty", err.Error()) - } - - req, err := client.DeletePropertyPreparer(ctx, nameID, propertyName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", nil, "Failure preparing request") - return - } - - resp, err := client.DeletePropertySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure sending request") - return - } - - result, err = client.DeletePropertyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteProperty", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertyPreparer prepares the DeleteProperty request. -func (client BaseClient) DeletePropertyPreparer(ctx context.Context, nameID string, propertyName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "PropertyName": autorest.Encode("query", propertyName), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperty", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertySender sends the DeleteProperty request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeletePropertySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertyResponder handles the response to the DeleteProperty request. The method always -// closes the http.Response Body. -func (client BaseClient) DeletePropertyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTask this API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// repairTaskDeleteDescription - describes the repair task to be deleted. -func (client BaseClient) DeleteRepairTask(ctx context.Context, repairTaskDeleteDescription RepairTaskDeleteDescription) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskDeleteDescription, - Constraints: []validation.Constraint{{Target: "repairTaskDeleteDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteRepairTask", err.Error()) - } - - req, err := client.DeleteRepairTaskPreparer(ctx, repairTaskDeleteDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteRepairTaskSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure sending request") - return - } - - result, err = client.DeleteRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTaskPreparer prepares the DeleteRepairTask request. -func (client BaseClient) DeleteRepairTaskPreparer(ctx context.Context, repairTaskDeleteDescription RepairTaskDeleteDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/DeleteRepairTask"), - autorest.WithJSON(repairTaskDeleteDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTaskSender sends the DeleteRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteRepairTaskResponder handles the response to the DeleteRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteRepairTaskResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteService deletes an existing Service Fabric service. A service must be created before it can be deleted. By -// default Service Fabric will try to close service replicas in a graceful manner and then delete the service. However -// if service is having issues closing the replica gracefully, the delete operation may take a long time or get stuck. -// Use the optional ForceRemove flag to skip the graceful close sequence and forcefully delete the service. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeleteService(ctx context.Context, serviceID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeleteService", err.Error()) - } - - req, err := client.DeleteServicePreparer(ctx, serviceID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", nil, "Failure preparing request") - return - } - - resp, err := client.DeleteServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure sending request") - return - } - - result, err = client.DeleteServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeleteService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServicePreparer prepares the DeleteService request. -func (client BaseClient) DeleteServicePreparer(ctx context.Context, serviceID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServiceSender sends the DeleteService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeleteServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeleteServiceResponder handles the response to the DeleteService request. The method always -// closes the http.Response Body. -func (client BaseClient) DeleteServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNode this API provides a way to download code packages including the container images on a -// specific node outside of the normal application deployment and upgrade path. This is useful for the large code -// packages and container iamges to be present on the node before the actual application deployment and upgrade, thus -// significantly reducing the total time required for the deployment or upgrade. -// Parameters: -// nodeName - the name of the node. -// deployServicePackageToNodeDescription - describes information for deploying a service package to a Service -// Fabric node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DeployedServicePackageToNode(ctx context.Context, nodeName string, deployServicePackageToNodeDescription DeployServicePackageToNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: deployServicePackageToNodeDescription, - Constraints: []validation.Constraint{{Target: "deployServicePackageToNodeDescription.ServiceManifestName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.ApplicationTypeName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.ApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "deployServicePackageToNodeDescription.NodeName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DeployedServicePackageToNode", err.Error()) - } - - req, err := client.DeployedServicePackageToNodePreparer(ctx, nodeName, deployServicePackageToNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", nil, "Failure preparing request") - return - } - - resp, err := client.DeployedServicePackageToNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", resp, "Failure sending request") - return - } - - result, err = client.DeployedServicePackageToNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DeployedServicePackageToNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodePreparer prepares the DeployedServicePackageToNode request. -func (client BaseClient) DeployedServicePackageToNodePreparer(ctx context.Context, nodeName string, deployServicePackageToNodeDescription DeployServicePackageToNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/DeployServicePackage", pathParameters), - autorest.WithJSON(deployServicePackageToNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodeSender sends the DeployedServicePackageToNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DeployedServicePackageToNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageToNodeResponder handles the response to the DeployedServicePackageToNode request. The method always -// closes the http.Response Body. -func (client BaseClient) DeployedServicePackageToNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNode deactivate a Service Fabric cluster node with the specified deactivation intent. Once the deactivation -// is in progress, the deactivation intent can be increased, but not decreased (for example, a node which is was -// deactivated with the Pause intent can be deactivated further with Restart, but not the other way around. Nodes may -// be reactivated using the Activate a node operation any time after they are deactivated. If the deactivation is not -// complete this will cancel the deactivation. A node which goes down and comes back up while deactivated will still -// need to be reactivated before services will be placed on that node. -// Parameters: -// nodeName - the name of the node. -// deactivationIntentDescription - describes the intent or reason for deactivating the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) DisableNode(ctx context.Context, nodeName string, deactivationIntentDescription DeactivationIntentDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "DisableNode", err.Error()) - } - - req, err := client.DisableNodePreparer(ctx, nodeName, deactivationIntentDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", nil, "Failure preparing request") - return - } - - resp, err := client.DisableNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure sending request") - return - } - - result, err = client.DisableNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "DisableNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodePreparer prepares the DisableNode request. -func (client BaseClient) DisableNodePreparer(ctx context.Context, nodeName string, deactivationIntentDescription DeactivationIntentDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Deactivate", pathParameters), - autorest.WithJSON(deactivationIntentDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodeSender sends the DisableNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) DisableNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DisableNodeResponder handles the response to the DisableNode request. The method always -// closes the http.Response Body. -func (client BaseClient) DisableNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNode activates a Service Fabric cluster node which is currently deactivated. Once activated, the node will -// again become a viable target for placing new replicas, and any deactivated replicas remaining on the node will be -// reactivated. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) EnableNode(ctx context.Context, nodeName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "EnableNode", err.Error()) - } - - req, err := client.EnableNodePreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", nil, "Failure preparing request") - return - } - - resp, err := client.EnableNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure sending request") - return - } - - result, err = client.EnableNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "EnableNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodePreparer prepares the EnableNode request. -func (client BaseClient) EnableNodePreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Activate", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodeSender sends the EnableNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) EnableNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnableNodeResponder handles the response to the EnableNode request. The method always -// closes the http.Response Body. -func (client BaseClient) EnableNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTask this API supports the Service Fabric platform; it is not meant to be used directly from your -// code. -// Parameters: -// repairTaskApproveDescription - describes the repair task to be approved. -func (client BaseClient) ForceApproveRepairTask(ctx context.Context, repairTaskApproveDescription RepairTaskApproveDescription) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskApproveDescription, - Constraints: []validation.Constraint{{Target: "repairTaskApproveDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ForceApproveRepairTask", err.Error()) - } - - req, err := client.ForceApproveRepairTaskPreparer(ctx, repairTaskApproveDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", nil, "Failure preparing request") - return - } - - resp, err := client.ForceApproveRepairTaskSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure sending request") - return - } - - result, err = client.ForceApproveRepairTaskResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ForceApproveRepairTask", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTaskPreparer prepares the ForceApproveRepairTask request. -func (client BaseClient) ForceApproveRepairTaskPreparer(ctx context.Context, repairTaskApproveDescription RepairTaskApproveDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/ForceApproveRepairTask"), - autorest.WithJSON(repairTaskApproveDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTaskSender sends the ForceApproveRepairTask request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ForceApproveRepairTaskSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ForceApproveRepairTaskResponder handles the response to the ForceApproveRepairTask request. The method always -// closes the http.Response Body. -func (client BaseClient) ForceApproveRepairTaskResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadata gets the Azure Active Directory metadata used for secured connection to cluster. -// This API is not supposed to be called separately. It provides information needed to set up an Azure Active Directory -// secured connection with a Service Fabric cluster. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetAadMetadata(ctx context.Context, timeout *int64) (result AadMetadataObject, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetAadMetadata", err.Error()) - } - - req, err := client.GetAadMetadataPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", nil, "Failure preparing request") - return - } - - resp, err := client.GetAadMetadataSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure sending request") - return - } - - result, err = client.GetAadMetadataResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetAadMetadata", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataPreparer prepares the GetAadMetadata request. -func (client BaseClient) GetAadMetadataPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetAadMetadata"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataSender sends the GetAadMetadata request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetAadMetadataSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetAadMetadataResponder handles the response to the GetAadMetadata request. The method always -// closes the http.Response Body. -func (client BaseClient) GetAadMetadataResponder(resp *http.Response) (result AadMetadataObject, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealth returns the heath state of the service fabric application. The response reports either Ok, -// Error or Warning health state. If the entity is not found in the health store, it will return Error. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedApplicationsHealthStateFilter - allows filtering of the deployed applications health state objects -// returned in the result of application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. Only -// deployed applications that match the filter will be returned. -// All deployed applications are used to evaluate the aggregated health state. If not specified, all entries -// are returned. -// The state values are flag based enumeration, so the value could be a combination of these value obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of deployed applications with HealthState value of -// OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// servicesHealthStateFilter - allows filtering of the services health state objects returned in the result of -// services health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only services that match the filter are returned. All services are used to evaluate the aggregated health -// state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of services -// with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationHealth(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result ApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationHealth", err.Error()) - } - - req, err := client.GetApplicationHealthPreparer(ctx, applicationID, eventsHealthStateFilter, deployedApplicationsHealthStateFilter, servicesHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthPreparer prepares the GetApplicationHealth request. -func (client BaseClient) GetApplicationHealthPreparer(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedApplicationsHealthStateFilter != nil { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", *deployedApplicationsHealthStateFilter) - } else { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if servicesHealthStateFilter != nil { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", *servicesHealthStateFilter) - } else { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthSender sends the GetApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthResponder handles the response to the GetApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationHealthResponder(resp *http.Response) (result ApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicy gets the health of a Service Fabric application. Use EventsHealthStateFilter to -// filter the collection of health events reported on the node based on the health state. Use ClusterHealthPolicies to -// override the health policies used to evaluate the health. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedApplicationsHealthStateFilter - allows filtering of the deployed applications health state objects -// returned in the result of application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. Only -// deployed applications that match the filter will be returned. -// All deployed applications are used to evaluate the aggregated health state. If not specified, all entries -// are returned. -// The state values are flag based enumeration, so the value could be a combination of these value obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of deployed applications with HealthState value of -// OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// servicesHealthStateFilter - allows filtering of the services health state objects returned in the result of -// services health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only services that match the filter are returned. All services are used to evaluate the aggregated health -// state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of services -// with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationHealthUsingPolicy(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result ApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", err.Error()) - } - - req, err := client.GetApplicationHealthUsingPolicyPreparer(ctx, applicationID, eventsHealthStateFilter, deployedApplicationsHealthStateFilter, servicesHealthStateFilter, excludeHealthStatistics, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicyPreparer prepares the GetApplicationHealthUsingPolicy request. -func (client BaseClient) GetApplicationHealthUsingPolicyPreparer(ctx context.Context, applicationID string, eventsHealthStateFilter *int32, deployedApplicationsHealthStateFilter *int32, servicesHealthStateFilter *int32, excludeHealthStatistics *bool, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedApplicationsHealthStateFilter != nil { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", *deployedApplicationsHealthStateFilter) - } else { - queryParameters["DeployedApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if servicesHealthStateFilter != nil { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", *servicesHealthStateFilter) - } else { - queryParameters["ServicesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicySender sends the GetApplicationHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationHealthUsingPolicyResponder handles the response to the GetApplicationHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationHealthUsingPolicyResponder(resp *http.Response) (result ApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfo returns the information about the application that was created or in the process of being created -// in the Service Fabric cluster and whose name matches the one specified as the parameter. The response includes the -// name, type, status, parameters and other details about the application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationInfo(ctx context.Context, applicationID string, excludeApplicationParameters *bool, timeout *int64) (result ApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationInfo", err.Error()) - } - - req, err := client.GetApplicationInfoPreparer(ctx, applicationID, excludeApplicationParameters, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoPreparer prepares the GetApplicationInfo request. -func (client BaseClient) GetApplicationInfoPreparer(ctx context.Context, applicationID string, excludeApplicationParameters *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoSender sends the GetApplicationInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoResponder handles the response to the GetApplicationInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationInfoResponder(resp *http.Response) (result ApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoList gets the information about the applications that were created or in the process of being -// created in the Service Fabric cluster and match filters specified as the parameter. The response includes the name, -// type, status, parameters and other details about the application. If the applications do not fit in a page, one page -// of results is returned as well as a continuation token which can be used to get the next page. Filters -// ApplicationTypeName and ApplicationDefinitionKindFilter cannot be specified at the same time. -// Parameters: -// applicationDefinitionKindFilter - used to filter on ApplicationDefinitionKind which is the mechanism used to -// define a Service Fabric application. -// - Default - Default value, which performs the same function as selecting "All". The value is 0. -// - All - Filter that matches input with any ApplicationDefinitionKind value. The value is 65535. -// - ServiceFabricApplicationDescription - Filter that matches input with ApplicationDefinitionKind value -// ServiceFabricApplicationDescription. The value is 1. -// - Compose - Filter that matches input with ApplicationDefinitionKind value Compose. The value is 2. -// applicationTypeName - the application type name used to filter the applications to query for. This value -// should not contain the application type version. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationInfoList(ctx context.Context, applicationDefinitionKindFilter *int32, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (result PagedApplicationInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationInfoList", err.Error()) - } - - req, err := client.GetApplicationInfoListPreparer(ctx, applicationDefinitionKindFilter, applicationTypeName, excludeApplicationParameters, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListPreparer prepares the GetApplicationInfoList request. -func (client BaseClient) GetApplicationInfoListPreparer(ctx context.Context, applicationDefinitionKindFilter *int32, applicationTypeName string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - const APIVersion = "6.1" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if applicationDefinitionKindFilter != nil { - queryParameters["ApplicationDefinitionKindFilter"] = autorest.Encode("query", *applicationDefinitionKindFilter) - } else { - queryParameters["ApplicationDefinitionKindFilter"] = autorest.Encode("query", 0) - } - if len(applicationTypeName) > 0 { - queryParameters["ApplicationTypeName"] = autorest.Encode("query", applicationTypeName) - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Applications"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListSender sends the GetApplicationInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationInfoListResponder handles the response to the GetApplicationInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationInfoListResponder(resp *http.Response) (result PagedApplicationInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfo returns the load information about the application that was created or in the process of -// being created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response -// includes the name, minimum nodes, maximum nodes, the number of nodes the app is occupying currently, and application -// load metric information about the application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationLoadInfo(ctx context.Context, applicationID string, timeout *int64) (result ApplicationLoadInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationLoadInfo", err.Error()) - } - - req, err := client.GetApplicationLoadInfoPreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationLoadInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationLoadInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationLoadInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfoPreparer prepares the GetApplicationLoadInfo request. -func (client BaseClient) GetApplicationLoadInfoPreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfoSender sends the GetApplicationLoadInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationLoadInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationLoadInfoResponder handles the response to the GetApplicationLoadInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationLoadInfoResponder(resp *http.Response) (result ApplicationLoadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifest gets the manifest describing an application type. The response contains the application -// manifest XML as a string. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationManifest(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (result ApplicationTypeManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationManifest", err.Error()) - } - - req, err := client.GetApplicationManifestPreparer(ctx, applicationTypeName, applicationTypeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestPreparer prepares the GetApplicationManifest request. -func (client BaseClient) GetApplicationManifestPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetApplicationManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestSender sends the GetApplicationManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationManifestResponder handles the response to the GetApplicationManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationManifestResponder(resp *http.Response) (result ApplicationTypeManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfo the GetApplicationName endpoint returns the name of the application for the specified -// service. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationNameInfo(ctx context.Context, serviceID string, timeout *int64) (result ApplicationNameInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationNameInfo", err.Error()) - } - - req, err := client.GetApplicationNameInfoPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationNameInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationNameInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationNameInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoPreparer prepares the GetApplicationNameInfo request. -func (client BaseClient) GetApplicationNameInfoPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetApplicationName", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoSender sends the GetApplicationNameInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationNameInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationNameInfoResponder handles the response to the GetApplicationNameInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationNameInfoResponder(resp *http.Response) (result ApplicationNameInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoList returns the information about the application types that are provisioned or in the -// process of being provisioned in the Service Fabric cluster. Each version of an application type is returned as one -// application type. The response includes the name, version, status and other details about the application type. This -// is a paged query, meaning that if not all of the application types fit in a page, one page of results is returned as -// well as a continuation token which can be used to get the next page. For example, if there are 10 application types -// but a page only fits the first 3 application types, or if max results is set to 3, then 3 is returned. To access the -// rest of the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty -// continuation token is returned if there are no subsequent pages. -// Parameters: -// applicationTypeDefinitionKindFilter - used to filter on ApplicationTypeDefinitionKind which is the mechanism -// used to define a Service Fabric application type. -// - Default - Default value, which performs the same function as selecting "All". The value is 0. -// - All - Filter that matches input with any ApplicationTypeDefinitionKind value. The value is 65535. -// - ServiceFabricApplicationPackage - Filter that matches input with ApplicationTypeDefinitionKind value -// ServiceFabricApplicationPackage. The value is 1. -// - Compose - Filter that matches input with ApplicationTypeDefinitionKind value Compose. The value is 2. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationTypeInfoList(ctx context.Context, applicationTypeDefinitionKindFilter *int32, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (result PagedApplicationTypeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationTypeInfoList", err.Error()) - } - - req, err := client.GetApplicationTypeInfoListPreparer(ctx, applicationTypeDefinitionKindFilter, excludeApplicationParameters, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListPreparer prepares the GetApplicationTypeInfoList request. -func (client BaseClient) GetApplicationTypeInfoListPreparer(ctx context.Context, applicationTypeDefinitionKindFilter *int32, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if applicationTypeDefinitionKindFilter != nil { - queryParameters["ApplicationTypeDefinitionKindFilter"] = autorest.Encode("query", *applicationTypeDefinitionKindFilter) - } else { - queryParameters["ApplicationTypeDefinitionKindFilter"] = autorest.Encode("query", 0) - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListSender sends the GetApplicationTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListResponder handles the response to the GetApplicationTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationTypeInfoListResponder(resp *http.Response) (result PagedApplicationTypeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByName returns the information about the application types that are provisioned or in the -// process of being provisioned in the Service Fabric cluster. These results are of application types whose name match -// exactly the one specified as the parameter, and which comply with the given query parameters. All versions of the -// application type matching the application type name are returned, with each version returned as one application -// type. The response includes the name, version, status and other details about the application type. This is a paged -// query, meaning that if not all of the application types fit in a page, one page of results is returned as well as a -// continuation token which can be used to get the next page. For example, if there are 10 application types but a page -// only fits the first 3 application types, or if max results is set to 3, then 3 is returned. To access the rest of -// the results, retrieve subsequent pages by using the returned continuation token in the next query. An empty -// continuation token is returned if there are no subsequent pages. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// excludeApplicationParameters - the flag that specifies whether application parameters will be excluded from -// the result. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationTypeInfoListByName(ctx context.Context, applicationTypeName string, applicationTypeVersion string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (result PagedApplicationTypeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationTypeInfoListByName", err.Error()) - } - - req, err := client.GetApplicationTypeInfoListByNamePreparer(ctx, applicationTypeName, applicationTypeVersion, excludeApplicationParameters, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationTypeInfoListByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationTypeInfoListByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationTypeInfoListByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNamePreparer prepares the GetApplicationTypeInfoListByName request. -func (client BaseClient) GetApplicationTypeInfoListByNamePreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, excludeApplicationParameters *bool, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(applicationTypeVersion) > 0 { - queryParameters["ApplicationTypeVersion"] = autorest.Encode("query", applicationTypeVersion) - } - if excludeApplicationParameters != nil { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", *excludeApplicationParameters) - } else { - queryParameters["ExcludeApplicationParameters"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNameSender sends the GetApplicationTypeInfoListByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationTypeInfoListByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationTypeInfoListByNameResponder handles the response to the GetApplicationTypeInfoListByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationTypeInfoListByNameResponder(resp *http.Response) (result PagedApplicationTypeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgrade returns information about the state of the latest application upgrade along with details to -// aid debugging application health issues. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetApplicationUpgrade(ctx context.Context, applicationID string, timeout *int64) (result ApplicationUpgradeProgressInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetApplicationUpgrade", err.Error()) - } - - req, err := client.GetApplicationUpgradePreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.GetApplicationUpgradeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.GetApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradePreparer prepares the GetApplicationUpgrade request. -func (client BaseClient) GetApplicationUpgradePreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetUpgradeProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradeSender sends the GetApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetApplicationUpgradeResponder handles the response to the GetApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) GetApplicationUpgradeResponder(resp *http.Response) (result ApplicationUpgradeProgressInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReport you can either specify the ContinuationToken to get the next segment of the Chaos report or you can -// specify the time-range -// through StartTimeUtc and EndTimeUtc, but you cannot specify both the ContinuationToken and the time-range in the -// same call. -// When there are more than 100 Chaos events, the Chaos report is returned in segments where a segment contains no more -// than 100 Chaos events. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// startTimeUtc - the Windows file time representing the start time of the time range for which a Chaos report -// is to be generated. Please consult [DateTime.ToFileTimeUtc -// Method](https://msdn.microsoft.com/en-us/library/system.datetime.tofiletimeutc(v=vs.110).aspx) for details. -// endTimeUtc - the Windows file time representing the end time of the time range for which a Chaos report is -// to be generated. Please consult [DateTime.ToFileTimeUtc -// Method](https://msdn.microsoft.com/en-us/library/system.datetime.tofiletimeutc(v=vs.110).aspx) for details. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetChaosReport(ctx context.Context, continuationToken string, startTimeUtc string, endTimeUtc string, timeout *int64) (result ChaosReport, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetChaosReport", err.Error()) - } - - req, err := client.GetChaosReportPreparer(ctx, continuationToken, startTimeUtc, endTimeUtc, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", nil, "Failure preparing request") - return - } - - resp, err := client.GetChaosReportSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", resp, "Failure sending request") - return - } - - result, err = client.GetChaosReportResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetChaosReport", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportPreparer prepares the GetChaosReport request. -func (client BaseClient) GetChaosReportPreparer(ctx context.Context, continuationToken string, startTimeUtc string, endTimeUtc string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if len(startTimeUtc) > 0 { - queryParameters["StartTimeUtc"] = autorest.Encode("query", startTimeUtc) - } - if len(endTimeUtc) > 0 { - queryParameters["EndTimeUtc"] = autorest.Encode("query", endTimeUtc) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Report"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportSender sends the GetChaosReport request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetChaosReportSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetChaosReportResponder handles the response to the GetChaosReport request. The method always -// closes the http.Response Body. -func (client BaseClient) GetChaosReportResponder(resp *http.Response) (result ChaosReport, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfiguration get the Service Fabric standalone cluster configuration. The cluster configuration contains -// properties of the cluster that include different node types on the cluster, -// security configurations, fault and upgrade domain topologies etc. -// Parameters: -// configurationAPIVersion - the API version of the Standalone cluster json configuration. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterConfiguration(ctx context.Context, configurationAPIVersion string, timeout *int64) (result ClusterConfiguration, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterConfiguration", err.Error()) - } - - req, err := client.GetClusterConfigurationPreparer(ctx, configurationAPIVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterConfigurationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure sending request") - return - } - - result, err = client.GetClusterConfigurationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfiguration", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationPreparer prepares the GetClusterConfiguration request. -func (client BaseClient) GetClusterConfigurationPreparer(ctx context.Context, configurationAPIVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ConfigurationApiVersion": autorest.Encode("query", configurationAPIVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterConfiguration"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationSender sends the GetClusterConfiguration request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterConfigurationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationResponder handles the response to the GetClusterConfiguration request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterConfigurationResponder(resp *http.Response) (result ClusterConfiguration, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatus get the cluster configuration upgrade status details of a Service Fabric -// standalone cluster. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterConfigurationUpgradeStatus(ctx context.Context, timeout *int64) (result ClusterConfigurationUpgradeStatusInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", err.Error()) - } - - req, err := client.GetClusterConfigurationUpgradeStatusPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterConfigurationUpgradeStatusSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure sending request") - return - } - - result, err = client.GetClusterConfigurationUpgradeStatusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterConfigurationUpgradeStatus", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatusPreparer prepares the GetClusterConfigurationUpgradeStatus request. -func (client BaseClient) GetClusterConfigurationUpgradeStatusPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterConfigurationUpgradeStatus"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatusSender sends the GetClusterConfigurationUpgradeStatus request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterConfigurationUpgradeStatusSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterConfigurationUpgradeStatusResponder handles the response to the GetClusterConfigurationUpgradeStatus request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterConfigurationUpgradeStatusResponder(resp *http.Response) (result ClusterConfigurationUpgradeStatusInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealth gets the health of a Service Fabric cluster. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes and -// applications returned based on their aggregated health state. -// Parameters: -// nodesHealthStateFilter - allows filtering of the node health state objects returned in the result of cluster -// health query -// based on their health state. The possible values for this parameter include integer value of one of the -// following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the -// aggregated health state. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of nodes with HealthState value of OK (2) and -// Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationsHealthStateFilter - allows filtering of the application health state objects returned in the -// result of cluster health -// query based on their health state. -// The possible values for this parameter include integer value obtained from members or bitwise operations -// on members of HealthStateFilter enumeration. Only applications that match the filter are returned. -// All applications are used to evaluate the aggregated health state. If not specified, all entries are -// returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of applications with HealthState value of OK (2) -// and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// includeSystemApplicationHealthStatistics - indicates whether the health statistics should include the -// fabric:/System application health statistics. False by default. -// If IncludeSystemApplicationHealthStatistics is set to true, the health statistics include the entities that -// belong to the fabric:/System application. -// Otherwise, the query result includes health statistics only for user applications. -// The health statistics must be included in the query result for this parameter to be applied. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealth(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, timeout *int64) (result ClusterHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealth", err.Error()) - } - - req, err := client.GetClusterHealthPreparer(ctx, nodesHealthStateFilter, applicationsHealthStateFilter, eventsHealthStateFilter, excludeHealthStatistics, includeSystemApplicationHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthPreparer prepares the GetClusterHealth request. -func (client BaseClient) GetClusterHealthPreparer(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if nodesHealthStateFilter != nil { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", *nodesHealthStateFilter) - } else { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", 0) - } - if applicationsHealthStateFilter != nil { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", *applicationsHealthStateFilter) - } else { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if includeSystemApplicationHealthStatistics != nil { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", *includeSystemApplicationHealthStatistics) - } else { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealth"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthSender sends the GetClusterHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthResponder handles the response to the GetClusterHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthResponder(resp *http.Response) (result ClusterHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunk gets the health of a Service Fabric cluster using health chunks. Includes the aggregated -// health state of the cluster, but none of the cluster entities. -// To expand the cluster health and get the health state of all or some of the entities, use the POST URI and specify -// the cluster health chunk query description. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthChunk(ctx context.Context, timeout *int64) (result ClusterHealthChunk, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthChunk", err.Error()) - } - - req, err := client.GetClusterHealthChunkPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthChunkSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthChunkResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunk", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkPreparer prepares the GetClusterHealthChunk request. -func (client BaseClient) GetClusterHealthChunkPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealthChunk"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkSender sends the GetClusterHealthChunk request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthChunkSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkResponder handles the response to the GetClusterHealthChunk request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthChunkResponder(resp *http.Response) (result ClusterHealthChunk, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFilters gets the health of a Service Fabric cluster using health chunks. -// The health evaluation is done based on the input cluster health chunk query description. -// The query description allows users to specify health policies for evaluating the cluster and its children. -// Users can specify very flexible filters to select which cluster entities to return. The selection can be done based -// on the entities health state and based on the hierarchy. -// The query can return multi-level children of the entities based on the specified filters. For example, it can return -// one application with a specified name, and for this application, return -// only services that are in Error or Warning, and all partitions and replicas for one of these services. -// Parameters: -// clusterHealthChunkQueryDescription - describes the cluster and application health policies used to evaluate -// the cluster health and the filters to select which cluster entities to be returned. -// If the cluster health policy is present, it is used to evaluate the cluster events and the cluster nodes. If -// not present, the health evaluation uses the cluster health policy defined in the cluster manifest or the -// default cluster health policy. -// By default, each application is evaluated using its specific application health policy, defined in the -// application manifest, or the default health policy, if no policy is defined in manifest. -// If the application health policy map is specified, and it has an entry for an application, the specified -// application health policy -// is used to evaluate the application health. -// Users can specify very flexible filters to select which cluster entities to include in response. The -// selection can be done based on the entities health state and based on the hierarchy. -// The query can return multi-level children of the entities based on the specified filters. For example, it -// can return one application with a specified name, and for this application, return -// only services that are in Error or Warning, and all partitions and replicas for one of these services. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFilters(ctx context.Context, clusterHealthChunkQueryDescription *ClusterHealthChunkQueryDescription, timeout *int64) (result ClusterHealthChunk, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", err.Error()) - } - - req, err := client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer(ctx, clusterHealthChunkQueryDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthChunkUsingPolicyAndAdvancedFilters", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer prepares the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersPreparer(ctx context.Context, clusterHealthChunkQueryDescription *ClusterHealthChunkQueryDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealthChunk"), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthChunkQueryDescription != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthChunkQueryDescription)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender sends the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder handles the response to the GetClusterHealthChunkUsingPolicyAndAdvancedFilters request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthChunkUsingPolicyAndAdvancedFiltersResponder(resp *http.Response) (result ClusterHealthChunk, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicy gets the health of a Service Fabric cluster. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Similarly, use NodesHealthStateFilter and ApplicationsHealthStateFilter to filter the collection of nodes and -// applications returned based on their aggregated health state. -// Use ClusterHealthPolicies to override the health policies used to evaluate the health. -// Parameters: -// nodesHealthStateFilter - allows filtering of the node health state objects returned in the result of cluster -// health query -// based on their health state. The possible values for this parameter include integer value of one of the -// following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the -// aggregated health state. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of nodes with HealthState value of OK (2) and -// Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationsHealthStateFilter - allows filtering of the application health state objects returned in the -// result of cluster health -// query based on their health state. -// The possible values for this parameter include integer value obtained from members or bitwise operations -// on members of HealthStateFilter enumeration. Only applications that match the filter are returned. -// All applications are used to evaluate the aggregated health state. If not specified, all entries are -// returned. -// The state values are flag based enumeration, so the value could be a combination of these values obtained -// using bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of applications with HealthState value of OK (2) -// and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// includeSystemApplicationHealthStatistics - indicates whether the health statistics should include the -// fabric:/System application health statistics. False by default. -// If IncludeSystemApplicationHealthStatistics is set to true, the health statistics include the entities that -// belong to the fabric:/System application. -// Otherwise, the query result includes health statistics only for user applications. -// The health statistics must be included in the query result for this parameter to be applied. -// clusterHealthPolicies - describes the health policies used to evaluate the cluster health. -// If not present, the health evaluation uses the cluster health policy defined in the cluster manifest or the -// default cluster health policy. -// By default, each application is evaluated using its specific application health policy, defined in the -// application manifest, or the default health policy, if no policy is defined in manifest. -// If the application health policy map is specified, and it has an entry for an application, the specified -// application health policy -// is used to evaluate the application health. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterHealthUsingPolicy(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, clusterHealthPolicies *ClusterHealthPolicies, timeout *int64) (result ClusterHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterHealthUsingPolicy", err.Error()) - } - - req, err := client.GetClusterHealthUsingPolicyPreparer(ctx, nodesHealthStateFilter, applicationsHealthStateFilter, eventsHealthStateFilter, excludeHealthStatistics, includeSystemApplicationHealthStatistics, clusterHealthPolicies, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetClusterHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicyPreparer prepares the GetClusterHealthUsingPolicy request. -func (client BaseClient) GetClusterHealthUsingPolicyPreparer(ctx context.Context, nodesHealthStateFilter *int32, applicationsHealthStateFilter *int32, eventsHealthStateFilter *int32, excludeHealthStatistics *bool, includeSystemApplicationHealthStatistics *bool, clusterHealthPolicies *ClusterHealthPolicies, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if nodesHealthStateFilter != nil { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", *nodesHealthStateFilter) - } else { - queryParameters["NodesHealthStateFilter"] = autorest.Encode("query", 0) - } - if applicationsHealthStateFilter != nil { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", *applicationsHealthStateFilter) - } else { - queryParameters["ApplicationsHealthStateFilter"] = autorest.Encode("query", 0) - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if includeSystemApplicationHealthStatistics != nil { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", *includeSystemApplicationHealthStatistics) - } else { - queryParameters["IncludeSystemApplicationHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterHealth"), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthPolicies != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthPolicies)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicySender sends the GetClusterHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterHealthUsingPolicyResponder handles the response to the GetClusterHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterHealthUsingPolicyResponder(resp *http.Response) (result ClusterHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifest get the Service Fabric cluster manifest. The cluster manifest contains properties of the cluster -// that include different node types on the cluster, -// security configurations, fault and upgrade domain topologies etc. -// -// These properties are specified as part of the ClusterConfig.JSON file while deploying a stand alone cluster. -// However, most of the information in the cluster manifest -// is generated internally by service fabric during cluster deployment in other deployment scenarios (for e.g when -// using azure portal). -// -// The contents of the cluster manifest are for informational purposes only and users are not expected to take a -// dependency on the format of the file contents or its interpretation. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterManifest(ctx context.Context, timeout *int64) (result ClusterManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterManifest", err.Error()) - } - - req, err := client.GetClusterManifestPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure sending request") - return - } - - result, err = client.GetClusterManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestPreparer prepares the GetClusterManifest request. -func (client BaseClient) GetClusterManifestPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetClusterManifest"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestSender sends the GetClusterManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterManifestResponder handles the response to the GetClusterManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterManifestResponder(resp *http.Response) (result ClusterManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgress gets the current progress of the ongoing cluster upgrade. If no upgrade is currently in -// progress, gets the last state of the previous cluster upgrade. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetClusterUpgradeProgress(ctx context.Context, timeout *int64) (result ClusterUpgradeProgressObject, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetClusterUpgradeProgress", err.Error()) - } - - req, err := client.GetClusterUpgradeProgressPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetClusterUpgradeProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure sending request") - return - } - - result, err = client.GetClusterUpgradeProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetClusterUpgradeProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressPreparer prepares the GetClusterUpgradeProgress request. -func (client BaseClient) GetClusterUpgradeProgressPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetUpgradeProgress"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressSender sends the GetClusterUpgradeProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetClusterUpgradeProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetClusterUpgradeProgressResponder handles the response to the GetClusterUpgradeProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetClusterUpgradeProgressResponder(resp *http.Response) (result ClusterUpgradeProgressObject, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatus returns the status of the compose deployment that was created or in the process of being -// created in the Service Fabric cluster and whose name matches the one specified as the parameter. The response -// includes the name, status and other details about the deployment. -// Parameters: -// deploymentName - the identity of the deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeDeploymentStatus(ctx context.Context, deploymentName string, timeout *int64) (result ComposeDeploymentStatusInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeDeploymentStatus", err.Error()) - } - - req, err := client.GetComposeDeploymentStatusPreparer(ctx, deploymentName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeDeploymentStatusSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure sending request") - return - } - - result, err = client.GetComposeDeploymentStatusResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatus", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusPreparer prepares the GetComposeDeploymentStatus request. -func (client BaseClient) GetComposeDeploymentStatusPreparer(ctx context.Context, deploymentName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusSender sends the GetComposeDeploymentStatus request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeDeploymentStatusSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusResponder handles the response to the GetComposeDeploymentStatus request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeDeploymentStatusResponder(resp *http.Response) (result ComposeDeploymentStatusInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusList gets the status about the compose deployments that were created or in the process of -// being created in the Service Fabric cluster. The response includes the name, status and other details about the -// compose deployments. If the list of deployments do not fit in a page, one page of results is returned as well as a -// continuation token which can be used to get the next page. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeDeploymentStatusList(ctx context.Context, continuationToken string, maxResults *int64, timeout *int64) (result PagedComposeDeploymentStatusInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeDeploymentStatusList", err.Error()) - } - - req, err := client.GetComposeDeploymentStatusListPreparer(ctx, continuationToken, maxResults, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeDeploymentStatusListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure sending request") - return - } - - result, err = client.GetComposeDeploymentStatusListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentStatusList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusListPreparer prepares the GetComposeDeploymentStatusList request. -func (client BaseClient) GetComposeDeploymentStatusListPreparer(ctx context.Context, continuationToken string, maxResults *int64, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ComposeDeployments"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusListSender sends the GetComposeDeploymentStatusList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeDeploymentStatusListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentStatusListResponder handles the response to the GetComposeDeploymentStatusList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeDeploymentStatusListResponder(resp *http.Response) (result PagedComposeDeploymentStatusInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgress returns the information about the state of the compose deployment upgrade along -// with details to aid debugging application health issues. -// Parameters: -// deploymentName - the identity of the deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetComposeDeploymentUpgradeProgress(ctx context.Context, deploymentName string, timeout *int64) (result ComposeDeploymentUpgradeProgressInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", err.Error()) - } - - req, err := client.GetComposeDeploymentUpgradeProgressPreparer(ctx, deploymentName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetComposeDeploymentUpgradeProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure sending request") - return - } - - result, err = client.GetComposeDeploymentUpgradeProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetComposeDeploymentUpgradeProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgressPreparer prepares the GetComposeDeploymentUpgradeProgress request. -func (client BaseClient) GetComposeDeploymentUpgradeProgressPreparer(ctx context.Context, deploymentName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}/$/GetUpgradeProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgressSender sends the GetComposeDeploymentUpgradeProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetComposeDeploymentUpgradeProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetComposeDeploymentUpgradeProgressResponder handles the response to the GetComposeDeploymentUpgradeProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetComposeDeploymentUpgradeProgressResponder(resp *http.Response) (result ComposeDeploymentUpgradeProgressInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetContainerLogsDeployedOnNode gets the container logs for container deployed on a Service Fabric node for the given -// code package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// codePackageName - the name of code package specified in service manifest registered as part of an -// application type in a Service Fabric cluster. -// tail - number of lines to fetch from tail end. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetContainerLogsDeployedOnNode(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, tail string, timeout *int64) (result ContainerLogs, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", err.Error()) - } - - req, err := client.GetContainerLogsDeployedOnNodePreparer(ctx, nodeName, applicationID, serviceManifestName, codePackageName, tail, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", nil, "Failure preparing request") - return - } - - resp, err := client.GetContainerLogsDeployedOnNodeSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure sending request") - return - } - - result, err = client.GetContainerLogsDeployedOnNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetContainerLogsDeployedOnNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetContainerLogsDeployedOnNodePreparer prepares the GetContainerLogsDeployedOnNode request. -func (client BaseClient) GetContainerLogsDeployedOnNodePreparer(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, tail string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.1" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "CodePackageName": autorest.Encode("query", codePackageName), - "ServiceManifestName": autorest.Encode("query", serviceManifestName), - } - if len(tail) > 0 { - queryParameters["Tail"] = autorest.Encode("query", tail) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/ContainerLogs", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetContainerLogsDeployedOnNodeSender sends the GetContainerLogsDeployedOnNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetContainerLogsDeployedOnNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetContainerLogsDeployedOnNodeResponder handles the response to the GetContainerLogsDeployedOnNode request. The method always -// closes the http.Response Body. -func (client BaseClient) GetContainerLogsDeployedOnNodeResponder(resp *http.Response) (result ContainerLogs, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgress gets the progress of a data loss operation started with StartDataLoss, using the OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDataLossProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionDataLossProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDataLossProgress", err.Error()) - } - - req, err := client.GetDataLossProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetDataLossProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure sending request") - return - } - - result, err = client.GetDataLossProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDataLossProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressPreparer prepares the GetDataLossProgress request. -func (client BaseClient) GetDataLossProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetDataLossProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressSender sends the GetDataLossProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDataLossProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDataLossProgressResponder handles the response to the GetDataLossProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDataLossProgressResponder(resp *http.Response) (result PartitionDataLossProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealth gets the information about health of an application deployed on a Service Fabric node. -// Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent objects reported on the deployed -// application based on health state. Use DeployedServicePackagesHealthStateFilter to optionally filter for -// DeployedServicePackageHealth children based on health state. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedServicePackagesHealthStateFilter - allows filtering of the deployed service package health state -// objects returned in the result of deployed application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only deployed service packages that match the filter are returned. All deployed service packages are used to -// evaluate the aggregated health state of the deployed application. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value can be a combination of these value obtained using -// bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of service packages with HealthState value of OK -// (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationHealth(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result DeployedApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationHealth", err.Error()) - } - - req, err := client.GetDeployedApplicationHealthPreparer(ctx, nodeName, applicationID, eventsHealthStateFilter, deployedServicePackagesHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthPreparer prepares the GetDeployedApplicationHealth request. -func (client BaseClient) GetDeployedApplicationHealthPreparer(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedServicePackagesHealthStateFilter != nil { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", *deployedServicePackagesHealthStateFilter) - } else { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthSender sends the GetDeployedApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthResponder handles the response to the GetDeployedApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationHealthResponder(resp *http.Response) (result DeployedApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicy gets the information about health of an application deployed on a Service -// Fabric node using the specified policy. Use EventsHealthStateFilter to optionally filter for the collection of -// HealthEvent objects reported on the deployed application based on health state. Use -// DeployedServicePackagesHealthStateFilter to optionally filter for DeployedServicePackageHealth children based on -// health state. Use ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. -// This API only uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored -// while evaluating the health of the deployed application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// deployedServicePackagesHealthStateFilter - allows filtering of the deployed service package health state -// objects returned in the result of deployed application health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only deployed service packages that match the filter are returned. All deployed service packages are used to -// evaluate the aggregated health state of the deployed application. -// If not specified, all entries are returned. -// The state values are flag based enumeration, so the value can be a combination of these value obtained using -// bitwise 'OR' operator. -// For example, if the provided value is 6 then health state of service packages with HealthState value of OK -// (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicy(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (result DeployedApplicationHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", err.Error()) - } - - req, err := client.GetDeployedApplicationHealthUsingPolicyPreparer(ctx, nodeName, applicationID, eventsHealthStateFilter, deployedServicePackagesHealthStateFilter, applicationHealthPolicy, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicyPreparer prepares the GetDeployedApplicationHealthUsingPolicy request. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicyPreparer(ctx context.Context, nodeName string, applicationID string, eventsHealthStateFilter *int32, deployedServicePackagesHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if deployedServicePackagesHealthStateFilter != nil { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", *deployedServicePackagesHealthStateFilter) - } else { - queryParameters["DeployedServicePackagesHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicySender sends the GetDeployedApplicationHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationHealthUsingPolicyResponder handles the response to the GetDeployedApplicationHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationHealthUsingPolicyResponder(resp *http.Response) (result DeployedApplicationHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfo gets the information about an application deployed on a Service Fabric node. This query -// returns system application information if the application ID provided is for system application. Results encompass -// deployed applications in active, activating, and downloading states. This query requires that the node name -// corresponds to a node on the cluster. The query fails if the provided node name does not point to any active Service -// Fabric nodes on the cluster. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -// includeHealthState - include the health state of an entity. -// If this parameter is false or not specified, then the health state returned is "Unknown". -// When set to true, the query goes in parallel to the node and the health system service before the results -// are merged. -// As a result, the query is more expensive and may take a longer time. -func (client BaseClient) GetDeployedApplicationInfo(ctx context.Context, nodeName string, applicationID string, timeout *int64, includeHealthState *bool) (result DeployedApplicationInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationInfo", err.Error()) - } - - req, err := client.GetDeployedApplicationInfoPreparer(ctx, nodeName, applicationID, timeout, includeHealthState) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoPreparer prepares the GetDeployedApplicationInfo request. -func (client BaseClient) GetDeployedApplicationInfoPreparer(ctx context.Context, nodeName string, applicationID string, timeout *int64, includeHealthState *bool) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.1" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - if includeHealthState != nil { - queryParameters["IncludeHealthState"] = autorest.Encode("query", *includeHealthState) - } else { - queryParameters["IncludeHealthState"] = autorest.Encode("query", false) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoSender sends the GetDeployedApplicationInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoResponder handles the response to the GetDeployedApplicationInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationInfoResponder(resp *http.Response) (result DeployedApplicationInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoList gets the list of applications deployed on a Service Fabric node. The results do not -// include information about deployed system applications unless explicitly queried for by ID. Results encompass -// deployed applications in active, activating, and downloading states. This query requires that the node name -// corresponds to a node on the cluster. The query fails if the provided node name does not point to any active Service -// Fabric nodes on the cluster. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -// includeHealthState - include the health state of an entity. -// If this parameter is false or not specified, then the health state returned is "Unknown". -// When set to true, the query goes in parallel to the node and the health system service before the results -// are merged. -// As a result, the query is more expensive and may take a longer time. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// maxResults - the maximum number of results to be returned as part of the paged queries. This parameter -// defines the upper bound on the number of results returned. The results returned can be less than the -// specified maximum results if they do not fit in the message as per the max message size restrictions defined -// in the configuration. If this parameter is zero or not specified, the paged queries includes as much results -// as possible that fit in the return message. -func (client BaseClient) GetDeployedApplicationInfoList(ctx context.Context, nodeName string, timeout *int64, includeHealthState *bool, continuationToken string, maxResults *int64) (result PagedDeployedApplicationInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}, - {TargetValue: maxResults, - Constraints: []validation.Constraint{{Target: "maxResults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "maxResults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedApplicationInfoList", err.Error()) - } - - req, err := client.GetDeployedApplicationInfoListPreparer(ctx, nodeName, timeout, includeHealthState, continuationToken, maxResults) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedApplicationInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedApplicationInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedApplicationInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListPreparer prepares the GetDeployedApplicationInfoList request. -func (client BaseClient) GetDeployedApplicationInfoListPreparer(ctx context.Context, nodeName string, timeout *int64, includeHealthState *bool, continuationToken string, maxResults *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.1" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - if includeHealthState != nil { - queryParameters["IncludeHealthState"] = autorest.Encode("query", *includeHealthState) - } else { - queryParameters["IncludeHealthState"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if maxResults != nil { - queryParameters["MaxResults"] = autorest.Encode("query", *maxResults) - } else { - queryParameters["MaxResults"] = autorest.Encode("query", 0) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListSender sends the GetDeployedApplicationInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedApplicationInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedApplicationInfoListResponder handles the response to the GetDeployedApplicationInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedApplicationInfoListResponder(resp *http.Response) (result PagedDeployedApplicationInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoList gets the list of code packages deployed on a Service Fabric node for the given -// application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// codePackageName - the name of code package specified in service manifest registered as part of an -// application type in a Service Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedCodePackageInfoList(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, timeout *int64) (result ListDeployedCodePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedCodePackageInfoList", err.Error()) - } - - req, err := client.GetDeployedCodePackageInfoListPreparer(ctx, nodeName, applicationID, serviceManifestName, codePackageName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedCodePackageInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedCodePackageInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedCodePackageInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListPreparer prepares the GetDeployedCodePackageInfoList request. -func (client BaseClient) GetDeployedCodePackageInfoListPreparer(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, codePackageName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if len(codePackageName) > 0 { - queryParameters["CodePackageName"] = autorest.Encode("query", codePackageName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListSender sends the GetDeployedCodePackageInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedCodePackageInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedCodePackageInfoListResponder handles the response to the GetDeployedCodePackageInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedCodePackageInfoListResponder(resp *http.Response) (result ListDeployedCodePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealth gets the information about health of service package for a specific application -// deployed on a Service Fabric node. Use EventsHealthStateFilter to optionally filter for the collection of -// HealthEvent objects reported on the deployed service package based on health state. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageHealth(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, timeout *int64) (result DeployedServicePackageHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageHealth", err.Error()) - } - - req, err := client.GetDeployedServicePackageHealthPreparer(ctx, nodeName, applicationID, servicePackageName, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthPreparer prepares the GetDeployedServicePackageHealth request. -func (client BaseClient) GetDeployedServicePackageHealthPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthSender sends the GetDeployedServicePackageHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthResponder handles the response to the GetDeployedServicePackageHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageHealthResponder(resp *http.Response) (result DeployedServicePackageHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicy gets the information about health of an service package for a specific -// application deployed on a Service Fabric node. using the specified policy. Use EventsHealthStateFilter to optionally -// filter for the collection of HealthEvent objects reported on the deployed service package based on health state. Use -// ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. This API only uses -// 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while evaluating -// the health of the deployed service package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicy(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result DeployedServicePackageHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", err.Error()) - } - - req, err := client.GetDeployedServicePackageHealthUsingPolicyPreparer(ctx, nodeName, applicationID, servicePackageName, eventsHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicyPreparer prepares the GetDeployedServicePackageHealthUsingPolicy request. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicyPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicySender sends the GetDeployedServicePackageHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageHealthUsingPolicyResponder handles the response to the GetDeployedServicePackageHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageHealthUsingPolicyResponder(resp *http.Response) (result DeployedServicePackageHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoList returns the information about the service packages deployed on a Service Fabric -// node for the given application. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageInfoList(ctx context.Context, nodeName string, applicationID string, timeout *int64) (result ListDeployedServicePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageInfoList", err.Error()) - } - - req, err := client.GetDeployedServicePackageInfoListPreparer(ctx, nodeName, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListPreparer prepares the GetDeployedServicePackageInfoList request. -func (client BaseClient) GetDeployedServicePackageInfoListPreparer(ctx context.Context, nodeName string, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListSender sends the GetDeployedServicePackageInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListResponder handles the response to the GetDeployedServicePackageInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageInfoListResponder(resp *http.Response) (result ListDeployedServicePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByName returns the information about the service packages deployed on a Service -// Fabric node for the given application. These results are of service packages whose name match exactly the service -// package name specified as the parameter. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServicePackageInfoListByName(ctx context.Context, nodeName string, applicationID string, servicePackageName string, timeout *int64) (result ListDeployedServicePackageInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", err.Error()) - } - - req, err := client.GetDeployedServicePackageInfoListByNamePreparer(ctx, nodeName, applicationID, servicePackageName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServicePackageInfoListByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServicePackageInfoListByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServicePackageInfoListByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNamePreparer prepares the GetDeployedServicePackageInfoListByName request. -func (client BaseClient) GetDeployedServicePackageInfoListByNamePreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNameSender sends the GetDeployedServicePackageInfoListByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServicePackageInfoListByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServicePackageInfoListByNameResponder handles the response to the GetDeployedServicePackageInfoListByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServicePackageInfoListByNameResponder(resp *http.Response) (result ListDeployedServicePackageInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfo gets the details of the replica deployed on a Service Fabric node. The -// information include service kind, service name, current service operation, current service operation start date -// time, partition id, replica/instance id, reported load and other information. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaDetailInfo(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (result DeployedServiceReplicaDetailInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaDetailInfoPreparer(ctx, nodeName, partitionID, replicaID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaDetailInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaDetailInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoPreparer prepares the GetDeployedServiceReplicaDetailInfo request. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetDetail", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoSender sends the GetDeployedServiceReplicaDetailInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoResponder handles the response to the GetDeployedServiceReplicaDetailInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoResponder(resp *http.Response) (result DeployedServiceReplicaDetailInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionID gets the details of the replica deployed on a Service Fabric node. -// The information include service kind, service name, current service operation, current service operation start date -// time, partition id, replica/instance id, reported load and other information. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionID(ctx context.Context, nodeName string, partitionID uuid.UUID, timeout *int64) (result DeployedServiceReplicaDetailInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaDetailInfoByPartitionIDPreparer(ctx, nodeName, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaDetailInfoByPartitionIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaDetailInfoByPartitionID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionIDPreparer prepares the GetDeployedServiceReplicaDetailInfoByPartitionID request. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionIDPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionIDSender sends the GetDeployedServiceReplicaDetailInfoByPartitionID request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaDetailInfoByPartitionIDResponder handles the response to the GetDeployedServiceReplicaDetailInfoByPartitionID request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaDetailInfoByPartitionIDResponder(resp *http.Response) (result DeployedServiceReplicaDetailInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoList gets the list containing the information about replicas deployed on a Service -// Fabric node. The information include partition id, replica id, status of the replica, name of the service, name of -// the service type and other information. Use PartitionId or ServiceManifestName query parameters to return -// information about the deployed replicas matching the specified values for those parameters. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// partitionID - the identity of the partition. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceReplicaInfoList(ctx context.Context, nodeName string, applicationID string, partitionID *uuid.UUID, serviceManifestName string, timeout *int64) (result ListDeployedServiceReplicaInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", err.Error()) - } - - req, err := client.GetDeployedServiceReplicaInfoListPreparer(ctx, nodeName, applicationID, partitionID, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceReplicaInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceReplicaInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceReplicaInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListPreparer prepares the GetDeployedServiceReplicaInfoList request. -func (client BaseClient) GetDeployedServiceReplicaInfoListPreparer(ctx context.Context, nodeName string, applicationID string, partitionID *uuid.UUID, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if partitionID != nil { - queryParameters["PartitionId"] = autorest.Encode("query", *partitionID) - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListSender sends the GetDeployedServiceReplicaInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceReplicaInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceReplicaInfoListResponder handles the response to the GetDeployedServiceReplicaInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceReplicaInfoListResponder(resp *http.Response) (result ListDeployedServiceReplicaInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByName gets the list containing the information about a specific service type from the -// applications deployed on a node in a Service Fabric cluster. The response includes the name of the service type, its -// registration status, the code package that registered it and activation id of the service package. Each entry -// represents one activation of a service type, differentiated by the activation id. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceTypeName - specifies the name of a Service Fabric service type. -// serviceManifestName - the name of the service manifest to filter the list of deployed service type -// information. If specified, the response will only contain the information about service types that are -// defined in this service manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceTypeInfoByName(ctx context.Context, nodeName string, applicationID string, serviceTypeName string, serviceManifestName string, timeout *int64) (result ListDeployedServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", err.Error()) - } - - req, err := client.GetDeployedServiceTypeInfoByNamePreparer(ctx, nodeName, applicationID, serviceTypeName, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceTypeInfoByNameSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceTypeInfoByNameResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoByName", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNamePreparer prepares the GetDeployedServiceTypeInfoByName request. -func (client BaseClient) GetDeployedServiceTypeInfoByNamePreparer(ctx context.Context, nodeName string, applicationID string, serviceTypeName string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "serviceTypeName": serviceTypeName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes/{serviceTypeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNameSender sends the GetDeployedServiceTypeInfoByName request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceTypeInfoByNameSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoByNameResponder handles the response to the GetDeployedServiceTypeInfoByName request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceTypeInfoByNameResponder(resp *http.Response) (result ListDeployedServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoList gets the list containing the information about service types from the applications -// deployed on a node in a Service Fabric cluster. The response includes the name of the service type, its registration -// status, the code package that registered it and activation id of the service package. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceManifestName - the name of the service manifest to filter the list of deployed service type -// information. If specified, the response will only contain the information about service types that are -// defined in this service manifest. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetDeployedServiceTypeInfoList(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, timeout *int64) (result ListDeployedServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", err.Error()) - } - - req, err := client.GetDeployedServiceTypeInfoListPreparer(ctx, nodeName, applicationID, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetDeployedServiceTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetDeployedServiceTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetDeployedServiceTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListPreparer prepares the GetDeployedServiceTypeInfoList request. -func (client BaseClient) GetDeployedServiceTypeInfoListPreparer(ctx context.Context, nodeName string, applicationID string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceManifestName) > 0 { - queryParameters["ServiceManifestName"] = autorest.Encode("query", serviceManifestName) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListSender sends the GetDeployedServiceTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetDeployedServiceTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetDeployedServiceTypeInfoListResponder handles the response to the GetDeployedServiceTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetDeployedServiceTypeInfoListResponder(resp *http.Response) (result ListDeployedServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationList gets the a list of user-induced fault operations filtered by provided input. -// Parameters: -// typeFilter - used to filter on OperationType for user-induced operations. -// 65535 - select all -// 1 - select PartitionDataLoss. -// 2 - select PartitionQuorumLoss. -// 4 - select PartitionRestart. -// 8 - select NodeTransition. -// stateFilter - used to filter on OperationState's for user-induced operations. -// 65535 - select All -// 1 - select Running -// 2 - select RollingBack -// 8 - select Completed -// 16 - select Faulted -// 32 - select Cancelled -// 64 - select ForceCancelled -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetFaultOperationList(ctx context.Context, typeFilter int32, stateFilter int32, timeout *int64) (result ListOperationStatus, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetFaultOperationList", err.Error()) - } - - req, err := client.GetFaultOperationListPreparer(ctx, typeFilter, stateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", nil, "Failure preparing request") - return - } - - resp, err := client.GetFaultOperationListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure sending request") - return - } - - result, err = client.GetFaultOperationListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetFaultOperationList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListPreparer prepares the GetFaultOperationList request. -func (client BaseClient) GetFaultOperationListPreparer(ctx context.Context, typeFilter int32, stateFilter int32, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "StateFilter": autorest.Encode("query", stateFilter), - "TypeFilter": autorest.Encode("query", typeFilter), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Faults/"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListSender sends the GetFaultOperationList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetFaultOperationListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetFaultOperationListResponder handles the response to the GetFaultOperationList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetFaultOperationListResponder(resp *http.Response) (result ListOperationStatus, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContent returns the information about the image store content at the specified contentPath relative to -// the root of the image store. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreContent(ctx context.Context, contentPath string, timeout *int64) (result ImageStoreContent, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreContent", err.Error()) - } - - req, err := client.GetImageStoreContentPreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreContentSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentPreparer prepares the GetImageStoreContent request. -func (client BaseClient) GetImageStoreContentPreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentSender sends the GetImageStoreContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreContentResponder handles the response to the GetImageStoreContent request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreContentResponder(resp *http.Response) (result ImageStoreContent, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContent returns the information about the image store content at the root of the image store. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreRootContent(ctx context.Context, timeout *int64) (result ImageStoreContent, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreRootContent", err.Error()) - } - - req, err := client.GetImageStoreRootContentPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreRootContentSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreRootContentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreRootContent", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentPreparer prepares the GetImageStoreRootContent request. -func (client BaseClient) GetImageStoreRootContentPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentSender sends the GetImageStoreRootContent request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreRootContentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreRootContentResponder handles the response to the GetImageStoreRootContent request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreRootContentResponder(resp *http.Response) (result ImageStoreContent, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByID gets the image store upload session identified by the given ID. User can query the -// upload session at any time during uploading. -// Parameters: -// sessionID - a GUID generated by the user for a file uploading. It identifies an image store upload session -// which keeps track of all file chunks until it is committed. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreUploadSessionByID(ctx context.Context, sessionID uuid.UUID, timeout *int64) (result UploadSession, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreUploadSessionByID", err.Error()) - } - - req, err := client.GetImageStoreUploadSessionByIDPreparer(ctx, sessionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreUploadSessionByIDSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreUploadSessionByIDResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByID", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByIDPreparer prepares the GetImageStoreUploadSessionByID request. -func (client BaseClient) GetImageStoreUploadSessionByIDPreparer(ctx context.Context, sessionID uuid.UUID, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "session-id": autorest.Encode("query", sessionID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ImageStore/$/GetUploadSession"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByIDSender sends the GetImageStoreUploadSessionByID request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreUploadSessionByIDSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByIDResponder handles the response to the GetImageStoreUploadSessionByID request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreUploadSessionByIDResponder(resp *http.Response) (result UploadSession, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByPath gets the image store upload session associated with the given image store relative -// path. User can query the upload session at any time during uploading. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetImageStoreUploadSessionByPath(ctx context.Context, contentPath string, timeout *int64) (result UploadSession, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", err.Error()) - } - - req, err := client.GetImageStoreUploadSessionByPathPreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", nil, "Failure preparing request") - return - } - - resp, err := client.GetImageStoreUploadSessionByPathSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure sending request") - return - } - - result, err = client.GetImageStoreUploadSessionByPathResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetImageStoreUploadSessionByPath", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByPathPreparer prepares the GetImageStoreUploadSessionByPath request. -func (client BaseClient) GetImageStoreUploadSessionByPathPreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}/$/GetUploadSession", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByPathSender sends the GetImageStoreUploadSessionByPath request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetImageStoreUploadSessionByPathSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetImageStoreUploadSessionByPathResponder handles the response to the GetImageStoreUploadSessionByPath request. The method always -// closes the http.Response Body. -func (client BaseClient) GetImageStoreUploadSessionByPathResponder(resp *http.Response) (result UploadSession, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfo returns whether the specified Service Fabric name exists. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNameExistsInfo(ctx context.Context, nameID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNameExistsInfo", err.Error()) - } - - req, err := client.GetNameExistsInfoPreparer(ctx, nameID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNameExistsInfoSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNameExistsInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNameExistsInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfoPreparer prepares the GetNameExistsInfo request. -func (client BaseClient) GetNameExistsInfoPreparer(ctx context.Context, nameID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfoSender sends the GetNameExistsInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNameExistsInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNameExistsInfoResponder handles the response to the GetNameExistsInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNameExistsInfoResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealth gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the collection of -// health events reported on the node based on the health state. If the node that you specify by name does not exist in -// the health store, this returns an error. -// Parameters: -// nodeName - the name of the node. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeHealth(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, timeout *int64) (result NodeHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeHealth", err.Error()) - } - - req, err := client.GetNodeHealthPreparer(ctx, nodeName, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure sending request") - return - } - - result, err = client.GetNodeHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthPreparer prepares the GetNodeHealth request. -func (client BaseClient) GetNodeHealthPreparer(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthSender sends the GetNodeHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthResponder handles the response to the GetNodeHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeHealthResponder(resp *http.Response) (result NodeHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicy gets the health of a Service Fabric node. Use EventsHealthStateFilter to filter the -// collection of health events reported on the node based on the health state. Use ClusterHealthPolicy in the POST body -// to override the health policies used to evaluate the health. If the node that you specify by name does not exist in -// the health store, this returns an error. -// Parameters: -// nodeName - the name of the node. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// clusterHealthPolicy - describes the health policies used to evaluate the health of a cluster or node. If not -// present, the health evaluation uses the health policy from cluster manifest or the default health policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeHealthUsingPolicy(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, clusterHealthPolicy *ClusterHealthPolicy, timeout *int64) (result NodeHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeHealthUsingPolicy", err.Error()) - } - - req, err := client.GetNodeHealthUsingPolicyPreparer(ctx, nodeName, eventsHealthStateFilter, clusterHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetNodeHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicyPreparer prepares the GetNodeHealthUsingPolicy request. -func (client BaseClient) GetNodeHealthUsingPolicyPreparer(ctx context.Context, nodeName string, eventsHealthStateFilter *int32, clusterHealthPolicy *ClusterHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if clusterHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(clusterHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicySender sends the GetNodeHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeHealthUsingPolicyResponder handles the response to the GetNodeHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeHealthUsingPolicyResponder(resp *http.Response) (result NodeHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfo gets the information about a specific node in the Service Fabric Cluster.The response include the name, -// status, id, health, uptime and other details about the node. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeInfo(ctx context.Context, nodeName string, timeout *int64) (result NodeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeInfo", err.Error()) - } - - req, err := client.GetNodeInfoPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNodeInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoPreparer prepares the GetNodeInfo request. -func (client BaseClient) GetNodeInfoPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoSender sends the GetNodeInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoResponder handles the response to the GetNodeInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeInfoResponder(resp *http.Response) (result NodeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoList gets the list of nodes in the Service Fabric cluster. The response include the name, status, id, -// health, uptime and other details about the node. -// Parameters: -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// nodeStatusFilter - allows filtering the nodes based on the NodeStatus. Only the nodes that are matching the -// specified filter value will be returned. The filter value can be one of the following. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeInfoList(ctx context.Context, continuationToken string, nodeStatusFilter NodeStatusFilterOptionalQueryParam, timeout *int64) (result PagedNodeInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeInfoList", err.Error()) - } - - req, err := client.GetNodeInfoListPreparer(ctx, continuationToken, nodeStatusFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetNodeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListPreparer prepares the GetNodeInfoList request. -func (client BaseClient) GetNodeInfoListPreparer(ctx context.Context, continuationToken string, nodeStatusFilter NodeStatusFilterOptionalQueryParam, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if len(string(nodeStatusFilter)) > 0 { - queryParameters["NodeStatusFilter"] = autorest.Encode("query", nodeStatusFilter) - } else { - queryParameters["NodeStatusFilter"] = autorest.Encode("query", "default") - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Nodes"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListSender sends the GetNodeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeInfoListResponder handles the response to the GetNodeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeInfoListResponder(resp *http.Response) (result PagedNodeInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfo retrieves the load information of a Service Fabric node for all the metrics that have load or -// capacity defined. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeLoadInfo(ctx context.Context, nodeName string, timeout *int64) (result NodeLoadInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeLoadInfo", err.Error()) - } - - req, err := client.GetNodeLoadInfoPreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeLoadInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure sending request") - return - } - - result, err = client.GetNodeLoadInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeLoadInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoPreparer prepares the GetNodeLoadInfo request. -func (client BaseClient) GetNodeLoadInfoPreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoSender sends the GetNodeLoadInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeLoadInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeLoadInfoResponder handles the response to the GetNodeLoadInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeLoadInfoResponder(resp *http.Response) (result NodeLoadInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgress gets the progress of an operation started with StartNodeTransition using the provided -// OperationId. -// Parameters: -// nodeName - the name of the node. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetNodeTransitionProgress(ctx context.Context, nodeName string, operationID uuid.UUID, timeout *int64) (result NodeTransitionProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetNodeTransitionProgress", err.Error()) - } - - req, err := client.GetNodeTransitionProgressPreparer(ctx, nodeName, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetNodeTransitionProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure sending request") - return - } - - result, err = client.GetNodeTransitionProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetNodeTransitionProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressPreparer prepares the GetNodeTransitionProgress request. -func (client BaseClient) GetNodeTransitionProgressPreparer(ctx context.Context, nodeName string, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Nodes/{nodeName}/$/GetTransitionProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressSender sends the GetNodeTransitionProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetNodeTransitionProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetNodeTransitionProgressResponder handles the response to the GetNodeTransitionProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetNodeTransitionProgressResponder(resp *http.Response) (result NodeTransitionProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealth gets the health information of the specified partition. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use ReplicasHealthStateFilter to filter the collection of ReplicaHealthState objects on the partition. -// If you specify a partition that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// partitionID - the identity of the partition. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// replicasHealthStateFilter - allows filtering the collection of ReplicaHealthState objects on the partition. -// The value can be obtained from members or bitwise operations on members of HealthStateFilter. Only replicas -// that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. -// If not specified, all entries will be returned.The state values are flag based enumeration, so the value -// could be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided -// value is 6 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The -// possible values for this parameter include integer value of one of the following health states. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionHealth(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result PartitionHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionHealth", err.Error()) - } - - req, err := client.GetPartitionHealthPreparer(ctx, partitionID, eventsHealthStateFilter, replicasHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthPreparer prepares the GetPartitionHealth request. -func (client BaseClient) GetPartitionHealthPreparer(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if replicasHealthStateFilter != nil { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", *replicasHealthStateFilter) - } else { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthSender sends the GetPartitionHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthResponder handles the response to the GetPartitionHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionHealthResponder(resp *http.Response) (result PartitionHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicy gets the health information of the specified partition. -// If the application health policy is specified, the health evaluation uses it to get the aggregated health state. -// If the policy is not specified, the health evaluation uses the application health policy defined in the application -// manifest, or the default health policy, if no policy is defined in the manifest. -// Use EventsHealthStateFilter to filter the collection of health events reported on the partition based on the health -// state. -// Use ReplicasHealthStateFilter to filter the collection of ReplicaHealthState objects on the partition. Use -// ApplicationHealthPolicy in the POST body to override the health policies used to evaluate the health. -// If you specify a partition that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// partitionID - the identity of the partition. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// replicasHealthStateFilter - allows filtering the collection of ReplicaHealthState objects on the partition. -// The value can be obtained from members or bitwise operations on members of HealthStateFilter. Only replicas -// that match the filter will be returned. All replicas will be used to evaluate the aggregated health state. -// If not specified, all entries will be returned.The state values are flag based enumeration, so the value -// could be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided -// value is 6 then all of the events with HealthState value of OK (2) and Warning (4) will be returned. The -// possible values for this parameter include integer value of one of the following health states. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionHealthUsingPolicy(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (result PartitionHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", err.Error()) - } - - req, err := client.GetPartitionHealthUsingPolicyPreparer(ctx, partitionID, eventsHealthStateFilter, replicasHealthStateFilter, applicationHealthPolicy, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicyPreparer prepares the GetPartitionHealthUsingPolicy request. -func (client BaseClient) GetPartitionHealthUsingPolicyPreparer(ctx context.Context, partitionID uuid.UUID, eventsHealthStateFilter *int32, replicasHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if replicasHealthStateFilter != nil { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", *replicasHealthStateFilter) - } else { - queryParameters["ReplicasHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicySender sends the GetPartitionHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionHealthUsingPolicyResponder handles the response to the GetPartitionHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionHealthUsingPolicyResponder(resp *http.Response) (result PartitionHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfo the Partitions endpoint returns information about the specified partition. The response include the -// partition id, partitioning scheme information, keys supported by the partition, status, health and other details -// about the partition. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionInfo(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result ServicePartitionInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionInfo", err.Error()) - } - - req, err := client.GetPartitionInfoPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoPreparer prepares the GetPartitionInfo request. -func (client BaseClient) GetPartitionInfoPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoSender sends the GetPartitionInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoResponder handles the response to the GetPartitionInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionInfoResponder(resp *http.Response) (result ServicePartitionInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoList gets the list of partitions of a Service Fabric service. The response include the partition id, -// partitioning scheme information, keys supported by the partition, status, health and other details about the -// partition. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionInfoList(ctx context.Context, serviceID string, continuationToken string, timeout *int64) (result PagedServicePartitionInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionInfoList", err.Error()) - } - - req, err := client.GetPartitionInfoListPreparer(ctx, serviceID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListPreparer prepares the GetPartitionInfoList request. -func (client BaseClient) GetPartitionInfoListPreparer(ctx context.Context, serviceID string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetPartitions", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListSender sends the GetPartitionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionInfoListResponder handles the response to the GetPartitionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionInfoListResponder(resp *http.Response) (result PagedServicePartitionInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformation returns information about the specified partition. -// The response includes a list of load information. -// Each information includes load metric name, value and last reported time in UTC. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionLoadInformation(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result PartitionLoadInformation, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionLoadInformation", err.Error()) - } - - req, err := client.GetPartitionLoadInformationPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionLoadInformationSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionLoadInformationResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionLoadInformation", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationPreparer prepares the GetPartitionLoadInformation request. -func (client BaseClient) GetPartitionLoadInformationPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetLoadInformation", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationSender sends the GetPartitionLoadInformation request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionLoadInformationSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionLoadInformationResponder handles the response to the GetPartitionLoadInformation request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionLoadInformationResponder(resp *http.Response) (result PartitionLoadInformation, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgress gets the progress of a PartitionRestart started with StartPartitionRestart using the -// provided OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPartitionRestartProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionRestartProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPartitionRestartProgress", err.Error()) - } - - req, err := client.GetPartitionRestartProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetPartitionRestartProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure sending request") - return - } - - result, err = client.GetPartitionRestartProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPartitionRestartProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressPreparer prepares the GetPartitionRestartProgress request. -func (client BaseClient) GetPartitionRestartProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetRestartProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressSender sends the GetPartitionRestartProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPartitionRestartProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPartitionRestartProgressResponder handles the response to the GetPartitionRestartProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPartitionRestartProgressResponder(resp *http.Response) (result PartitionRestartProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfo gets the specified Service Fabric property under a given name. This will always return both value -// and metadata. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyName - specifies the name of the property to get. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPropertyInfo(ctx context.Context, nameID string, propertyName string, timeout *int64) (result PropertyInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPropertyInfo", err.Error()) - } - - req, err := client.GetPropertyInfoPreparer(ctx, nameID, propertyName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetPropertyInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure sending request") - return - } - - result, err = client.GetPropertyInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoPreparer prepares the GetPropertyInfo request. -func (client BaseClient) GetPropertyInfoPreparer(ctx context.Context, nameID string, propertyName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "PropertyName": autorest.Encode("query", propertyName), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperty", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoSender sends the GetPropertyInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPropertyInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoResponder handles the response to the GetPropertyInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPropertyInfoResponder(resp *http.Response) (result PropertyInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoList a Service Fabric name can have one or more named properties that stores custom information. This -// operation gets the information about these properties in a paged list. The information include name, value and -// metadata about each of the properties. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// includeValues - allows specifying whether to include the values of the properties returned. True if values -// should be returned with the metadata; False to return only property metadata. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetPropertyInfoList(ctx context.Context, nameID string, includeValues *bool, continuationToken string, timeout *int64) (result PagedPropertyInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetPropertyInfoList", err.Error()) - } - - req, err := client.GetPropertyInfoListPreparer(ctx, nameID, includeValues, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetPropertyInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetPropertyInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetPropertyInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoListPreparer prepares the GetPropertyInfoList request. -func (client BaseClient) GetPropertyInfoListPreparer(ctx context.Context, nameID string, includeValues *bool, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if includeValues != nil { - queryParameters["IncludeValues"] = autorest.Encode("query", *includeValues) - } else { - queryParameters["IncludeValues"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperties", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoListSender sends the GetPropertyInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetPropertyInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyInfoListResponder handles the response to the GetPropertyInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetPropertyInfoListResponder(resp *http.Response) (result PagedPropertyInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoList gets a list of information about fabric code versions that are provisioned -// in the cluster. The parameter CodeVersion can be used to optionally filter the output to only that particular -// version. -// Parameters: -// codeVersion - the product version of Service Fabric. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoList(ctx context.Context, codeVersion string, timeout *int64) (result ListFabricCodeVersionInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", err.Error()) - } - - req, err := client.GetProvisionedFabricCodeVersionInfoListPreparer(ctx, codeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetProvisionedFabricCodeVersionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetProvisionedFabricCodeVersionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricCodeVersionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListPreparer prepares the GetProvisionedFabricCodeVersionInfoList request. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListPreparer(ctx context.Context, codeVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(codeVersion) > 0 { - queryParameters["CodeVersion"] = autorest.Encode("query", codeVersion) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetProvisionedCodeVersions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListSender sends the GetProvisionedFabricCodeVersionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricCodeVersionInfoListResponder handles the response to the GetProvisionedFabricCodeVersionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetProvisionedFabricCodeVersionInfoListResponder(resp *http.Response) (result ListFabricCodeVersionInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoList gets a list of information about fabric config versions that are -// provisioned in the cluster. The parameter ConfigVersion can be used to optionally filter the output to only that -// particular version. -// Parameters: -// configVersion - the config version of Service Fabric. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoList(ctx context.Context, configVersion string, timeout *int64) (result ListFabricConfigVersionInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", err.Error()) - } - - req, err := client.GetProvisionedFabricConfigVersionInfoListPreparer(ctx, configVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetProvisionedFabricConfigVersionInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetProvisionedFabricConfigVersionInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetProvisionedFabricConfigVersionInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListPreparer prepares the GetProvisionedFabricConfigVersionInfoList request. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListPreparer(ctx context.Context, configVersion string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(configVersion) > 0 { - queryParameters["ConfigVersion"] = autorest.Encode("query", configVersion) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetProvisionedConfigVersions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListSender sends the GetProvisionedFabricConfigVersionInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetProvisionedFabricConfigVersionInfoListResponder handles the response to the GetProvisionedFabricConfigVersionInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetProvisionedFabricConfigVersionInfoListResponder(resp *http.Response) (result ListFabricConfigVersionInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgress gets the progress of a quorum loss operation started with StartQuorumLoss, using the provided -// OperationId. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetQuorumLossProgress(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (result PartitionQuorumLossProgress, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetQuorumLossProgress", err.Error()) - } - - req, err := client.GetQuorumLossProgressPreparer(ctx, serviceID, partitionID, operationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", nil, "Failure preparing request") - return - } - - resp, err := client.GetQuorumLossProgressSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure sending request") - return - } - - result, err = client.GetQuorumLossProgressResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetQuorumLossProgress", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressPreparer prepares the GetQuorumLossProgress request. -func (client BaseClient) GetQuorumLossProgressPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/GetQuorumLossProgress", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressSender sends the GetQuorumLossProgress request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetQuorumLossProgressSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetQuorumLossProgressResponder handles the response to the GetQuorumLossProgress request. The method always -// closes the http.Response Body. -func (client BaseClient) GetQuorumLossProgressResponder(resp *http.Response) (result PartitionQuorumLossProgress, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskList this API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// taskIDFilter - the repair task ID prefix to be matched. -// stateFilter - a bitwise-OR of the following values, specifying which task states should be included in the -// result list. -// - 1 - Created -// - 2 - Claimed -// - 4 - Preparing -// - 8 - Approved -// - 16 - Executing -// - 32 - Restoring -// - 64 - Completed -// executorFilter - the name of the repair executor whose claimed tasks should be included in the list. -func (client BaseClient) GetRepairTaskList(ctx context.Context, taskIDFilter string, stateFilter *int32, executorFilter string) (result ListRepairTask, err error) { - req, err := client.GetRepairTaskListPreparer(ctx, taskIDFilter, stateFilter, executorFilter) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", nil, "Failure preparing request") - return - } - - resp, err := client.GetRepairTaskListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure sending request") - return - } - - result, err = client.GetRepairTaskListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetRepairTaskList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskListPreparer prepares the GetRepairTaskList request. -func (client BaseClient) GetRepairTaskListPreparer(ctx context.Context, taskIDFilter string, stateFilter *int32, executorFilter string) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(taskIDFilter) > 0 { - queryParameters["TaskIdFilter"] = autorest.Encode("query", taskIDFilter) - } - if stateFilter != nil { - queryParameters["StateFilter"] = autorest.Encode("query", *stateFilter) - } - if len(executorFilter) > 0 { - queryParameters["ExecutorFilter"] = autorest.Encode("query", executorFilter) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetRepairTaskList"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskListSender sends the GetRepairTaskList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetRepairTaskListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetRepairTaskListResponder handles the response to the GetRepairTaskList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetRepairTaskListResponder(resp *http.Response) (result ListRepairTask, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealth gets the health of a Service Fabric replica. -// Use EventsHealthStateFilter to filter the collection of health events reported on the replica based on the health -// state. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaHealth(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, timeout *int64) (result ReplicaHealthModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaHealth", err.Error()) - } - - req, err := client.GetReplicaHealthPreparer(ctx, partitionID, replicaID, eventsHealthStateFilter, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthPreparer prepares the GetReplicaHealth request. -func (client BaseClient) GetReplicaHealthPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthSender sends the GetReplicaHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthResponder handles the response to the GetReplicaHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaHealthResponder(resp *http.Response) (result ReplicaHealthModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicy gets the health of a Service Fabric stateful service replica or stateless service -// instance. -// Use EventsHealthStateFilter to filter the collection of health events reported on the cluster based on the health -// state. -// Use ApplicationHealthPolicy to optionally override the health policies used to evaluate the health. This API only -// uses 'ConsiderWarningAsError' field of the ApplicationHealthPolicy. The rest of the fields are ignored while -// evaluating the health of the replica. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaHealthUsingPolicy(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (result ReplicaHealthModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", err.Error()) - } - - req, err := client.GetReplicaHealthUsingPolicyPreparer(ctx, partitionID, replicaID, eventsHealthStateFilter, applicationHealthPolicy, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicyPreparer prepares the GetReplicaHealthUsingPolicy request. -func (client BaseClient) GetReplicaHealthUsingPolicyPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, eventsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicySender sends the GetReplicaHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaHealthUsingPolicyResponder handles the response to the GetReplicaHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaHealthUsingPolicyResponder(resp *http.Response) (result ReplicaHealthModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfo the response include the id, role, status, health, node name, uptime, and other details about the -// replica. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaInfo(ctx context.Context, partitionID uuid.UUID, replicaID string, continuationToken string, timeout *int64) (result ReplicaInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaInfo", err.Error()) - } - - req, err := client.GetReplicaInfoPreparer(ctx, partitionID, replicaID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoPreparer prepares the GetReplicaInfo request. -func (client BaseClient) GetReplicaInfoPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoSender sends the GetReplicaInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoResponder handles the response to the GetReplicaInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaInfoResponder(resp *http.Response) (result ReplicaInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoList the GetReplicas endpoint returns information about the replicas of the specified partition. The -// respons include the id, role, status, health, node name, uptime, and other details about the replica. -// Parameters: -// partitionID - the identity of the partition. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetReplicaInfoList(ctx context.Context, partitionID uuid.UUID, continuationToken string, timeout *int64) (result PagedReplicaInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetReplicaInfoList", err.Error()) - } - - req, err := client.GetReplicaInfoListPreparer(ctx, partitionID, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetReplicaInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetReplicaInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetReplicaInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListPreparer prepares the GetReplicaInfoList request. -func (client BaseClient) GetReplicaInfoListPreparer(ctx context.Context, partitionID uuid.UUID, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListSender sends the GetReplicaInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetReplicaInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetReplicaInfoListResponder handles the response to the GetReplicaInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetReplicaInfoListResponder(resp *http.Response) (result PagedReplicaInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescription gets the description of an existing Service Fabric service. A service must be created before -// its description can be obtained. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceDescription(ctx context.Context, serviceID string, timeout *int64) (result ServiceDescriptionModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceDescription", err.Error()) - } - - req, err := client.GetServiceDescriptionPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceDescriptionSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure sending request") - return - } - - result, err = client.GetServiceDescriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceDescription", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionPreparer prepares the GetServiceDescription request. -func (client BaseClient) GetServiceDescriptionPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetDescription", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionSender sends the GetServiceDescription request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceDescriptionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceDescriptionResponder handles the response to the GetServiceDescription request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceDescriptionResponder(resp *http.Response) (result ServiceDescriptionModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealth gets the health information of the specified service. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use PartitionsHealthStateFilter to filter the collection of partitions returned. -// If you specify a service that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// partitionsHealthStateFilter - allows filtering of the partitions health state objects returned in the result -// of service health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated -// health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of -// partitions with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceHealth(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (result ServiceHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceHealth", err.Error()) - } - - req, err := client.GetServiceHealthPreparer(ctx, serviceID, eventsHealthStateFilter, partitionsHealthStateFilter, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceHealthSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure sending request") - return - } - - result, err = client.GetServiceHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthPreparer prepares the GetServiceHealth request. -func (client BaseClient) GetServiceHealthPreparer(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if partitionsHealthStateFilter != nil { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", *partitionsHealthStateFilter) - } else { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthSender sends the GetServiceHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthResponder handles the response to the GetServiceHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceHealthResponder(resp *http.Response) (result ServiceHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicy gets the health information of the specified service. -// If the application health policy is specified, the health evaluation uses it to get the aggregated health state. -// If the policy is not specified, the health evaluation uses the application health policy defined in the application -// manifest, or the default health policy, if no policy is defined in the manifest. -// Use EventsHealthStateFilter to filter the collection of health events reported on the service based on the health -// state. -// Use PartitionsHealthStateFilter to filter the collection of partitions returned. -// If you specify a service that does not exist in the health store, this cmdlet returns an error. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// eventsHealthStateFilter - allows filtering the collection of HealthEvent objects returned based on health -// state. -// The possible values for this parameter include integer value of one of the following health states. -// Only events that match the filter are returned. All events are used to evaluate the aggregated health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value obtained using bitwise 'OR' operator. For example, If the provided value is -// 6 then all of the events with HealthState value of OK (2) and Warning (4) are returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// partitionsHealthStateFilter - allows filtering of the partitions health state objects returned in the result -// of service health query based on their health state. -// The possible values for this parameter include integer value of one of the following health states. -// Only partitions that match the filter are returned. All partitions are used to evaluate the aggregated -// health state. -// If not specified, all entries are returned. The state values are flag based enumeration, so the value could -// be a combination of these value -// obtained using bitwise 'OR' operator. For example, if the provided value is 6 then health state of -// partitions with HealthState value of OK (2) and Warning (4) will be returned. -// -// - Default - Default value. Matches any HealthState. The value is zero. -// - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given -// collection of states. The value is 1. -// - Ok - Filter that matches input with HealthState value Ok. The value is 2. -// - Warning - Filter that matches input with HealthState value Warning. The value is 4. -// - Error - Filter that matches input with HealthState value Error. The value is 8. -// - All - Filter that matches input with any HealthState value. The value is 65535. -// applicationHealthPolicy - describes the health policies used to evaluate the health of an application or one -// of its children. -// If not present, the health evaluation uses the health policy from application manifest or the default health -// policy. -// excludeHealthStatistics - indicates whether the health statistics should be returned as part of the query -// result. False by default. -// The statistics show the number of children entities in health state Ok, Warning, and Error. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceHealthUsingPolicy(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (result ServiceHealth, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceHealthUsingPolicy", err.Error()) - } - - req, err := client.GetServiceHealthUsingPolicyPreparer(ctx, serviceID, eventsHealthStateFilter, partitionsHealthStateFilter, applicationHealthPolicy, excludeHealthStatistics, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceHealthUsingPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure sending request") - return - } - - result, err = client.GetServiceHealthUsingPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceHealthUsingPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicyPreparer prepares the GetServiceHealthUsingPolicy request. -func (client BaseClient) GetServiceHealthUsingPolicyPreparer(ctx context.Context, serviceID string, eventsHealthStateFilter *int32, partitionsHealthStateFilter *int32, applicationHealthPolicy *ApplicationHealthPolicy, excludeHealthStatistics *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if eventsHealthStateFilter != nil { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", *eventsHealthStateFilter) - } else { - queryParameters["EventsHealthStateFilter"] = autorest.Encode("query", 0) - } - if partitionsHealthStateFilter != nil { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", *partitionsHealthStateFilter) - } else { - queryParameters["PartitionsHealthStateFilter"] = autorest.Encode("query", 0) - } - if excludeHealthStatistics != nil { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", *excludeHealthStatistics) - } else { - queryParameters["ExcludeHealthStatistics"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/GetHealth", pathParameters), - autorest.WithQueryParameters(queryParameters)) - if applicationHealthPolicy != nil { - preparer = autorest.DecoratePreparer(preparer, - autorest.WithJSON(applicationHealthPolicy)) - } - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicySender sends the GetServiceHealthUsingPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceHealthUsingPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceHealthUsingPolicyResponder handles the response to the GetServiceHealthUsingPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceHealthUsingPolicyResponder(resp *http.Response) (result ServiceHealth, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfo returns the information about specified service belonging to the specified Service Fabric -// application. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceInfo(ctx context.Context, applicationID string, serviceID string, timeout *int64) (result ServiceInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceInfo", err.Error()) - } - - req, err := client.GetServiceInfoPreparer(ctx, applicationID, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure sending request") - return - } - - result, err = client.GetServiceInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoPreparer prepares the GetServiceInfo request. -func (client BaseClient) GetServiceInfoPreparer(ctx context.Context, applicationID string, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices/{serviceId}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoSender sends the GetServiceInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoResponder handles the response to the GetServiceInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceInfoResponder(resp *http.Response) (result ServiceInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoList returns the information about all services belonging to the application specified by the -// application id. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// serviceTypeName - the service type name used to filter the services to query for. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceInfoList(ctx context.Context, applicationID string, serviceTypeName string, continuationToken string, timeout *int64) (result PagedServiceInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceInfoList", err.Error()) - } - - req, err := client.GetServiceInfoListPreparer(ctx, applicationID, serviceTypeName, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetServiceInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListPreparer prepares the GetServiceInfoList request. -func (client BaseClient) GetServiceInfoListPreparer(ctx context.Context, applicationID string, serviceTypeName string, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if len(serviceTypeName) > 0 { - queryParameters["ServiceTypeName"] = autorest.Encode("query", serviceTypeName) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/GetServices", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListSender sends the GetServiceInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceInfoListResponder handles the response to the GetServiceInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceInfoListResponder(resp *http.Response) (result PagedServiceInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifest gets the manifest describing a service type. The response contains the service manifest XML as a -// string. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// serviceManifestName - the name of a service manifest registered as part of an application type in a Service -// Fabric cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceManifest(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string, timeout *int64) (result ServiceTypeManifest, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceManifest", err.Error()) - } - - req, err := client.GetServiceManifestPreparer(ctx, applicationTypeName, applicationTypeVersion, serviceManifestName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceManifestSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure sending request") - return - } - - result, err = client.GetServiceManifestResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceManifest", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestPreparer prepares the GetServiceManifest request. -func (client BaseClient) GetServiceManifestPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, serviceManifestName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - "ServiceManifestName": autorest.Encode("query", serviceManifestName), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceManifest", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestSender sends the GetServiceManifest request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceManifestSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceManifestResponder handles the response to the GetServiceManifest request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceManifestResponder(resp *http.Response) (result ServiceTypeManifest, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfo the GetServiceName endpoint returns the name of the service for the specified partition. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceNameInfo(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result ServiceNameInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceNameInfo", err.Error()) - } - - req, err := client.GetServiceNameInfoPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceNameInfoSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure sending request") - return - } - - result, err = client.GetServiceNameInfoResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceNameInfo", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoPreparer prepares the GetServiceNameInfo request. -func (client BaseClient) GetServiceNameInfoPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetServiceName", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoSender sends the GetServiceNameInfo request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceNameInfoSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceNameInfoResponder handles the response to the GetServiceNameInfo request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceNameInfoResponder(resp *http.Response) (result ServiceNameInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoList gets the list containing the information about service types that are supported by a -// provisioned application type in a Service Fabric cluster. The response includes the name of the service type, the -// name and version of the service manifest the type is defined in, kind (stateless or stateless) of the service type -// and other information about it. -// Parameters: -// applicationTypeName - the name of the application type. -// applicationTypeVersion - the version of the application type. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetServiceTypeInfoList(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (result ListServiceTypeInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetServiceTypeInfoList", err.Error()) - } - - req, err := client.GetServiceTypeInfoListPreparer(ctx, applicationTypeName, applicationTypeVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetServiceTypeInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetServiceTypeInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetServiceTypeInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListPreparer prepares the GetServiceTypeInfoList request. -func (client BaseClient) GetServiceTypeInfoListPreparer(ctx context.Context, applicationTypeName string, applicationTypeVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ApplicationTypeVersion": autorest.Encode("query", applicationTypeVersion), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/GetServiceTypes", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListSender sends the GetServiceTypeInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetServiceTypeInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetServiceTypeInfoListResponder handles the response to the GetServiceTypeInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetServiceTypeInfoListResponder(resp *http.Response) (result ListServiceTypeInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoList enumerates all the Service Fabric names under a given name. If the subnames do not fit in a page, -// one page of results is returned as well as a continuation token which can be used to get the next page. Querying a -// name that doesn't exist will fail. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// recursive - allows specifying that the search performed should be recursive. -// continuationToken - the continuation token parameter is used to obtain next set of results. A continuation -// token with a non empty value is included in the response of the API when the results from the system do not -// fit in a single response. When this value is passed to the next API call, the API returns next set of -// results. If there are no further results then the continuation token does not contain a value. The value of -// this parameter should not be URL encoded. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetSubNameInfoList(ctx context.Context, nameID string, recursive *bool, continuationToken string, timeout *int64) (result PagedSubNameInfoList, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetSubNameInfoList", err.Error()) - } - - req, err := client.GetSubNameInfoListPreparer(ctx, nameID, recursive, continuationToken, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", nil, "Failure preparing request") - return - } - - resp, err := client.GetSubNameInfoListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure sending request") - return - } - - result, err = client.GetSubNameInfoListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetSubNameInfoList", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoListPreparer prepares the GetSubNameInfoList request. -func (client BaseClient) GetSubNameInfoListPreparer(ctx context.Context, nameID string, recursive *bool, continuationToken string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if recursive != nil { - queryParameters["Recursive"] = autorest.Encode("query", *recursive) - } else { - queryParameters["Recursive"] = autorest.Encode("query", false) - } - if len(continuationToken) > 0 { - queryParameters["ContinuationToken"] = continuationToken - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetSubNames", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoListSender sends the GetSubNameInfoList request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetSubNameInfoListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetSubNameInfoListResponder handles the response to the GetSubNameInfoList request. The method always -// closes the http.Response Body. -func (client BaseClient) GetSubNameInfoListResponder(resp *http.Response) (result PagedSubNameInfoList, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetUpgradeOrchestrationServiceState get the service state of Service Fabric Upgrade Orchestration Service. This API -// is internally used for support purposes. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) GetUpgradeOrchestrationServiceState(ctx context.Context, timeout *int64) (result UpgradeOrchestrationServiceState, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", err.Error()) - } - - req, err := client.GetUpgradeOrchestrationServiceStatePreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", nil, "Failure preparing request") - return - } - - resp, err := client.GetUpgradeOrchestrationServiceStateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure sending request") - return - } - - result, err = client.GetUpgradeOrchestrationServiceStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "GetUpgradeOrchestrationServiceState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetUpgradeOrchestrationServiceStatePreparer prepares the GetUpgradeOrchestrationServiceState request. -func (client BaseClient) GetUpgradeOrchestrationServiceStatePreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/GetUpgradeOrchestrationServiceState"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetUpgradeOrchestrationServiceStateSender sends the GetUpgradeOrchestrationServiceState request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) GetUpgradeOrchestrationServiceStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetUpgradeOrchestrationServiceStateResponder handles the response to the GetUpgradeOrchestrationServiceState request. The method always -// closes the http.Response Body. -func (client BaseClient) GetUpgradeOrchestrationServiceStateResponder(resp *http.Response) (result UpgradeOrchestrationServiceState, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommand for clusters that have one or more instances of the Infrastructure Service configured, -// this API provides a way to send infrastructure-specific commands to a particular -// instance of the Infrastructure Service. -// -// Available commands and their corresponding response formats vary depending upon -// the infrastructure on which the cluster is running. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// command - the text of the command to be invoked. The content of the command is infrastructure-specific. -// serviceID - the identity of the infrastructure service. This is the full name of the infrastructure service -// without the 'fabric:' URI scheme. This parameter required only for the cluster that have more than one -// instance of infrastructure service running. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) InvokeInfrastructureCommand(ctx context.Context, command string, serviceID string, timeout *int64) (result String, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "InvokeInfrastructureCommand", err.Error()) - } - - req, err := client.InvokeInfrastructureCommandPreparer(ctx, command, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", nil, "Failure preparing request") - return - } - - resp, err := client.InvokeInfrastructureCommandSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure sending request") - return - } - - result, err = client.InvokeInfrastructureCommandResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureCommand", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandPreparer prepares the InvokeInfrastructureCommand request. -func (client BaseClient) InvokeInfrastructureCommandPreparer(ctx context.Context, command string, serviceID string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Command": autorest.Encode("query", command), - } - if len(serviceID) > 0 { - queryParameters["ServiceId"] = autorest.Encode("query", serviceID) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/InvokeInfrastructureCommand"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandSender sends the InvokeInfrastructureCommand request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) InvokeInfrastructureCommandSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureCommandResponder handles the response to the InvokeInfrastructureCommand request. The method always -// closes the http.Response Body. -func (client BaseClient) InvokeInfrastructureCommandResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQuery for clusters that have one or more instances of the Infrastructure Service configured, -// this API provides a way to send infrastructure-specific queries to a particular -// instance of the Infrastructure Service. -// -// Available commands and their corresponding response formats vary depending upon -// the infrastructure on which the cluster is running. -// -// This API supports the Service Fabric platform; it is not meant to be used directly from your code. -// Parameters: -// command - the text of the command to be invoked. The content of the command is infrastructure-specific. -// serviceID - the identity of the infrastructure service. This is the full name of the infrastructure service -// without the 'fabric:' URI scheme. This parameter required only for the cluster that have more than one -// instance of infrastructure service running. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) InvokeInfrastructureQuery(ctx context.Context, command string, serviceID string, timeout *int64) (result String, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "InvokeInfrastructureQuery", err.Error()) - } - - req, err := client.InvokeInfrastructureQueryPreparer(ctx, command, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", nil, "Failure preparing request") - return - } - - resp, err := client.InvokeInfrastructureQuerySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure sending request") - return - } - - result, err = client.InvokeInfrastructureQueryResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "InvokeInfrastructureQuery", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQueryPreparer prepares the InvokeInfrastructureQuery request. -func (client BaseClient) InvokeInfrastructureQueryPreparer(ctx context.Context, command string, serviceID string, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "Command": autorest.Encode("query", command), - } - if len(serviceID) > 0 { - queryParameters["ServiceId"] = autorest.Encode("query", serviceID) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/InvokeInfrastructureQuery"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQuerySender sends the InvokeInfrastructureQuery request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) InvokeInfrastructureQuerySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeInfrastructureQueryResponder handles the response to the InvokeInfrastructureQuery request. The method always -// closes the http.Response Body. -func (client BaseClient) InvokeInfrastructureQueryResponder(resp *http.Response) (result String, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result.Value), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationType provisions a Service Fabric application type with the cluster. This is required before any -// new applications can be instantiated. -// The provision operation can be performed either on the application package specified by the -// relativePathInImageStore, or by using the URI of the external .sfpkg. -// Parameters: -// provisionApplicationTypeDescriptionBaseRequiredBodyParam - the base type of provision application type -// description which supports either image store based provision or external store based provision. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ProvisionApplicationType(ctx context.Context, provisionApplicationTypeDescriptionBaseRequiredBodyParam BasicProvisionApplicationTypeDescriptionBase, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: provisionApplicationTypeDescriptionBaseRequiredBodyParam, - Constraints: []validation.Constraint{{Target: "provisionApplicationTypeDescriptionBaseRequiredBodyParam.Async", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ProvisionApplicationType", err.Error()) - } - - req, err := client.ProvisionApplicationTypePreparer(ctx, provisionApplicationTypeDescriptionBaseRequiredBodyParam, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", nil, "Failure preparing request") - return - } - - resp, err := client.ProvisionApplicationTypeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure sending request") - return - } - - result, err = client.ProvisionApplicationTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionApplicationType", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypePreparer prepares the ProvisionApplicationType request. -func (client BaseClient) ProvisionApplicationTypePreparer(ctx context.Context, provisionApplicationTypeDescriptionBaseRequiredBodyParam BasicProvisionApplicationTypeDescriptionBase, timeout *int64) (*http.Request, error) { - const APIVersion = "6.1" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/ApplicationTypes/$/Provision"), - autorest.WithJSON(provisionApplicationTypeDescriptionBaseRequiredBodyParam), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeSender sends the ProvisionApplicationType request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ProvisionApplicationTypeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeResponder handles the response to the ProvisionApplicationType request. The method always -// closes the http.Response Body. -func (client BaseClient) ProvisionApplicationTypeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionCluster validate and provision the code or configuration packages of a Service Fabric cluster. -// Parameters: -// provisionFabricDescription - describes the parameters for provisioning a cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ProvisionCluster(ctx context.Context, provisionFabricDescription ProvisionFabricDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ProvisionCluster", err.Error()) - } - - req, err := client.ProvisionClusterPreparer(ctx, provisionFabricDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", nil, "Failure preparing request") - return - } - - resp, err := client.ProvisionClusterSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure sending request") - return - } - - result, err = client.ProvisionClusterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ProvisionCluster", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionClusterPreparer prepares the ProvisionCluster request. -func (client BaseClient) ProvisionClusterPreparer(ctx context.Context, provisionFabricDescription ProvisionFabricDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Provision"), - autorest.WithJSON(provisionFabricDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionClusterSender sends the ProvisionCluster request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ProvisionClusterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionClusterResponder handles the response to the ProvisionCluster request. The method always -// closes the http.Response Body. -func (client BaseClient) ProvisionClusterResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutProperty creates or updates the specified Service Fabric property under a given name. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyDescription - describes the Service Fabric property to be created. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) PutProperty(ctx context.Context, nameID string, propertyDescription PropertyDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: propertyDescription, - Constraints: []validation.Constraint{{Target: "propertyDescription.PropertyName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "propertyDescription.Value", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "PutProperty", err.Error()) - } - - req, err := client.PutPropertyPreparer(ctx, nameID, propertyDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", nil, "Failure preparing request") - return - } - - resp, err := client.PutPropertySender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure sending request") - return - } - - result, err = client.PutPropertyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "PutProperty", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertyPreparer prepares the PutProperty request. -func (client BaseClient) PutPropertyPreparer(ctx context.Context, nameID string, propertyDescription PropertyDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperty", pathParameters), - autorest.WithJSON(propertyDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertySender sends the PutProperty request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) PutPropertySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertyResponder handles the response to the PutProperty request. The method always -// closes the http.Response Body. -func (client BaseClient) PutPropertyResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitions indicates to the Service Fabric cluster that it should attempt to recover any services -// (including system services) which are currently stuck in quorum loss. This operation should only be performed if it -// is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data -// loss. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverAllPartitions(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverAllPartitions", err.Error()) - } - - req, err := client.RecoverAllPartitionsPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverAllPartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverAllPartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverAllPartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsPreparer prepares the RecoverAllPartitions request. -func (client BaseClient) RecoverAllPartitionsPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RecoverAllPartitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsSender sends the RecoverAllPartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverAllPartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverAllPartitionsResponder handles the response to the RecoverAllPartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverAllPartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartition indicates to the Service Fabric cluster that it should attempt to recover a specific partition -// which is currently stuck in quorum loss. This operation should only be performed if it is known that the replicas -// that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverPartition(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverPartition", err.Error()) - } - - req, err := client.RecoverPartitionPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverPartitionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure sending request") - return - } - - result, err = client.RecoverPartitionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverPartition", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionPreparer prepares the RecoverPartition request. -func (client BaseClient) RecoverPartitionPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionSender sends the RecoverPartition request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverPartitionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverPartitionResponder handles the response to the RecoverPartition request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverPartitionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitions indicates to the Service Fabric cluster that it should attempt to recover the specified -// service which is currently stuck in quorum loss. This operation should only be performed if it is known that the -// replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverServicePartitions(ctx context.Context, serviceID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverServicePartitions", err.Error()) - } - - req, err := client.RecoverServicePartitionsPreparer(ctx, serviceID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverServicePartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverServicePartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverServicePartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsPreparer prepares the RecoverServicePartitions request. -func (client BaseClient) RecoverServicePartitionsPreparer(ctx context.Context, serviceID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/$/{serviceId}/$/GetPartitions/$/Recover", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsSender sends the RecoverServicePartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverServicePartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverServicePartitionsResponder handles the response to the RecoverServicePartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverServicePartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitions indicates to the Service Fabric cluster that it should attempt to recover the system -// services which are currently stuck in quorum loss. This operation should only be performed if it is known that the -// replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RecoverSystemPartitions(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RecoverSystemPartitions", err.Error()) - } - - req, err := client.RecoverSystemPartitionsPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", nil, "Failure preparing request") - return - } - - resp, err := client.RecoverSystemPartitionsSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure sending request") - return - } - - result, err = client.RecoverSystemPartitionsResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RecoverSystemPartitions", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsPreparer prepares the RecoverSystemPartitions request. -func (client BaseClient) RecoverSystemPartitionsPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RecoverSystemPartitions"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsSender sends the RecoverSystemPartitions request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RecoverSystemPartitionsSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RecoverSystemPartitionsResponder handles the response to the RecoverSystemPartitions request. The method always -// closes the http.Response Body. -func (client BaseClient) RecoverSystemPartitionsResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeployment deletes an existing Service Fabric compose deployment. -// Parameters: -// deploymentName - the identity of the deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveComposeDeployment(ctx context.Context, deploymentName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveComposeDeployment", err.Error()) - } - - req, err := client.RemoveComposeDeploymentPreparer(ctx, deploymentName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveComposeDeploymentSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure sending request") - return - } - - result, err = client.RemoveComposeDeploymentResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveComposeDeployment", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeploymentPreparer prepares the RemoveComposeDeployment request. -func (client BaseClient) RemoveComposeDeploymentPreparer(ctx context.Context, deploymentName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeploymentSender sends the RemoveComposeDeployment request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveComposeDeploymentSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveComposeDeploymentResponder handles the response to the RemoveComposeDeployment request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveComposeDeploymentResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeState notifies Service Fabric that the persisted state on a node has been permanently removed or lost. -// This implies that it is not possible to recover the persisted state of that node. This generally happens if a hard -// disk has been wiped clean, or if a hard disk crashes. The node has to be down for this operation to be successful. -// This operation lets Service Fabric know that the replicas on that node no longer exist, and that Service Fabric -// should stop waiting for those replicas to come back up. Do not run this cmdlet if the state on the node has not been -// removed and the node can comes back up with its state intact. -// Parameters: -// nodeName - the name of the node. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveNodeState(ctx context.Context, nodeName string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveNodeState", err.Error()) - } - - req, err := client.RemoveNodeStatePreparer(ctx, nodeName, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveNodeStateSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure sending request") - return - } - - result, err = client.RemoveNodeStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveNodeState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStatePreparer prepares the RemoveNodeState request. -func (client BaseClient) RemoveNodeStatePreparer(ctx context.Context, nodeName string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/RemoveNodeState", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStateSender sends the RemoveNodeState request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveNodeStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveNodeStateResponder handles the response to the RemoveNodeState request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveNodeStateResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplica this API simulates a Service Fabric replica failure by removing a replica from a Service Fabric -// cluster. The removal closes the replica, transitions the replica to the role None, and then removes all of the state -// information of the replica from the cluster. This API tests the replica state removal path, and simulates the report -// fault permanent path through client APIs. Warning - There are no safety checks performed when this API is used. -// Incorrect use of this API can lead to data loss for stateful services.In addition, the forceRemove flag impacts all -// other replicas hosted in the same process. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// forceRemove - remove a Service Fabric application or service forcefully without going through the graceful -// shutdown sequence. This parameter can be used to forcefully delete an application or service for which -// delete is timing out due to issues in the service code that prevents graceful close of replicas. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RemoveReplica(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, forceRemove *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RemoveReplica", err.Error()) - } - - req, err := client.RemoveReplicaPreparer(ctx, nodeName, partitionID, replicaID, forceRemove, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", nil, "Failure preparing request") - return - } - - resp, err := client.RemoveReplicaSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure sending request") - return - } - - result, err = client.RemoveReplicaResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RemoveReplica", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaPreparer prepares the RemoveReplica request. -func (client BaseClient) RemoveReplicaPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, forceRemove *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if forceRemove != nil { - queryParameters["ForceRemove"] = autorest.Encode("query", *forceRemove) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Delete", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaSender sends the RemoveReplica request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RemoveReplicaSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoveReplicaResponder handles the response to the RemoveReplica request. The method always -// closes the http.Response Body. -func (client BaseClient) RemoveReplicaResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealth reports health state of the specified Service Fabric application. The report must contain -// the information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Application, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get application health and check that the report appears -// in the HealthEvents section. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportApplicationHealth(ctx context.Context, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportApplicationHealth", err.Error()) - } - - req, err := client.ReportApplicationHealthPreparer(ctx, applicationID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportApplicationHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthPreparer prepares the ReportApplicationHealth request. -func (client BaseClient) ReportApplicationHealthPreparer(ctx context.Context, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthSender sends the ReportApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportApplicationHealthResponder handles the response to the ReportApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportApplicationHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealth sends a health report on a Service Fabric cluster. The report must contain the information about -// the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway node, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetClusterHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportClusterHealth(ctx context.Context, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportClusterHealth", err.Error()) - } - - req, err := client.ReportClusterHealthPreparer(ctx, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportClusterHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportClusterHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportClusterHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthPreparer prepares the ReportClusterHealth request. -func (client BaseClient) ReportClusterHealthPreparer(ctx context.Context, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/ReportClusterHealth"), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthSender sends the ReportClusterHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportClusterHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportClusterHealthResponder handles the response to the ReportClusterHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportClusterHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealth reports health state of the application deployed on a Service Fabric node. The -// report must contain the information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get deployed application health and check that the report -// appears in the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportDeployedApplicationHealth(ctx context.Context, nodeName string, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportDeployedApplicationHealth", err.Error()) - } - - req, err := client.ReportDeployedApplicationHealthPreparer(ctx, nodeName, applicationID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportDeployedApplicationHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportDeployedApplicationHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedApplicationHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthPreparer prepares the ReportDeployedApplicationHealth request. -func (client BaseClient) ReportDeployedApplicationHealthPreparer(ctx context.Context, nodeName string, applicationID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthSender sends the ReportDeployedApplicationHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportDeployedApplicationHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedApplicationHealthResponder handles the response to the ReportDeployedApplicationHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportDeployedApplicationHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealth reports health state of the service package of the application deployed on a -// Service Fabric node. The report must contain the information about the source of the health report and property on -// which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, get deployed service package health and check that the -// report appears in the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// servicePackageName - the name of the service package. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportDeployedServicePackageHealth(ctx context.Context, nodeName string, applicationID string, servicePackageName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportDeployedServicePackageHealth", err.Error()) - } - - req, err := client.ReportDeployedServicePackageHealthPreparer(ctx, nodeName, applicationID, servicePackageName, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportDeployedServicePackageHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportDeployedServicePackageHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportDeployedServicePackageHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthPreparer prepares the ReportDeployedServicePackageHealth request. -func (client BaseClient) ReportDeployedServicePackageHealthPreparer(ctx context.Context, nodeName string, applicationID string, servicePackageName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - "servicePackageName": servicePackageName, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetServicePackages/{servicePackageName}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthSender sends the ReportDeployedServicePackageHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportDeployedServicePackageHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportDeployedServicePackageHealthResponder handles the response to the ReportDeployedServicePackageHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportDeployedServicePackageHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealth reports health state of the specified Service Fabric node. The report must contain the information -// about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway node, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetNodeHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// nodeName - the name of the node. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportNodeHealth(ctx context.Context, nodeName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportNodeHealth", err.Error()) - } - - req, err := client.ReportNodeHealthPreparer(ctx, nodeName, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportNodeHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportNodeHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportNodeHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthPreparer prepares the ReportNodeHealth request. -func (client BaseClient) ReportNodeHealthPreparer(ctx context.Context, nodeName string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthSender sends the ReportNodeHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportNodeHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportNodeHealthResponder handles the response to the ReportNodeHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportNodeHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealth reports health state of the specified Service Fabric partition. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Partition, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetPartitionHealth and check that the report appears -// in the HealthEvents section. -// Parameters: -// partitionID - the identity of the partition. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportPartitionHealth(ctx context.Context, partitionID uuid.UUID, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportPartitionHealth", err.Error()) - } - - req, err := client.ReportPartitionHealthPreparer(ctx, partitionID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportPartitionHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportPartitionHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportPartitionHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthPreparer prepares the ReportPartitionHealth request. -func (client BaseClient) ReportPartitionHealthPreparer(ctx context.Context, partitionID uuid.UUID, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthSender sends the ReportPartitionHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportPartitionHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportPartitionHealthResponder handles the response to the ReportPartitionHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportPartitionHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealth reports health state of the specified Service Fabric replica. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Replica, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetReplicaHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// serviceKind - the kind of service replica (Stateless or Stateful) for which the health is being reported. -// Following are the possible values. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportReplicaHealth(ctx context.Context, partitionID uuid.UUID, replicaID string, serviceKind ReplicaHealthReportServiceKindRequiredQueryParam, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportReplicaHealth", err.Error()) - } - - req, err := client.ReportReplicaHealthPreparer(ctx, partitionID, replicaID, serviceKind, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportReplicaHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportReplicaHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportReplicaHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthPreparer prepares the ReportReplicaHealth request. -func (client BaseClient) ReportReplicaHealthPreparer(ctx context.Context, partitionID uuid.UUID, replicaID string, serviceKind ReplicaHealthReportServiceKindRequiredQueryParam, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "ServiceKind": autorest.Encode("query", serviceKind), - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/GetReplicas/{replicaId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthSender sends the ReportReplicaHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportReplicaHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportReplicaHealthResponder handles the response to the ReportReplicaHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportReplicaHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealth reports health state of the specified Service Fabric service. The report must contain the -// information about the source of the health report and property on which it is reported. -// The report is sent to a Service Fabric gateway Service, which forwards to the health store. -// The report may be accepted by the gateway, but rejected by the health store after extra validation. -// For example, the health store may reject the report because of an invalid parameter, like a stale sequence number. -// To see whether the report was applied in the health store, run GetServiceHealth and check that the report appears in -// the HealthEvents section. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// healthInformation - describes the health information for the health report. This information needs to be -// present in all of the health reports sent to the health manager. -// immediate - a flag which indicates whether the report should be sent immediately. -// A health report is sent to a Service Fabric gateway Application, which forwards to the health store. -// If Immediate is set to true, the report is sent immediately from Http Gateway to the health store, -// regardless of the fabric client settings that the Http Gateway Application is using. -// This is useful for critical reports that should be sent as soon as possible. -// Depending on timing and other conditions, sending the report may still fail, for example if the Http Gateway -// is closed or the message doesn't reach the Gateway. -// If Immediate is set to false, the report is sent based on the health client settings from the Http Gateway. -// Therefore, it will be batched according to the HealthReportSendInterval configuration. -// This is the recommended setting because it allows the health client to optimize health reporting messages to -// health store as well as health report processing. -// By default, reports are not sent immediately. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ReportServiceHealth(ctx context.Context, serviceID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: healthInformation, - Constraints: []validation.Constraint{{Target: "healthInformation.SourceID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "healthInformation.Property", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ReportServiceHealth", err.Error()) - } - - req, err := client.ReportServiceHealthPreparer(ctx, serviceID, healthInformation, immediate, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", nil, "Failure preparing request") - return - } - - resp, err := client.ReportServiceHealthSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure sending request") - return - } - - result, err = client.ReportServiceHealthResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ReportServiceHealth", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthPreparer prepares the ReportServiceHealth request. -func (client BaseClient) ReportServiceHealthPreparer(ctx context.Context, serviceID string, healthInformation HealthInformation, immediate *bool, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if immediate != nil { - queryParameters["Immediate"] = autorest.Encode("query", *immediate) - } else { - queryParameters["Immediate"] = autorest.Encode("query", false) - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/ReportHealth", pathParameters), - autorest.WithJSON(healthInformation), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthSender sends the ReportServiceHealth request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ReportServiceHealthSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReportServiceHealthResponder handles the response to the ReportServiceHealth request. The method always -// closes the http.Response Body. -func (client BaseClient) ReportServiceHealthResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoad resets the current load of a Service Fabric partition to the default load for the service. -// Parameters: -// partitionID - the identity of the partition. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResetPartitionLoad(ctx context.Context, partitionID uuid.UUID, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResetPartitionLoad", err.Error()) - } - - req, err := client.ResetPartitionLoadPreparer(ctx, partitionID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", nil, "Failure preparing request") - return - } - - resp, err := client.ResetPartitionLoadSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure sending request") - return - } - - result, err = client.ResetPartitionLoadResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResetPartitionLoad", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadPreparer prepares the ResetPartitionLoad request. -func (client BaseClient) ResetPartitionLoadPreparer(ctx context.Context, partitionID uuid.UUID, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Partitions/{partitionId}/$/ResetLoad", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadSender sends the ResetPartitionLoad request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResetPartitionLoadSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResetPartitionLoadResponder handles the response to the ResetPartitionLoad request. The method always -// closes the http.Response Body. -func (client BaseClient) ResetPartitionLoadResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveService resolve a Service Fabric service partition, to get the endpoints of the service replicas. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionKeyType - key type for the partition. This parameter is required if the partition scheme for the -// service is Int64Range or Named. The possible values are following. -// - None (1) - Indicates that the the PartitionKeyValue parameter is not specified. This is valid for the -// partitions with partitioning scheme as Singleton. This is the default value. The value is 1. -// - Int64Range (2) - Indicates that the the PartitionKeyValue parameter is an int64 partition key. This is -// valid for the partitions with partitioning scheme as Int64Range. The value is 2. -// - Named (3) - Indicates that the the PartitionKeyValue parameter is a name of the partition. This is valid -// for the partitions with partitioning scheme as Named. The value is 3. -// partitionKeyValue - partition key. This is required if the partition scheme for the service is Int64Range or -// Named. -// previousRspVersion - the value in the Version field of the response that was received previously. This is -// required if the user knows that the result that was got previously is stale. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResolveService(ctx context.Context, serviceID string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string, timeout *int64) (result ResolvedServicePartition, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResolveService", err.Error()) - } - - req, err := client.ResolveServicePreparer(ctx, serviceID, partitionKeyType, partitionKeyValue, previousRspVersion, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", nil, "Failure preparing request") - return - } - - resp, err := client.ResolveServiceSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure sending request") - return - } - - result, err = client.ResolveServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResolveService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServicePreparer prepares the ResolveService request. -func (client BaseClient) ResolveServicePreparer(ctx context.Context, serviceID string, partitionKeyType *int32, partitionKeyValue string, previousRspVersion string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if partitionKeyType != nil { - queryParameters["PartitionKeyType"] = autorest.Encode("query", *partitionKeyType) - } - if len(partitionKeyValue) > 0 { - queryParameters["PartitionKeyValue"] = partitionKeyValue - } - if len(previousRspVersion) > 0 { - queryParameters["PreviousRspVersion"] = previousRspVersion - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/ResolvePartition", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServiceSender sends the ResolveService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResolveServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolveServiceResponder handles the response to the ResolveService request. The method always -// closes the http.Response Body. -func (client BaseClient) ResolveServiceResponder(resp *http.Response) (result ResolvedServicePartition, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackage restarts a code package deployed on a Service Fabric node in a cluster. This aborts the -// code package process, which will restart all the user service replicas hosted in that process. -// Parameters: -// nodeName - the name of the node. -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// restartDeployedCodePackageDescription - describes the deployed code package on Service Fabric node to -// restart. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartDeployedCodePackage(ctx context.Context, nodeName string, applicationID string, restartDeployedCodePackageDescription RestartDeployedCodePackageDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: restartDeployedCodePackageDescription, - Constraints: []validation.Constraint{{Target: "restartDeployedCodePackageDescription.ServiceManifestName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "restartDeployedCodePackageDescription.CodePackageName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "restartDeployedCodePackageDescription.CodePackageInstanceID", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartDeployedCodePackage", err.Error()) - } - - req, err := client.RestartDeployedCodePackagePreparer(ctx, nodeName, applicationID, restartDeployedCodePackageDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", nil, "Failure preparing request") - return - } - - resp, err := client.RestartDeployedCodePackageSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure sending request") - return - } - - result, err = client.RestartDeployedCodePackageResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartDeployedCodePackage", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackagePreparer prepares the RestartDeployedCodePackage request. -func (client BaseClient) RestartDeployedCodePackagePreparer(ctx context.Context, nodeName string, applicationID string, restartDeployedCodePackageDescription RestartDeployedCodePackageDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetApplications/{applicationId}/$/GetCodePackages/$/Restart", pathParameters), - autorest.WithJSON(restartDeployedCodePackageDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageSender sends the RestartDeployedCodePackage request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartDeployedCodePackageSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageResponder handles the response to the RestartDeployedCodePackage request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartDeployedCodePackageResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNode restarts a Service Fabric cluster node that is already started. -// Parameters: -// nodeName - the name of the node. -// restartNodeDescription - the instance of the node to be restarted and a flag indicating the need to take -// dump of the fabric process. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartNode(ctx context.Context, nodeName string, restartNodeDescription RestartNodeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: restartNodeDescription, - Constraints: []validation.Constraint{{Target: "restartNodeDescription.NodeInstanceID", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartNode", err.Error()) - } - - req, err := client.RestartNodePreparer(ctx, nodeName, restartNodeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", nil, "Failure preparing request") - return - } - - resp, err := client.RestartNodeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure sending request") - return - } - - result, err = client.RestartNodeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartNode", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodePreparer prepares the RestartNode request. -func (client BaseClient) RestartNodePreparer(ctx context.Context, nodeName string, restartNodeDescription RestartNodeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/Restart", pathParameters), - autorest.WithJSON(restartNodeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeSender sends the RestartNode request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartNodeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeResponder handles the response to the RestartNode request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartNodeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplica restarts a service replica of a persisted service running on a node. Warning - There are no safety -// checks performed when this API is used. Incorrect use of this API can lead to availability loss for stateful -// services. -// Parameters: -// nodeName - the name of the node. -// partitionID - the identity of the partition. -// replicaID - the identifier of the replica. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RestartReplica(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RestartReplica", err.Error()) - } - - req, err := client.RestartReplicaPreparer(ctx, nodeName, partitionID, replicaID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", nil, "Failure preparing request") - return - } - - resp, err := client.RestartReplicaSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure sending request") - return - } - - result, err = client.RestartReplicaResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RestartReplica", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaPreparer prepares the RestartReplica request. -func (client BaseClient) RestartReplicaPreparer(ctx context.Context, nodeName string, partitionID uuid.UUID, replicaID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - "partitionId": partitionID, - "replicaId": replicaID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas/{replicaId}/$/Restart", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaSender sends the RestartReplica request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RestartReplicaSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartReplicaResponder handles the response to the RestartReplica request. The method always -// closes the http.Response Body. -func (client BaseClient) RestartReplicaResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgrade resumes an unmonitored manual Service Fabric application upgrade. Service Fabric upgrades -// one upgrade domain at a time. For unmonitored manual upgrades, after Service Fabric finishes an upgrade domain, it -// waits for you to call this API before proceeding to the next upgrade domain. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// resumeApplicationUpgradeDescription - describes the parameters for resuming an application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResumeApplicationUpgrade(ctx context.Context, applicationID string, resumeApplicationUpgradeDescription ResumeApplicationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: resumeApplicationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "resumeApplicationUpgradeDescription.UpgradeDomainName", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResumeApplicationUpgrade", err.Error()) - } - - req, err := client.ResumeApplicationUpgradePreparer(ctx, applicationID, resumeApplicationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.ResumeApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.ResumeApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradePreparer prepares the ResumeApplicationUpgrade request. -func (client BaseClient) ResumeApplicationUpgradePreparer(ctx context.Context, applicationID string, resumeApplicationUpgradeDescription ResumeApplicationUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/MoveToNextUpgradeDomain", pathParameters), - autorest.WithJSON(resumeApplicationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeSender sends the ResumeApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResumeApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeResponder handles the response to the ResumeApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) ResumeApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgrade make the cluster code or configuration upgrade move on to the next upgrade domain if -// appropriate. -// Parameters: -// resumeClusterUpgradeDescription - describes the parameters for resuming a cluster upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) ResumeClusterUpgrade(ctx context.Context, resumeClusterUpgradeDescription ResumeClusterUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: resumeClusterUpgradeDescription, - Constraints: []validation.Constraint{{Target: "resumeClusterUpgradeDescription.UpgradeDomain", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "ResumeClusterUpgrade", err.Error()) - } - - req, err := client.ResumeClusterUpgradePreparer(ctx, resumeClusterUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.ResumeClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.ResumeClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "ResumeClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradePreparer prepares the ResumeClusterUpgrade request. -func (client BaseClient) ResumeClusterUpgradePreparer(ctx context.Context, resumeClusterUpgradeDescription ResumeClusterUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/MoveToNextUpgradeDomain"), - autorest.WithJSON(resumeClusterUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradeSender sends the ResumeClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) ResumeClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradeResponder handles the response to the ResumeClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) ResumeClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgrade starts rolling back the current application upgrade to the previous version. This API can -// only be used to rollback the current in-progress upgrade that is rolling forward to new version. If the application -// is not currently being upgraded use StartApplicationUpgrade API to upgrade it to desired version including rolling -// back to a previous version. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RollbackApplicationUpgrade(ctx context.Context, applicationID string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RollbackApplicationUpgrade", err.Error()) - } - - req, err := client.RollbackApplicationUpgradePreparer(ctx, applicationID, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.RollbackApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.RollbackApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradePreparer prepares the RollbackApplicationUpgrade request. -func (client BaseClient) RollbackApplicationUpgradePreparer(ctx context.Context, applicationID string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/RollbackUpgrade", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradeSender sends the RollbackApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RollbackApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackApplicationUpgradeResponder handles the response to the RollbackApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) RollbackApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgrade rollback the code or configuration upgrade of a Service Fabric cluster. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) RollbackClusterUpgrade(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "RollbackClusterUpgrade", err.Error()) - } - - req, err := client.RollbackClusterUpgradePreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.RollbackClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.RollbackClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "RollbackClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgradePreparer prepares the RollbackClusterUpgrade request. -func (client BaseClient) RollbackClusterUpgradePreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/RollbackUpgrade"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgradeSender sends the RollbackClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) RollbackClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollbackClusterUpgradeResponder handles the response to the RollbackClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) RollbackClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SetUpgradeOrchestrationServiceState update the service state of Service Fabric Upgrade Orchestration Service. This -// API is internally used for support purposes. -// Parameters: -// upgradeOrchestrationServiceState - service state of Service Fabric Upgrade Orchestration Service. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) SetUpgradeOrchestrationServiceState(ctx context.Context, upgradeOrchestrationServiceState UpgradeOrchestrationServiceState, timeout *int64) (result UpgradeOrchestrationServiceStateSummary, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", err.Error()) - } - - req, err := client.SetUpgradeOrchestrationServiceStatePreparer(ctx, upgradeOrchestrationServiceState, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", nil, "Failure preparing request") - return - } - - resp, err := client.SetUpgradeOrchestrationServiceStateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure sending request") - return - } - - result, err = client.SetUpgradeOrchestrationServiceStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SetUpgradeOrchestrationServiceState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SetUpgradeOrchestrationServiceStatePreparer prepares the SetUpgradeOrchestrationServiceState request. -func (client BaseClient) SetUpgradeOrchestrationServiceStatePreparer(ctx context.Context, upgradeOrchestrationServiceState UpgradeOrchestrationServiceState, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/SetUpgradeOrchestrationServiceState"), - autorest.WithJSON(upgradeOrchestrationServiceState), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SetUpgradeOrchestrationServiceStateSender sends the SetUpgradeOrchestrationServiceState request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) SetUpgradeOrchestrationServiceStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SetUpgradeOrchestrationServiceStateResponder handles the response to the SetUpgradeOrchestrationServiceState request. The method always -// closes the http.Response Body. -func (client BaseClient) SetUpgradeOrchestrationServiceStateResponder(resp *http.Response) (result UpgradeOrchestrationServiceStateSummary, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgrade validates the supplied application upgrade parameters and starts upgrading the application -// if the parameters are valid. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// applicationUpgradeDescription - parameters for an application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartApplicationUpgrade(ctx context.Context, applicationID string, applicationUpgradeDescription ApplicationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "applicationUpgradeDescription.Name", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationUpgradeDescription.TargetApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "applicationUpgradeDescription.Parameters", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartApplicationUpgrade", err.Error()) - } - - req, err := client.StartApplicationUpgradePreparer(ctx, applicationID, applicationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradePreparer prepares the StartApplicationUpgrade request. -func (client BaseClient) StartApplicationUpgradePreparer(ctx context.Context, applicationID string, applicationUpgradeDescription ApplicationUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/Upgrade", pathParameters), - autorest.WithJSON(applicationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradeSender sends the StartApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartApplicationUpgradeResponder handles the response to the StartApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaos if Chaos is not already running in the cluster, it starts Chaos with the passed in Chaos parameters. -// If Chaos is already running when this call is made, the call fails with the error code -// FABRIC_E_CHAOS_ALREADY_RUNNING. -// Please refer to the article [Induce controlled Chaos in Service Fabric -// clusters](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-controlled-chaos) for more details. -// Parameters: -// chaosParameters - describes all the parameters to configure a Chaos run. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartChaos(ctx context.Context, chaosParameters ChaosParameters, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: chaosParameters, - Constraints: []validation.Constraint{{Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.MaxClusterStabilizationTimeoutInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.MaxConcurrentFaults", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.MaxConcurrentFaults", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.MaxConcurrentFaults", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.WaitTimeBetweenFaultsInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "chaosParameters.WaitTimeBetweenIterationsInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartChaos", err.Error()) - } - - req, err := client.StartChaosPreparer(ctx, chaosParameters, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", nil, "Failure preparing request") - return - } - - resp, err := client.StartChaosSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure sending request") - return - } - - result, err = client.StartChaosResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartChaos", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosPreparer prepares the StartChaos request. -func (client BaseClient) StartChaosPreparer(ctx context.Context, chaosParameters ChaosParameters, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Start"), - autorest.WithJSON(chaosParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosSender sends the StartChaos request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartChaosSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartChaosResponder handles the response to the StartChaos request. The method always -// closes the http.Response Body. -func (client BaseClient) StartChaosResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgrade validate the supplied configuration upgrade parameters and start upgrading the -// cluster configuration if the parameters are valid. -// Parameters: -// clusterConfigurationUpgradeDescription - parameters for a standalone cluster configuration upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartClusterConfigurationUpgrade(ctx context.Context, clusterConfigurationUpgradeDescription ClusterConfigurationUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: clusterConfigurationUpgradeDescription, - Constraints: []validation.Constraint{{Target: "clusterConfigurationUpgradeDescription.ClusterConfig", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartClusterConfigurationUpgrade", err.Error()) - } - - req, err := client.StartClusterConfigurationUpgradePreparer(ctx, clusterConfigurationUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartClusterConfigurationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartClusterConfigurationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterConfigurationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgradePreparer prepares the StartClusterConfigurationUpgrade request. -func (client BaseClient) StartClusterConfigurationUpgradePreparer(ctx context.Context, clusterConfigurationUpgradeDescription ClusterConfigurationUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/StartClusterConfigurationUpgrade"), - autorest.WithJSON(clusterConfigurationUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgradeSender sends the StartClusterConfigurationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartClusterConfigurationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterConfigurationUpgradeResponder handles the response to the StartClusterConfigurationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartClusterConfigurationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgrade validate the supplied upgrade parameters and start upgrading the code or configuration version -// of a Service Fabric cluster if the parameters are valid. -// Parameters: -// startClusterUpgradeDescription - describes the parameters for starting a cluster upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartClusterUpgrade(ctx context.Context, startClusterUpgradeDescription StartClusterUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: startClusterUpgradeDescription, - Constraints: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "startClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartClusterUpgrade", err.Error()) - } - - req, err := client.StartClusterUpgradePreparer(ctx, startClusterUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradePreparer prepares the StartClusterUpgrade request. -func (client BaseClient) StartClusterUpgradePreparer(ctx context.Context, startClusterUpgradeDescription StartClusterUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Upgrade"), - autorest.WithJSON(startClusterUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradeSender sends the StartClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradeResponder handles the response to the StartClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgrade validates the supplied upgrade parameters and starts upgrading the deployment if the -// parameters are valid. -// Parameters: -// deploymentName - the identity of the deployment. -// composeDeploymentUpgradeDescription - parameters for upgrading compose deployment. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartComposeDeploymentUpgrade(ctx context.Context, deploymentName string, composeDeploymentUpgradeDescription ComposeDeploymentUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: composeDeploymentUpgradeDescription, - Constraints: []validation.Constraint{{Target: "composeDeploymentUpgradeDescription.DeploymentName", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "composeDeploymentUpgradeDescription.ComposeFileContent", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartComposeDeploymentUpgrade", err.Error()) - } - - req, err := client.StartComposeDeploymentUpgradePreparer(ctx, deploymentName, composeDeploymentUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.StartComposeDeploymentUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure sending request") - return - } - - result, err = client.StartComposeDeploymentUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartComposeDeploymentUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgradePreparer prepares the StartComposeDeploymentUpgrade request. -func (client BaseClient) StartComposeDeploymentUpgradePreparer(ctx context.Context, deploymentName string, composeDeploymentUpgradeDescription ComposeDeploymentUpgradeDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "deploymentName": deploymentName, - } - - const APIVersion = "6.0-preview" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ComposeDeployments/{deploymentName}/$/Upgrade", pathParameters), - autorest.WithJSON(composeDeploymentUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgradeSender sends the StartComposeDeploymentUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartComposeDeploymentUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartComposeDeploymentUpgradeResponder handles the response to the StartComposeDeploymentUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) StartComposeDeploymentUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLoss this API will induce data loss for the specified partition. It will trigger a call to the OnDataLoss -// API of the partition. -// Actual data loss will depend on the specified DataLossMode -// PartialDataLoss - Only a quorum of replicas are removed and OnDataLoss is triggered for the partition but actual -// data loss depends on the presence of in-flight replication. -// FullDataLoss - All replicas are removed hence all data is lost and OnDataLoss is triggered. -// -// This API should only be called with a stateful service as the target. -// -// Calling this API with a system service as the target is not advised. -// -// Note: Once this API has been called, it cannot be reversed. Calling CancelOperation will only stop execution and -// clean up internal system state. -// It will not restore data if the command has progressed far enough to cause data loss. -// -// Call the GetDataLossProgress API with the same OperationId to return information on the operation started with this -// API. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// dataLossMode - this enum is passed to the StartDataLoss API to indicate what type of data loss to induce. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartDataLoss(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, dataLossMode DataLossModeRequiredQueryParam, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartDataLoss", err.Error()) - } - - req, err := client.StartDataLossPreparer(ctx, serviceID, partitionID, operationID, dataLossMode, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", nil, "Failure preparing request") - return - } - - resp, err := client.StartDataLossSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure sending request") - return - } - - result, err = client.StartDataLossResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartDataLoss", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossPreparer prepares the StartDataLoss request. -func (client BaseClient) StartDataLossPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, dataLossMode DataLossModeRequiredQueryParam, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "DataLossMode": autorest.Encode("query", dataLossMode), - "OperationId": autorest.Encode("query", operationID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartDataLoss", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossSender sends the StartDataLoss request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartDataLossSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartDataLossResponder handles the response to the StartDataLoss request. The method always -// closes the http.Response Body. -func (client BaseClient) StartDataLossResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransition starts or stops a cluster node. A cluster node is a process, not the OS instance itself. To -// start a node, pass in "Start" for the NodeTransitionType parameter. -// To stop a node, pass in "Stop" for the NodeTransitionType parameter. This API starts the operation - when the API -// returns the node may not have finished transitioning yet. -// Call GetNodeTransitionProgress with the same OperationId to get the progress of the operation. -// Parameters: -// nodeName - the name of the node. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// nodeTransitionType - indicates the type of transition to perform. NodeTransitionType.Start will start a -// stopped node. NodeTransitionType.Stop will stop a node that is up. -// nodeInstanceID - the node instance ID of the target node. This can be determined through GetNodeInfo API. -// stopDurationInSeconds - the duration, in seconds, to keep the node stopped. The minimum value is 600, the -// maximum is 14400. After this time expires, the node will automatically come back up. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartNodeTransition(ctx context.Context, nodeName string, operationID uuid.UUID, nodeTransitionType NodeTransitionTypeRequiredQueryParam, nodeInstanceID string, stopDurationInSeconds int32, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: stopDurationInSeconds, - Constraints: []validation.Constraint{{Target: "stopDurationInSeconds", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartNodeTransition", err.Error()) - } - - req, err := client.StartNodeTransitionPreparer(ctx, nodeName, operationID, nodeTransitionType, nodeInstanceID, stopDurationInSeconds, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", nil, "Failure preparing request") - return - } - - resp, err := client.StartNodeTransitionSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure sending request") - return - } - - result, err = client.StartNodeTransitionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartNodeTransition", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionPreparer prepares the StartNodeTransition request. -func (client BaseClient) StartNodeTransitionPreparer(ctx context.Context, nodeName string, operationID uuid.UUID, nodeTransitionType NodeTransitionTypeRequiredQueryParam, nodeInstanceID string, stopDurationInSeconds int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nodeName": autorest.Encode("path", nodeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "NodeInstanceId": autorest.Encode("query", nodeInstanceID), - "NodeTransitionType": autorest.Encode("query", nodeTransitionType), - "OperationId": autorest.Encode("query", operationID), - "StopDurationInSeconds": autorest.Encode("query", stopDurationInSeconds), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Nodes/{nodeName}/$/StartTransition/", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionSender sends the StartNodeTransition request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartNodeTransitionSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartNodeTransitionResponder handles the response to the StartNodeTransition request. The method always -// closes the http.Response Body. -func (client BaseClient) StartNodeTransitionResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestart this API is useful for testing failover. -// -// If used to target a stateless service partition, RestartPartitionMode must be AllReplicasOrInstances. -// -// Call the GetPartitionRestartProgress API using the same OperationId to get the progress. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// restartPartitionMode - describe which partitions to restart. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartPartitionRestart(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, restartPartitionMode RestartPartitionModeRequiredQueryParam, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartPartitionRestart", err.Error()) - } - - req, err := client.StartPartitionRestartPreparer(ctx, serviceID, partitionID, operationID, restartPartitionMode, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", nil, "Failure preparing request") - return - } - - resp, err := client.StartPartitionRestartSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure sending request") - return - } - - result, err = client.StartPartitionRestartResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartPartitionRestart", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartPreparer prepares the StartPartitionRestart request. -func (client BaseClient) StartPartitionRestartPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, restartPartitionMode RestartPartitionModeRequiredQueryParam, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - "RestartPartitionMode": autorest.Encode("query", restartPartitionMode), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartRestart", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartSender sends the StartPartitionRestart request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartPartitionRestartSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartPartitionRestartResponder handles the response to the StartPartitionRestart request. The method always -// closes the http.Response Body. -func (client BaseClient) StartPartitionRestartResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLoss induces quorum loss for a given stateful service partition. This API is useful for a temporary -// quorum loss situation on your service. -// -// Call the GetQuorumLossProgress API with the same OperationId to return information on the operation started with -// this API. -// -// This can only be called on stateful persisted (HasPersistedState==true) services. Do not use this API on stateless -// services or stateful in-memory only services. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// partitionID - the identity of the partition. -// operationID - a GUID that identifies a call of this API. This is passed into the corresponding GetProgress -// API -// quorumLossMode - this enum is passed to the StartQuorumLoss API to indicate what type of quorum loss to -// induce. -// quorumLossDuration - the amount of time for which the partition will be kept in quorum loss. This must be -// specified in seconds. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StartQuorumLoss(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, quorumLossMode QuorumLossModeRequiredQueryParam, quorumLossDuration int32, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StartQuorumLoss", err.Error()) - } - - req, err := client.StartQuorumLossPreparer(ctx, serviceID, partitionID, operationID, quorumLossMode, quorumLossDuration, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", nil, "Failure preparing request") - return - } - - resp, err := client.StartQuorumLossSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure sending request") - return - } - - result, err = client.StartQuorumLossResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StartQuorumLoss", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossPreparer prepares the StartQuorumLoss request. -func (client BaseClient) StartQuorumLossPreparer(ctx context.Context, serviceID string, partitionID uuid.UUID, operationID uuid.UUID, quorumLossMode QuorumLossModeRequiredQueryParam, quorumLossDuration int32, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "partitionId": partitionID, - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "OperationId": autorest.Encode("query", operationID), - "QuorumLossDuration": autorest.Encode("query", quorumLossDuration), - "QuorumLossMode": autorest.Encode("query", quorumLossMode), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Faults/Services/{serviceId}/$/GetPartitions/{partitionId}/$/StartQuorumLoss", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossSender sends the StartQuorumLoss request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StartQuorumLossSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartQuorumLossResponder handles the response to the StartQuorumLoss request. The method always -// closes the http.Response Body. -func (client BaseClient) StartQuorumLossResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaos stops Chaos from scheduling further faults; but, the in-flight faults are not affected. -// Parameters: -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) StopChaos(ctx context.Context, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "StopChaos", err.Error()) - } - - req, err := client.StopChaosPreparer(ctx, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", nil, "Failure preparing request") - return - } - - resp, err := client.StopChaosSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure sending request") - return - } - - result, err = client.StopChaosResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "StopChaos", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosPreparer prepares the StopChaos request. -func (client BaseClient) StopChaosPreparer(ctx context.Context, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/Tools/Chaos/$/Stop"), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosSender sends the StopChaos request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) StopChaosSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StopChaosResponder handles the response to the StopChaos request. The method always -// closes the http.Response Body. -func (client BaseClient) StopChaosResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatch submits a batch of property operations. Either all or none of the operations will be committed. -// Parameters: -// nameID - the Service Fabric name, without the 'fabric:' URI scheme. -// propertyBatchDescriptionList - describes the property batch operations to be submitted. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) SubmitPropertyBatch(ctx context.Context, nameID string, propertyBatchDescriptionList PropertyBatchDescriptionList, timeout *int64) (result PropertyBatchInfoModel, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "SubmitPropertyBatch", err.Error()) - } - - req, err := client.SubmitPropertyBatchPreparer(ctx, nameID, propertyBatchDescriptionList, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", nil, "Failure preparing request") - return - } - - resp, err := client.SubmitPropertyBatchSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure sending request") - return - } - - result, err = client.SubmitPropertyBatchResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "SubmitPropertyBatch", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatchPreparer prepares the SubmitPropertyBatch request. -func (client BaseClient) SubmitPropertyBatchPreparer(ctx context.Context, nameID string, propertyBatchDescriptionList PropertyBatchDescriptionList, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "nameId": nameID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Names/{nameId}/$/GetProperties/$/SubmitBatch", pathParameters), - autorest.WithJSON(propertyBatchDescriptionList), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatchSender sends the SubmitPropertyBatch request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) SubmitPropertyBatchSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SubmitPropertyBatchResponder handles the response to the SubmitPropertyBatch request. The method always -// closes the http.Response Body. -func (client BaseClient) SubmitPropertyBatchResponder(resp *http.Response) (result PropertyBatchInfoModel, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusConflict), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationType removes or unregisters a Service Fabric application type from the cluster. This operation -// can only be performed if all application instances of the application type has been deleted. Once the application -// type is unregistered, no new application instances can be created for this particular application type. -// Parameters: -// applicationTypeName - the name of the application type. -// unprovisionApplicationTypeDescriptionInfo - the relative path for the application package in the image store -// specified during the prior copy operation. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UnprovisionApplicationType(ctx context.Context, applicationTypeName string, unprovisionApplicationTypeDescriptionInfo UnprovisionApplicationTypeDescriptionInfo, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: unprovisionApplicationTypeDescriptionInfo, - Constraints: []validation.Constraint{{Target: "unprovisionApplicationTypeDescriptionInfo.ApplicationTypeVersion", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UnprovisionApplicationType", err.Error()) - } - - req, err := client.UnprovisionApplicationTypePreparer(ctx, applicationTypeName, unprovisionApplicationTypeDescriptionInfo, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", nil, "Failure preparing request") - return - } - - resp, err := client.UnprovisionApplicationTypeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure sending request") - return - } - - result, err = client.UnprovisionApplicationTypeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionApplicationType", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypePreparer prepares the UnprovisionApplicationType request. -func (client BaseClient) UnprovisionApplicationTypePreparer(ctx context.Context, applicationTypeName string, unprovisionApplicationTypeDescriptionInfo UnprovisionApplicationTypeDescriptionInfo, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationTypeName": autorest.Encode("path", applicationTypeName), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ApplicationTypes/{applicationTypeName}/$/Unprovision", pathParameters), - autorest.WithJSON(unprovisionApplicationTypeDescriptionInfo), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypeSender sends the UnprovisionApplicationType request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UnprovisionApplicationTypeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypeResponder handles the response to the UnprovisionApplicationType request. The method always -// closes the http.Response Body. -func (client BaseClient) UnprovisionApplicationTypeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionCluster unprovision the code or configuration packages of a Service Fabric cluster. It is supported to -// unprovision code and configuration separately. -// Parameters: -// unprovisionFabricDescription - describes the parameters for unprovisioning a cluster. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UnprovisionCluster(ctx context.Context, unprovisionFabricDescription UnprovisionFabricDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UnprovisionCluster", err.Error()) - } - - req, err := client.UnprovisionClusterPreparer(ctx, unprovisionFabricDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", nil, "Failure preparing request") - return - } - - resp, err := client.UnprovisionClusterSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure sending request") - return - } - - result, err = client.UnprovisionClusterResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UnprovisionCluster", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionClusterPreparer prepares the UnprovisionCluster request. -func (client BaseClient) UnprovisionClusterPreparer(ctx context.Context, unprovisionFabricDescription UnprovisionFabricDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/Unprovision"), - autorest.WithJSON(unprovisionFabricDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionClusterSender sends the UnprovisionCluster request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UnprovisionClusterSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionClusterResponder handles the response to the UnprovisionCluster request. The method always -// closes the http.Response Body. -func (client BaseClient) UnprovisionClusterResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgrade updates the parameters of an ongoing application upgrade from the ones specified at the -// time of starting the application upgrade. This may be required to mitigate stuck application upgrades due to -// incorrect parameters or issues in the application to make progress. -// Parameters: -// applicationID - the identity of the application. This is typically the full name of the application without -// the 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the application name is "fabric:/myapp/app1", the application identity would be "myapp~app1" -// in 6.0+ and "myapp/app1" in previous versions. -// applicationUpgradeUpdateDescription - parameters for updating an existing application upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateApplicationUpgrade(ctx context.Context, applicationID string, applicationUpgradeUpdateDescription ApplicationUpgradeUpdateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: applicationUpgradeUpdateDescription, - Constraints: []validation.Constraint{{Target: "applicationUpgradeUpdateDescription.Name", Name: validation.Null, Rule: true, Chain: nil}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateApplicationUpgrade", err.Error()) - } - - req, err := client.UpdateApplicationUpgradePreparer(ctx, applicationID, applicationUpgradeUpdateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateApplicationUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure sending request") - return - } - - result, err = client.UpdateApplicationUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateApplicationUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradePreparer prepares the UpdateApplicationUpgrade request. -func (client BaseClient) UpdateApplicationUpgradePreparer(ctx context.Context, applicationID string, applicationUpgradeUpdateDescription ApplicationUpgradeUpdateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "applicationId": applicationID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Applications/{applicationId}/$/UpdateUpgrade", pathParameters), - autorest.WithJSON(applicationUpgradeUpdateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradeSender sends the UpdateApplicationUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateApplicationUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateApplicationUpgradeResponder handles the response to the UpdateApplicationUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateApplicationUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgrade update the upgrade parameters used during a Service Fabric cluster upgrade. -// Parameters: -// updateClusterUpgradeDescription - parameters for updating a cluster upgrade. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateClusterUpgrade(ctx context.Context, updateClusterUpgradeDescription UpdateClusterUpgradeDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: updateClusterUpgradeDescription, - Constraints: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - {Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "updateClusterUpgradeDescription.ClusterUpgradeHealthPolicy.MaxPercentUpgradeDomainDeltaUnhealthyNodes", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, - }}, - }}}}, - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateClusterUpgrade", err.Error()) - } - - req, err := client.UpdateClusterUpgradePreparer(ctx, updateClusterUpgradeDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateClusterUpgradeSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure sending request") - return - } - - result, err = client.UpdateClusterUpgradeResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateClusterUpgrade", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradePreparer prepares the UpdateClusterUpgrade request. -func (client BaseClient) UpdateClusterUpgradePreparer(ctx context.Context, updateClusterUpgradeDescription UpdateClusterUpgradeDescription, timeout *int64) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/UpdateUpgrade"), - autorest.WithJSON(updateClusterUpgradeDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradeSender sends the UpdateClusterUpgrade request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateClusterUpgradeSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradeResponder handles the response to the UpdateClusterUpgrade request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateClusterUpgradeResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionState this API supports the Service Fabric platform; it is not meant to be used directly from -// your code. -// Parameters: -// repairTask - describes the repair task to be created or updated. -func (client BaseClient) UpdateRepairExecutionState(ctx context.Context, repairTask RepairTask) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTask, - Constraints: []validation.Constraint{{Target: "repairTask.TaskID", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "repairTask.Action", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateRepairExecutionState", err.Error()) - } - - req, err := client.UpdateRepairExecutionStatePreparer(ctx, repairTask) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateRepairExecutionStateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure sending request") - return - } - - result, err = client.UpdateRepairExecutionStateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairExecutionState", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionStatePreparer prepares the UpdateRepairExecutionState request. -func (client BaseClient) UpdateRepairExecutionStatePreparer(ctx context.Context, repairTask RepairTask) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/UpdateRepairExecutionState"), - autorest.WithJSON(repairTask), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionStateSender sends the UpdateRepairExecutionState request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateRepairExecutionStateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairExecutionStateResponder handles the response to the UpdateRepairExecutionState request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateRepairExecutionStateResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicy this API supports the Service Fabric platform; it is not meant to be used directly from -// your code. -// Parameters: -// repairTaskUpdateHealthPolicyDescription - describes the repair task healthy policy to be updated. -func (client BaseClient) UpdateRepairTaskHealthPolicy(ctx context.Context, repairTaskUpdateHealthPolicyDescription RepairTaskUpdateHealthPolicyDescription) (result RepairTaskUpdateInfo, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: repairTaskUpdateHealthPolicyDescription, - Constraints: []validation.Constraint{{Target: "repairTaskUpdateHealthPolicyDescription.TaskID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", err.Error()) - } - - req, err := client.UpdateRepairTaskHealthPolicyPreparer(ctx, repairTaskUpdateHealthPolicyDescription) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateRepairTaskHealthPolicySender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure sending request") - return - } - - result, err = client.UpdateRepairTaskHealthPolicyResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateRepairTaskHealthPolicy", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicyPreparer prepares the UpdateRepairTaskHealthPolicy request. -func (client BaseClient) UpdateRepairTaskHealthPolicyPreparer(ctx context.Context, repairTaskUpdateHealthPolicyDescription RepairTaskUpdateHealthPolicyDescription) (*http.Request, error) { - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPath("/$/UpdateRepairTaskHealthPolicy"), - autorest.WithJSON(repairTaskUpdateHealthPolicyDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicySender sends the UpdateRepairTaskHealthPolicy request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateRepairTaskHealthPolicySender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateRepairTaskHealthPolicyResponder handles the response to the UpdateRepairTaskHealthPolicy request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateRepairTaskHealthPolicyResponder(resp *http.Response) (result RepairTaskUpdateInfo, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateService this API allows updating properties of a running Service Fabric service. The set of properties that -// can be updated are a subset of the properties that were specified at the time of creating the service. The current -// set of properties can be obtained using `GetServiceDescription` API. Please note that updating the properties of a -// running service is different than upgrading your application using `StartApplicationUpgrade` API. The upgrade is a -// long running background operation that involves moving the application from one version to another, one upgrade -// domain at a time, whereas update applies the new properties immediately to the service. -// Parameters: -// serviceID - the identity of the service. This is typically the full name of the service without the -// 'fabric:' URI scheme. -// Starting from version 6.0, hierarchical names are delimited with the "~" character. -// For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be -// "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. -// serviceUpdateDescription - the information necessary to update a service. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UpdateService(ctx context.Context, serviceID string, serviceUpdateDescription BasicServiceUpdateDescription, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UpdateService", err.Error()) - } - - req, err := client.UpdateServicePreparer(ctx, serviceID, serviceUpdateDescription, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", nil, "Failure preparing request") - return - } - - resp, err := client.UpdateServiceSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure sending request") - return - } - - result, err = client.UpdateServiceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UpdateService", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServicePreparer prepares the UpdateService request. -func (client BaseClient) UpdateServicePreparer(ctx context.Context, serviceID string, serviceUpdateDescription BasicServiceUpdateDescription, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "serviceId": serviceID, - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsContentType("application/json; charset=utf-8"), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/Services/{serviceId}/$/Update", pathParameters), - autorest.WithJSON(serviceUpdateDescription), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceSender sends the UpdateService request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UpdateServiceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateServiceResponder handles the response to the UpdateService request. The method always -// closes the http.Response Body. -func (client BaseClient) UpdateServiceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFile uploads contents of the file to the image store. Use this API if the file is small enough to upload again -// if the connection fails. The file's data needs to be added to the request body. The contents will be uploaded to the -// specified path. Image store service uses a mark file to indicate the availability of the folder. The mark file is an -// empty file named "_.dir". The mark file is generated by the image store service when all files in a folder are -// uploaded. When using File-by-File approach to upload application package in REST, the image store service isn't -// aware of the file hierarchy of the application package; you need to create a mark file per folder and upload it -// last, to let the image store service know that the folder is complete. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UploadFile(ctx context.Context, contentPath string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UploadFile", err.Error()) - } - - req, err := client.UploadFilePreparer(ctx, contentPath, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", nil, "Failure preparing request") - return - } - - resp, err := client.UploadFileSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure sending request") - return - } - - result, err = client.UploadFileResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFile", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFilePreparer prepares the UploadFile request. -func (client BaseClient) UploadFilePreparer(ctx context.Context, contentPath string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileSender sends the UploadFile request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UploadFileSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileResponder handles the response to the UploadFile request. The method always -// closes the http.Response Body. -func (client BaseClient) UploadFileResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileChunk uploads a file chunk to the image store with the specified upload session ID and image store -// relative path. This API allows user to resume the file upload operation. user doesn't have to restart the file -// upload from scratch whenever there is a network interruption. Use this option if the file size is large. -// -// To perform a resumable file upload, user need to break the file into multiple chunks and upload these chunks to the -// image store one-by-one. Chunks don't have to be uploaded in order. If the file represented by the image store -// relative path already exists, it will be overwritten when the upload session commits. -// Parameters: -// contentPath - relative path to file or folder in the image store from its root. -// sessionID - a GUID generated by the user for a file uploading. It identifies an image store upload session -// which keeps track of all file chunks until it is committed. -// contentRange - when uploading file chunks to the image store, the Content-Range header field need to be -// configured and sent with a request. The format should looks like "bytes -// {First-Byte-Position}-{Last-Byte-Position}/{File-Length}". For example, Content-Range:bytes 300-5000/20000 -// indicates that user is sending bytes 300 through 5,000 and the total file length is 20,000 bytes. -// timeout - the server timeout for performing the operation in seconds. This specifies the time duration that -// the client is willing to wait for the requested operation to complete. The default value for this parameter -// is 60 seconds. -func (client BaseClient) UploadFileChunk(ctx context.Context, contentPath string, sessionID uuid.UUID, contentRange string, timeout *int64) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {TargetValue: timeout, - Constraints: []validation.Constraint{{Target: "timeout", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "timeout", Name: validation.InclusiveMaximum, Rule: int64(4294967295), Chain: nil}, - {Target: "timeout", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, - }}}}}); err != nil { - return result, validation.NewError("servicefabric.BaseClient", "UploadFileChunk", err.Error()) - } - - req, err := client.UploadFileChunkPreparer(ctx, contentPath, sessionID, contentRange, timeout) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", nil, "Failure preparing request") - return - } - - resp, err := client.UploadFileChunkSender(req) - if err != nil { - result.Response = resp - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure sending request") - return - } - - result, err = client.UploadFileChunkResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "servicefabric.BaseClient", "UploadFileChunk", resp, "Failure responding to request") - } - - return -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileChunkPreparer prepares the UploadFileChunk request. -func (client BaseClient) UploadFileChunkPreparer(ctx context.Context, contentPath string, sessionID uuid.UUID, contentRange string, timeout *int64) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "contentPath": autorest.Encode("path", contentPath), - } - - const APIVersion = "6.0" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - "session-id": autorest.Encode("query", sessionID), - } - if timeout != nil { - queryParameters["timeout"] = autorest.Encode("query", *timeout) - } else { - queryParameters["timeout"] = autorest.Encode("query", 60) - } - - preparer := autorest.CreatePreparer( - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/ImageStore/{contentPath}/$/UploadChunk", pathParameters), - autorest.WithQueryParameters(queryParameters), - autorest.WithHeader("Content-Range", autorest.String(contentRange))) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileChunkSender sends the UploadFileChunk request. The method will close the -// http.Response Body if it receives an error. -func (client BaseClient) UploadFileChunkSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req, - autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadFileChunkResponder handles the response to the UploadFileChunk request. The method always -// closes the http.Response Body. -func (client BaseClient) UploadFileChunkResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByClosing()) - result.Response = resp - return -} diff --git a/services/servicefabric/6.1/servicefabric/models.go b/services/servicefabric/6.1/servicefabric/models.go deleted file mode 100644 index 49f54e3ead29..000000000000 --- a/services/servicefabric/6.1/servicefabric/models.go +++ /dev/null @@ -1,19636 +0,0 @@ -package servicefabric - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "encoding/json" - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/date" - "github.com/satori/go.uuid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationDefinitionKind enumerates the values for application definition kind. -type ApplicationDefinitionKind string - -const ( - // Compose Indicates the application is defined by compose file(s). The value is 1. - Compose ApplicationDefinitionKind = "Compose" - // Invalid Indicates the application definition kind is invalid. All Service Fabric enumerations have the - // invalid type. The value is 65535. - Invalid ApplicationDefinitionKind = "Invalid" - // ServiceFabricApplicationDescription Indicates the application is defined by a Service Fabric application - // description. The value is 0. - ServiceFabricApplicationDescription ApplicationDefinitionKind = "ServiceFabricApplicationDescription" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleApplicationDefinitionKindValues returns an array of possible values for the ApplicationDefinitionKind const type. -func PossibleApplicationDefinitionKindValues() []ApplicationDefinitionKind { - return []ApplicationDefinitionKind{Compose, Invalid, ServiceFabricApplicationDescription} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationStatus enumerates the values for application status. -type ApplicationStatus string - -const ( - // ApplicationStatusCreating Indicates the application status is creating. The value is 3. - ApplicationStatusCreating ApplicationStatus = "Creating" - // ApplicationStatusDeleting Indicates the application status is deleting. The value is 4. - ApplicationStatusDeleting ApplicationStatus = "Deleting" - // ApplicationStatusFailed Indicates the creation or deletion of application was terminated due to - // persistent failures. Another create/delete request can be accepted to resume a failed application. The - // value is 5. - ApplicationStatusFailed ApplicationStatus = "Failed" - // ApplicationStatusInvalid Indicates the application status is invalid. All Service Fabric enumerations - // have the invalid type. The value is zero. - ApplicationStatusInvalid ApplicationStatus = "Invalid" - // ApplicationStatusReady Indicates the application status is ready. The value is 1. - ApplicationStatusReady ApplicationStatus = "Ready" - // ApplicationStatusUpgrading Indicates the application status is upgrading. The value is 2. - ApplicationStatusUpgrading ApplicationStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleApplicationStatusValues returns an array of possible values for the ApplicationStatus const type. -func PossibleApplicationStatusValues() []ApplicationStatus { - return []ApplicationStatus{ApplicationStatusCreating, ApplicationStatusDeleting, ApplicationStatusFailed, ApplicationStatusInvalid, ApplicationStatusReady, ApplicationStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeDefinitionKind enumerates the values for application type definition kind. -type ApplicationTypeDefinitionKind string - -const ( - // ApplicationTypeDefinitionKindCompose Indicates the application type is defined and created implicitly as - // part of a compose deployment. The value is 2. - ApplicationTypeDefinitionKindCompose ApplicationTypeDefinitionKind = "Compose" - // ApplicationTypeDefinitionKindInvalid Indicates the application type definition kind is invalid. All - // Service Fabric enumerations have the invalid type. The value is 0. - ApplicationTypeDefinitionKindInvalid ApplicationTypeDefinitionKind = "Invalid" - // ApplicationTypeDefinitionKindServiceFabricApplicationPackage Indicates the application type is defined - // and created by a Service Fabric application package provided by the user. The value is 1. - ApplicationTypeDefinitionKindServiceFabricApplicationPackage ApplicationTypeDefinitionKind = "ServiceFabricApplicationPackage" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleApplicationTypeDefinitionKindValues returns an array of possible values for the ApplicationTypeDefinitionKind const type. -func PossibleApplicationTypeDefinitionKindValues() []ApplicationTypeDefinitionKind { - return []ApplicationTypeDefinitionKind{ApplicationTypeDefinitionKindCompose, ApplicationTypeDefinitionKindInvalid, ApplicationTypeDefinitionKindServiceFabricApplicationPackage} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeStatus enumerates the values for application type status. -type ApplicationTypeStatus string - -const ( - // ApplicationTypeStatusAvailable Indicates that the application type is fully provisioned and is available - // for use. An application of this type and version can be created. The value is 2. - ApplicationTypeStatusAvailable ApplicationTypeStatus = "Available" - // ApplicationTypeStatusFailed Indicates that the application type provisioning failed and it is - // unavailable for use. The failure details can be obtained from the application type information query. - // The failed application type information remains in the cluster until it is unprovisioned or - // reprovisioned successfully. The value is 4. - ApplicationTypeStatusFailed ApplicationTypeStatus = "Failed" - // ApplicationTypeStatusInvalid Indicates the application type status is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. - ApplicationTypeStatusInvalid ApplicationTypeStatus = "Invalid" - // ApplicationTypeStatusProvisioning Indicates that the application type is being provisioned in the - // cluster. The value is 1. - ApplicationTypeStatusProvisioning ApplicationTypeStatus = "Provisioning" - // ApplicationTypeStatusUnprovisioning Indicates that the application type is in process of being - // unprovisioned from the cluster. The value is 3. - ApplicationTypeStatusUnprovisioning ApplicationTypeStatus = "Unprovisioning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleApplicationTypeStatusValues returns an array of possible values for the ApplicationTypeStatus const type. -func PossibleApplicationTypeStatusValues() []ApplicationTypeStatus { - return []ApplicationTypeStatus{ApplicationTypeStatusAvailable, ApplicationTypeStatusFailed, ApplicationTypeStatusInvalid, ApplicationTypeStatusProvisioning, ApplicationTypeStatusUnprovisioning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosEventKind enumerates the values for chaos event kind. -type ChaosEventKind string - -const ( - // ChaosEventKindExecutingFaults Indicates a Chaos event that gets generated when Chaos has decided on the - // faults for an iteration. This Chaos event contains the details of the faults as a list of strings. - ChaosEventKindExecutingFaults ChaosEventKind = "ExecutingFaults" - // ChaosEventKindInvalid Indicates an invalid Chaos event kind. All Service Fabric enumerations have the - // invalid type. - ChaosEventKindInvalid ChaosEventKind = "Invalid" - // ChaosEventKindStarted Indicates a Chaos event that gets generated when Chaos is started. - ChaosEventKindStarted ChaosEventKind = "Started" - // ChaosEventKindStopped Indicates a Chaos event that gets generated when Chaos stops because either the - // user issued a stop or the time to run was up. - ChaosEventKindStopped ChaosEventKind = "Stopped" - // ChaosEventKindTestError Indicates a Chaos event that gets generated when an unexpected event has - // occurred in the Chaos engine, for example, due to the cluster snapshot being inconsistent, while - // faulting a faultable entity Chaos found that the entity was already faulted. - ChaosEventKindTestError ChaosEventKind = "TestError" - // ChaosEventKindValidationFailed Indicates a Chaos event that gets generated when the cluster entities do - // not become stable and healthy within ChaosParameters.MaxClusterStabilizationTimeoutInSeconds. - ChaosEventKindValidationFailed ChaosEventKind = "ValidationFailed" - // ChaosEventKindWaiting Indicates a Chaos event that gets generated when Chaos is waiting for the cluster - // to become ready for faulting, for example, Chaos may be waiting for the on-going upgrade to finish. - ChaosEventKindWaiting ChaosEventKind = "Waiting" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleChaosEventKindValues returns an array of possible values for the ChaosEventKind const type. -func PossibleChaosEventKindValues() []ChaosEventKind { - return []ChaosEventKind{ChaosEventKindExecutingFaults, ChaosEventKindInvalid, ChaosEventKindStarted, ChaosEventKindStopped, ChaosEventKindTestError, ChaosEventKindValidationFailed, ChaosEventKindWaiting} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Code enumerates the values for code. -type Code string - -const ( - // EABORT ... - EABORT Code = "E_ABORT" - // FABRICEAPPLICATIONALREADYEXISTS ... - FABRICEAPPLICATIONALREADYEXISTS Code = "FABRIC_E_APPLICATION_ALREADY_EXISTS" - // FABRICEAPPLICATIONALREADYINTARGETVERSION ... - FABRICEAPPLICATIONALREADYINTARGETVERSION Code = "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" - // FABRICEAPPLICATIONNOTFOUND ... - FABRICEAPPLICATIONNOTFOUND Code = "FABRIC_E_APPLICATION_NOT_FOUND" - // FABRICEAPPLICATIONNOTUPGRADING ... - FABRICEAPPLICATIONNOTUPGRADING Code = "FABRIC_E_APPLICATION_NOT_UPGRADING" - // FABRICEAPPLICATIONTYPEALREADYEXISTS ... - FABRICEAPPLICATIONTYPEALREADYEXISTS Code = "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - // FABRICEAPPLICATIONTYPEINUSE ... - FABRICEAPPLICATIONTYPEINUSE Code = "FABRIC_E_APPLICATION_TYPE_IN_USE" - // FABRICEAPPLICATIONTYPENOTFOUND ... - FABRICEAPPLICATIONTYPENOTFOUND Code = "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" - // FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS ... - FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS Code = "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" - // FABRICEAPPLICATIONUPGRADEINPROGRESS ... - FABRICEAPPLICATIONUPGRADEINPROGRESS Code = "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" - // FABRICEAPPLICATIONUPGRADEVALIDATIONERROR ... - FABRICEAPPLICATIONUPGRADEVALIDATIONERROR Code = "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" - // FABRICECOMMUNICATIONERROR ... - FABRICECOMMUNICATIONERROR Code = "FABRIC_E_COMMUNICATION_ERROR" - // FABRICECONFIGURATIONPARAMETERNOTFOUND ... - FABRICECONFIGURATIONPARAMETERNOTFOUND Code = "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" - // FABRICECONFIGURATIONSECTIONNOTFOUND ... - FABRICECONFIGURATIONSECTIONNOTFOUND Code = "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" - // FABRICEDIRECTORYNOTFOUND ... - FABRICEDIRECTORYNOTFOUND Code = "FABRIC_E_DIRECTORY_NOT_FOUND" - // FABRICEENUMERATIONCOMPLETED ... - FABRICEENUMERATIONCOMPLETED Code = "FABRIC_E_ENUMERATION_COMPLETED" - // FABRICEFABRICALREADYINTARGETVERSION ... - FABRICEFABRICALREADYINTARGETVERSION Code = "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" - // FABRICEFABRICNOTUPGRADING ... - FABRICEFABRICNOTUPGRADING Code = "FABRIC_E_FABRIC_NOT_UPGRADING" - // FABRICEFABRICUPGRADEINPROGRESS ... - FABRICEFABRICUPGRADEINPROGRESS Code = "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" - // FABRICEFABRICUPGRADEVALIDATIONERROR ... - FABRICEFABRICUPGRADEVALIDATIONERROR Code = "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" - // FABRICEFABRICVERSIONALREADYEXISTS ... - FABRICEFABRICVERSIONALREADYEXISTS Code = "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" - // FABRICEFABRICVERSIONINUSE ... - FABRICEFABRICVERSIONINUSE Code = "FABRIC_E_FABRIC_VERSION_IN_USE" - // FABRICEFABRICVERSIONNOTFOUND ... - FABRICEFABRICVERSIONNOTFOUND Code = "FABRIC_E_FABRIC_VERSION_NOT_FOUND" - // FABRICEFILENOTFOUND ... - FABRICEFILENOTFOUND Code = "FABRIC_E_FILE_NOT_FOUND" - // FABRICEHEALTHENTITYNOTFOUND ... - FABRICEHEALTHENTITYNOTFOUND Code = "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" - // FABRICEHEALTHSTALEREPORT ... - FABRICEHEALTHSTALEREPORT Code = "FABRIC_E_HEALTH_STALE_REPORT" - // FABRICEIMAGEBUILDERVALIDATIONERROR ... - FABRICEIMAGEBUILDERVALIDATIONERROR Code = "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" - // FABRICEINSTANCEIDMISMATCH ... - FABRICEINSTANCEIDMISMATCH Code = "FABRIC_E_INSTANCE_ID_MISMATCH" - // FABRICEINVALIDADDRESS ... - FABRICEINVALIDADDRESS Code = "FABRIC_E_INVALID_ADDRESS" - // FABRICEINVALIDATOMICGROUP ... - FABRICEINVALIDATOMICGROUP Code = "FABRIC_E_INVALID_ATOMIC_GROUP" - // FABRICEINVALIDCONFIGURATION ... - FABRICEINVALIDCONFIGURATION Code = "FABRIC_E_INVALID_CONFIGURATION" - // FABRICEINVALIDNAMEURI ... - FABRICEINVALIDNAMEURI Code = "FABRIC_E_INVALID_NAME_URI" - // FABRICEINVALIDPARTITIONKEY ... - FABRICEINVALIDPARTITIONKEY Code = "FABRIC_E_INVALID_PARTITION_KEY" - // FABRICEKEYNOTFOUND ... - FABRICEKEYNOTFOUND Code = "FABRIC_E_KEY_NOT_FOUND" - // FABRICEKEYTOOLARGE ... - FABRICEKEYTOOLARGE Code = "FABRIC_E_KEY_TOO_LARGE" - // FABRICENAMEALREADYEXISTS ... - FABRICENAMEALREADYEXISTS Code = "FABRIC_E_NAME_ALREADY_EXISTS" - // FABRICENAMEDOESNOTEXIST ... - FABRICENAMEDOESNOTEXIST Code = "FABRIC_E_NAME_DOES_NOT_EXIST" - // FABRICENAMENOTEMPTY ... - FABRICENAMENOTEMPTY Code = "FABRIC_E_NAME_NOT_EMPTY" - // FABRICENODEHASNOTSTOPPEDYET ... - FABRICENODEHASNOTSTOPPEDYET Code = "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" - // FABRICENODEISUP ... - FABRICENODEISUP Code = "FABRIC_E_NODE_IS_UP" - // FABRICENODENOTFOUND ... - FABRICENODENOTFOUND Code = "FABRIC_E_NODE_NOT_FOUND" - // FABRICENOTPRIMARY ... - FABRICENOTPRIMARY Code = "FABRIC_E_NOT_PRIMARY" - // FABRICENOTREADY ... - FABRICENOTREADY Code = "FABRIC_E_NOT_READY" - // FABRICENOWRITEQUORUM ... - FABRICENOWRITEQUORUM Code = "FABRIC_E_NO_WRITE_QUORUM" - // FABRICEOPERATIONNOTCOMPLETE ... - FABRICEOPERATIONNOTCOMPLETE Code = "FABRIC_E_OPERATION_NOT_COMPLETE" - // FABRICEPARTITIONNOTFOUND ... - FABRICEPARTITIONNOTFOUND Code = "FABRIC_E_PARTITION_NOT_FOUND" - // FABRICEPATHTOOLONG ... - FABRICEPATHTOOLONG Code = "FABRIC_E_PATH_TOO_LONG" - // FABRICEPROPERTYCHECKFAILED ... - FABRICEPROPERTYCHECKFAILED Code = "FABRIC_E_PROPERTY_CHECK_FAILED" - // FABRICEPROPERTYDOESNOTEXIST ... - FABRICEPROPERTYDOESNOTEXIST Code = "FABRIC_E_PROPERTY_DOES_NOT_EXIST" - // FABRICERECONFIGURATIONPENDING ... - FABRICERECONFIGURATIONPENDING Code = "FABRIC_E_RECONFIGURATION_PENDING" - // FABRICEREPLICADOESNOTEXIST ... - FABRICEREPLICADOESNOTEXIST Code = "FABRIC_E_REPLICA_DOES_NOT_EXIST" - // FABRICESEQUENCENUMBERCHECKFAILED ... - FABRICESEQUENCENUMBERCHECKFAILED Code = "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" - // FABRICESERVICEAFFINITYCHAINNOTSUPPORTED ... - FABRICESERVICEAFFINITYCHAINNOTSUPPORTED Code = "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" - // FABRICESERVICEALREADYEXISTS ... - FABRICESERVICEALREADYEXISTS Code = "FABRIC_E_SERVICE_ALREADY_EXISTS" - // FABRICESERVICEDOESNOTEXIST ... - FABRICESERVICEDOESNOTEXIST Code = "FABRIC_E_SERVICE_DOES_NOT_EXIST" - // FABRICESERVICEGROUPALREADYEXISTS ... - FABRICESERVICEGROUPALREADYEXISTS Code = "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" - // FABRICESERVICEGROUPDOESNOTEXIST ... - FABRICESERVICEGROUPDOESNOTEXIST Code = "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" - // FABRICESERVICEMANIFESTNOTFOUND ... - FABRICESERVICEMANIFESTNOTFOUND Code = "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" - // FABRICESERVICEMETADATAMISMATCH ... - FABRICESERVICEMETADATAMISMATCH Code = "FABRIC_E_SERVICE_METADATA_MISMATCH" - // FABRICESERVICEOFFLINE ... - FABRICESERVICEOFFLINE Code = "FABRIC_E_SERVICE_OFFLINE" - // FABRICESERVICETYPEMISMATCH ... - FABRICESERVICETYPEMISMATCH Code = "FABRIC_E_SERVICE_TYPE_MISMATCH" - // FABRICESERVICETYPENOTFOUND ... - FABRICESERVICETYPENOTFOUND Code = "FABRIC_E_SERVICE_TYPE_NOT_FOUND" - // FABRICESERVICETYPETEMPLATENOTFOUND ... - FABRICESERVICETYPETEMPLATENOTFOUND Code = "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" - // FABRICETIMEOUT ... - FABRICETIMEOUT Code = "FABRIC_E_TIMEOUT" - // FABRICEVALUEEMPTY ... - FABRICEVALUEEMPTY Code = "FABRIC_E_VALUE_EMPTY" - // FABRICEVALUETOOLARGE ... - FABRICEVALUETOOLARGE Code = "FABRIC_E_VALUE_TOO_LARGE" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCodeValues returns an array of possible values for the Code const type. -func PossibleCodeValues() []Code { - return []Code{EABORT, FABRICEAPPLICATIONALREADYEXISTS, FABRICEAPPLICATIONALREADYINTARGETVERSION, FABRICEAPPLICATIONNOTFOUND, FABRICEAPPLICATIONNOTUPGRADING, FABRICEAPPLICATIONTYPEALREADYEXISTS, FABRICEAPPLICATIONTYPEINUSE, FABRICEAPPLICATIONTYPENOTFOUND, FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS, FABRICEAPPLICATIONUPGRADEINPROGRESS, FABRICEAPPLICATIONUPGRADEVALIDATIONERROR, FABRICECOMMUNICATIONERROR, FABRICECONFIGURATIONPARAMETERNOTFOUND, FABRICECONFIGURATIONSECTIONNOTFOUND, FABRICEDIRECTORYNOTFOUND, FABRICEENUMERATIONCOMPLETED, FABRICEFABRICALREADYINTARGETVERSION, FABRICEFABRICNOTUPGRADING, FABRICEFABRICUPGRADEINPROGRESS, FABRICEFABRICUPGRADEVALIDATIONERROR, FABRICEFABRICVERSIONALREADYEXISTS, FABRICEFABRICVERSIONINUSE, FABRICEFABRICVERSIONNOTFOUND, FABRICEFILENOTFOUND, FABRICEHEALTHENTITYNOTFOUND, FABRICEHEALTHSTALEREPORT, FABRICEIMAGEBUILDERVALIDATIONERROR, FABRICEINSTANCEIDMISMATCH, FABRICEINVALIDADDRESS, FABRICEINVALIDATOMICGROUP, FABRICEINVALIDCONFIGURATION, FABRICEINVALIDNAMEURI, FABRICEINVALIDPARTITIONKEY, FABRICEKEYNOTFOUND, FABRICEKEYTOOLARGE, FABRICENAMEALREADYEXISTS, FABRICENAMEDOESNOTEXIST, FABRICENAMENOTEMPTY, FABRICENODEHASNOTSTOPPEDYET, FABRICENODEISUP, FABRICENODENOTFOUND, FABRICENOTPRIMARY, FABRICENOTREADY, FABRICENOWRITEQUORUM, FABRICEOPERATIONNOTCOMPLETE, FABRICEPARTITIONNOTFOUND, FABRICEPATHTOOLONG, FABRICEPROPERTYCHECKFAILED, FABRICEPROPERTYDOESNOTEXIST, FABRICERECONFIGURATIONPENDING, FABRICEREPLICADOESNOTEXIST, FABRICESEQUENCENUMBERCHECKFAILED, FABRICESERVICEAFFINITYCHAINNOTSUPPORTED, FABRICESERVICEALREADYEXISTS, FABRICESERVICEDOESNOTEXIST, FABRICESERVICEGROUPALREADYEXISTS, FABRICESERVICEGROUPDOESNOTEXIST, FABRICESERVICEMANIFESTNOTFOUND, FABRICESERVICEMETADATAMISMATCH, FABRICESERVICEOFFLINE, FABRICESERVICETYPEMISMATCH, FABRICESERVICETYPENOTFOUND, FABRICESERVICETYPETEMPLATENOTFOUND, FABRICETIMEOUT, FABRICEVALUEEMPTY, FABRICEVALUETOOLARGE} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentStatus enumerates the values for compose deployment status. -type ComposeDeploymentStatus string - -const ( - // ComposeDeploymentStatusCreating Indicates that the compose deployment is being created in background. - // The value is 2. - ComposeDeploymentStatusCreating ComposeDeploymentStatus = "Creating" - // ComposeDeploymentStatusDeleting Indicates that the compose deployment is being deleted in background. - // The value is 5. - ComposeDeploymentStatusDeleting ComposeDeploymentStatus = "Deleting" - // ComposeDeploymentStatusFailed Indicates that the compose deployment was terminated due to persistent - // failures. The value is 6. - ComposeDeploymentStatusFailed ComposeDeploymentStatus = "Failed" - // ComposeDeploymentStatusInvalid Indicates that the compose deployment status is invalid. The value is - // zero. - ComposeDeploymentStatusInvalid ComposeDeploymentStatus = "Invalid" - // ComposeDeploymentStatusProvisioning Indicates that the compose deployment is being provisioned in - // background. The value is 1. - ComposeDeploymentStatusProvisioning ComposeDeploymentStatus = "Provisioning" - // ComposeDeploymentStatusReady Indicates that the compose deployment has been successfully created or - // upgraded. The value is 3. - ComposeDeploymentStatusReady ComposeDeploymentStatus = "Ready" - // ComposeDeploymentStatusUnprovisioning Indicates that the compose deployment is being unprovisioned in - // background. The value is 4. - ComposeDeploymentStatusUnprovisioning ComposeDeploymentStatus = "Unprovisioning" - // ComposeDeploymentStatusUpgrading Indicates that the compose deployment is being upgraded in the - // background. The value is 7. - ComposeDeploymentStatusUpgrading ComposeDeploymentStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleComposeDeploymentStatusValues returns an array of possible values for the ComposeDeploymentStatus const type. -func PossibleComposeDeploymentStatusValues() []ComposeDeploymentStatus { - return []ComposeDeploymentStatus{ComposeDeploymentStatusCreating, ComposeDeploymentStatusDeleting, ComposeDeploymentStatusFailed, ComposeDeploymentStatusInvalid, ComposeDeploymentStatusProvisioning, ComposeDeploymentStatusReady, ComposeDeploymentStatusUnprovisioning, ComposeDeploymentStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentUpgradeState enumerates the values for compose deployment upgrade state. -type ComposeDeploymentUpgradeState string - -const ( - // ComposeDeploymentUpgradeStateFailed The upgrade has failed and is unable to execute FailureAction. The - // value is 9. - ComposeDeploymentUpgradeStateFailed ComposeDeploymentUpgradeState = "Failed" - // ComposeDeploymentUpgradeStateInvalid Indicates the upgrade state is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. - ComposeDeploymentUpgradeStateInvalid ComposeDeploymentUpgradeState = "Invalid" - // ComposeDeploymentUpgradeStateProvisioningTarget The upgrade is in the progress of provisioning target - // application type version. The value is 1. - ComposeDeploymentUpgradeStateProvisioningTarget ComposeDeploymentUpgradeState = "ProvisioningTarget" - // ComposeDeploymentUpgradeStateRollingBackCompleted The upgrade has finished rolling back. The value is 8. - ComposeDeploymentUpgradeStateRollingBackCompleted ComposeDeploymentUpgradeState = "RollingBackCompleted" - // ComposeDeploymentUpgradeStateRollingBackInProgress The upgrade is rolling back to the previous version - // but is not complete yet. The value is 6. - ComposeDeploymentUpgradeStateRollingBackInProgress ComposeDeploymentUpgradeState = "RollingBackInProgress" - // ComposeDeploymentUpgradeStateRollingForwardCompleted The upgrade has finished rolling forward. The value - // is 5. - ComposeDeploymentUpgradeStateRollingForwardCompleted ComposeDeploymentUpgradeState = "RollingForwardCompleted" - // ComposeDeploymentUpgradeStateRollingForwardInProgress The upgrade is rolling forward to the target - // version but is not complete yet. The value is 2. - ComposeDeploymentUpgradeStateRollingForwardInProgress ComposeDeploymentUpgradeState = "RollingForwardInProgress" - // ComposeDeploymentUpgradeStateRollingForwardPending The current upgrade domain has finished upgrading. - // The overall upgrade is waiting for an explicit move next request in UnmonitoredManual mode or performing - // health checks in Monitored mode. The value is 3 - ComposeDeploymentUpgradeStateRollingForwardPending ComposeDeploymentUpgradeState = "RollingForwardPending" - // ComposeDeploymentUpgradeStateUnprovisioningCurrent The upgrade is in the progress of unprovisioning - // current application type version and rolling forward to the target version is completed. The value is 4. - ComposeDeploymentUpgradeStateUnprovisioningCurrent ComposeDeploymentUpgradeState = "UnprovisioningCurrent" - // ComposeDeploymentUpgradeStateUnprovisioningTarget The upgrade is in the progress of unprovisioning - // target application type version and rolling back to the current version is completed. The value is 7. - ComposeDeploymentUpgradeStateUnprovisioningTarget ComposeDeploymentUpgradeState = "UnprovisioningTarget" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleComposeDeploymentUpgradeStateValues returns an array of possible values for the ComposeDeploymentUpgradeState const type. -func PossibleComposeDeploymentUpgradeStateValues() []ComposeDeploymentUpgradeState { - return []ComposeDeploymentUpgradeState{ComposeDeploymentUpgradeStateFailed, ComposeDeploymentUpgradeStateInvalid, ComposeDeploymentUpgradeStateProvisioningTarget, ComposeDeploymentUpgradeStateRollingBackCompleted, ComposeDeploymentUpgradeStateRollingBackInProgress, ComposeDeploymentUpgradeStateRollingForwardCompleted, ComposeDeploymentUpgradeStateRollingForwardInProgress, ComposeDeploymentUpgradeStateRollingForwardPending, ComposeDeploymentUpgradeStateUnprovisioningCurrent, ComposeDeploymentUpgradeStateUnprovisioningTarget} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateFabricDump enumerates the values for create fabric dump. -type CreateFabricDump string - -const ( - // False ... - False CreateFabricDump = "False" - // True ... - True CreateFabricDump = "True" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleCreateFabricDumpValues returns an array of possible values for the CreateFabricDump const type. -func PossibleCreateFabricDumpValues() []CreateFabricDump { - return []CreateFabricDump{False, True} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DataLossModeRequiredQueryParam enumerates the values for data loss mode required query param. -type DataLossModeRequiredQueryParam string - -const ( - // DataLossModeRequiredQueryParamFullDataLoss FullDataLoss option will drop all the replicas which means - // that all the data will be lost. - DataLossModeRequiredQueryParamFullDataLoss DataLossModeRequiredQueryParam = "FullDataLoss" - // DataLossModeRequiredQueryParamInvalid Reserved. Do not pass into API. - DataLossModeRequiredQueryParamInvalid DataLossModeRequiredQueryParam = "Invalid" - // DataLossModeRequiredQueryParamPartialDataLoss PartialDataLoss option will cause a quorum of replicas to - // go down, triggering an OnDataLoss event in the system for the given partition. - DataLossModeRequiredQueryParamPartialDataLoss DataLossModeRequiredQueryParam = "PartialDataLoss" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDataLossModeRequiredQueryParamValues returns an array of possible values for the DataLossModeRequiredQueryParam const type. -func PossibleDataLossModeRequiredQueryParamValues() []DataLossModeRequiredQueryParam { - return []DataLossModeRequiredQueryParam{DataLossModeRequiredQueryParamFullDataLoss, DataLossModeRequiredQueryParamInvalid, DataLossModeRequiredQueryParamPartialDataLoss} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeactivationIntent enumerates the values for deactivation intent. -type DeactivationIntent string - -const ( - // Pause Indicates that the node should be paused. The value is 1. - Pause DeactivationIntent = "Pause" - // RemoveData Indicates the intent is for the node to remove data. The value is 3. - RemoveData DeactivationIntent = "RemoveData" - // Restart Indicates that the intent is for the node to be restarted after a short period of time. The - // value is 2. - Restart DeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDeactivationIntentValues returns an array of possible values for the DeactivationIntent const type. -func PossibleDeactivationIntentValues() []DeactivationIntent { - return []DeactivationIntent{Pause, RemoveData, Restart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationStatus enumerates the values for deployed application status. -type DeployedApplicationStatus string - -const ( - // DeployedApplicationStatusActivating Indicates that the package is activating. The value is 2. - DeployedApplicationStatusActivating DeployedApplicationStatus = "Activating" - // DeployedApplicationStatusActive Indicates that the package is active. The value is 3. - DeployedApplicationStatusActive DeployedApplicationStatus = "Active" - // DeployedApplicationStatusDeactivating Indicates that the package is deactivating. The value is 5. - DeployedApplicationStatusDeactivating DeployedApplicationStatus = "Deactivating" - // DeployedApplicationStatusDownloading Indicates that the package is downloading from the ImageStore. The - // value is 1. - DeployedApplicationStatusDownloading DeployedApplicationStatus = "Downloading" - // DeployedApplicationStatusInvalid Indicates that deployment status is not valid. All Service Fabric - // enumerations have the invalid type. The value is zero. - DeployedApplicationStatusInvalid DeployedApplicationStatus = "Invalid" - // DeployedApplicationStatusUpgrading Indicates that the package is upgrading. The value is 4. - DeployedApplicationStatusUpgrading DeployedApplicationStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDeployedApplicationStatusValues returns an array of possible values for the DeployedApplicationStatus const type. -func PossibleDeployedApplicationStatusValues() []DeployedApplicationStatus { - return []DeployedApplicationStatus{DeployedApplicationStatusActivating, DeployedApplicationStatusActive, DeployedApplicationStatusDeactivating, DeployedApplicationStatusDownloading, DeployedApplicationStatusInvalid, DeployedApplicationStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeploymentStatus enumerates the values for deployment status. -type DeploymentStatus string - -const ( - // DeploymentStatusActivating Indicates the application or service package is being activated. The value is - // 2. - DeploymentStatusActivating DeploymentStatus = "Activating" - // DeploymentStatusActive Indicates the application or service package is active the node. The value is 3. - DeploymentStatusActive DeploymentStatus = "Active" - // DeploymentStatusDeactivating Indicates the application or service package is being deactivated. The - // value is 5. - DeploymentStatusDeactivating DeploymentStatus = "Deactivating" - // DeploymentStatusDownloading Indicates the application or service package is being downloaded to the node - // from the ImageStore. The value is 1. - DeploymentStatusDownloading DeploymentStatus = "Downloading" - // DeploymentStatusInvalid Indicates status of the application or service package is not known or invalid. - // The value is 0. - DeploymentStatusInvalid DeploymentStatus = "Invalid" - // DeploymentStatusUpgrading Indicates the application or service package is being upgraded. The value is - // 4. - DeploymentStatusUpgrading DeploymentStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleDeploymentStatusValues returns an array of possible values for the DeploymentStatus const type. -func PossibleDeploymentStatusValues() []DeploymentStatus { - return []DeploymentStatus{DeploymentStatusActivating, DeploymentStatusActive, DeploymentStatusDeactivating, DeploymentStatusDownloading, DeploymentStatusInvalid, DeploymentStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityKind enumerates the values for entity kind. -type EntityKind string - -const ( - // EntityKindApplication Indicates the entity is a Service Fabric application. The value is 4. - EntityKindApplication EntityKind = "Application" - // EntityKindCluster Indicates the entity is a Service Fabric cluster. The value is 8. - EntityKindCluster EntityKind = "Cluster" - // EntityKindDeployedApplication Indicates the entity is a Service Fabric deployed application. The value - // is 6. - EntityKindDeployedApplication EntityKind = "DeployedApplication" - // EntityKindDeployedServicePackage Indicates the entity is a Service Fabric deployed service package. The - // value is 7. - EntityKindDeployedServicePackage EntityKind = "DeployedServicePackage" - // EntityKindInvalid Indicates an invalid entity kind. All Service Fabric enumerations have the invalid - // type. The value is zero. - EntityKindInvalid EntityKind = "Invalid" - // EntityKindNode Indicates the entity is a Service Fabric node. The value is 1. - EntityKindNode EntityKind = "Node" - // EntityKindPartition Indicates the entity is a Service Fabric partition. The value is 2. - EntityKindPartition EntityKind = "Partition" - // EntityKindReplica Indicates the entity is a Service Fabric replica. The value is 5. - EntityKindReplica EntityKind = "Replica" - // EntityKindService Indicates the entity is a Service Fabric service. The value is 3. - EntityKindService EntityKind = "Service" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleEntityKindValues returns an array of possible values for the EntityKind const type. -func PossibleEntityKindValues() []EntityKind { - return []EntityKind{EntityKindApplication, EntityKindCluster, EntityKindDeployedApplication, EntityKindDeployedServicePackage, EntityKindInvalid, EntityKindNode, EntityKindPartition, EntityKindReplica, EntityKindService} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntryPointStatus enumerates the values for entry point status. -type EntryPointStatus string - -const ( - // EntryPointStatusInvalid Indicates status of entry point is not known or invalid. The value is 0. - EntryPointStatusInvalid EntryPointStatus = "Invalid" - // EntryPointStatusPending Indicates the entry point is scheduled to be started. The value is 1. - EntryPointStatusPending EntryPointStatus = "Pending" - // EntryPointStatusStarted Indicates the entry point was started successfully and is running. The value is - // 3. - EntryPointStatusStarted EntryPointStatus = "Started" - // EntryPointStatusStarting Indicates the entry point is being started. The value is 2. - EntryPointStatusStarting EntryPointStatus = "Starting" - // EntryPointStatusStopped Indicates the entry point is not running. The value is 5. - EntryPointStatusStopped EntryPointStatus = "Stopped" - // EntryPointStatusStopping Indicates the entry point is being stopped. The value is 4. - EntryPointStatusStopping EntryPointStatus = "Stopping" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleEntryPointStatusValues returns an array of possible values for the EntryPointStatus const type. -func PossibleEntryPointStatusValues() []EntryPointStatus { - return []EntryPointStatus{EntryPointStatusInvalid, EntryPointStatusPending, EntryPointStatusStarted, EntryPointStatusStarting, EntryPointStatusStopped, EntryPointStatusStopping} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricReplicaStatus enumerates the values for fabric replica status. -type FabricReplicaStatus string - -const ( - // FabricReplicaStatusDown Indicates that the replica is down. - FabricReplicaStatusDown FabricReplicaStatus = "Down" - // FabricReplicaStatusInvalid Indicates that the read or write operation access status is not valid. This - // value is not returned to the caller. - FabricReplicaStatusInvalid FabricReplicaStatus = "Invalid" - // FabricReplicaStatusUp Indicates that the replica is up. - FabricReplicaStatusUp FabricReplicaStatus = "Up" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFabricReplicaStatusValues returns an array of possible values for the FabricReplicaStatus const type. -func PossibleFabricReplicaStatusValues() []FabricReplicaStatus { - return []FabricReplicaStatus{FabricReplicaStatusDown, FabricReplicaStatusInvalid, FabricReplicaStatusUp} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureAction enumerates the values for failure action. -type FailureAction string - -const ( - // FailureActionInvalid Indicates the failure action is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - FailureActionInvalid FailureAction = "Invalid" - // FailureActionManual The upgrade will switch to UnmonitoredManual upgrade mode. The value is 2 - FailureActionManual FailureAction = "Manual" - // FailureActionRollback The upgrade will start rolling back automatically. The value is 1 - FailureActionRollback FailureAction = "Rollback" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureActionValues returns an array of possible values for the FailureAction const type. -func PossibleFailureActionValues() []FailureAction { - return []FailureAction{FailureActionInvalid, FailureActionManual, FailureActionRollback} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureReason enumerates the values for failure reason. -type FailureReason string - -const ( - // HealthCheck The upgrade failed due to health policy violations. The value is 2 - HealthCheck FailureReason = "HealthCheck" - // Interrupted There was an external request to rollback the upgrade. The value is 1 - Interrupted FailureReason = "Interrupted" - // None Indicates the reason is invalid or unknown. All Service Fabric enumerations have the invalid type. - // The value is zero. - None FailureReason = "None" - // OverallUpgradeTimeout The overall upgrade took longer than the allowed upgrade timeout to process. The - // value is 4 - OverallUpgradeTimeout FailureReason = "OverallUpgradeTimeout" - // UpgradeDomainTimeout An upgrade domain took longer than the allowed upgrade domain timeout to process. - // The value is 3 - UpgradeDomainTimeout FailureReason = "UpgradeDomainTimeout" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleFailureReasonValues returns an array of possible values for the FailureReason const type. -func PossibleFailureReasonValues() []FailureReason { - return []FailureReason{HealthCheck, Interrupted, None, OverallUpgradeTimeout, UpgradeDomainTimeout} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluationKind enumerates the values for health evaluation kind. -type HealthEvaluationKind string - -const ( - // HealthEvaluationKindApplication Indicates that the health evaluation is for an application. The value is - // 18. - HealthEvaluationKindApplication HealthEvaluationKind = "Application" - // HealthEvaluationKindApplications Indicates that the health evaluation is for the cluster applications. - // The value is 8. - HealthEvaluationKindApplications HealthEvaluationKind = "Applications" - // HealthEvaluationKindApplicationTypeApplications – Indicates that the health evaluation is for - // applications of an application type. The value is 21. - HealthEvaluationKindApplicationTypeApplications HealthEvaluationKind = "ApplicationTypeApplications" - // HealthEvaluationKindDeltaNodesCheck Indicates that the health evaluation is for the delta of unhealthy - // cluster nodes. The value is 19. - HealthEvaluationKindDeltaNodesCheck HealthEvaluationKind = "DeltaNodesCheck" - // HealthEvaluationKindDeployedApplication Indicates that the health evaluation is for a deployed - // application. The value is 17. - HealthEvaluationKindDeployedApplication HealthEvaluationKind = "DeployedApplication" - // HealthEvaluationKindDeployedApplications Indicates that the health evaluation is for the deployed - // applications of an application. The value is 5. - HealthEvaluationKindDeployedApplications HealthEvaluationKind = "DeployedApplications" - // HealthEvaluationKindDeployedServicePackage Indicates that the health evaluation is for a deployed - // service package. The value is 16. - HealthEvaluationKindDeployedServicePackage HealthEvaluationKind = "DeployedServicePackage" - // HealthEvaluationKindDeployedServicePackages Indicates that the health evaluation is for the deployed - // service packages of a deployed application. The value is 4. - HealthEvaluationKindDeployedServicePackages HealthEvaluationKind = "DeployedServicePackages" - // HealthEvaluationKindEvent Indicates that the health evaluation is for a health event. The value is 1. - HealthEvaluationKindEvent HealthEvaluationKind = "Event" - // HealthEvaluationKindInvalid Indicates that the health evaluation is invalid. The value is zero. - HealthEvaluationKindInvalid HealthEvaluationKind = "Invalid" - // HealthEvaluationKindNode Indicates that the health evaluation is for a node. The value is 12. - HealthEvaluationKindNode HealthEvaluationKind = "Node" - // HealthEvaluationKindNodes Indicates that the health evaluation is for the cluster nodes. The value is 7. - HealthEvaluationKindNodes HealthEvaluationKind = "Nodes" - // HealthEvaluationKindPartition Indicates that the health evaluation is for a partition. The value is 14. - HealthEvaluationKindPartition HealthEvaluationKind = "Partition" - // HealthEvaluationKindPartitions Indicates that the health evaluation is for the partitions of a service. - // The value is 3. - HealthEvaluationKindPartitions HealthEvaluationKind = "Partitions" - // HealthEvaluationKindReplica Indicates that the health evaluation is for a replica. The value is 13. - HealthEvaluationKindReplica HealthEvaluationKind = "Replica" - // HealthEvaluationKindReplicas Indicates that the health evaluation is for the replicas of a partition. - // The value is 2. - HealthEvaluationKindReplicas HealthEvaluationKind = "Replicas" - // HealthEvaluationKindService Indicates that the health evaluation is for a service. The value is 15. - HealthEvaluationKindService HealthEvaluationKind = "Service" - // HealthEvaluationKindServices Indicates that the health evaluation is for services of an application. The - // value is 6. - HealthEvaluationKindServices HealthEvaluationKind = "Services" - // HealthEvaluationKindSystemApplication Indicates that the health evaluation is for the system - // application. The value is 9. - HealthEvaluationKindSystemApplication HealthEvaluationKind = "SystemApplication" - // HealthEvaluationKindUpgradeDomainDeltaNodesCheck Indicates that the health evaluation is for the delta - // of unhealthy upgrade domain cluster nodes. The value is 20. - HealthEvaluationKindUpgradeDomainDeltaNodesCheck HealthEvaluationKind = "UpgradeDomainDeltaNodesCheck" - // HealthEvaluationKindUpgradeDomainDeployedApplications Indicates that the health evaluation is for the - // deployed applications of an application in an upgrade domain. The value is 10. - HealthEvaluationKindUpgradeDomainDeployedApplications HealthEvaluationKind = "UpgradeDomainDeployedApplications" - // HealthEvaluationKindUpgradeDomainNodes Indicates that the health evaluation is for the cluster nodes in - // an upgrade domain. The value is 11. - HealthEvaluationKindUpgradeDomainNodes HealthEvaluationKind = "UpgradeDomainNodes" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthEvaluationKindValues returns an array of possible values for the HealthEvaluationKind const type. -func PossibleHealthEvaluationKindValues() []HealthEvaluationKind { - return []HealthEvaluationKind{HealthEvaluationKindApplication, HealthEvaluationKindApplications, HealthEvaluationKindApplicationTypeApplications, HealthEvaluationKindDeltaNodesCheck, HealthEvaluationKindDeployedApplication, HealthEvaluationKindDeployedApplications, HealthEvaluationKindDeployedServicePackage, HealthEvaluationKindDeployedServicePackages, HealthEvaluationKindEvent, HealthEvaluationKindInvalid, HealthEvaluationKindNode, HealthEvaluationKindNodes, HealthEvaluationKindPartition, HealthEvaluationKindPartitions, HealthEvaluationKindReplica, HealthEvaluationKindReplicas, HealthEvaluationKindService, HealthEvaluationKindServices, HealthEvaluationKindSystemApplication, HealthEvaluationKindUpgradeDomainDeltaNodesCheck, HealthEvaluationKindUpgradeDomainDeployedApplications, HealthEvaluationKindUpgradeDomainNodes} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthState enumerates the values for health state. -type HealthState string - -const ( - // HealthStateError Indicates the health state is at an error level. Error health state should be - // investigated, as they can impact the correct functionality of the cluster. The value is 3. - HealthStateError HealthState = "Error" - // HealthStateInvalid Indicates an invalid health state. All Service Fabric enumerations have the invalid - // type. The value is zero. - HealthStateInvalid HealthState = "Invalid" - // HealthStateOk Indicates the health state is okay. The value is 1. - HealthStateOk HealthState = "Ok" - // HealthStateUnknown Indicates an unknown health status. The value is 65535. - HealthStateUnknown HealthState = "Unknown" - // HealthStateWarning Indicates the health state is at a warning level. The value is 2. - HealthStateWarning HealthState = "Warning" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHealthStateValues returns an array of possible values for the HealthState const type. -func PossibleHealthStateValues() []HealthState { - return []HealthState{HealthStateError, HealthStateInvalid, HealthStateOk, HealthStateUnknown, HealthStateWarning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HostIsolationMode enumerates the values for host isolation mode. -type HostIsolationMode string - -const ( - // HostIsolationModeHyperV Indicates the ContainerHost is a Hyper-V container. This applies to only Windows - // containers. The value is 2. - HostIsolationModeHyperV HostIsolationMode = "HyperV" - // HostIsolationModeNone Indicates the isolation mode is not applicable for given HostType. The value is 0. - HostIsolationModeNone HostIsolationMode = "None" - // HostIsolationModeProcess This is the default isolation mode for a ContainerHost. The value is 1. - HostIsolationModeProcess HostIsolationMode = "Process" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHostIsolationModeValues returns an array of possible values for the HostIsolationMode const type. -func PossibleHostIsolationModeValues() []HostIsolationMode { - return []HostIsolationMode{HostIsolationModeHyperV, HostIsolationModeNone, HostIsolationModeProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HostType enumerates the values for host type. -type HostType string - -const ( - // HostTypeContainerHost Indicates the host is a container. The value is 2. - HostTypeContainerHost HostType = "ContainerHost" - // HostTypeExeHost Indicates the host is an executable. The value is 1. - HostTypeExeHost HostType = "ExeHost" - // HostTypeInvalid Indicates the type of host is not known or invalid. The value is 0. - HostTypeInvalid HostType = "Invalid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleHostTypeValues returns an array of possible values for the HostType const type. -func PossibleHostTypeValues() []HostType { - return []HostType{HostTypeContainerHost, HostTypeExeHost, HostTypeInvalid} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImpactLevel enumerates the values for impact level. -type ImpactLevel string - -const ( - // ImpactLevelInvalid ... - ImpactLevelInvalid ImpactLevel = "Invalid" - // ImpactLevelNone ... - ImpactLevelNone ImpactLevel = "None" - // ImpactLevelRemoveData ... - ImpactLevelRemoveData ImpactLevel = "RemoveData" - // ImpactLevelRemoveNode ... - ImpactLevelRemoveNode ImpactLevel = "RemoveNode" - // ImpactLevelRestart ... - ImpactLevelRestart ImpactLevel = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleImpactLevelValues returns an array of possible values for the ImpactLevel const type. -func PossibleImpactLevelValues() []ImpactLevel { - return []ImpactLevel{ImpactLevelInvalid, ImpactLevelNone, ImpactLevelRemoveData, ImpactLevelRemoveNode, ImpactLevelRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Kind enumerates the values for kind. -type Kind string - -const ( - // KindApplication ... - KindApplication Kind = "Application" - // KindApplications ... - KindApplications Kind = "Applications" - // KindApplicationTypeApplications ... - KindApplicationTypeApplications Kind = "ApplicationTypeApplications" - // KindDeltaNodesCheck ... - KindDeltaNodesCheck Kind = "DeltaNodesCheck" - // KindDeployedApplication ... - KindDeployedApplication Kind = "DeployedApplication" - // KindDeployedApplications ... - KindDeployedApplications Kind = "DeployedApplications" - // KindDeployedServicePackage ... - KindDeployedServicePackage Kind = "DeployedServicePackage" - // KindDeployedServicePackages ... - KindDeployedServicePackages Kind = "DeployedServicePackages" - // KindEvent ... - KindEvent Kind = "Event" - // KindHealthEvaluation ... - KindHealthEvaluation Kind = "HealthEvaluation" - // KindNode ... - KindNode Kind = "Node" - // KindNodes ... - KindNodes Kind = "Nodes" - // KindPartition ... - KindPartition Kind = "Partition" - // KindPartitions ... - KindPartitions Kind = "Partitions" - // KindReplica ... - KindReplica Kind = "Replica" - // KindReplicas ... - KindReplicas Kind = "Replicas" - // KindService ... - KindService Kind = "Service" - // KindServices ... - KindServices Kind = "Services" - // KindSystemApplication ... - KindSystemApplication Kind = "SystemApplication" - // KindUpgradeDomainDeltaNodesCheck ... - KindUpgradeDomainDeltaNodesCheck Kind = "UpgradeDomainDeltaNodesCheck" - // KindUpgradeDomainNodes ... - KindUpgradeDomainNodes Kind = "UpgradeDomainNodes" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindValues returns an array of possible values for the Kind const type. -func PossibleKindValues() []Kind { - return []Kind{KindApplication, KindApplications, KindApplicationTypeApplications, KindDeltaNodesCheck, KindDeployedApplication, KindDeployedApplications, KindDeployedServicePackage, KindDeployedServicePackages, KindEvent, KindHealthEvaluation, KindNode, KindNodes, KindPartition, KindPartitions, KindReplica, KindReplicas, KindService, KindServices, KindSystemApplication, KindUpgradeDomainDeltaNodesCheck, KindUpgradeDomainNodes} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicChaosEvent enumerates the values for kind basic chaos event. -type KindBasicChaosEvent string - -const ( - // KindChaosEvent ... - KindChaosEvent KindBasicChaosEvent = "ChaosEvent" - // KindExecutingFaults ... - KindExecutingFaults KindBasicChaosEvent = "ExecutingFaults" - // KindStarted ... - KindStarted KindBasicChaosEvent = "Started" - // KindStopped ... - KindStopped KindBasicChaosEvent = "Stopped" - // KindTestError ... - KindTestError KindBasicChaosEvent = "TestError" - // KindValidationFailed ... - KindValidationFailed KindBasicChaosEvent = "ValidationFailed" - // KindWaiting ... - KindWaiting KindBasicChaosEvent = "Waiting" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicChaosEventValues returns an array of possible values for the KindBasicChaosEvent const type. -func PossibleKindBasicChaosEventValues() []KindBasicChaosEvent { - return []KindBasicChaosEvent{KindChaosEvent, KindExecutingFaults, KindStarted, KindStopped, KindTestError, KindValidationFailed, KindWaiting} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicPropertyBatchInfo enumerates the values for kind basic property batch info. -type KindBasicPropertyBatchInfo string - -const ( - // KindFailed ... - KindFailed KindBasicPropertyBatchInfo = "Failed" - // KindPropertyBatchInfo ... - KindPropertyBatchInfo KindBasicPropertyBatchInfo = "PropertyBatchInfo" - // KindSuccessful ... - KindSuccessful KindBasicPropertyBatchInfo = "Successful" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicPropertyBatchInfoValues returns an array of possible values for the KindBasicPropertyBatchInfo const type. -func PossibleKindBasicPropertyBatchInfoValues() []KindBasicPropertyBatchInfo { - return []KindBasicPropertyBatchInfo{KindFailed, KindPropertyBatchInfo, KindSuccessful} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicPropertyBatchOperation enumerates the values for kind basic property batch operation. -type KindBasicPropertyBatchOperation string - -const ( - // KindCheckExists ... - KindCheckExists KindBasicPropertyBatchOperation = "CheckExists" - // KindCheckSequence ... - KindCheckSequence KindBasicPropertyBatchOperation = "CheckSequence" - // KindCheckValue ... - KindCheckValue KindBasicPropertyBatchOperation = "CheckValue" - // KindDelete ... - KindDelete KindBasicPropertyBatchOperation = "Delete" - // KindGet ... - KindGet KindBasicPropertyBatchOperation = "Get" - // KindPropertyBatchOperation ... - KindPropertyBatchOperation KindBasicPropertyBatchOperation = "PropertyBatchOperation" - // KindPut ... - KindPut KindBasicPropertyBatchOperation = "Put" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicPropertyBatchOperationValues returns an array of possible values for the KindBasicPropertyBatchOperation const type. -func PossibleKindBasicPropertyBatchOperationValues() []KindBasicPropertyBatchOperation { - return []KindBasicPropertyBatchOperation{KindCheckExists, KindCheckSequence, KindCheckValue, KindDelete, KindGet, KindPropertyBatchOperation, KindPut} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicPropertyValue enumerates the values for kind basic property value. -type KindBasicPropertyValue string - -const ( - // KindBinary ... - KindBinary KindBasicPropertyValue = "Binary" - // KindDouble ... - KindDouble KindBasicPropertyValue = "Double" - // KindGUID ... - KindGUID KindBasicPropertyValue = "Guid" - // KindInt64 ... - KindInt64 KindBasicPropertyValue = "Int64" - // KindPropertyValue ... - KindPropertyValue KindBasicPropertyValue = "PropertyValue" - // KindString ... - KindString KindBasicPropertyValue = "String" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicPropertyValueValues returns an array of possible values for the KindBasicPropertyValue const type. -func PossibleKindBasicPropertyValueValues() []KindBasicPropertyValue { - return []KindBasicPropertyValue{KindBinary, KindDouble, KindGUID, KindInt64, KindPropertyValue, KindString} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicProvisionApplicationTypeDescriptionBase enumerates the values for kind basic provision application -// type description base. -type KindBasicProvisionApplicationTypeDescriptionBase string - -const ( - // KindExternalStore ... - KindExternalStore KindBasicProvisionApplicationTypeDescriptionBase = "ExternalStore" - // KindImageStorePath ... - KindImageStorePath KindBasicProvisionApplicationTypeDescriptionBase = "ImageStorePath" - // KindProvisionApplicationTypeDescriptionBase ... - KindProvisionApplicationTypeDescriptionBase KindBasicProvisionApplicationTypeDescriptionBase = "ProvisionApplicationTypeDescriptionBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicProvisionApplicationTypeDescriptionBaseValues returns an array of possible values for the KindBasicProvisionApplicationTypeDescriptionBase const type. -func PossibleKindBasicProvisionApplicationTypeDescriptionBaseValues() []KindBasicProvisionApplicationTypeDescriptionBase { - return []KindBasicProvisionApplicationTypeDescriptionBase{KindExternalStore, KindImageStorePath, KindProvisionApplicationTypeDescriptionBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicRepairImpactDescriptionBase enumerates the values for kind basic repair impact description base. -type KindBasicRepairImpactDescriptionBase string - -const ( - // KindBasicRepairImpactDescriptionBaseKindNode ... - KindBasicRepairImpactDescriptionBaseKindNode KindBasicRepairImpactDescriptionBase = "Node" - // KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase ... - KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase KindBasicRepairImpactDescriptionBase = "RepairImpactDescriptionBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicRepairImpactDescriptionBaseValues returns an array of possible values for the KindBasicRepairImpactDescriptionBase const type. -func PossibleKindBasicRepairImpactDescriptionBaseValues() []KindBasicRepairImpactDescriptionBase { - return []KindBasicRepairImpactDescriptionBase{KindBasicRepairImpactDescriptionBaseKindNode, KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicRepairTargetDescriptionBase enumerates the values for kind basic repair target description base. -type KindBasicRepairTargetDescriptionBase string - -const ( - // KindBasicRepairTargetDescriptionBaseKindNode ... - KindBasicRepairTargetDescriptionBaseKindNode KindBasicRepairTargetDescriptionBase = "Node" - // KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase ... - KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase KindBasicRepairTargetDescriptionBase = "RepairTargetDescriptionBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicRepairTargetDescriptionBaseValues returns an array of possible values for the KindBasicRepairTargetDescriptionBase const type. -func PossibleKindBasicRepairTargetDescriptionBaseValues() []KindBasicRepairTargetDescriptionBase { - return []KindBasicRepairTargetDescriptionBase{KindBasicRepairTargetDescriptionBaseKindNode, KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicReplicaStatusBase enumerates the values for kind basic replica status base. -type KindBasicReplicaStatusBase string - -const ( - // KindKeyValueStore ... - KindKeyValueStore KindBasicReplicaStatusBase = "KeyValueStore" - // KindReplicaStatusBase ... - KindReplicaStatusBase KindBasicReplicaStatusBase = "ReplicaStatusBase" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicReplicaStatusBaseValues returns an array of possible values for the KindBasicReplicaStatusBase const type. -func PossibleKindBasicReplicaStatusBaseValues() []KindBasicReplicaStatusBase { - return []KindBasicReplicaStatusBase{KindKeyValueStore, KindReplicaStatusBase} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicReplicatorStatus enumerates the values for kind basic replicator status. -type KindBasicReplicatorStatus string - -const ( - // KindActiveSecondary ... - KindActiveSecondary KindBasicReplicatorStatus = "ActiveSecondary" - // KindIdleSecondary ... - KindIdleSecondary KindBasicReplicatorStatus = "IdleSecondary" - // KindPrimary ... - KindPrimary KindBasicReplicatorStatus = "Primary" - // KindReplicatorStatus ... - KindReplicatorStatus KindBasicReplicatorStatus = "ReplicatorStatus" - // KindSecondaryReplicatorStatus ... - KindSecondaryReplicatorStatus KindBasicReplicatorStatus = "SecondaryReplicatorStatus" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicReplicatorStatusValues returns an array of possible values for the KindBasicReplicatorStatus const type. -func PossibleKindBasicReplicatorStatusValues() []KindBasicReplicatorStatus { - return []KindBasicReplicatorStatus{KindActiveSecondary, KindIdleSecondary, KindPrimary, KindReplicatorStatus, KindSecondaryReplicatorStatus} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicSafetyCheck enumerates the values for kind basic safety check. -type KindBasicSafetyCheck string - -const ( - // KindEnsureAvailability ... - KindEnsureAvailability KindBasicSafetyCheck = "EnsureAvailability" - // KindEnsurePartitionQuorum ... - KindEnsurePartitionQuorum KindBasicSafetyCheck = "EnsurePartitionQuorum" - // KindEnsureSeedNodeQuorum ... - KindEnsureSeedNodeQuorum KindBasicSafetyCheck = "EnsureSeedNodeQuorum" - // KindPartitionSafetyCheck ... - KindPartitionSafetyCheck KindBasicSafetyCheck = "PartitionSafetyCheck" - // KindSafetyCheck ... - KindSafetyCheck KindBasicSafetyCheck = "SafetyCheck" - // KindWaitForInbuildReplica ... - KindWaitForInbuildReplica KindBasicSafetyCheck = "WaitForInbuildReplica" - // KindWaitForPrimaryPlacement ... - KindWaitForPrimaryPlacement KindBasicSafetyCheck = "WaitForPrimaryPlacement" - // KindWaitForPrimarySwap ... - KindWaitForPrimarySwap KindBasicSafetyCheck = "WaitForPrimarySwap" - // KindWaitForReconfiguration ... - KindWaitForReconfiguration KindBasicSafetyCheck = "WaitForReconfiguration" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicSafetyCheckValues returns an array of possible values for the KindBasicSafetyCheck const type. -func PossibleKindBasicSafetyCheckValues() []KindBasicSafetyCheck { - return []KindBasicSafetyCheck{KindEnsureAvailability, KindEnsurePartitionQuorum, KindEnsureSeedNodeQuorum, KindPartitionSafetyCheck, KindSafetyCheck, KindWaitForInbuildReplica, KindWaitForPrimaryPlacement, KindWaitForPrimarySwap, KindWaitForReconfiguration} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KindBasicServiceTypeDescription enumerates the values for kind basic service type description. -type KindBasicServiceTypeDescription string - -const ( - // KindServiceTypeDescription ... - KindServiceTypeDescription KindBasicServiceTypeDescription = "ServiceTypeDescription" - // KindStateful ... - KindStateful KindBasicServiceTypeDescription = "Stateful" - // KindStateless ... - KindStateless KindBasicServiceTypeDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleKindBasicServiceTypeDescriptionValues returns an array of possible values for the KindBasicServiceTypeDescription const type. -func PossibleKindBasicServiceTypeDescriptionValues() []KindBasicServiceTypeDescription { - return []KindBasicServiceTypeDescription{KindServiceTypeDescription, KindStateful, KindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MoveCost enumerates the values for move cost. -type MoveCost string - -const ( - // High Specifies the move cost of the service as High. The value is 3. - High MoveCost = "High" - // Low Specifies the move cost of the service as Low. The value is 1. - Low MoveCost = "Low" - // Medium Specifies the move cost of the service as Medium. The value is 2. - Medium MoveCost = "Medium" - // Zero Zero move cost. This value is zero. - Zero MoveCost = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleMoveCostValues returns an array of possible values for the MoveCost const type. -func PossibleMoveCostValues() []MoveCost { - return []MoveCost{High, Low, Medium, Zero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationIntent enumerates the values for node deactivation intent. -type NodeDeactivationIntent string - -const ( - // NodeDeactivationIntentInvalid Indicates the node deactivation intent is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. This value is not used. - NodeDeactivationIntentInvalid NodeDeactivationIntent = "Invalid" - // NodeDeactivationIntentPause Indicates that the node should be paused. The value is 1. - NodeDeactivationIntentPause NodeDeactivationIntent = "Pause" - // NodeDeactivationIntentRemoveData Indicates that the intent is to reimage the node. Service Fabric does - // not reimage the node, this action is done outside of Service Fabric. The value is 3. - NodeDeactivationIntentRemoveData NodeDeactivationIntent = "RemoveData" - // NodeDeactivationIntentRemoveNode Indicates that the node is being decommissioned and is not expected to - // return. Service Fabric does not decommission the node, this action is done outside of Service Fabric. - // The value is 4. - NodeDeactivationIntentRemoveNode NodeDeactivationIntent = "RemoveNode" - // NodeDeactivationIntentRestart Indicates that the intent is for the node to be restarted after a short - // period of time. Service Fabric does not restart the node, this action is done outside of Service Fabric. - // The value is 2. - NodeDeactivationIntentRestart NodeDeactivationIntent = "Restart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationIntentValues returns an array of possible values for the NodeDeactivationIntent const type. -func PossibleNodeDeactivationIntentValues() []NodeDeactivationIntent { - return []NodeDeactivationIntent{NodeDeactivationIntentInvalid, NodeDeactivationIntentPause, NodeDeactivationIntentRemoveData, NodeDeactivationIntentRemoveNode, NodeDeactivationIntentRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationStatus enumerates the values for node deactivation status. -type NodeDeactivationStatus string - -const ( - // NodeDeactivationStatusCompleted The task is completed. The value is 3. - NodeDeactivationStatusCompleted NodeDeactivationStatus = "Completed" - // NodeDeactivationStatusNone No status is associated with the task. The value is zero. - NodeDeactivationStatusNone NodeDeactivationStatus = "None" - // NodeDeactivationStatusSafetyCheckComplete When a node is deactivated Service Fabric performs checks to - // ensure that the operation is safe to proceed to ensure availability of the service and reliability of - // the state. This value indicates that all safety checks have been completed. The value is 2. - NodeDeactivationStatusSafetyCheckComplete NodeDeactivationStatus = "SafetyCheckComplete" - // NodeDeactivationStatusSafetyCheckInProgress When a node is deactivated Service Fabric performs checks to - // ensure that the operation is safe to proceed to ensure availability of the service and reliability of - // the state. This value indicates that one or more safety checks are in progress. The value is 1. - NodeDeactivationStatusSafetyCheckInProgress NodeDeactivationStatus = "SafetyCheckInProgress" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationStatusValues returns an array of possible values for the NodeDeactivationStatus const type. -func PossibleNodeDeactivationStatusValues() []NodeDeactivationStatus { - return []NodeDeactivationStatus{NodeDeactivationStatusCompleted, NodeDeactivationStatusNone, NodeDeactivationStatusSafetyCheckComplete, NodeDeactivationStatusSafetyCheckInProgress} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTaskType enumerates the values for node deactivation task type. -type NodeDeactivationTaskType string - -const ( - // NodeDeactivationTaskTypeClient Specifies that the task was created by using the public API. The value is - // 3. - NodeDeactivationTaskTypeClient NodeDeactivationTaskType = "Client" - // NodeDeactivationTaskTypeInfrastructure Specifies the task created by Infrastructure hosting the nodes. - // The value is 1. - NodeDeactivationTaskTypeInfrastructure NodeDeactivationTaskType = "Infrastructure" - // NodeDeactivationTaskTypeInvalid Indicates the node deactivation task type is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. This value is not used. - NodeDeactivationTaskTypeInvalid NodeDeactivationTaskType = "Invalid" - // NodeDeactivationTaskTypeRepair Specifies the task that was created by the Repair Manager service. The - // value is 2. - NodeDeactivationTaskTypeRepair NodeDeactivationTaskType = "Repair" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeDeactivationTaskTypeValues returns an array of possible values for the NodeDeactivationTaskType const type. -func PossibleNodeDeactivationTaskTypeValues() []NodeDeactivationTaskType { - return []NodeDeactivationTaskType{NodeDeactivationTaskTypeClient, NodeDeactivationTaskTypeInfrastructure, NodeDeactivationTaskTypeInvalid, NodeDeactivationTaskTypeRepair} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeStatus enumerates the values for node status. -type NodeStatus string - -const ( - // NodeStatusDisabled Indicates the node is disabled. The value is 5. - NodeStatusDisabled NodeStatus = "Disabled" - // NodeStatusDisabling Indicates the node is in the process of being disabled. The value is 4. - NodeStatusDisabling NodeStatus = "Disabling" - // NodeStatusDown Indicates the node is down. The value is 2. - NodeStatusDown NodeStatus = "Down" - // NodeStatusEnabling Indicates the node is in process of being enabled. The value is 3. - NodeStatusEnabling NodeStatus = "Enabling" - // NodeStatusInvalid Indicates the node status is invalid. All Service Fabric enumerations have the invalid - // type. The value is zero. - NodeStatusInvalid NodeStatus = "Invalid" - // NodeStatusRemoved Indicates the node is removed. A node would be in Removed state if NodeStateRemoved - // API has been called for this node. In other words, Service Fabric has been informed that the persisted - // state on the node has been permanently lost. The value is 7. - NodeStatusRemoved NodeStatus = "Removed" - // NodeStatusUnknown Indicates the node is unknown. A node would be in Unknown state if Service Fabric does - // not have authoritative information about that node. This can happen if the system learns about a node at - // runtime.The value is 6. - NodeStatusUnknown NodeStatus = "Unknown" - // NodeStatusUp Indicates the node is up. The value is 1. - NodeStatusUp NodeStatus = "Up" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type. -func PossibleNodeStatusValues() []NodeStatus { - return []NodeStatus{NodeStatusDisabled, NodeStatusDisabling, NodeStatusDown, NodeStatusEnabling, NodeStatusInvalid, NodeStatusRemoved, NodeStatusUnknown, NodeStatusUp} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeStatusFilterOptionalQueryParam enumerates the values for node status filter optional query param. -type NodeStatusFilterOptionalQueryParam string - -const ( - // All This filter value will match all of the nodes. - All NodeStatusFilterOptionalQueryParam = "all" - // Default This filter value will match all of the nodes excepts the ones with with status as Unknown or - // Removed. - Default NodeStatusFilterOptionalQueryParam = "default" - // Disabled This filter value will match nodes that are Disabled. - Disabled NodeStatusFilterOptionalQueryParam = "disabled" - // Disabling This filter value will match nodes that are in the process of being disabled with status as - // Disabling. - Disabling NodeStatusFilterOptionalQueryParam = "disabling" - // Down This filter value will match nodes that are Down. - Down NodeStatusFilterOptionalQueryParam = "down" - // Enabling This filter value will match nodes that are in the process of being enabled with status as - // Enabling. - Enabling NodeStatusFilterOptionalQueryParam = "enabling" - // Removed This filter value will match nodes whose status is Removed. These are the nodes that are removed - // from the cluster using the RemoveNodeState API. - Removed NodeStatusFilterOptionalQueryParam = "removed" - // Unknown This filter value will match nodes whose status is Unknown. A node would be in Unknown state if - // Service Fabric does not have authoritative information about that node. This can happen if the system - // learns about a node at runtime. - Unknown NodeStatusFilterOptionalQueryParam = "unknown" - // Up This filter value will match nodes that are Up. - Up NodeStatusFilterOptionalQueryParam = "up" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeStatusFilterOptionalQueryParamValues returns an array of possible values for the NodeStatusFilterOptionalQueryParam const type. -func PossibleNodeStatusFilterOptionalQueryParamValues() []NodeStatusFilterOptionalQueryParam { - return []NodeStatusFilterOptionalQueryParam{All, Default, Disabled, Disabling, Down, Enabling, Removed, Unknown, Up} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeTransitionTypeRequiredQueryParam enumerates the values for node transition type required query param. -type NodeTransitionTypeRequiredQueryParam string - -const ( - // NodeTransitionTypeRequiredQueryParamInvalid Reserved. Do not pass into API. - NodeTransitionTypeRequiredQueryParamInvalid NodeTransitionTypeRequiredQueryParam = "Invalid" - // NodeTransitionTypeRequiredQueryParamStart Transition a stopped node to up. - NodeTransitionTypeRequiredQueryParamStart NodeTransitionTypeRequiredQueryParam = "Start" - // NodeTransitionTypeRequiredQueryParamStop Transition an up node to stopped. - NodeTransitionTypeRequiredQueryParamStop NodeTransitionTypeRequiredQueryParam = "Stop" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeTransitionTypeRequiredQueryParamValues returns an array of possible values for the NodeTransitionTypeRequiredQueryParam const type. -func PossibleNodeTransitionTypeRequiredQueryParamValues() []NodeTransitionTypeRequiredQueryParam { - return []NodeTransitionTypeRequiredQueryParam{NodeTransitionTypeRequiredQueryParamInvalid, NodeTransitionTypeRequiredQueryParamStart, NodeTransitionTypeRequiredQueryParamStop} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeUpgradePhase enumerates the values for node upgrade phase. -type NodeUpgradePhase string - -const ( - // NodeUpgradePhaseInvalid Indicates the upgrade state is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - NodeUpgradePhaseInvalid NodeUpgradePhase = "Invalid" - // NodeUpgradePhasePostUpgradeSafetyCheck The upgrade has completed and post upgrade safety checks are - // being performed. The value is 3 - NodeUpgradePhasePostUpgradeSafetyCheck NodeUpgradePhase = "PostUpgradeSafetyCheck" - // NodeUpgradePhasePreUpgradeSafetyCheck The upgrade has not started yet due to pending safety checks. The - // value is 1 - NodeUpgradePhasePreUpgradeSafetyCheck NodeUpgradePhase = "PreUpgradeSafetyCheck" - // NodeUpgradePhaseUpgrading The upgrade is in progress. The value is 2 - NodeUpgradePhaseUpgrading NodeUpgradePhase = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleNodeUpgradePhaseValues returns an array of possible values for the NodeUpgradePhase const type. -func PossibleNodeUpgradePhaseValues() []NodeUpgradePhase { - return []NodeUpgradePhase{NodeUpgradePhaseInvalid, NodeUpgradePhasePostUpgradeSafetyCheck, NodeUpgradePhasePreUpgradeSafetyCheck, NodeUpgradePhaseUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// OperationState enumerates the values for operation state. -type OperationState string - -const ( - // OperationStateCancelled The operation was cancelled by the user using CancelOperation, and is no longer - // running. - OperationStateCancelled OperationState = "Cancelled" - // OperationStateCompleted The operation has completed successfully and is no longer running. - OperationStateCompleted OperationState = "Completed" - // OperationStateFaulted The operation has failed and is no longer running. - OperationStateFaulted OperationState = "Faulted" - // OperationStateForceCancelled The operation was cancelled by the user using CancelOperation, with the - // force parameter set to true. It is no longer running. Refer to CancelOperation for more details. - OperationStateForceCancelled OperationState = "ForceCancelled" - // OperationStateInvalid The operation state is invalid. - OperationStateInvalid OperationState = "Invalid" - // OperationStateRollingBack The operation is rolling back internal system state because it encountered a - // fatal error or was cancelled by the user. "RollingBack" does not refer to user state. For example, - // if CancelOperation is called on a command of type PartitionDataLoss, state of "RollingBack" does not - // mean service data is being restored (assuming the command has progressed far enough to cause data loss). - // It means the system is rolling back/cleaning up internal system state associated with the command. - OperationStateRollingBack OperationState = "RollingBack" - // OperationStateRunning The operation is in progress. - OperationStateRunning OperationState = "Running" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleOperationStateValues returns an array of possible values for the OperationState const type. -func PossibleOperationStateValues() []OperationState { - return []OperationState{OperationStateCancelled, OperationStateCompleted, OperationStateFaulted, OperationStateForceCancelled, OperationStateInvalid, OperationStateRollingBack, OperationStateRunning} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// OperationType enumerates the values for operation type. -type OperationType string - -const ( - // OperationTypeInvalid The operation state is invalid. - OperationTypeInvalid OperationType = "Invalid" - // OperationTypeNodeTransition An operation started using the StartNodeTransition API. - OperationTypeNodeTransition OperationType = "NodeTransition" - // OperationTypePartitionDataLoss An operation started using the StartDataLoss API. - OperationTypePartitionDataLoss OperationType = "PartitionDataLoss" - // OperationTypePartitionQuorumLoss An operation started using the StartQuorumLoss API. - OperationTypePartitionQuorumLoss OperationType = "PartitionQuorumLoss" - // OperationTypePartitionRestart An operation started using the StartPartitionRestart API. - OperationTypePartitionRestart OperationType = "PartitionRestart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleOperationTypeValues returns an array of possible values for the OperationType const type. -func PossibleOperationTypeValues() []OperationType { - return []OperationType{OperationTypeInvalid, OperationTypeNodeTransition, OperationTypePartitionDataLoss, OperationTypePartitionQuorumLoss, OperationTypePartitionRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PackageSharingPolicyScope enumerates the values for package sharing policy scope. -type PackageSharingPolicyScope string - -const ( - // PackageSharingPolicyScopeAll Share all code, config and data packages from corresponding service - // manifest. The value is 1. - PackageSharingPolicyScopeAll PackageSharingPolicyScope = "All" - // PackageSharingPolicyScopeCode Share all code packages from corresponding service manifest. The value is - // 2. - PackageSharingPolicyScopeCode PackageSharingPolicyScope = "Code" - // PackageSharingPolicyScopeConfig Share all config packages from corresponding service manifest. The value - // is 3. - PackageSharingPolicyScopeConfig PackageSharingPolicyScope = "Config" - // PackageSharingPolicyScopeData Share all data packages from corresponding service manifest. The value is - // 4. - PackageSharingPolicyScopeData PackageSharingPolicyScope = "Data" - // PackageSharingPolicyScopeNone No package sharing policy scope. The value is 0. - PackageSharingPolicyScopeNone PackageSharingPolicyScope = "None" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePackageSharingPolicyScopeValues returns an array of possible values for the PackageSharingPolicyScope const type. -func PossiblePackageSharingPolicyScopeValues() []PackageSharingPolicyScope { - return []PackageSharingPolicyScope{PackageSharingPolicyScopeAll, PackageSharingPolicyScopeCode, PackageSharingPolicyScopeConfig, PackageSharingPolicyScopeData, PackageSharingPolicyScopeNone} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionAccessStatus enumerates the values for partition access status. -type PartitionAccessStatus string - -const ( - // PartitionAccessStatusGranted Indicates that the read or write operation access is granted and the - // operation is allowed. - PartitionAccessStatusGranted PartitionAccessStatus = "Granted" - // PartitionAccessStatusInvalid Indicates that the read or write operation access status is not valid. This - // value is not returned to the caller. - PartitionAccessStatusInvalid PartitionAccessStatus = "Invalid" - // PartitionAccessStatusNotPrimary Indicates that this client request was received by a replica that is not - // a Primary replica. - PartitionAccessStatusNotPrimary PartitionAccessStatus = "NotPrimary" - // PartitionAccessStatusNoWriteQuorum Indicates that no write quorum is available and, therefore, no write - // operation can be accepted. - PartitionAccessStatusNoWriteQuorum PartitionAccessStatus = "NoWriteQuorum" - // PartitionAccessStatusReconfigurationPending Indicates that the client should try again later, because a - // reconfiguration is in progress. - PartitionAccessStatusReconfigurationPending PartitionAccessStatus = "ReconfigurationPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionAccessStatusValues returns an array of possible values for the PartitionAccessStatus const type. -func PossiblePartitionAccessStatusValues() []PartitionAccessStatus { - return []PartitionAccessStatus{PartitionAccessStatusGranted, PartitionAccessStatusInvalid, PartitionAccessStatusNotPrimary, PartitionAccessStatusNoWriteQuorum, PartitionAccessStatusReconfigurationPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionScheme enumerates the values for partition scheme. -type PartitionScheme string - -const ( - // PartitionSchemeInvalid Indicates the partition kind is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - PartitionSchemeInvalid PartitionScheme = "Invalid" - // PartitionSchemeNamed Indicates that the partition is based on string names, and is a - // NamedPartitionSchemeDescription object. The value is 3 - PartitionSchemeNamed PartitionScheme = "Named" - // PartitionSchemeSingleton Indicates that the partition is based on string names, and is a - // SingletonPartitionSchemeDescription object, The value is 1. - PartitionSchemeSingleton PartitionScheme = "Singleton" - // PartitionSchemeUniformInt64Range Indicates that the partition is based on Int64 key ranges, and is a - // UniformInt64RangePartitionSchemeDescription object. The value is 2. - PartitionSchemeUniformInt64Range PartitionScheme = "UniformInt64Range" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type. -func PossiblePartitionSchemeValues() []PartitionScheme { - return []PartitionScheme{PartitionSchemeInvalid, PartitionSchemeNamed, PartitionSchemeSingleton, PartitionSchemeUniformInt64Range} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionSchemeBasicPartitionSchemeDescription enumerates the values for partition scheme basic partition -// scheme description. -type PartitionSchemeBasicPartitionSchemeDescription string - -const ( - // PartitionSchemeNamed1 ... - PartitionSchemeNamed1 PartitionSchemeBasicPartitionSchemeDescription = "Named" - // PartitionSchemePartitionSchemeDescription ... - PartitionSchemePartitionSchemeDescription PartitionSchemeBasicPartitionSchemeDescription = "PartitionSchemeDescription" - // PartitionSchemeSingleton1 ... - PartitionSchemeSingleton1 PartitionSchemeBasicPartitionSchemeDescription = "Singleton" - // PartitionSchemeUniformInt64Range1 ... - PartitionSchemeUniformInt64Range1 PartitionSchemeBasicPartitionSchemeDescription = "UniformInt64Range" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues returns an array of possible values for the PartitionSchemeBasicPartitionSchemeDescription const type. -func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues() []PartitionSchemeBasicPartitionSchemeDescription { - return []PartitionSchemeBasicPartitionSchemeDescription{PartitionSchemeNamed1, PartitionSchemePartitionSchemeDescription, PartitionSchemeSingleton1, PartitionSchemeUniformInt64Range1} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchInfoKind enumerates the values for property batch info kind. -type PropertyBatchInfoKind string - -const ( - // PropertyBatchInfoKindFailed The property batch failed. - PropertyBatchInfoKindFailed PropertyBatchInfoKind = "Failed" - // PropertyBatchInfoKindInvalid Indicates the property batch info is invalid. All Service Fabric - // enumerations have the invalid type. - PropertyBatchInfoKindInvalid PropertyBatchInfoKind = "Invalid" - // PropertyBatchInfoKindSuccessful The property batch succeeded. - PropertyBatchInfoKindSuccessful PropertyBatchInfoKind = "Successful" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePropertyBatchInfoKindValues returns an array of possible values for the PropertyBatchInfoKind const type. -func PossiblePropertyBatchInfoKindValues() []PropertyBatchInfoKind { - return []PropertyBatchInfoKind{PropertyBatchInfoKindFailed, PropertyBatchInfoKindInvalid, PropertyBatchInfoKindSuccessful} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchOperationKind enumerates the values for property batch operation kind. -type PropertyBatchOperationKind string - -const ( - // PropertyBatchOperationKindCheckExists The operation will check that a property exists or doesn't exists, - // depending on the provided value. The value is 3. - PropertyBatchOperationKindCheckExists PropertyBatchOperationKind = "CheckExists" - // PropertyBatchOperationKindCheckSequence The operation will ensure that the sequence number is equal to - // the provided value. The value is 4. - PropertyBatchOperationKindCheckSequence PropertyBatchOperationKind = "CheckSequence" - // PropertyBatchOperationKindCheckValue The operation will ensure that the value of a property is equal to - // the provided value. The value is 7. - PropertyBatchOperationKindCheckValue PropertyBatchOperationKind = "CheckValue" - // PropertyBatchOperationKindDelete The operation will delete a property. The value is 5. - PropertyBatchOperationKindDelete PropertyBatchOperationKind = "Delete" - // PropertyBatchOperationKindGet The operation will get a property. The value is 2. - PropertyBatchOperationKindGet PropertyBatchOperationKind = "Get" - // PropertyBatchOperationKindInvalid Indicates the property operation is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. - PropertyBatchOperationKindInvalid PropertyBatchOperationKind = "Invalid" - // PropertyBatchOperationKindPut The operation will create or edit a property. The value is 1. - PropertyBatchOperationKindPut PropertyBatchOperationKind = "Put" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePropertyBatchOperationKindValues returns an array of possible values for the PropertyBatchOperationKind const type. -func PossiblePropertyBatchOperationKindValues() []PropertyBatchOperationKind { - return []PropertyBatchOperationKind{PropertyBatchOperationKindCheckExists, PropertyBatchOperationKindCheckSequence, PropertyBatchOperationKindCheckValue, PropertyBatchOperationKindDelete, PropertyBatchOperationKindGet, PropertyBatchOperationKindInvalid, PropertyBatchOperationKindPut} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyValueKind enumerates the values for property value kind. -type PropertyValueKind string - -const ( - // PropertyValueKindBinary The data inside the property is a binary blob. The value is 1. - PropertyValueKindBinary PropertyValueKind = "Binary" - // PropertyValueKindDouble The data inside the property is a double. The value is 3. - PropertyValueKindDouble PropertyValueKind = "Double" - // PropertyValueKindGUID The data inside the property is a guid. The value is 5. - PropertyValueKindGUID PropertyValueKind = "Guid" - // PropertyValueKindInt64 The data inside the property is an int64. The value is 2. - PropertyValueKindInt64 PropertyValueKind = "Int64" - // PropertyValueKindInvalid Indicates the property is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - PropertyValueKindInvalid PropertyValueKind = "Invalid" - // PropertyValueKindString The data inside the property is a string. The value is 4. - PropertyValueKindString PropertyValueKind = "String" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossiblePropertyValueKindValues returns an array of possible values for the PropertyValueKind const type. -func PossiblePropertyValueKindValues() []PropertyValueKind { - return []PropertyValueKind{PropertyValueKindBinary, PropertyValueKindDouble, PropertyValueKindGUID, PropertyValueKindInt64, PropertyValueKindInvalid, PropertyValueKindString} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeKind enumerates the values for provision application type kind. -type ProvisionApplicationTypeKind string - -const ( - // ProvisionApplicationTypeKindExternalStore Indicates that the provision is for an application package - // that was previously uploaded to an external store. The application package ends with the extension - // *.sfpkg. The value is 2. - ProvisionApplicationTypeKindExternalStore ProvisionApplicationTypeKind = "ExternalStore" - // ProvisionApplicationTypeKindImageStorePath Indicates that the provision is for a package that was - // previously uploaded to the image store. The value is 1. - ProvisionApplicationTypeKindImageStorePath ProvisionApplicationTypeKind = "ImageStorePath" - // ProvisionApplicationTypeKindInvalid Indicates that the provision kind is invalid. This value is default - // and should not be used. The value is zero. - ProvisionApplicationTypeKindInvalid ProvisionApplicationTypeKind = "Invalid" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleProvisionApplicationTypeKindValues returns an array of possible values for the ProvisionApplicationTypeKind const type. -func PossibleProvisionApplicationTypeKindValues() []ProvisionApplicationTypeKind { - return []ProvisionApplicationTypeKind{ProvisionApplicationTypeKindExternalStore, ProvisionApplicationTypeKindImageStorePath, ProvisionApplicationTypeKindInvalid} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// QuorumLossModeRequiredQueryParam enumerates the values for quorum loss mode required query param. -type QuorumLossModeRequiredQueryParam string - -const ( - // QuorumLossModeRequiredQueryParamAllReplicas ... - QuorumLossModeRequiredQueryParamAllReplicas QuorumLossModeRequiredQueryParam = "AllReplicas" - // QuorumLossModeRequiredQueryParamInvalid Reserved. Do not pass into API. - QuorumLossModeRequiredQueryParamInvalid QuorumLossModeRequiredQueryParam = "Invalid" - // QuorumLossModeRequiredQueryParamQuorumReplicas Partial Quorum loss mode : Minimum number of replicas for - // a partition will be down that will cause a quorum loss. - QuorumLossModeRequiredQueryParamQuorumReplicas QuorumLossModeRequiredQueryParam = "QuorumReplicas" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleQuorumLossModeRequiredQueryParamValues returns an array of possible values for the QuorumLossModeRequiredQueryParam const type. -func PossibleQuorumLossModeRequiredQueryParamValues() []QuorumLossModeRequiredQueryParam { - return []QuorumLossModeRequiredQueryParam{QuorumLossModeRequiredQueryParamAllReplicas, QuorumLossModeRequiredQueryParamInvalid, QuorumLossModeRequiredQueryParamQuorumReplicas} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReconfigurationPhase enumerates the values for reconfiguration phase. -type ReconfigurationPhase string - -const ( - // ReconfigurationPhaseAbortPhaseZero This phase is for internal use only. - ReconfigurationPhaseAbortPhaseZero ReconfigurationPhase = "AbortPhaseZero" - // ReconfigurationPhaseNone Specifies that there is no reconfiguration in progress. - ReconfigurationPhaseNone ReconfigurationPhase = "None" - // ReconfigurationPhasePhase0 Refers to the phase where the reconfiguration is transferring data from the - // previous primary to the new primary. - ReconfigurationPhasePhase0 ReconfigurationPhase = "Phase0" - // ReconfigurationPhasePhase1 Refers to the phase where the reconfiguration is querying the replica set for - // the progress. - ReconfigurationPhasePhase1 ReconfigurationPhase = "Phase1" - // ReconfigurationPhasePhase2 Refers to the phase where the reconfiguration is ensuring that data from the - // current primary is present in a majority of the replica set. - ReconfigurationPhasePhase2 ReconfigurationPhase = "Phase2" - // ReconfigurationPhasePhase3 This phase is for internal use only. - ReconfigurationPhasePhase3 ReconfigurationPhase = "Phase3" - // ReconfigurationPhasePhase4 This phase is for internal use only. - ReconfigurationPhasePhase4 ReconfigurationPhase = "Phase4" - // ReconfigurationPhaseUnknown Indicates the invalid reconfiguration phase. - ReconfigurationPhaseUnknown ReconfigurationPhase = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReconfigurationPhaseValues returns an array of possible values for the ReconfigurationPhase const type. -func PossibleReconfigurationPhaseValues() []ReconfigurationPhase { - return []ReconfigurationPhase{ReconfigurationPhaseAbortPhaseZero, ReconfigurationPhaseNone, ReconfigurationPhasePhase0, ReconfigurationPhasePhase1, ReconfigurationPhasePhase2, ReconfigurationPhasePhase3, ReconfigurationPhasePhase4, ReconfigurationPhaseUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReconfigurationType enumerates the values for reconfiguration type. -type ReconfigurationType string - -const ( - // ReconfigurationTypeFailover Reconfiguration triggered in response to a primary going down. This could be - // due to many reasons such as primary replica crashing etc. - ReconfigurationTypeFailover ReconfigurationType = "Failover" - // ReconfigurationTypeOther Reconfigurations where the primary replica is not changing. - ReconfigurationTypeOther ReconfigurationType = "Other" - // ReconfigurationTypeSwapPrimary Specifies that the primary replica is being swapped with a different - // replica. - ReconfigurationTypeSwapPrimary ReconfigurationType = "SwapPrimary" - // ReconfigurationTypeUnknown Indicates the invalid reconfiguration type. - ReconfigurationTypeUnknown ReconfigurationType = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReconfigurationTypeValues returns an array of possible values for the ReconfigurationType const type. -func PossibleReconfigurationTypeValues() []ReconfigurationType { - return []ReconfigurationType{ReconfigurationTypeFailover, ReconfigurationTypeOther, ReconfigurationTypeSwapPrimary, ReconfigurationTypeUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairImpactKind enumerates the values for repair impact kind. -type RepairImpactKind string - -const ( - // RepairImpactKindInvalid The repair impact is not valid or is of an unknown type. - RepairImpactKindInvalid RepairImpactKind = "Invalid" - // RepairImpactKindNode The repair impact affects a set of Service Fabric nodes. - RepairImpactKindNode RepairImpactKind = "Node" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRepairImpactKindValues returns an array of possible values for the RepairImpactKind const type. -func PossibleRepairImpactKindValues() []RepairImpactKind { - return []RepairImpactKind{RepairImpactKindInvalid, RepairImpactKindNode} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTargetKind enumerates the values for repair target kind. -type RepairTargetKind string - -const ( - // RepairTargetKindInvalid The repair target is not valid or is of an unknown type. - RepairTargetKindInvalid RepairTargetKind = "Invalid" - // RepairTargetKindNode The repair target is a set of Service Fabric nodes. - RepairTargetKindNode RepairTargetKind = "Node" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRepairTargetKindValues returns an array of possible values for the RepairTargetKind const type. -func PossibleRepairTargetKindValues() []RepairTargetKind { - return []RepairTargetKind{RepairTargetKindInvalid, RepairTargetKindNode} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskHealthCheckState enumerates the values for repair task health check state. -type RepairTaskHealthCheckState string - -const ( - // InProgress Indicates that the health check is in progress. - InProgress RepairTaskHealthCheckState = "InProgress" - // NotStarted Indicates that the health check has not started. - NotStarted RepairTaskHealthCheckState = "NotStarted" - // Skipped Indicates that the health check was skipped. - Skipped RepairTaskHealthCheckState = "Skipped" - // Succeeded Indicates that the health check succeeded. - Succeeded RepairTaskHealthCheckState = "Succeeded" - // TimedOut Indicates that the health check timed out. - TimedOut RepairTaskHealthCheckState = "TimedOut" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRepairTaskHealthCheckStateValues returns an array of possible values for the RepairTaskHealthCheckState const type. -func PossibleRepairTaskHealthCheckStateValues() []RepairTaskHealthCheckState { - return []RepairTaskHealthCheckState{InProgress, NotStarted, Skipped, Succeeded, TimedOut} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthReportServiceKindRequiredQueryParam enumerates the values for replica health report service -// kind required query param. -type ReplicaHealthReportServiceKindRequiredQueryParam string - -const ( - // Stateful Uses Service Fabric to make its state or part of its state highly available and reliable. The - // value is 2. - Stateful ReplicaHealthReportServiceKindRequiredQueryParam = "Stateful" - // Stateless Does not use Service Fabric to make its state highly available or reliable. The value is 1 - Stateless ReplicaHealthReportServiceKindRequiredQueryParam = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaHealthReportServiceKindRequiredQueryParamValues returns an array of possible values for the ReplicaHealthReportServiceKindRequiredQueryParam const type. -func PossibleReplicaHealthReportServiceKindRequiredQueryParamValues() []ReplicaHealthReportServiceKindRequiredQueryParam { - return []ReplicaHealthReportServiceKindRequiredQueryParam{Stateful, Stateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaKind enumerates the values for replica kind. -type ReplicaKind string - -const ( - // ReplicaKindInvalid Represents an invalid replica kind. The value is zero. - ReplicaKindInvalid ReplicaKind = "Invalid" - // ReplicaKindKeyValueStore Represents a key value store replica. The value is 1 - ReplicaKindKeyValueStore ReplicaKind = "KeyValueStore" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaKindValues returns an array of possible values for the ReplicaKind const type. -func PossibleReplicaKindValues() []ReplicaKind { - return []ReplicaKind{ReplicaKindInvalid, ReplicaKindKeyValueStore} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaRole enumerates the values for replica role. -type ReplicaRole string - -const ( - // ReplicaRoleActiveSecondary Refers to a replica in the set that receives state updates from the Primary - // replica, applies them, and sends acknowledgements back. Secondary replicas must participate in the write - // quorum for a replica set. There can be multiple active Secondary replicas in a replica set at a time. - // The number of active Secondary replicas is configurable that the reliability subsystem should maintain. - // The value is 4. - ReplicaRoleActiveSecondary ReplicaRole = "ActiveSecondary" - // ReplicaRoleIdleSecondary Refers to a replica in the set that receives a state transfer from the Primary - // replica to prepare for becoming an active Secondary replica. There can be multiple Idle Secondary - // replicas in a replica set at a time. Idle Secondary replicas do not count as a part of a write quorum. - // The value is 3. - ReplicaRoleIdleSecondary ReplicaRole = "IdleSecondary" - // ReplicaRoleNone Specifies that the replica has no responsibility in regard to the replica set. The value - // is 1 - ReplicaRoleNone ReplicaRole = "None" - // ReplicaRolePrimary Refers to the replica in the set on which all read and write operations are complete - // in order to enforce strong consistency semantics. Read operations are handled directly by the Primary - // replica, while write operations must be acknowledged by a quorum of the replicas in the replica set. - // There can only be one Primary replica in a replica set at a time. The value is 2. - ReplicaRolePrimary ReplicaRole = "Primary" - // ReplicaRoleUnknown Indicates the initial role that a replica is created in. The value is zero. - ReplicaRoleUnknown ReplicaRole = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaRoleValues returns an array of possible values for the ReplicaRole const type. -func PossibleReplicaRoleValues() []ReplicaRole { - return []ReplicaRole{ReplicaRoleActiveSecondary, ReplicaRoleIdleSecondary, ReplicaRoleNone, ReplicaRolePrimary, ReplicaRoleUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus enumerates the values for replica status. -type ReplicaStatus string - -const ( - // ReplicaStatusDown ... - ReplicaStatusDown ReplicaStatus = "Down" - // ReplicaStatusDropped ... - ReplicaStatusDropped ReplicaStatus = "Dropped" - // ReplicaStatusInBuild ... - ReplicaStatusInBuild ReplicaStatus = "InBuild" - // ReplicaStatusInvalid ... - ReplicaStatusInvalid ReplicaStatus = "Invalid" - // ReplicaStatusReady ... - ReplicaStatusReady ReplicaStatus = "Ready" - // ReplicaStatusStandby ... - ReplicaStatusStandby ReplicaStatus = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatusValues returns an array of possible values for the ReplicaStatus const type. -func PossibleReplicaStatusValues() []ReplicaStatus { - return []ReplicaStatus{ReplicaStatusDown, ReplicaStatusDropped, ReplicaStatusInBuild, ReplicaStatusInvalid, ReplicaStatusReady, ReplicaStatusStandby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatus1 enumerates the values for replica status 1. -type ReplicaStatus1 string - -const ( - // ReplicaStatus1Down ... - ReplicaStatus1Down ReplicaStatus1 = "Down" - // ReplicaStatus1Dropped ... - ReplicaStatus1Dropped ReplicaStatus1 = "Dropped" - // ReplicaStatus1InBuild ... - ReplicaStatus1InBuild ReplicaStatus1 = "InBuild" - // ReplicaStatus1Invalid ... - ReplicaStatus1Invalid ReplicaStatus1 = "Invalid" - // ReplicaStatus1Ready ... - ReplicaStatus1Ready ReplicaStatus1 = "Ready" - // ReplicaStatus1Standby ... - ReplicaStatus1Standby ReplicaStatus1 = "Standby" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicaStatus1Values returns an array of possible values for the ReplicaStatus1 const type. -func PossibleReplicaStatus1Values() []ReplicaStatus1 { - return []ReplicaStatus1{ReplicaStatus1Down, ReplicaStatus1Dropped, ReplicaStatus1InBuild, ReplicaStatus1Invalid, ReplicaStatus1Ready, ReplicaStatus1Standby} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicatorOperationName enumerates the values for replicator operation name. -type ReplicatorOperationName string - -const ( - // ReplicatorOperationNameAbort Replicator is being aborted. - ReplicatorOperationNameAbort ReplicatorOperationName = "Abort" - // ReplicatorOperationNameBuild Replicator is in the process of building one or more replicas. - ReplicatorOperationNameBuild ReplicatorOperationName = "Build" - // ReplicatorOperationNameChangeRole Replicator is in the process of changing its role. - ReplicatorOperationNameChangeRole ReplicatorOperationName = "ChangeRole" - // ReplicatorOperationNameClose Replicator is closing. - ReplicatorOperationNameClose ReplicatorOperationName = "Close" - // ReplicatorOperationNameInvalid Default value if the replicator is not yet ready. - ReplicatorOperationNameInvalid ReplicatorOperationName = "Invalid" - // ReplicatorOperationNameNone Replicator is not running any operation from Service Fabric perspective. - ReplicatorOperationNameNone ReplicatorOperationName = "None" - // ReplicatorOperationNameOnDataLoss Replicator is handling the data loss condition, where the user service - // may potentially be recovering state from an external source. - ReplicatorOperationNameOnDataLoss ReplicatorOperationName = "OnDataLoss" - // ReplicatorOperationNameOpen Replicator is opening. - ReplicatorOperationNameOpen ReplicatorOperationName = "Open" - // ReplicatorOperationNameUpdateEpoch Due to a change in the replica set, replicator is being updated with - // its Epoch. - ReplicatorOperationNameUpdateEpoch ReplicatorOperationName = "UpdateEpoch" - // ReplicatorOperationNameWaitForCatchup Replicator is waiting for a quorum of replicas to be caught up to - // the latest state. - ReplicatorOperationNameWaitForCatchup ReplicatorOperationName = "WaitForCatchup" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleReplicatorOperationNameValues returns an array of possible values for the ReplicatorOperationName const type. -func PossibleReplicatorOperationNameValues() []ReplicatorOperationName { - return []ReplicatorOperationName{ReplicatorOperationNameAbort, ReplicatorOperationNameBuild, ReplicatorOperationNameChangeRole, ReplicatorOperationNameClose, ReplicatorOperationNameInvalid, ReplicatorOperationNameNone, ReplicatorOperationNameOnDataLoss, ReplicatorOperationNameOpen, ReplicatorOperationNameUpdateEpoch, ReplicatorOperationNameWaitForCatchup} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartPartitionModeRequiredQueryParam enumerates the values for restart partition mode required query -// param. -type RestartPartitionModeRequiredQueryParam string - -const ( - // RestartPartitionModeRequiredQueryParamAllReplicasOrInstances All replicas or instances in the partition - // are restarted at once. - RestartPartitionModeRequiredQueryParamAllReplicasOrInstances RestartPartitionModeRequiredQueryParam = "AllReplicasOrInstances" - // RestartPartitionModeRequiredQueryParamInvalid Reserved. Do not pass into API. - RestartPartitionModeRequiredQueryParamInvalid RestartPartitionModeRequiredQueryParam = "Invalid" - // RestartPartitionModeRequiredQueryParamOnlyActiveSecondaries Only the secondary replicas are restarted. - RestartPartitionModeRequiredQueryParamOnlyActiveSecondaries RestartPartitionModeRequiredQueryParam = "OnlyActiveSecondaries" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleRestartPartitionModeRequiredQueryParamValues returns an array of possible values for the RestartPartitionModeRequiredQueryParam const type. -func PossibleRestartPartitionModeRequiredQueryParamValues() []RestartPartitionModeRequiredQueryParam { - return []RestartPartitionModeRequiredQueryParam{RestartPartitionModeRequiredQueryParamAllReplicasOrInstances, RestartPartitionModeRequiredQueryParamInvalid, RestartPartitionModeRequiredQueryParamOnlyActiveSecondaries} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResultStatus enumerates the values for result status. -type ResultStatus string - -const ( - // ResultStatusCancelled Indicates that the repair task was cancelled prior to execution. - ResultStatusCancelled ResultStatus = "Cancelled" - // ResultStatusFailed Indicates that there was a failure during execution of the repair task. Some work may - // have been performed. - ResultStatusFailed ResultStatus = "Failed" - // ResultStatusInterrupted Indicates that execution of the repair task was interrupted by a cancellation - // request after some work had already been performed. - ResultStatusInterrupted ResultStatus = "Interrupted" - // ResultStatusInvalid Indicates that the repair task result is invalid. All Service Fabric enumerations - // have the invalid value. - ResultStatusInvalid ResultStatus = "Invalid" - // ResultStatusPending Indicates that the repair task result is not yet available, because the repair task - // has not finished executing. - ResultStatusPending ResultStatus = "Pending" - // ResultStatusSucceeded Indicates that the repair task completed execution successfully. - ResultStatusSucceeded ResultStatus = "Succeeded" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleResultStatusValues returns an array of possible values for the ResultStatus const type. -func PossibleResultStatusValues() []ResultStatus { - return []ResultStatus{ResultStatusCancelled, ResultStatusFailed, ResultStatusInterrupted, ResultStatusInvalid, ResultStatusPending, ResultStatusSucceeded} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SafetyCheckKind enumerates the values for safety check kind. -type SafetyCheckKind string - -const ( - // SafetyCheckKindEnsureAvailability Indicates that there is either a stateless service partition on the - // node having exactly one instance, or there is a primary replica on the node for which the partition is - // quorum loss. In both cases, bringing down the replicas due to upgrade will result in loss of - // availability. The value is 7. - SafetyCheckKindEnsureAvailability SafetyCheckKind = "EnsureAvailability" - // SafetyCheckKindEnsurePartitionQuorum Indicates that there is some partition for which if we bring down - // the replica on the node, it will result in quorum loss for that partition. The value is 2. - SafetyCheckKindEnsurePartitionQuorum SafetyCheckKind = "EnsurePartitionQuorum" - // SafetyCheckKindEnsureSeedNodeQuorum Indicates that if we bring down the node then this will result in - // global seed node quorum loss. The value is 1. - SafetyCheckKindEnsureSeedNodeQuorum SafetyCheckKind = "EnsureSeedNodeQuorum" - // SafetyCheckKindInvalid Indicates that the upgrade safety check kind is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. - SafetyCheckKindInvalid SafetyCheckKind = "Invalid" - // SafetyCheckKindWaitForInbuildReplica Indicates that there is either a replica on the node that is going - // through copy, or there is a primary replica on the node that is copying data to some other replica. In - // both cases, bringing down the replica on the node due to upgrade will abort the copy. The value is 6. - SafetyCheckKindWaitForInbuildReplica SafetyCheckKind = "WaitForInbuildReplica" - // SafetyCheckKindWaitForPrimaryPlacement Indicates that there is some replica on the node that was moved - // out of this node due to upgrade. Service Fabric is now waiting for the primary to be moved back to this - // node. The value is 3. - SafetyCheckKindWaitForPrimaryPlacement SafetyCheckKind = "WaitForPrimaryPlacement" - // SafetyCheckKindWaitForPrimarySwap Indicates that Service Fabric is waiting for a primary replica to be - // moved out of the node before starting upgrade on that node. The value is 4. - SafetyCheckKindWaitForPrimarySwap SafetyCheckKind = "WaitForPrimarySwap" - // SafetyCheckKindWaitForReconfiguration Indicates that there is some replica on the node that is involved - // in a reconfiguration. Service Fabric is waiting for the reconfiguration to be complete before staring - // upgrade on that node. The value is 5. - SafetyCheckKindWaitForReconfiguration SafetyCheckKind = "WaitForReconfiguration" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleSafetyCheckKindValues returns an array of possible values for the SafetyCheckKind const type. -func PossibleSafetyCheckKindValues() []SafetyCheckKind { - return []SafetyCheckKind{SafetyCheckKindEnsureAvailability, SafetyCheckKindEnsurePartitionQuorum, SafetyCheckKindEnsureSeedNodeQuorum, SafetyCheckKindInvalid, SafetyCheckKindWaitForInbuildReplica, SafetyCheckKindWaitForPrimaryPlacement, SafetyCheckKindWaitForPrimarySwap, SafetyCheckKindWaitForReconfiguration} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceCorrelationScheme enumerates the values for service correlation scheme. -type ServiceCorrelationScheme string - -const ( - // ServiceCorrelationSchemeAffinity Indicates that this service has an affinity relationship with another - // service. Provided for backwards compatibility, consider preferring the Aligned or NonAlignedAffinity - // options. The value is 1. - ServiceCorrelationSchemeAffinity ServiceCorrelationScheme = "Affinity" - // ServiceCorrelationSchemeAlignedAffinity Aligned affinity ensures that the primaries of the partitions of - // the affinitized services are collocated on the same nodes. This is the default and is the same as - // selecting the Affinity scheme. The value is 2. - ServiceCorrelationSchemeAlignedAffinity ServiceCorrelationScheme = "AlignedAffinity" - // ServiceCorrelationSchemeInvalid An invalid correlation scheme. Cannot be used. The value is zero. - ServiceCorrelationSchemeInvalid ServiceCorrelationScheme = "Invalid" - // ServiceCorrelationSchemeNonAlignedAffinity Non-Aligned affinity guarantees that all replicas of each - // service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas - // of particular role will be collocated. The value is 3. - ServiceCorrelationSchemeNonAlignedAffinity ServiceCorrelationScheme = "NonAlignedAffinity" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceCorrelationSchemeValues returns an array of possible values for the ServiceCorrelationScheme const type. -func PossibleServiceCorrelationSchemeValues() []ServiceCorrelationScheme { - return []ServiceCorrelationScheme{ServiceCorrelationSchemeAffinity, ServiceCorrelationSchemeAlignedAffinity, ServiceCorrelationSchemeInvalid, ServiceCorrelationSchemeNonAlignedAffinity} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceEndpointRole enumerates the values for service endpoint role. -type ServiceEndpointRole string - -const ( - // ServiceEndpointRoleInvalid Indicates the service endpoint role is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. - ServiceEndpointRoleInvalid ServiceEndpointRole = "Invalid" - // ServiceEndpointRoleStatefulPrimary Indicates that the service endpoint is of a primary replica of a - // stateful service. The value is 2. - ServiceEndpointRoleStatefulPrimary ServiceEndpointRole = "StatefulPrimary" - // ServiceEndpointRoleStatefulSecondary Indicates that the service endpoint is of a secondary replica of a - // stateful service. The value is 3. - ServiceEndpointRoleStatefulSecondary ServiceEndpointRole = "StatefulSecondary" - // ServiceEndpointRoleStateless Indicates that the service endpoint is of a stateless service. The value is - // 1. - ServiceEndpointRoleStateless ServiceEndpointRole = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceEndpointRoleValues returns an array of possible values for the ServiceEndpointRole const type. -func PossibleServiceEndpointRoleValues() []ServiceEndpointRole { - return []ServiceEndpointRole{ServiceEndpointRoleInvalid, ServiceEndpointRoleStatefulPrimary, ServiceEndpointRoleStatefulSecondary, ServiceEndpointRoleStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKind enumerates the values for service kind. -type ServiceKind string - -const ( - // ServiceKindInvalid Indicates the service kind is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - ServiceKindInvalid ServiceKind = "Invalid" - // ServiceKindStateful Uses Service Fabric to make its state or part of its state highly available and - // reliable. The value is 2. - ServiceKindStateful ServiceKind = "Stateful" - // ServiceKindStateless Does not use Service Fabric to make its state highly available or reliable. The - // value is 1. - ServiceKindStateless ServiceKind = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. -func PossibleServiceKindValues() []ServiceKind { - return []ServiceKind{ServiceKindInvalid, ServiceKindStateful, ServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicDeployedServiceReplicaDetailInfo enumerates the values for service kind basic deployed -// service replica detail info. -type ServiceKindBasicDeployedServiceReplicaDetailInfo string - -const ( - // ServiceKindDeployedServiceReplicaDetailInfo ... - ServiceKindDeployedServiceReplicaDetailInfo ServiceKindBasicDeployedServiceReplicaDetailInfo = "DeployedServiceReplicaDetailInfo" - // ServiceKindStateful1 ... - ServiceKindStateful1 ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateful" - // ServiceKindStateless1 ... - ServiceKindStateless1 ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues returns an array of possible values for the ServiceKindBasicDeployedServiceReplicaDetailInfo const type. -func PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues() []ServiceKindBasicDeployedServiceReplicaDetailInfo { - return []ServiceKindBasicDeployedServiceReplicaDetailInfo{ServiceKindDeployedServiceReplicaDetailInfo, ServiceKindStateful1, ServiceKindStateless1} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicDeployedServiceReplicaInfo enumerates the values for service kind basic deployed service -// replica info. -type ServiceKindBasicDeployedServiceReplicaInfo string - -const ( - // ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo ... - ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo ServiceKindBasicDeployedServiceReplicaInfo = "DeployedServiceReplicaInfo" - // ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful ... - ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful ServiceKindBasicDeployedServiceReplicaInfo = "Stateful" - // ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless ... - ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless ServiceKindBasicDeployedServiceReplicaInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicDeployedServiceReplicaInfoValues returns an array of possible values for the ServiceKindBasicDeployedServiceReplicaInfo const type. -func PossibleServiceKindBasicDeployedServiceReplicaInfoValues() []ServiceKindBasicDeployedServiceReplicaInfo { - return []ServiceKindBasicDeployedServiceReplicaInfo{ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo, ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful, ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaHealth enumerates the values for service kind basic replica health. -type ServiceKindBasicReplicaHealth string - -const ( - // ServiceKindBasicReplicaHealthServiceKindReplicaHealth ... - ServiceKindBasicReplicaHealthServiceKindReplicaHealth ServiceKindBasicReplicaHealth = "ReplicaHealth" - // ServiceKindBasicReplicaHealthServiceKindStateful ... - ServiceKindBasicReplicaHealthServiceKindStateful ServiceKindBasicReplicaHealth = "Stateful" - // ServiceKindBasicReplicaHealthServiceKindStateless ... - ServiceKindBasicReplicaHealthServiceKindStateless ServiceKindBasicReplicaHealth = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaHealthValues returns an array of possible values for the ServiceKindBasicReplicaHealth const type. -func PossibleServiceKindBasicReplicaHealthValues() []ServiceKindBasicReplicaHealth { - return []ServiceKindBasicReplicaHealth{ServiceKindBasicReplicaHealthServiceKindReplicaHealth, ServiceKindBasicReplicaHealthServiceKindStateful, ServiceKindBasicReplicaHealthServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaHealthState enumerates the values for service kind basic replica health state. -type ServiceKindBasicReplicaHealthState string - -const ( - // ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ... - ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ServiceKindBasicReplicaHealthState = "ReplicaHealthState" - // ServiceKindBasicReplicaHealthStateServiceKindStateful ... - ServiceKindBasicReplicaHealthStateServiceKindStateful ServiceKindBasicReplicaHealthState = "Stateful" - // ServiceKindBasicReplicaHealthStateServiceKindStateless ... - ServiceKindBasicReplicaHealthStateServiceKindStateless ServiceKindBasicReplicaHealthState = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaHealthStateValues returns an array of possible values for the ServiceKindBasicReplicaHealthState const type. -func PossibleServiceKindBasicReplicaHealthStateValues() []ServiceKindBasicReplicaHealthState { - return []ServiceKindBasicReplicaHealthState{ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState, ServiceKindBasicReplicaHealthStateServiceKindStateful, ServiceKindBasicReplicaHealthStateServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicReplicaInfo enumerates the values for service kind basic replica info. -type ServiceKindBasicReplicaInfo string - -const ( - // ServiceKindBasicReplicaInfoServiceKindReplicaInfo ... - ServiceKindBasicReplicaInfoServiceKindReplicaInfo ServiceKindBasicReplicaInfo = "ReplicaInfo" - // ServiceKindBasicReplicaInfoServiceKindStateful ... - ServiceKindBasicReplicaInfoServiceKindStateful ServiceKindBasicReplicaInfo = "Stateful" - // ServiceKindBasicReplicaInfoServiceKindStateless ... - ServiceKindBasicReplicaInfoServiceKindStateless ServiceKindBasicReplicaInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicReplicaInfoValues returns an array of possible values for the ServiceKindBasicReplicaInfo const type. -func PossibleServiceKindBasicReplicaInfoValues() []ServiceKindBasicReplicaInfo { - return []ServiceKindBasicReplicaInfo{ServiceKindBasicReplicaInfoServiceKindReplicaInfo, ServiceKindBasicReplicaInfoServiceKindStateful, ServiceKindBasicReplicaInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceDescription enumerates the values for service kind basic service description. -type ServiceKindBasicServiceDescription string - -const ( - // ServiceKindBasicServiceDescriptionServiceKindServiceDescription ... - ServiceKindBasicServiceDescriptionServiceKindServiceDescription ServiceKindBasicServiceDescription = "ServiceDescription" - // ServiceKindBasicServiceDescriptionServiceKindStateful ... - ServiceKindBasicServiceDescriptionServiceKindStateful ServiceKindBasicServiceDescription = "Stateful" - // ServiceKindBasicServiceDescriptionServiceKindStateless ... - ServiceKindBasicServiceDescriptionServiceKindStateless ServiceKindBasicServiceDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceDescriptionValues returns an array of possible values for the ServiceKindBasicServiceDescription const type. -func PossibleServiceKindBasicServiceDescriptionValues() []ServiceKindBasicServiceDescription { - return []ServiceKindBasicServiceDescription{ServiceKindBasicServiceDescriptionServiceKindServiceDescription, ServiceKindBasicServiceDescriptionServiceKindStateful, ServiceKindBasicServiceDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceInfo enumerates the values for service kind basic service info. -type ServiceKindBasicServiceInfo string - -const ( - // ServiceKindBasicServiceInfoServiceKindServiceInfo ... - ServiceKindBasicServiceInfoServiceKindServiceInfo ServiceKindBasicServiceInfo = "ServiceInfo" - // ServiceKindBasicServiceInfoServiceKindStateful ... - ServiceKindBasicServiceInfoServiceKindStateful ServiceKindBasicServiceInfo = "Stateful" - // ServiceKindBasicServiceInfoServiceKindStateless ... - ServiceKindBasicServiceInfoServiceKindStateless ServiceKindBasicServiceInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceInfoValues returns an array of possible values for the ServiceKindBasicServiceInfo const type. -func PossibleServiceKindBasicServiceInfoValues() []ServiceKindBasicServiceInfo { - return []ServiceKindBasicServiceInfo{ServiceKindBasicServiceInfoServiceKindServiceInfo, ServiceKindBasicServiceInfoServiceKindStateful, ServiceKindBasicServiceInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServicePartitionInfo enumerates the values for service kind basic service partition info. -type ServiceKindBasicServicePartitionInfo string - -const ( - // ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ... - ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ServiceKindBasicServicePartitionInfo = "ServicePartitionInfo" - // ServiceKindBasicServicePartitionInfoServiceKindStateful ... - ServiceKindBasicServicePartitionInfoServiceKindStateful ServiceKindBasicServicePartitionInfo = "Stateful" - // ServiceKindBasicServicePartitionInfoServiceKindStateless ... - ServiceKindBasicServicePartitionInfoServiceKindStateless ServiceKindBasicServicePartitionInfo = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServicePartitionInfoValues returns an array of possible values for the ServiceKindBasicServicePartitionInfo const type. -func PossibleServiceKindBasicServicePartitionInfoValues() []ServiceKindBasicServicePartitionInfo { - return []ServiceKindBasicServicePartitionInfo{ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo, ServiceKindBasicServicePartitionInfoServiceKindStateful, ServiceKindBasicServicePartitionInfoServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceKindBasicServiceUpdateDescription enumerates the values for service kind basic service update -// description. -type ServiceKindBasicServiceUpdateDescription string - -const ( - // ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ... - ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ServiceKindBasicServiceUpdateDescription = "ServiceUpdateDescription" - // ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ... - ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ServiceKindBasicServiceUpdateDescription = "Stateful" - // ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ... - ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ServiceKindBasicServiceUpdateDescription = "Stateless" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceKindBasicServiceUpdateDescriptionValues returns an array of possible values for the ServiceKindBasicServiceUpdateDescription const type. -func PossibleServiceKindBasicServiceUpdateDescriptionValues() []ServiceKindBasicServiceUpdateDescription { - return []ServiceKindBasicServiceUpdateDescription{ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription, ServiceKindBasicServiceUpdateDescriptionServiceKindStateful, ServiceKindBasicServiceUpdateDescriptionServiceKindStateless} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceLoadMetricWeight enumerates the values for service load metric weight. -type ServiceLoadMetricWeight string - -const ( - // ServiceLoadMetricWeightHigh Specifies the metric weight of the service load as High. The value is 3. - ServiceLoadMetricWeightHigh ServiceLoadMetricWeight = "High" - // ServiceLoadMetricWeightLow Specifies the metric weight of the service load as Low. The value is 1. - ServiceLoadMetricWeightLow ServiceLoadMetricWeight = "Low" - // ServiceLoadMetricWeightMedium Specifies the metric weight of the service load as Medium. The value is 2. - ServiceLoadMetricWeightMedium ServiceLoadMetricWeight = "Medium" - // ServiceLoadMetricWeightZero Disables resource balancing for this metric. This value is zero. - ServiceLoadMetricWeightZero ServiceLoadMetricWeight = "Zero" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceLoadMetricWeightValues returns an array of possible values for the ServiceLoadMetricWeight const type. -func PossibleServiceLoadMetricWeightValues() []ServiceLoadMetricWeight { - return []ServiceLoadMetricWeight{ServiceLoadMetricWeightHigh, ServiceLoadMetricWeightLow, ServiceLoadMetricWeightMedium, ServiceLoadMetricWeightZero} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceOperationName enumerates the values for service operation name. -type ServiceOperationName string - -const ( - // ServiceOperationNameAbort The service replica or instance is being aborted. - ServiceOperationNameAbort ServiceOperationName = "Abort" - // ServiceOperationNameChangeRole The service replica is changing roles. - ServiceOperationNameChangeRole ServiceOperationName = "ChangeRole" - // ServiceOperationNameClose The service replica or instance is being closed. - ServiceOperationNameClose ServiceOperationName = "Close" - // ServiceOperationNameNone The service replica or instance is not going through any life-cycle changes. - ServiceOperationNameNone ServiceOperationName = "None" - // ServiceOperationNameOpen The service replica or instance is being opened. - ServiceOperationNameOpen ServiceOperationName = "Open" - // ServiceOperationNameUnknown Reserved for future use. - ServiceOperationNameUnknown ServiceOperationName = "Unknown" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceOperationNameValues returns an array of possible values for the ServiceOperationName const type. -func PossibleServiceOperationNameValues() []ServiceOperationName { - return []ServiceOperationName{ServiceOperationNameAbort, ServiceOperationNameChangeRole, ServiceOperationNameClose, ServiceOperationNameNone, ServiceOperationNameOpen, ServiceOperationNameUnknown} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePackageActivationMode enumerates the values for service package activation mode. -type ServicePackageActivationMode string - -const ( - // ExclusiveProcess With this activation mode, each replica or instance of service, on a given node, will - // have its own dedicated activation of service package on a node. The value is 1. - ExclusiveProcess ServicePackageActivationMode = "ExclusiveProcess" - // SharedProcess This is the default activation mode. With this activation mode, replicas or instances from - // different partition(s) of service, on a given node, will share same activation of service package on a - // node. The value is zero. - SharedProcess ServicePackageActivationMode = "SharedProcess" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePackageActivationModeValues returns an array of possible values for the ServicePackageActivationMode const type. -func PossibleServicePackageActivationModeValues() []ServicePackageActivationMode { - return []ServicePackageActivationMode{ExclusiveProcess, SharedProcess} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionKind enumerates the values for service partition kind. -type ServicePartitionKind string - -const ( - // ServicePartitionKindInt64Range ... - ServicePartitionKindInt64Range ServicePartitionKind = "Int64Range" - // ServicePartitionKindNamed ... - ServicePartitionKindNamed ServicePartitionKind = "Named" - // ServicePartitionKindPartitionInformation ... - ServicePartitionKindPartitionInformation ServicePartitionKind = "PartitionInformation" - // ServicePartitionKindSingleton ... - ServicePartitionKindSingleton ServicePartitionKind = "Singleton" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePartitionKindValues returns an array of possible values for the ServicePartitionKind const type. -func PossibleServicePartitionKindValues() []ServicePartitionKind { - return []ServicePartitionKind{ServicePartitionKindInt64Range, ServicePartitionKindNamed, ServicePartitionKindPartitionInformation, ServicePartitionKindSingleton} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionStatus enumerates the values for service partition status. -type ServicePartitionStatus string - -const ( - // ServicePartitionStatusDeleting Indicates that the partition is being deleted. The value is 5. - ServicePartitionStatusDeleting ServicePartitionStatus = "Deleting" - // ServicePartitionStatusInQuorumLoss Indicates that the partition is in quorum loss. This means that - // number of replicas that are up and participating in a replica set is less than MinReplicaSetSize for - // this partition. The value is 3. - ServicePartitionStatusInQuorumLoss ServicePartitionStatus = "InQuorumLoss" - // ServicePartitionStatusInvalid Indicates the partition status is invalid. All Service Fabric enumerations - // have the invalid type. The value is zero. - ServicePartitionStatusInvalid ServicePartitionStatus = "Invalid" - // ServicePartitionStatusNotReady Indicates that the partition is not ready. This status is returned when - // none of the other states apply. The value is 2. - ServicePartitionStatusNotReady ServicePartitionStatus = "NotReady" - // ServicePartitionStatusReady Indicates that the partition is ready. This means that for a stateless - // service partition there is at least one instance that is up and for a stateful service partition the - // number of ready replicas is greater than or equal to the MinReplicaSetSize. The value is 1. - ServicePartitionStatusReady ServicePartitionStatus = "Ready" - // ServicePartitionStatusReconfiguring Indicates that the partition is undergoing reconfiguration of its - // replica sets. This can happen due to failover, upgrade, load balancing or addition or removal of - // replicas from the replica set. The value is 4. - ServicePartitionStatusReconfiguring ServicePartitionStatus = "Reconfiguring" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePartitionStatusValues returns an array of possible values for the ServicePartitionStatus const type. -func PossibleServicePartitionStatusValues() []ServicePartitionStatus { - return []ServicePartitionStatus{ServicePartitionStatusDeleting, ServicePartitionStatusInQuorumLoss, ServicePartitionStatusInvalid, ServicePartitionStatusNotReady, ServicePartitionStatusReady, ServicePartitionStatusReconfiguring} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPolicyType enumerates the values for service placement policy type. -type ServicePlacementPolicyType string - -const ( - // ServicePlacementPolicyTypeInvalid Indicates the type of the placement policy is invalid. All Service - // Fabric enumerations have the invalid type. The value is zero. - ServicePlacementPolicyTypeInvalid ServicePlacementPolicyType = "Invalid" - // ServicePlacementPolicyTypeInvalidDomain Indicates that the ServicePlacementPolicyDescription is of type - // ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade - // domain cannot be used for placement of this service. The value is 1. - ServicePlacementPolicyTypeInvalidDomain ServicePlacementPolicyType = "InvalidDomain" - // ServicePlacementPolicyTypeNonPartiallyPlaceService Indicates that the ServicePlacementPolicyDescription - // is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible - // all replicas of a particular partition of the service should be placed atomically. The value is 5. - ServicePlacementPolicyTypeNonPartiallyPlaceService ServicePlacementPolicyType = "NonPartiallyPlaceService" - // ServicePlacementPolicyTypePreferredPrimaryDomain Indicates that the ServicePlacementPolicyDescription is - // of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the - // Primary replica for the partitions of the service should be located in a particular domain as an - // optimization. The value is 3. - ServicePlacementPolicyTypePreferredPrimaryDomain ServicePlacementPolicyType = "PreferredPrimaryDomain" - // ServicePlacementPolicyTypeRequiredDomain Indicates that the ServicePlacementPolicyDescription is of type - // ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service - // must be placed in a specific domain. The value is 2. - ServicePlacementPolicyTypeRequiredDomain ServicePlacementPolicyType = "RequiredDomain" - // ServicePlacementPolicyTypeRequiredDomainDistribution Indicates that the - // ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription, - // indicating that the system will disallow placement of any two replicas from the same partition in the - // same domain at any time. The value is 4. - ServicePlacementPolicyTypeRequiredDomainDistribution ServicePlacementPolicyType = "RequiredDomainDistribution" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServicePlacementPolicyTypeValues returns an array of possible values for the ServicePlacementPolicyType const type. -func PossibleServicePlacementPolicyTypeValues() []ServicePlacementPolicyType { - return []ServicePlacementPolicyType{ServicePlacementPolicyTypeInvalid, ServicePlacementPolicyTypeInvalidDomain, ServicePlacementPolicyTypeNonPartiallyPlaceService, ServicePlacementPolicyTypePreferredPrimaryDomain, ServicePlacementPolicyTypeRequiredDomain, ServicePlacementPolicyTypeRequiredDomainDistribution} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceStatus enumerates the values for service status. -type ServiceStatus string - -const ( - // ServiceStatusActive Indicates the service status is active. The value is 1. - ServiceStatusActive ServiceStatus = "Active" - // ServiceStatusCreating Indicates the service is being created. The value is 4. - ServiceStatusCreating ServiceStatus = "Creating" - // ServiceStatusDeleting Indicates the service is being deleted. The value is 3. - ServiceStatusDeleting ServiceStatus = "Deleting" - // ServiceStatusFailed Indicates creation or deletion was terminated due to persistent failures. Another - // create/delete request can be accepted. The value is 5. - ServiceStatusFailed ServiceStatus = "Failed" - // ServiceStatusUnknown Indicates the service status is unknown. The value is zero. - ServiceStatusUnknown ServiceStatus = "Unknown" - // ServiceStatusUpgrading Indicates the service is upgrading. The value is 2. - ServiceStatusUpgrading ServiceStatus = "Upgrading" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceStatusValues returns an array of possible values for the ServiceStatus const type. -func PossibleServiceStatusValues() []ServiceStatus { - return []ServiceStatus{ServiceStatusActive, ServiceStatusCreating, ServiceStatusDeleting, ServiceStatusFailed, ServiceStatusUnknown, ServiceStatusUpgrading} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeRegistrationStatus enumerates the values for service type registration status. -type ServiceTypeRegistrationStatus string - -const ( - // ServiceTypeRegistrationStatusDisabled Indicates that the service type is disabled on this node. A type - // gets disabled when there are too many failures of the code package hosting the service type. If the - // service type is disabled, new replicas of that service type will not be placed on the node until it is - // enabled again. The service type is enabled again after the process hosting it comes up and re-registers - // the type or a preconfigured time interval has passed. The value is 1. - ServiceTypeRegistrationStatusDisabled ServiceTypeRegistrationStatus = "Disabled" - // ServiceTypeRegistrationStatusEnabled Indicates that the service type is enabled on this node. Replicas - // of this service type can be placed on this node when the code package registers the service type. The - // value is 2. - ServiceTypeRegistrationStatusEnabled ServiceTypeRegistrationStatus = "Enabled" - // ServiceTypeRegistrationStatusInvalid Indicates the registration status is invalid. All Service Fabric - // enumerations have the invalid type. The value is zero. - ServiceTypeRegistrationStatusInvalid ServiceTypeRegistrationStatus = "Invalid" - // ServiceTypeRegistrationStatusRegistered Indicates that the service type is enabled and registered on the - // node by a code package. Replicas of this service type can now be placed on this node. The value is 3. - ServiceTypeRegistrationStatusRegistered ServiceTypeRegistrationStatus = "Registered" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleServiceTypeRegistrationStatusValues returns an array of possible values for the ServiceTypeRegistrationStatus const type. -func PossibleServiceTypeRegistrationStatusValues() []ServiceTypeRegistrationStatus { - return []ServiceTypeRegistrationStatus{ServiceTypeRegistrationStatusDisabled, ServiceTypeRegistrationStatusEnabled, ServiceTypeRegistrationStatusInvalid, ServiceTypeRegistrationStatusRegistered} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// State enumerates the values for state. -type State string - -const ( - // StateApproved Indicates that the repair task has been approved by the Repair Manager and is safe to - // execute. - StateApproved State = "Approved" - // StateClaimed Indicates that the repair task has been claimed by a repair executor. - StateClaimed State = "Claimed" - // StateCompleted Indicates that the repair task has completed, and no further state changes will occur. - StateCompleted State = "Completed" - // StateCreated Indicates that the repair task has been created. - StateCreated State = "Created" - // StateExecuting Indicates that execution of the repair task is in progress. - StateExecuting State = "Executing" - // StateInvalid Indicates that the repair task state is invalid. All Service Fabric enumerations have the - // invalid value. - StateInvalid State = "Invalid" - // StatePreparing Indicates that the Repair Manager is preparing the system to handle the impact of the - // repair task, usually by taking resources offline gracefully. - StatePreparing State = "Preparing" - // StateRestoring Indicates that the Repair Manager is restoring the system to its pre-repair state, - // usually by bringing resources back online. - StateRestoring State = "Restoring" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStateValues returns an array of possible values for the State const type. -func PossibleStateValues() []State { - return []State{StateApproved, StateClaimed, StateCompleted, StateCreated, StateExecuting, StateInvalid, StatePreparing, StateRestoring} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Status enumerates the values for status. -type Status string - -const ( - // StatusInvalid Indicates an invalid Chaos status. All Service Fabric enumerations have the invalid type. - StatusInvalid Status = "Invalid" - // StatusRunning Indicates that Chaos is not stopped. - StatusRunning Status = "Running" - // StatusStopped Indicates that Chaos is not scheduling further faults. - StatusStopped Status = "Stopped" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleStatusValues returns an array of possible values for the Status const type. -func PossibleStatusValues() []Status { - return []Status{StatusInvalid, StatusRunning, StatusStopped} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Type enumerates the values for type. -type Type string - -const ( - // TypeInvalidDomain ... - TypeInvalidDomain Type = "InvalidDomain" - // TypeNonPartiallyPlaceService ... - TypeNonPartiallyPlaceService Type = "NonPartiallyPlaceService" - // TypePreferPrimaryDomain ... - TypePreferPrimaryDomain Type = "PreferPrimaryDomain" - // TypeRequireDomain ... - TypeRequireDomain Type = "RequireDomain" - // TypeRequireDomainDistribution ... - TypeRequireDomainDistribution Type = "RequireDomainDistribution" - // TypeServicePlacementPolicyDescription ... - TypeServicePlacementPolicyDescription Type = "ServicePlacementPolicyDescription" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeInvalidDomain, TypeNonPartiallyPlaceService, TypePreferPrimaryDomain, TypeRequireDomain, TypeRequireDomainDistribution, TypeServicePlacementPolicyDescription} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainState enumerates the values for upgrade domain state. -type UpgradeDomainState string - -const ( - // UpgradeDomainStateCompleted The upgrade domain has completed upgrade. The value is 3 - UpgradeDomainStateCompleted UpgradeDomainState = "Completed" - // UpgradeDomainStateInProgress The upgrade domain is being upgraded but not complete yet. The value is 2 - UpgradeDomainStateInProgress UpgradeDomainState = "InProgress" - // UpgradeDomainStateInvalid Indicates the upgrade domain state is invalid. All Service Fabric enumerations - // have the invalid type. The value is zero. - UpgradeDomainStateInvalid UpgradeDomainState = "Invalid" - // UpgradeDomainStatePending The upgrade domain has not started upgrading yet. The value is 1 - UpgradeDomainStatePending UpgradeDomainState = "Pending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeDomainStateValues returns an array of possible values for the UpgradeDomainState const type. -func PossibleUpgradeDomainStateValues() []UpgradeDomainState { - return []UpgradeDomainState{UpgradeDomainStateCompleted, UpgradeDomainStateInProgress, UpgradeDomainStateInvalid, UpgradeDomainStatePending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeKind enumerates the values for upgrade kind. -type UpgradeKind string - -const ( - // UpgradeKindInvalid Indicates the upgrade kind is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - UpgradeKindInvalid UpgradeKind = "Invalid" - // UpgradeKindRolling The upgrade progresses one upgrade domain at a time. The value is 1 - UpgradeKindRolling UpgradeKind = "Rolling" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeKindValues returns an array of possible values for the UpgradeKind const type. -func PossibleUpgradeKindValues() []UpgradeKind { - return []UpgradeKind{UpgradeKindInvalid, UpgradeKindRolling} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeMode enumerates the values for upgrade mode. -type UpgradeMode string - -const ( - // UpgradeModeInvalid Indicates the upgrade mode is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - UpgradeModeInvalid UpgradeMode = "Invalid" - // UpgradeModeMonitored The upgrade will stop after completing each upgrade domain and automatically - // monitor health before proceeding. The value is 3 - UpgradeModeMonitored UpgradeMode = "Monitored" - // UpgradeModeUnmonitoredAuto The upgrade will proceed automatically without performing any health - // monitoring. The value is 1 - UpgradeModeUnmonitoredAuto UpgradeMode = "UnmonitoredAuto" - // UpgradeModeUnmonitoredManual The upgrade will stop after completing each upgrade domain, giving the - // opportunity to manually monitor health before proceeding. The value is 2 - UpgradeModeUnmonitoredManual UpgradeMode = "UnmonitoredManual" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type. -func PossibleUpgradeModeValues() []UpgradeMode { - return []UpgradeMode{UpgradeModeInvalid, UpgradeModeMonitored, UpgradeModeUnmonitoredAuto, UpgradeModeUnmonitoredManual} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeState enumerates the values for upgrade state. -type UpgradeState string - -const ( - // UpgradeStateFailed The upgrade has failed and is unable to execute FailureAction. The value is 6 - UpgradeStateFailed UpgradeState = "Failed" - // UpgradeStateInvalid Indicates the upgrade state is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - UpgradeStateInvalid UpgradeState = "Invalid" - // UpgradeStateRollingBackCompleted The upgrade has finished rolling back. The value is 2 - UpgradeStateRollingBackCompleted UpgradeState = "RollingBackCompleted" - // UpgradeStateRollingBackInProgress The upgrade is rolling back to the previous version but is not - // complete yet. The value is 1 - UpgradeStateRollingBackInProgress UpgradeState = "RollingBackInProgress" - // UpgradeStateRollingForwardCompleted The upgrade has finished rolling forward. The value is 5 - UpgradeStateRollingForwardCompleted UpgradeState = "RollingForwardCompleted" - // UpgradeStateRollingForwardInProgress The upgrade is rolling forward to the target version but is not - // complete yet. The value is 4 - UpgradeStateRollingForwardInProgress UpgradeState = "RollingForwardInProgress" - // UpgradeStateRollingForwardPending The current upgrade domain has finished upgrading. The overall upgrade - // is waiting for an explicit move next request in UnmonitoredManual mode or performing health checks in - // Monitored mode. The value is 3 - UpgradeStateRollingForwardPending UpgradeState = "RollingForwardPending" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeStateValues returns an array of possible values for the UpgradeState const type. -func PossibleUpgradeStateValues() []UpgradeState { - return []UpgradeState{UpgradeStateFailed, UpgradeStateInvalid, UpgradeStateRollingBackCompleted, UpgradeStateRollingBackInProgress, UpgradeStateRollingForwardCompleted, UpgradeStateRollingForwardInProgress, UpgradeStateRollingForwardPending} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeType enumerates the values for upgrade type. -type UpgradeType string - -const ( - // UpgradeTypeInvalid Indicates the upgrade kind is invalid. All Service Fabric enumerations have the - // invalid type. The value is zero. - UpgradeTypeInvalid UpgradeType = "Invalid" - // UpgradeTypeRolling The upgrade progresses one upgrade domain at a time. The value is 1. - UpgradeTypeRolling UpgradeType = "Rolling" - // UpgradeTypeRollingForceRestart The upgrade gets restarted by force. The value is 2. - UpgradeTypeRollingForceRestart UpgradeType = "Rolling_ForceRestart" -) - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PossibleUpgradeTypeValues returns an array of possible values for the UpgradeType const type. -func PossibleUpgradeTypeValues() []UpgradeType { - return []UpgradeType{UpgradeTypeInvalid, UpgradeTypeRolling, UpgradeTypeRollingForceRestart} -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AadMetadata azure Active Directory metadata used for secured connection to cluster. -type AadMetadata struct { - // Authority - The AAD authority url. - Authority *string `json:"authority,omitempty"` - // Client - The AAD client application Id. - Client *string `json:"client,omitempty"` - // Cluster - The AAD cluster application Id. - Cluster *string `json:"cluster,omitempty"` - // Login - The AAD login url. - Login *string `json:"login,omitempty"` - // Redirect - The client application redirect address. - Redirect *string `json:"redirect,omitempty"` - // Tenant - The AAD tenant Id. - Tenant *string `json:"tenant,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AadMetadataObject azure Active Directory metadata object used for secured connection to cluster. -type AadMetadataObject struct { - autorest.Response `json:"-"` - // Type - The client authentication method. - Type *string `json:"type,omitempty"` - // Metadata - Azure Active Directory metadata used for secured connection to cluster. - Metadata *AadMetadata `json:"metadata,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationCapacityDescription describes capacity information for services of this application. This description -// can be used for describing the following. -// - Reserving the capacity for the services on the nodes -// - Limiting the total number of nodes that services of this application can run on -// - Limiting the custom capacity metrics to limit the total consumption of this metric by the services of this -// application -type ApplicationCapacityDescription struct { - // MinimumNodes - The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property. - MinimumNodes *int64 `json:"MinimumNodes,omitempty"` - // MaximumNodes - The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. - MaximumNodes *int64 `json:"MaximumNodes,omitempty"` - // ApplicationMetrics - List of application capacity metric description. - ApplicationMetrics *[]ApplicationMetricDescription `json:"ApplicationMetrics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationDescription describes a Service Fabric application. -type ApplicationDescription struct { - // Name - The name of the application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TypeName - The application type name as defined in the application manifest. - TypeName *string `json:"TypeName,omitempty"` - // TypeVersion - The version of the application type as defined in the application manifest. - TypeVersion *string `json:"TypeVersion,omitempty"` - // ParameterList - List of application parameters with overridden values from their default values specified in the application manifest. - ParameterList *[]ApplicationParameter `json:"ParameterList,omitempty"` - // ApplicationCapacity - Describes capacity information for services of this application. This description can be used for describing the following. - // - Reserving the capacity for the services on the nodes - // - Limiting the total number of nodes that services of this application can run on - // - Limiting the custom capacity metrics to limit the total consumption of this metric by the services of this application - ApplicationCapacity *ApplicationCapacityDescription `json:"ApplicationCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealth represents the health of the application. Contains the application aggregated health state and -// the service and deployed application health states. -type ApplicationHealth struct { - autorest.Response `json:"-"` - // Name - The name of the application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // ServiceHealthStates - Service health states as found in the health store. - ServiceHealthStates *[]ServiceHealthState `json:"ServiceHealthStates,omitempty"` - // DeployedApplicationHealthStates - Deployed application health states as found in the health store. - DeployedApplicationHealthStates *[]DeployedApplicationHealthState `json:"DeployedApplicationHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthEvaluation represents health evaluation for an application, containing information about the -// data and the algorithm used by the health store to evaluate health. -type ApplicationHealthEvaluation struct { - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the application. The types of the unhealthy evaluations can be DeployedApplicationsHealthEvaluation, ServicesHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplication - objectMap := make(map[string]interface{}) - if ahe.ApplicationName != nil { - objectMap["ApplicationName"] = ahe.ApplicationName - } - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationHealthEvaluation. -func (ahe ApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicies defines the application health policy map used to evaluate the health of an -// application or one of its children entities. -type ApplicationHealthPolicies struct { - // ApplicationHealthPolicyMap - The wrapper that contains the map with application health policies used to evaluate specific applications in the cluster. - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of its -// children entities. -type ApplicationHealthPolicy struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // MaxPercentUnhealthyDeployedApplications - The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. - // This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. - // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - // DefaultServiceTypeHealthPolicy - The health policy used by default to evaluate the health of a service type. - DefaultServiceTypeHealthPolicy *ServiceTypeHealthPolicy `json:"DefaultServiceTypeHealthPolicy,omitempty"` - // ServiceTypeHealthPolicyMap - The map with service type health policy per service type name. The map is empty be default. - ServiceTypeHealthPolicyMap *[]ServiceTypeHealthPolicyMapItem `json:"ServiceTypeHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthPolicyMapItem defines an item in ApplicationHealthPolicyMap. -type ApplicationHealthPolicyMapItem struct { - // Key - The key of the application health policy map item. This is the name of the application. - Key *string `json:"Key,omitempty"` - // Value - The value of the application health policy map item. This is the ApplicationHealthPolicy for this application. - Value *ApplicationHealthPolicy `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthState represents the health state of an application, which contains the application identifier -// and the aggregated health state. -type ApplicationHealthState struct { - // Name - The name of the application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateChunk represents the health state chunk of a application. -// The application health state chunk contains the application name, its aggregated health state and any children -// services and deployed applications that respect the filters in cluster health chunk query description. -type ApplicationHealthStateChunk struct { - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ApplicationTypeName - The application type name as defined in the application manifest. - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - // ServiceHealthStateChunks - The list of service health state chunks in the cluster that respect the filters in the cluster health chunk query description. - ServiceHealthStateChunks *ServiceHealthStateChunkList `json:"ServiceHealthStateChunks,omitempty"` - // DeployedApplicationHealthStateChunks - The list of deployed application health state chunks in the cluster that respect the filters in the cluster health chunk query description. - DeployedApplicationHealthStateChunks *DeployedApplicationHealthStateChunkList `json:"DeployedApplicationHealthStateChunks,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateChunkList the list of application health state chunks in the cluster that respect the -// input filters in the chunk query. Returned by get cluster health state chunks query. -type ApplicationHealthStateChunkList struct { - // Items - The list of application health state chunks that respect the input filters in the chunk query. - Items *[]ApplicationHealthStateChunk `json:"Items,omitempty"` - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationHealthStateFilter defines matching criteria to determine whether a application should be included in -// the cluster health chunk. -// One filter can match zero, one or multiple applications, depending on its properties. -type ApplicationHealthStateFilter struct { - // ApplicationNameFilter - The name of the application that matches the filter, as a fabric uri. The filter is applied only to the specified application, if it exists. - // If the application doesn't exist, no application is returned in the cluster health chunk based on this filter. - // If the application exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all applications are matched against the other filter members, like health state filter. - ApplicationNameFilter *string `json:"ApplicationNameFilter,omitempty"` - // ApplicationTypeNameFilter - The name of the application type that matches the filter. - // If specified, the filter is applied only to applications of the selected application type, if any exists. - // If no applications of the specified application type exists, no application is returned in the cluster health chunk based on this filter. - // Each application of the specified application type is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all applications are matched against the other filter members, like health state filter. - ApplicationTypeNameFilter *string `json:"ApplicationTypeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the applications. It allows selecting applications if they match the desired health states. - // The possible values are integer value of one of the following health states. Only applications that match the filter are returned. All applications are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the application name or the application type name are specified. If the filter has default value and application name is specified, the matching application is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches applications with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // ServiceFilters - Defines a list of filters that specify which services to be included in the returned cluster health chunk as children of the application. The services are returned only if the parent application matches a filter. - // If the list is empty, no services are returned. All the services are used to evaluate the parent application aggregated health state, regardless of the input filters. - // The application filter may specify multiple service filters. - // For example, it can specify a filter to return all services with health state Error and another filter to always include a service identified by its service name. - ServiceFilters *[]ServiceHealthStateFilter `json:"ServiceFilters,omitempty"` - // DeployedApplicationFilters - Defines a list of filters that specify which deployed applications to be included in the returned cluster health chunk as children of the application. The deployed applications are returned only if the parent application matches a filter. - // If the list is empty, no deployed applications are returned. All the deployed applications are used to evaluate the parent application aggregated health state, regardless of the input filters. - // The application filter may specify multiple deployed application filters. - // For example, it can specify a filter to return all deployed applications with health state Error and another filter to always include a deployed application on a specified node. - DeployedApplicationFilters *[]DeployedApplicationHealthStateFilter `json:"DeployedApplicationFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationInfo information about a Service Fabric application. -type ApplicationInfo struct { - autorest.Response `json:"-"` - // ID - The identity of the application. This is an encoded representation of the application name. This is used in the REST APIs to identify the application resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the application name is "fabric:/myapp/app1", - // the application identity would be "myapp\~app1" in 6.0+ and "myapp/app1" in previous versions. - ID *string `json:"Id,omitempty"` - // Name - The name of the application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TypeName - The application type name as defined in the application manifest. - TypeName *string `json:"TypeName,omitempty"` - // TypeVersion - The version of the application type as defined in the application manifest. - TypeVersion *string `json:"TypeVersion,omitempty"` - // Status - The status of the application. - // . Possible values include: 'ApplicationStatusInvalid', 'ApplicationStatusReady', 'ApplicationStatusUpgrading', 'ApplicationStatusCreating', 'ApplicationStatusDeleting', 'ApplicationStatusFailed' - Status ApplicationStatus `json:"Status,omitempty"` - // Parameters - List of application parameters with overridden values from their default values specified in the application manifest. - Parameters *[]ApplicationParameter `json:"Parameters,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // ApplicationDefinitionKind - The mechanism used to define a Service Fabric application. - // . Possible values include: 'Invalid', 'ServiceFabricApplicationDescription', 'Compose' - ApplicationDefinitionKind ApplicationDefinitionKind `json:"ApplicationDefinitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationLoadInfo load Information about a Service Fabric application. -type ApplicationLoadInfo struct { - autorest.Response `json:"-"` - // ID - The identity of the application. This is an encoded representation of the application name. This is used in the REST APIs to identify the application resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the application name is "fabric:/myapp/app1", - // the application identity would be "myapp\~app1" in 6.0+ and "myapp/app1" in previous versions. - ID *string `json:"Id,omitempty"` - // MinimumNodes - The minimum number of nodes for this application. - // It is the number of nodes where Service Fabric will reserve Capacity in the cluster which equals to ReservedLoad * MinimumNodes for this Application instance. - // For applications that do not have application capacity defined this value will be zero. - MinimumNodes *int64 `json:"MinimumNodes,omitempty"` - // MaximumNodes - The maximum number of nodes where this application can be instantiated. - // It is the number of nodes this application is allowed to span. - // For applications that do not have application capacity defined this value will be zero. - MaximumNodes *int64 `json:"MaximumNodes,omitempty"` - // NodeCount - The number of nodes on which this application is instantiated. - // For applications that do not have application capacity defined this value will be zero. - NodeCount *int64 `json:"NodeCount,omitempty"` - // ApplicationLoadMetricInformation - List of application capacity metric description. - ApplicationLoadMetricInformation *[]ApplicationMetricDescription `json:"ApplicationLoadMetricInformation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationMetricDescription describes capacity information for a custom resource balancing metric. This can be -// used to limit the total consumption of this metric by the services of this application. -type ApplicationMetricDescription struct { - // Name - The name of the metric. - Name *string `json:"Name,omitempty"` - // MaximumCapacity - The maximum node capacity for Service Fabric application. - // This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value. - // If set to zero, capacity for this metric is unlimited on each node. - // When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. - // When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. - MaximumCapacity *int64 `json:"MaximumCapacity,omitempty"` - // ReservationCapacity - The node reservation capacity for Service Fabric application. - // This is the amount of load which is reserved on nodes which have instances of this application. - // If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application. - // If set to zero, no capacity is reserved for this metric. - // When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric. - ReservationCapacity *int64 `json:"ReservationCapacity,omitempty"` - // TotalApplicationCapacity - The total metric capacity for Service Fabric application. - // This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value. - // When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value. - TotalApplicationCapacity *int64 `json:"TotalApplicationCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationNameInfo information about the application name. -type ApplicationNameInfo struct { - autorest.Response `json:"-"` - // ID - The identity of the application. This is an encoded representation of the application name. This is used in the REST APIs to identify the application resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the application name is "fabric:/myapp/app1", - // the application identity would be "myapp\~app1" in 6.0+ and "myapp/app1" in previous versions. - ID *string `json:"Id,omitempty"` - // Name - The name of the application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationParameter describes an application parameter override to be applied when creating or upgrading an -// application. -type ApplicationParameter struct { - // Key - The name of the parameter. - Key *string `json:"Key,omitempty"` - // Value - The value of the parameter. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationsHealthEvaluation represents health evaluation for applications, containing health evaluations for -// each unhealthy application that impacted current aggregated health state. -type ApplicationsHealthEvaluation struct { - // MaxPercentUnhealthyApplications - Maximum allowed percentage of unhealthy applications from the ClusterHealthPolicy. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // TotalCount - Total number of applications from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ApplicationHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - ahe.Kind = KindApplications - objectMap := make(map[string]interface{}) - if ahe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = ahe.MaxPercentUnhealthyApplications - } - if ahe.TotalCount != nil { - objectMap["TotalCount"] = ahe.TotalCount - } - if ahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ahe.UnhealthyEvaluations - } - if ahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ahe.AggregatedHealthState - } - if ahe.Description != nil { - objectMap["Description"] = ahe.Description - } - if ahe.Kind != "" { - objectMap["Kind"] = ahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationsHealthEvaluation. -func (ahe ApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeApplicationsHealthEvaluation represents health evaluation for applications of a particular -// application type. The application type applications evaluation can be returned when cluster health evaluation -// returns unhealthy aggregated health state, either Error or Warning. It contains health evaluations for each -// unhealthy application of the included application type that impacted current aggregated health state. -type ApplicationTypeApplicationsHealthEvaluation struct { - // ApplicationTypeName - The application type name as defined in the application manifest. - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - // MaxPercentUnhealthyApplications - Maximum allowed percentage of unhealthy applications for the application type, specified as an entry in ApplicationTypeHealthPolicyMap. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // TotalCount - Total number of applications of the application type found in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ApplicationHealthEvaluation of this application type that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - atahe.Kind = KindApplicationTypeApplications - objectMap := make(map[string]interface{}) - if atahe.ApplicationTypeName != nil { - objectMap["ApplicationTypeName"] = atahe.ApplicationTypeName - } - if atahe.MaxPercentUnhealthyApplications != nil { - objectMap["MaxPercentUnhealthyApplications"] = atahe.MaxPercentUnhealthyApplications - } - if atahe.TotalCount != nil { - objectMap["TotalCount"] = atahe.TotalCount - } - if atahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = atahe.UnhealthyEvaluations - } - if atahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = atahe.AggregatedHealthState - } - if atahe.Description != nil { - objectMap["Description"] = atahe.Description - } - if atahe.Kind != "" { - objectMap["Kind"] = atahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return &atahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ApplicationTypeApplicationsHealthEvaluation. -func (atahe ApplicationTypeApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &atahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeHealthPolicyMapItem defines an item in ApplicationTypeHealthPolicyMap. -type ApplicationTypeHealthPolicyMapItem struct { - // Key - The key of the application type health policy map item. This is the name of the application type. - Key *string `json:"Key,omitempty"` - // Value - The value of the application type health policy map item. - // The max percent unhealthy applications allowed for the application type. Must be between zero and 100. - Value *int32 `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeImageStorePath path description for the application package in the image store specified during -// the prior copy operation. -type ApplicationTypeImageStorePath struct { - // ApplicationTypeBuildPath - The relative image store path to the application package. - ApplicationTypeBuildPath *string `json:"ApplicationTypeBuildPath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeInfo information about an application type. -type ApplicationTypeInfo struct { - // Name - The application type name as defined in the application manifest. - Name *string `json:"Name,omitempty"` - // Version - The version of the application type as defined in the application manifest. - Version *string `json:"Version,omitempty"` - // DefaultParameterList - List of application type parameters that can be overridden when creating or updating the application. - DefaultParameterList *[]ApplicationParameter `json:"DefaultParameterList,omitempty"` - // Status - The status of the application type. - // . Possible values include: 'ApplicationTypeStatusInvalid', 'ApplicationTypeStatusProvisioning', 'ApplicationTypeStatusAvailable', 'ApplicationTypeStatusUnprovisioning', 'ApplicationTypeStatusFailed' - Status ApplicationTypeStatus `json:"Status,omitempty"` - // StatusDetails - Additional detailed information about the status of the application type. - StatusDetails *string `json:"StatusDetails,omitempty"` - // ApplicationTypeDefinitionKind - The mechanism used to define a Service Fabric application type. - // . Possible values include: 'ApplicationTypeDefinitionKindInvalid', 'ApplicationTypeDefinitionKindServiceFabricApplicationPackage', 'ApplicationTypeDefinitionKindCompose' - ApplicationTypeDefinitionKind ApplicationTypeDefinitionKind `json:"ApplicationTypeDefinitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationTypeManifest contains the manifest describing an application type registered in a Service Fabric -// cluster. -type ApplicationTypeManifest struct { - autorest.Response `json:"-"` - // Manifest - The XML manifest as a string. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeDescription describes the parameters for an application upgrade. Please note that upgrade -// description replaces the existing application description. This means that if the parameters are not specified, -// the existing parameters on the applications will be overwritten with the empty parameters list. This would -// results in application using the default value of the parameters from the application manifest. If you do not -// want to change any existing parameter values, please get the application parameters first using the -// GetApplicationInfo query and then supply those values as Parameters in this ApplicationUpgradeDescription. -type ApplicationUpgradeDescription struct { - // Name - The name of the target application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TargetApplicationTypeVersion - The target application type version (found in the application manifest) for the application upgrade. - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - // Parameters - List of application parameters with overridden values from their default values specified in the application manifest. - Parameters *[]ApplicationParameter `json:"Parameters,omitempty"` - // UpgradeKind - The kind of upgrade out of the following possible values. Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). - ForceRestart *bool `json:"ForceRestart,omitempty"` - // MonitoringPolicy - Describes the parameters for monitoring an upgrade in Monitored mode. - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - // ApplicationHealthPolicy - Defines a health policy used to evaluate the health of an application or one of its children entities. - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeProgressInfo describes the parameters for an application upgrade. -type ApplicationUpgradeProgressInfo struct { - autorest.Response `json:"-"` - // Name - The name of the target application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TypeName - The application type name as defined in the application manifest. - TypeName *string `json:"TypeName,omitempty"` - // TargetApplicationTypeVersion - The target application type version (found in the application manifest) for the application upgrade. - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - // UpgradeDomains - List of upgrade domains and their statuses. - UpgradeDomains *[]UpgradeDomainInfo `json:"UpgradeDomains,omitempty"` - // UpgradeState - The state of the upgrade domain. Possible values include: 'UpgradeStateInvalid', 'UpgradeStateRollingBackInProgress', 'UpgradeStateRollingBackCompleted', 'UpgradeStateRollingForwardPending', 'UpgradeStateRollingForwardInProgress', 'UpgradeStateRollingForwardCompleted', 'UpgradeStateFailed' - UpgradeState UpgradeState `json:"UpgradeState,omitempty"` - // NextUpgradeDomain - The name of the next upgrade domain to be processed. - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // UpgradeDescription - Describes the parameters for an application upgrade. Please note that upgrade description replaces the existing application description. This means that if the parameters are not specified, the existing parameters on the applications will be overwritten with the empty parameters list. This would results in application using the default value of the parameters from the application manifest. If you do not want to change any existing parameter values, please get the application parameters first using the GetApplicationInfo query and then supply those values as Parameters in this ApplicationUpgradeDescription. - UpgradeDescription *ApplicationUpgradeDescription `json:"UpgradeDescription,omitempty"` - // UpgradeDurationInMilliseconds - The estimated total amount of time spent processing the overall upgrade. - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - // UpgradeDomainDurationInMilliseconds - The estimated total amount of time spent processing the current upgrade domain. - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - // UnhealthyEvaluations - List of health evaluations that resulted in the current aggregated health state. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // CurrentUpgradeDomainProgress - Information about the current in-progress upgrade domain. - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - // StartTimestampUtc - The estimated UTC datetime when the upgrade started. - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - // FailureTimestampUtc - The estimated UTC datetime when the upgrade failed and FailureAction was executed. - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - The cause of an upgrade failure that resulted in FailureAction being executed. Possible values include: 'None', 'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout', 'OverallUpgradeTimeout' - FailureReason FailureReason `json:"FailureReason,omitempty"` - // UpgradeDomainProgressAtFailure - Information about the upgrade domain progress at the time of upgrade failure. - UpgradeDomainProgressAtFailure *FailureUpgradeDomainProgressInfo `json:"UpgradeDomainProgressAtFailure,omitempty"` - // UpgradeStatusDetails - Additional detailed information about the status of the pending upgrade. - UpgradeStatusDetails *string `json:"UpgradeStatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ApplicationUpgradeUpdateDescription describes the parameters for updating an ongoing application upgrade. -type ApplicationUpgradeUpdateDescription struct { - // Name - The name of the application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // UpgradeKind - The kind of upgrade out of the following possible values. Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // ApplicationHealthPolicy - Defines a health policy used to evaluate the health of an application or one of its children entities. - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` - // UpdateDescription - Describes the parameters for updating a rolling upgrade of application or cluster. - UpdateDescription *RollingUpgradeUpdateDescription `json:"UpdateDescription,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BinaryPropertyValue describes a Service Fabric property value of type Binary. -type BinaryPropertyValue struct { - // Data - Array of bytes to be sent as an integer array. Each element of array is a number between 0 and 255. - Data *[]int32 `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for BinaryPropertyValue. -func (bpv BinaryPropertyValue) MarshalJSON() ([]byte, error) { - bpv.Kind = KindBinary - objectMap := make(map[string]interface{}) - if bpv.Data != nil { - objectMap["Data"] = bpv.Data - } - if bpv.Kind != "" { - objectMap["Kind"] = bpv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return &bpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for BinaryPropertyValue. -func (bpv BinaryPropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &bpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosContext describes a map, which is a collection of (string, string) type key-value pairs. The map can be -// used to record information about -// the Chaos run. There cannot be more than 100 such pairs and each string (key or value) can be at most 4095 -// characters long. -// This map is set by the starter of the Chaos run to optionally store the context about the specific run. -type ChaosContext struct { - // Map - Describes a map that contains a collection of ChaosContextMapItem's. - Map interface{} `json:"Map,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosContextMapItem describes an item in the ChaosContextMap in ChaosParameters. -type ChaosContextMapItem struct { - // Key - The key for a ChaosContextMapItem. - Key *string `json:"Key,omitempty"` - // Value - The value for a ChaosContextMapItem. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicChaosEvent represents an event generated during a Chaos run. -type BasicChaosEvent interface { - AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) - AsStartedChaosEvent() (*StartedChaosEvent, bool) - AsStoppedChaosEvent() (*StoppedChaosEvent, bool) - AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) - AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) - AsWaitingChaosEvent() (*WaitingChaosEvent, bool) - AsChaosEvent() (*ChaosEvent, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosEvent represents an event generated during a Chaos run. -type ChaosEvent struct { - // TimeStampUtc - The UTC timestamp when this Chaos event was generated. - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -func unmarshalBasicChaosEvent(body []byte) (BasicChaosEvent, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindExecutingFaults): - var efce ExecutingFaultsChaosEvent - err := json.Unmarshal(body, &efce) - return efce, err - case string(KindStarted): - var sce StartedChaosEvent - err := json.Unmarshal(body, &sce) - return sce, err - case string(KindStopped): - var sce StoppedChaosEvent - err := json.Unmarshal(body, &sce) - return sce, err - case string(KindTestError): - var tece TestErrorChaosEvent - err := json.Unmarshal(body, &tece) - return tece, err - case string(KindValidationFailed): - var vfce ValidationFailedChaosEvent - err := json.Unmarshal(body, &vfce) - return vfce, err - case string(KindWaiting): - var wce WaitingChaosEvent - err := json.Unmarshal(body, &wce) - return wce, err - default: - var ce ChaosEvent - err := json.Unmarshal(body, &ce) - return ce, err - } -} -func unmarshalBasicChaosEventArray(body []byte) ([]BasicChaosEvent, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - ceArray := make([]BasicChaosEvent, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ce, err := unmarshalBasicChaosEvent(*rawMessage) - if err != nil { - return nil, err - } - ceArray[index] = ce - } - return ceArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ChaosEvent. -func (ce ChaosEvent) MarshalJSON() ([]byte, error) { - ce.Kind = KindChaosEvent - objectMap := make(map[string]interface{}) - if ce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = ce.TimeStampUtc - } - if ce.Kind != "" { - objectMap["Kind"] = ce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return &ce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ChaosEvent. -func (ce ChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &ce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosEventWrapper wrapper object for Chaos event. -type ChaosEventWrapper struct { - // ChaosEvent - Represents an event generated during a Chaos run. - ChaosEvent BasicChaosEvent `json:"ChaosEvent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ChaosEventWrapper struct. -func (cew *ChaosEventWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ChaosEvent": - if v != nil { - chaosEvent, err := unmarshalBasicChaosEvent(*v) - if err != nil { - return err - } - cew.ChaosEvent = chaosEvent - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosParameters defines all the parameters to configure a Chaos run. -type ChaosParameters struct { - // TimeToRunInSeconds - Total time (in seconds) for which Chaos will run before automatically stopping. The maximum allowed value is 4,294,967,295 (System.UInt32.MaxValue). - TimeToRunInSeconds *string `json:"TimeToRunInSeconds,omitempty"` - // MaxClusterStabilizationTimeoutInSeconds - The maximum amount of time to wait for all cluster entities to become stable and healthy. Chaos executes in iterations and at the start of each iteration it validates the health of cluster entities. - // During validation if a cluster entity is not stable and healthy within MaxClusterStabilizationTimeoutInSeconds, Chaos generates a validation failed event. - MaxClusterStabilizationTimeoutInSeconds *int64 `json:"MaxClusterStabilizationTimeoutInSeconds,omitempty"` - // MaxConcurrentFaults - MaxConcurrentFaults is the maximum number of concurrent faults induced per iteration. - // Chaos executes in iterations and two consecutive iterations are separated by a validation phase. - // The higher the concurrency, the more aggressive the injection of faults -- inducing more complex series of states to uncover bugs. - // The recommendation is to start with a value of 2 or 3 and to exercise caution while moving up. - MaxConcurrentFaults *int64 `json:"MaxConcurrentFaults,omitempty"` - // EnableMoveReplicaFaults - Enables or disables the move primary and move secondary faults. - EnableMoveReplicaFaults *bool `json:"EnableMoveReplicaFaults,omitempty"` - // WaitTimeBetweenFaultsInSeconds - Wait time (in seconds) between consecutive faults within a single iteration. - // The larger the value, the lower the overlapping between faults and the simpler the sequence of state transitions that the cluster goes through. - // The recommendation is to start with a value between 1 and 5 and exercise caution while moving up. - WaitTimeBetweenFaultsInSeconds *int64 `json:"WaitTimeBetweenFaultsInSeconds,omitempty"` - // WaitTimeBetweenIterationsInSeconds - Time-separation (in seconds) between two consecutive iterations of Chaos. - // The larger the value, the lower the fault injection rate. - WaitTimeBetweenIterationsInSeconds *int64 `json:"WaitTimeBetweenIterationsInSeconds,omitempty"` - // ClusterHealthPolicy - Passed-in cluster health policy is used to validate health of the cluster in between Chaos iterations. If the cluster health is in error or if an unexpected exception happens during fault execution--to provide the cluster with some time to recuperate--Chaos will wait for 30 minutes before the next health-check. - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - // Context - Describes a map, which is a collection of (string, string) type key-value pairs. The map can be used to record information about - // the Chaos run. There cannot be more than 100 such pairs and each string (key or value) can be at most 4095 characters long. - // This map is set by the starter of the Chaos run to optionally store the context about the specific run. - Context *ChaosContext `json:"Context,omitempty"` - // ChaosTargetFilter - List of cluster entities to target for Chaos faults. - // This filter can be used to target Chaos faults only to certain node types or only to certain application instances. If ChaosTargetFilter is not used, Chaos faults all cluster entities. - // If ChaosTargetFilter is used, Chaos faults only the entities that meet the ChaosTargetFilter specification. - ChaosTargetFilter *ChaosTargetFilter `json:"ChaosTargetFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosReport contains detailed Chaos report. -type ChaosReport struct { - autorest.Response `json:"-"` - // ChaosParameters - Defines all the parameters to configure a Chaos run. - ChaosParameters *ChaosParameters `json:"ChaosParameters,omitempty"` - // Status - Current status of the Chaos run. - // . Possible values include: 'StatusInvalid', 'StatusRunning', 'StatusStopped' - Status Status `json:"Status,omitempty"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // History - List of ChaosEvent's that meet the user-supplied criteria. - History *[]ChaosEventWrapper `json:"History,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ChaosTargetFilter defines all filters for targeted Chaos faults, for example, faulting only certain node types -// or faulting only certain applications. -// If ChaosTargetFilter is not used, Chaos faults all cluster entities. If ChaosTargetFilter is used, Chaos faults -// only the entities that meet the ChaosTargetFilter -// specification. NodeTypeInclusionList and ApplicationInclusionList allow a union semantics only. It is not -// possible to specify an intersection -// of NodeTypeInclusionList and ApplicationInclusionList. For example, it is not possible to specify "fault this -// application only when it is on that node type." -// Once an entity is included in either NodeTypeInclusionList or ApplicationInclusionList, that entity cannot be -// excluded using ChaosTargetFilter. Even if -// applicationX does not appear in ApplicationInclusionList, in some Chaos iteration applicationX can be faulted -// because it happens to be on a node of nodeTypeY that is included -// in NodeTypeInclusionList. If both NodeTypeInclusionList and ApplicationInclusionList are null or empty, an -// ArgumentException is thrown. -type ChaosTargetFilter struct { - // NodeTypeInclusionList - A list of node types to include in Chaos faults. - // All types of faults (restart node, restart code package, remove replica, restart replica, move primary, and move secondary) are enabled for the nodes of these node types. - // If a nodetype (say NodeTypeX) does not appear in the NodeTypeInclusionList, then node level faults (like NodeRestart) will never be enabled for the nodes of - // NodeTypeX, but code package and replica faults can still be enabled for NodeTypeX if an application in the ApplicationInclusionList. - // happens to reside on a node of NodeTypeX. - // At most 100 node type names can be included in this list, to increase this number, a config upgrade is required for MaxNumberOfNodeTypesInChaosEntityFilter configuration. - NodeTypeInclusionList *[]string `json:"NodeTypeInclusionList,omitempty"` - // ApplicationInclusionList - A list of application URI's to include in Chaos faults. - // All replicas belonging to services of these applications are amenable to replica faults (restart replica, remove replica, move primary, and move secondary) by Chaos. - // Chaos may restart a code package only if the code package hosts replicas of these applications only. - // If an application does not appear in this list, it can still be faulted in some Chaos iteration if the application ends up on a node of a node type that is included in NodeTypeInclusionList. - // However if applicationX is tied to nodeTypeY through placement constraints and applicationX is absent from ApplicationInclusionList and nodeTypeY is absent from NodeTypeInclusionList, then applicationX will never be faulted. - // At most 1000 application names can be included in this list, to increase this number, a config upgrade is required for MaxNumberOfApplicationsInChaosEntityFilter configuration. - ApplicationInclusionList *[]string `json:"ApplicationInclusionList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CheckExistsPropertyBatchOperation represents a PropertyBatchOperation that compares the Boolean existence of a -// property with the Exists argument. -// The PropertyBatchOperation operation fails if the property's existence is not equal to the Exists argument. -// The CheckExistsPropertyBatchOperation is generally used as a precondition for the write operations in the batch. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, -// the entire batch fails and cannot be committed in a transactional manner. -type CheckExistsPropertyBatchOperation struct { - // Exists - Whether or not the property should exist for the operation to pass. - Exists *bool `json:"Exists,omitempty"` - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) MarshalJSON() ([]byte, error) { - cepbo.Kind = KindCheckExists - objectMap := make(map[string]interface{}) - if cepbo.Exists != nil { - objectMap["Exists"] = cepbo.Exists - } - if cepbo.PropertyName != nil { - objectMap["PropertyName"] = cepbo.PropertyName - } - if cepbo.Kind != "" { - objectMap["Kind"] = cepbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return &cepbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckExistsPropertyBatchOperation. -func (cepbo CheckExistsPropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &cepbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CheckSequencePropertyBatchOperation compares the Sequence Number of a property with the SequenceNumber argument. -// A property's sequence number can be thought of as that property's version. -// Every time the property is modified, its sequence number is increased. -// The sequence number can be found in a property's metadata. -// The comparison fails if the sequence numbers are not equal. -// CheckSequencePropertyBatchOperation is generally used as a precondition for the write operations in the batch. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, -// the entire batch fails and cannot be committed in a transactional manner. -type CheckSequencePropertyBatchOperation struct { - // SequenceNumber - The expected sequence number. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) MarshalJSON() ([]byte, error) { - cspbo.Kind = KindCheckSequence - objectMap := make(map[string]interface{}) - if cspbo.SequenceNumber != nil { - objectMap["SequenceNumber"] = cspbo.SequenceNumber - } - if cspbo.PropertyName != nil { - objectMap["PropertyName"] = cspbo.PropertyName - } - if cspbo.Kind != "" { - objectMap["Kind"] = cspbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return &cspbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckSequencePropertyBatchOperation. -func (cspbo CheckSequencePropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &cspbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CheckValuePropertyBatchOperation represents a PropertyBatchOperation that compares the value of the property -// with the expected value. -// The CheckValuePropertyBatchOperation is generally used as a precondition for the write operations in the batch. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, -// the entire batch fails and cannot be committed in a transactional manner. -type CheckValuePropertyBatchOperation struct { - // Value - The expected property value. - Value BasicPropertyValue `json:"Value,omitempty"` - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) MarshalJSON() ([]byte, error) { - cvpbo.Kind = KindCheckValue - objectMap := make(map[string]interface{}) - objectMap["Value"] = cvpbo.Value - if cvpbo.PropertyName != nil { - objectMap["PropertyName"] = cvpbo.PropertyName - } - if cvpbo.Kind != "" { - objectMap["Kind"] = cvpbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return &cvpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for CheckValuePropertyBatchOperation. -func (cvpbo CheckValuePropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &cvpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for CheckValuePropertyBatchOperation struct. -func (cvpbo *CheckValuePropertyBatchOperation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - cvpbo.Value = value - } - case "PropertyName": - if v != nil { - var propertyName string - err = json.Unmarshal(*v, &propertyName) - if err != nil { - return err - } - cvpbo.PropertyName = &propertyName - } - case "Kind": - if v != nil { - var kind KindBasicPropertyBatchOperation - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - cvpbo.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterConfiguration information about the standalone cluster configuration. -type ClusterConfiguration struct { - autorest.Response `json:"-"` - // ClusterConfiguration - The contents of the cluster configuration file. - ClusterConfiguration *string `json:"ClusterConfiguration,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterConfigurationUpgradeDescription describes the parameters for a standalone cluster configuration upgrade. -type ClusterConfigurationUpgradeDescription struct { - // ClusterConfig - The cluster configuration. - ClusterConfig *string `json:"ClusterConfig,omitempty"` - // HealthCheckRetryTimeout - The length of time between attempts to perform a health checks if the application or cluster is not healthy. - HealthCheckRetryTimeout *string `json:"HealthCheckRetryTimeout,omitempty"` - // HealthCheckWaitDurationInSeconds - The length of time to wait after completing an upgrade domain before starting the health checks process. - HealthCheckWaitDurationInSeconds *string `json:"HealthCheckWaitDurationInSeconds,omitempty"` - // HealthCheckStableDurationInSeconds - The length of time that the application or cluster must remain healthy. - HealthCheckStableDurationInSeconds *string `json:"HealthCheckStableDurationInSeconds,omitempty"` - // UpgradeDomainTimeoutInSeconds - The timeout for the upgrade domain. - UpgradeDomainTimeoutInSeconds *string `json:"UpgradeDomainTimeoutInSeconds,omitempty"` - // UpgradeTimeoutInSeconds - The upgrade timeout. - UpgradeTimeoutInSeconds *string `json:"UpgradeTimeoutInSeconds,omitempty"` - // MaxPercentUnhealthyApplications - The maximum allowed percentage of unhealthy applications during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // MaxPercentUnhealthyNodes - The maximum allowed percentage of unhealthy nodes during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // MaxPercentDeltaUnhealthyNodes - The maximum allowed percentage of delta health degradation during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The maximum allowed percentage of upgrade domain delta health degradation during the upgrade. Allowed values are integer values from zero to 100. - MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"MaxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterConfigurationUpgradeStatusInfo information about a standalone cluster configuration upgrade status. -type ClusterConfigurationUpgradeStatusInfo struct { - autorest.Response `json:"-"` - // UpgradeState - The state of the upgrade domain. Possible values include: 'UpgradeStateInvalid', 'UpgradeStateRollingBackInProgress', 'UpgradeStateRollingBackCompleted', 'UpgradeStateRollingForwardPending', 'UpgradeStateRollingForwardInProgress', 'UpgradeStateRollingForwardCompleted', 'UpgradeStateFailed' - UpgradeState UpgradeState `json:"UpgradeState,omitempty"` - // ProgressStatus - The cluster manifest version. - ProgressStatus *int32 `json:"ProgressStatus,omitempty"` - // ConfigVersion - The cluster configuration version. - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // Details - The cluster upgrade status details. - Details *string `json:"Details,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealth represents the health of the cluster. -// Contains the cluster aggregated health state, the cluster application and node health states as well as the -// health events and the unhealthy evaluations. -type ClusterHealth struct { - autorest.Response `json:"-"` - // NodeHealthStates - Cluster node health states as found in the health store. - NodeHealthStates *[]NodeHealthState `json:"NodeHealthStates,omitempty"` - // ApplicationHealthStates - Cluster application health states as found in the health store. - ApplicationHealthStates *[]ApplicationHealthState `json:"ApplicationHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthChunk represents the health chunk of the cluster. -// Contains the cluster aggregated health state, and the cluster entities that respect the input filter. -type ClusterHealthChunk struct { - autorest.Response `json:"-"` - // HealthState - The HealthState representing the aggregated health state of the cluster computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired cluster health policy and the application health policies. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // NodeHealthStateChunks - The list of node health state chunks in the cluster that respect the filters in the cluster health chunk query description. - NodeHealthStateChunks *NodeHealthStateChunkList `json:"NodeHealthStateChunks,omitempty"` - // ApplicationHealthStateChunks - The list of application health state chunks in the cluster that respect the filters in the cluster health chunk query description. - ApplicationHealthStateChunks *ApplicationHealthStateChunkList `json:"ApplicationHealthStateChunks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthChunkQueryDescription the cluster health chunk query description, which can specify the health -// policies to evaluate cluster health and very expressive filters to select which cluster entities to include in -// response. -type ClusterHealthChunkQueryDescription struct { - // NodeFilters - Defines a list of filters that specify which nodes to be included in the returned cluster health chunk. - // If no filters are specified, no nodes are returned. All the nodes are used to evaluate the cluster's aggregated health state, regardless of the input filters. - // The cluster health chunk query may specify multiple node filters. - // For example, it can specify a filter to return all nodes with health state Error and another filter to always include a node identified by its NodeName. - NodeFilters *[]NodeHealthStateFilter `json:"NodeFilters,omitempty"` - // ApplicationFilters - Defines a list of filters that specify which applications to be included in the returned cluster health chunk. - // If no filters are specified, no applications are returned. All the applications are used to evaluate the cluster's aggregated health state, regardless of the input filters. - // The cluster health chunk query may specify multiple application filters. - // For example, it can specify a filter to return all applications with health state Error and another filter to always include applications of a specified application type. - ApplicationFilters *[]ApplicationHealthStateFilter `json:"ApplicationFilters,omitempty"` - // ClusterHealthPolicy - Defines a health policy used to evaluate the health of the cluster or of a cluster node. - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - // ApplicationHealthPolicies - Defines the application health policy map used to evaluate the health of an application or one of its children entities. - ApplicationHealthPolicies *ApplicationHealthPolicies `json:"ApplicationHealthPolicies,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthPolicies health policies to evaluate cluster health. -type ClusterHealthPolicies struct { - // ApplicationHealthPolicyMap - Defines a map that contains specific application health policies for different applications. - // Each entry specifies as key the application name and as value an ApplicationHealthPolicy used to evaluate the application health. - // If an application is not specified in the map, the application health evaluation uses the ApplicationHealthPolicy found in its application manifest or the default application health policy (if no health policy is defined in the manifest). - // The map is empty by default. - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` - // ClusterHealthPolicy - Defines a health policy used to evaluate the health of the cluster or of a cluster node. - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterHealthPolicy defines a health policy used to evaluate the health of the cluster or of a cluster node. -type ClusterHealthPolicy struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // MaxPercentUnhealthyNodes - The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10. - // The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error. - // If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster. - // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. - // In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // MaxPercentUnhealthyApplications - The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10. - // The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error. - // If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning. - // This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap. - // The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero. - MaxPercentUnhealthyApplications *int32 `json:"MaxPercentUnhealthyApplications,omitempty"` - // ApplicationTypeHealthPolicyMap - Defines a map with max percentage unhealthy applications for specific application types. - // Each entry specifies as key the application type name and as value an integer that represents the MaxPercentUnhealthyApplications percentage used to evaluate the applications of the specified application type. - // The application type health policy map can be used during cluster health evaluation to describe special application types. - // The application types included in the map are evaluated against the percentage specified in the map, and not with the global MaxPercentUnhealthyApplications defined in the cluster health policy. - // The applications of application types specified in the map are not counted against the global pool of applications. - // For example, if some applications of a type are critical, the cluster administrator can add an entry to the map for that application type - // and assign it a value of 0% (that is, do not tolerate any failures). - // All other applications can be evaluated with MaxPercentUnhealthyApplications set to 20% to tolerate some failures out of the thousands of application instances. - // The application type health policy map is used only if the cluster manifest enables application type health evaluation using the configuration entry for HealthManager/EnableApplicationTypeHealthEvaluation. - ApplicationTypeHealthPolicyMap *[]ApplicationTypeHealthPolicyMapItem `json:"ApplicationTypeHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterManifest information about the cluster manifest. -type ClusterManifest struct { - autorest.Response `json:"-"` - // Manifest - The contents of the cluster manifest file. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeDescriptionObject represents a ServiceFabric cluster upgrade -type ClusterUpgradeDescriptionObject struct { - // ConfigVersion - The cluster configuration version (specified in the cluster manifest). - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // CodeVersion - The ServiceFabric code version of the cluster. - CodeVersion *string `json:"CodeVersion,omitempty"` - // UpgradeKind - The kind of upgrade out of the following possible values. Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). - ForceRestart *bool `json:"ForceRestart,omitempty"` - // EnableDeltaHealthEvaluation - When true, enables delta health evaluation rather than absolute health evaluation after completion of each upgrade domain. - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - // MonitoringPolicy - Describes the parameters for monitoring an upgrade in Monitored mode. - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - // ClusterHealthPolicy - Defines a health policy used to evaluate the health of the cluster or of a cluster node. - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - // ClusterUpgradeHealthPolicy - Defines a health policy used to evaluate the health of the cluster during a cluster upgrade. - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicyObject `json:"ClusterUpgradeHealthPolicy,omitempty"` - // ApplicationHealthPolicyMap - Defines a map that contains specific application health policies for different applications. - // Each entry specifies as key the application name and as value an ApplicationHealthPolicy used to evaluate the application health. - // If an application is not specified in the map, the application health evaluation uses the ApplicationHealthPolicy found in its application manifest or the default application health policy (if no health policy is defined in the manifest). - // The map is empty by default. - ApplicationHealthPolicyMap *[]ApplicationHealthPolicyMapItem `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeHealthPolicyObject defines a health policy used to evaluate the health of the cluster during a -// cluster upgrade. -type ClusterUpgradeHealthPolicyObject struct { - // MaxPercentDeltaUnhealthyNodes - The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. The default value is 10%. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits. The default value is 15%. - MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"MaxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ClusterUpgradeProgressObject information about a cluster upgrade. -type ClusterUpgradeProgressObject struct { - autorest.Response `json:"-"` - // CodeVersion - The ServiceFabric code version of the cluster. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The cluster configuration version (specified in the cluster manifest). - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // UpgradeDomains - List of upgrade domains and their statuses. - UpgradeDomains *[]UpgradeDomainInfo `json:"UpgradeDomains,omitempty"` - // UpgradeState - The state of the upgrade domain. Possible values include: 'UpgradeStateInvalid', 'UpgradeStateRollingBackInProgress', 'UpgradeStateRollingBackCompleted', 'UpgradeStateRollingForwardPending', 'UpgradeStateRollingForwardInProgress', 'UpgradeStateRollingForwardCompleted', 'UpgradeStateFailed' - UpgradeState UpgradeState `json:"UpgradeState,omitempty"` - // NextUpgradeDomain - The name of the next upgrade domain to be processed. - NextUpgradeDomain *string `json:"NextUpgradeDomain,omitempty"` - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // UpgradeDescription - Represents a ServiceFabric cluster upgrade - UpgradeDescription *ClusterUpgradeDescriptionObject `json:"UpgradeDescription,omitempty"` - // UpgradeDurationInMilliseconds - The estimated elapsed time spent processing the current overall upgrade. - UpgradeDurationInMilliseconds *string `json:"UpgradeDurationInMilliseconds,omitempty"` - // UpgradeDomainDurationInMilliseconds - The estimated elapsed time spent processing the current upgrade domain. - UpgradeDomainDurationInMilliseconds *string `json:"UpgradeDomainDurationInMilliseconds,omitempty"` - // UnhealthyEvaluations - List of health evaluations that resulted in the current aggregated health state. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // CurrentUpgradeDomainProgress - Information about the current in-progress upgrade domain. - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - // StartTimestampUtc - The start time of the upgrade in UTC. - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - // FailureTimestampUtc - The failure time of the upgrade in UTC. - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - The cause of an upgrade failure that resulted in FailureAction being executed. Possible values include: 'None', 'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout', 'OverallUpgradeTimeout' - FailureReason FailureReason `json:"FailureReason,omitempty"` - // UpgradeDomainProgressAtFailure - The detailed upgrade progress for nodes in the current upgrade domain at the point of failure. - UpgradeDomainProgressAtFailure *FailedUpgradeDomainProgressObject `json:"UpgradeDomainProgressAtFailure,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CodePackageEntryPoint information about setup or main entry point of a code package deployed on a Service Fabric -// node. -type CodePackageEntryPoint struct { - // EntryPointLocation - The location of entry point executable on the node. - EntryPointLocation *string `json:"EntryPointLocation,omitempty"` - // ProcessID - The process id of the entry point. - ProcessID *string `json:"ProcessId,omitempty"` - // RunAsUserName - The user name under which entry point executable is run on the node. - RunAsUserName *string `json:"RunAsUserName,omitempty"` - // CodePackageEntryPointStatistics - Statistics about setup or main entry point of a code package deployed on a Service Fabric node. - CodePackageEntryPointStatistics *CodePackageEntryPointStatistics `json:"CodePackageEntryPointStatistics,omitempty"` - // Status - Specifies the status of the code package entry point deployed on a Service Fabric node. Possible values include: 'EntryPointStatusInvalid', 'EntryPointStatusPending', 'EntryPointStatusStarting', 'EntryPointStatusStarted', 'EntryPointStatusStopping', 'EntryPointStatusStopped' - Status EntryPointStatus `json:"Status,omitempty"` - // NextActivationTime - The time (in UTC) when the entry point executable will be run next. - NextActivationTime *date.Time `json:"NextActivationTime,omitempty"` - // InstanceID - The instance id for current running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance id will change. - InstanceID *string `json:"InstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CodePackageEntryPointStatistics statistics about setup or main entry point of a code package deployed on a -// Service Fabric node. -type CodePackageEntryPointStatistics struct { - // LastExitCode - The last exit code of the entry point. - LastExitCode *string `json:"LastExitCode,omitempty"` - // LastActivationTime - The last time (in UTC) when Service Fabric attempted to run the entry point. - LastActivationTime *date.Time `json:"LastActivationTime,omitempty"` - // LastExitTime - The last time (in UTC) when the entry point finished running. - LastExitTime *date.Time `json:"LastExitTime,omitempty"` - // LastSuccessfulActivationTime - The last time (in UTC) when the entry point ran successfully. - LastSuccessfulActivationTime *date.Time `json:"LastSuccessfulActivationTime,omitempty"` - // LastSuccessfulExitTime - The last time (in UTC) when the entry point finished running gracefully. - LastSuccessfulExitTime *date.Time `json:"LastSuccessfulExitTime,omitempty"` - // ActivationCount - Number of times the entry point has run. - ActivationCount *string `json:"ActivationCount,omitempty"` - // ActivationFailureCount - Number of times the entry point failed to run. - ActivationFailureCount *string `json:"ActivationFailureCount,omitempty"` - // ContinuousActivationFailureCount - Number of times the entry point continuously failed to run. - ContinuousActivationFailureCount *string `json:"ContinuousActivationFailureCount,omitempty"` - // ExitCount - Number of times the entry point finished running. - ExitCount *string `json:"ExitCount,omitempty"` - // ExitFailureCount - Number of times the entry point failed to exit gracefully. - ExitFailureCount *string `json:"ExitFailureCount,omitempty"` - // ContinuousExitFailureCount - Number of times the entry point continuously failed to exit gracefully. - ContinuousExitFailureCount *string `json:"ContinuousExitFailureCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentStatusInfo information about a Service Fabric compose deployment. -type ComposeDeploymentStatusInfo struct { - autorest.Response `json:"-"` - // Name - The name of the deployment. - Name *string `json:"Name,omitempty"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // Status - The status of the compose deployment. Possible values include: 'ComposeDeploymentStatusInvalid', 'ComposeDeploymentStatusProvisioning', 'ComposeDeploymentStatusCreating', 'ComposeDeploymentStatusReady', 'ComposeDeploymentStatusUnprovisioning', 'ComposeDeploymentStatusDeleting', 'ComposeDeploymentStatusFailed', 'ComposeDeploymentStatusUpgrading' - Status ComposeDeploymentStatus `json:"Status,omitempty"` - // StatusDetails - The status details of compose deployment including failure message. - StatusDetails *string `json:"StatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentUpgradeDescription describes the parameters for a compose deployment upgrade. -type ComposeDeploymentUpgradeDescription struct { - // DeploymentName - The name of the deployment. - DeploymentName *string `json:"DeploymentName,omitempty"` - // ComposeFileContent - The content of the compose file that describes the deployment to create. - ComposeFileContent *string `json:"ComposeFileContent,omitempty"` - // RegistryCredential - Credential information to connect to container registry. - RegistryCredential *RegistryCredential `json:"RegistryCredential,omitempty"` - // UpgradeKind - The kind of upgrade out of the following possible values. Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). - ForceRestart *bool `json:"ForceRestart,omitempty"` - // MonitoringPolicy - Describes the parameters for monitoring an upgrade in Monitored mode. - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - // ApplicationHealthPolicy - Defines a health policy used to evaluate the health of an application or one of its children entities. - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ComposeDeploymentUpgradeProgressInfo describes the parameters for a compose deployment upgrade. -type ComposeDeploymentUpgradeProgressInfo struct { - autorest.Response `json:"-"` - // DeploymentName - The name of the target deployment. - DeploymentName *string `json:"DeploymentName,omitempty"` - // ApplicationName - The name of the target application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // UpgradeState - The state of the compose deployment upgrade. - // . Possible values include: 'ComposeDeploymentUpgradeStateInvalid', 'ComposeDeploymentUpgradeStateProvisioningTarget', 'ComposeDeploymentUpgradeStateRollingForwardInProgress', 'ComposeDeploymentUpgradeStateRollingForwardPending', 'ComposeDeploymentUpgradeStateUnprovisioningCurrent', 'ComposeDeploymentUpgradeStateRollingForwardCompleted', 'ComposeDeploymentUpgradeStateRollingBackInProgress', 'ComposeDeploymentUpgradeStateUnprovisioningTarget', 'ComposeDeploymentUpgradeStateRollingBackCompleted', 'ComposeDeploymentUpgradeStateFailed' - UpgradeState ComposeDeploymentUpgradeState `json:"UpgradeState,omitempty"` - // UpgradeStatusDetails - Additional detailed information about the status of the pending upgrade. - UpgradeStatusDetails *string `json:"UpgradeStatusDetails,omitempty"` - // UpgradeKind - The kind of upgrade out of the following possible values. Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). - ForceRestart *bool `json:"ForceRestart,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // MonitoringPolicy - Describes the parameters for monitoring an upgrade in Monitored mode. - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - // ApplicationHealthPolicy - Defines a health policy used to evaluate the health of an application or one of its children entities. - ApplicationHealthPolicy *ApplicationHealthPolicy `json:"ApplicationHealthPolicy,omitempty"` - // TargetApplicationTypeVersion - The target application type version (found in the application manifest) for the application upgrade. - TargetApplicationTypeVersion *string `json:"TargetApplicationTypeVersion,omitempty"` - // UpgradeDuration - The estimated amount of time that the overall upgrade elapsed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - UpgradeDuration *string `json:"UpgradeDuration,omitempty"` - // CurrentUpgradeDomainDuration - The estimated amount of time spent processing current Upgrade Domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - CurrentUpgradeDomainDuration *string `json:"CurrentUpgradeDomainDuration,omitempty"` - // ApplicationUnhealthyEvaluations - List of health evaluations that resulted in the current aggregated health state. - ApplicationUnhealthyEvaluations *[]HealthEvaluationWrapper `json:"ApplicationUnhealthyEvaluations,omitempty"` - // CurrentUpgradeDomainProgress - Information about the current in-progress upgrade domain. - CurrentUpgradeDomainProgress *CurrentUpgradeDomainProgressInfo `json:"CurrentUpgradeDomainProgress,omitempty"` - // StartTimestampUtc - The estimated UTC datetime when the upgrade started. - StartTimestampUtc *string `json:"StartTimestampUtc,omitempty"` - // FailureTimestampUtc - The estimated UTC datetime when the upgrade failed and FailureAction was executed. - FailureTimestampUtc *string `json:"FailureTimestampUtc,omitempty"` - // FailureReason - The cause of an upgrade failure that resulted in FailureAction being executed. Possible values include: 'None', 'Interrupted', 'HealthCheck', 'UpgradeDomainTimeout', 'OverallUpgradeTimeout' - FailureReason FailureReason `json:"FailureReason,omitempty"` - // UpgradeDomainProgressAtFailure - Information about the upgrade domain progress at the time of upgrade failure. - UpgradeDomainProgressAtFailure *FailureUpgradeDomainProgressInfo `json:"UpgradeDomainProgressAtFailure,omitempty"` - // ApplicationUpgradeStatusDetails - Additional details of application upgrade including failure message. - ApplicationUpgradeStatusDetails *string `json:"ApplicationUpgradeStatusDetails,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ContainerLogs container logs. -type ContainerLogs struct { - autorest.Response `json:"-"` - // Content - Container logs. - Content *string `json:"Content,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CreateComposeDeploymentDescription defines description for creating a Service Fabric compose deployment. -type CreateComposeDeploymentDescription struct { - // DeploymentName - The name of the deployment. - DeploymentName *string `json:"DeploymentName,omitempty"` - // ComposeFileContent - The content of the compose file that describes the deployment to create. - ComposeFileContent *string `json:"ComposeFileContent,omitempty"` - // RegistryCredential - Credential information to connect to container registry. - RegistryCredential *RegistryCredential `json:"RegistryCredential,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// CurrentUpgradeDomainProgressInfo information about the current in-progress upgrade domain. -type CurrentUpgradeDomainProgressInfo struct { - // DomainName - The name of the upgrade domain - DomainName *string `json:"DomainName,omitempty"` - // NodeUpgradeProgressList - List of upgrading nodes and their statuses - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeactivationIntentDescription describes the intent or reason for deactivating the node. -type DeactivationIntentDescription struct { - // DeactivationIntent - Describes the intent or reason for deactivating the node. The possible values are following. - // . Possible values include: 'Pause', 'Restart', 'RemoveData' - DeactivationIntent DeactivationIntent `json:"DeactivationIntent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeletePropertyBatchOperation represents a PropertyBatchOperation that deletes a specified property if it exists. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, -// the entire batch fails and cannot be committed in a transactional manner. -type DeletePropertyBatchOperation struct { - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) MarshalJSON() ([]byte, error) { - dpbo.Kind = KindDelete - objectMap := make(map[string]interface{}) - if dpbo.PropertyName != nil { - objectMap["PropertyName"] = dpbo.PropertyName - } - if dpbo.Kind != "" { - objectMap["Kind"] = dpbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return &dpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for DeletePropertyBatchOperation. -func (dpbo DeletePropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &dpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeltaNodesCheckHealthEvaluation represents health evaluation for delta nodes, containing health evaluations for -// each unhealthy node that impacted current aggregated health state. -// Can be returned during cluster upgrade when the aggregated health state of the cluster is Warning or Error. -type DeltaNodesCheckHealthEvaluation struct { - // BaselineErrorCount - Number of nodes with aggregated heath state Error in the health store at the beginning of the cluster upgrade. - BaselineErrorCount *int64 `json:"BaselineErrorCount,omitempty"` - // BaselineTotalCount - Total number of nodes in the health store at the beginning of the cluster upgrade. - BaselineTotalCount *int64 `json:"BaselineTotalCount,omitempty"` - // MaxPercentDeltaUnhealthyNodes - Maximum allowed percentage of delta unhealthy nodes from the ClusterUpgradeHealthPolicy. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. - // Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - dnche.Kind = KindDeltaNodesCheck - objectMap := make(map[string]interface{}) - if dnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = dnche.BaselineErrorCount - } - if dnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = dnche.BaselineTotalCount - } - if dnche.MaxPercentDeltaUnhealthyNodes != nil { - objectMap["MaxPercentDeltaUnhealthyNodes"] = dnche.MaxPercentDeltaUnhealthyNodes - } - if dnche.TotalCount != nil { - objectMap["TotalCount"] = dnche.TotalCount - } - if dnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dnche.UnhealthyEvaluations - } - if dnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dnche.AggregatedHealthState - } - if dnche.Description != nil { - objectMap["Description"] = dnche.Description - } - if dnche.Kind != "" { - objectMap["Kind"] = dnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeltaNodesCheckHealthEvaluation. -func (dnche DeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealth information about the health of an application deployed on a Service Fabric node. -type DeployedApplicationHealth struct { - autorest.Response `json:"-"` - // Name - Name of the application deployed on the node whose health information is described by this object. - Name *string `json:"Name,omitempty"` - // NodeName - Name of the node where this application is deployed. - NodeName *string `json:"NodeName,omitempty"` - // DeployedServicePackageHealthStates - Deployed service package health states for the current deployed application as found in the health store. - DeployedServicePackageHealthStates *[]DeployedServicePackageHealthState `json:"DeployedServicePackageHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthEvaluation represents health evaluation for a deployed application, containing -// information about the data and the algorithm used by the health store to evaluate health. -type DeployedApplicationHealthEvaluation struct { - // NodeName - Name of the node where the application is deployed to. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the deployed application. - // The types of the unhealthy evaluations can be DeployedServicePackagesHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplication - objectMap := make(map[string]interface{}) - if dahe.NodeName != nil { - objectMap["NodeName"] = dahe.NodeName - } - if dahe.ApplicationName != nil { - objectMap["ApplicationName"] = dahe.ApplicationName - } - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationHealthEvaluation. -func (dahe DeployedApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthState represents the health state of a deployed application, which contains the entity -// identifier and the aggregated health state. -type DeployedApplicationHealthState struct { - // NodeName - Name of the node on which the service package is deployed. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateChunk represents the health state chunk of a deployed application, which contains -// the node where the application is deployed, the aggregated health state and any deployed service packages that -// respect the chunk query description filters. -type DeployedApplicationHealthStateChunk struct { - // NodeName - The name of node where the application is deployed. - NodeName *string `json:"NodeName,omitempty"` - // DeployedServicePackageHealthStateChunks - The list of deployed service package health state chunks belonging to the deployed application that respect the filters in the cluster health chunk query description. - DeployedServicePackageHealthStateChunks *DeployedServicePackageHealthStateChunkList `json:"DeployedServicePackageHealthStateChunks,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateChunkList the list of deployed application health state chunks that respect the -// input filters in the chunk query. Returned by get cluster health state chunks query. -type DeployedApplicationHealthStateChunkList struct { - // Items - The list of deployed application health state chunks that respect the input filters in the chunk query. - Items *[]DeployedApplicationHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationHealthStateFilter defines matching criteria to determine whether a deployed application -// should be included as a child of an application in the cluster health chunk. -// The deployed applications are only returned if the parent application matches a filter specified in the cluster -// health chunk query description. -// One filter can match zero, one or multiple deployed applications, depending on its properties. -type DeployedApplicationHealthStateFilter struct { - // NodeNameFilter - The name of the node where the application is deployed in order to match the filter. - // If specified, the filter is applied only to the application deployed on the specified node. - // If the application is not deployed on the node with the specified name, no deployed application is returned in the cluster health chunk based on this filter. - // Otherwise, the deployed application is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all deployed applications that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - NodeNameFilter *string `json:"NodeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the deployed applications. It allows selecting deployed applications if they match the desired health states. - // The possible values are integer value of one of the following health states. Only deployed applications that match the filter are returned. All deployed applications are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the node name is specified. If the filter has default value and node name is specified, the matching deployed application is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches deployed applications with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // DeployedServicePackageFilters - Defines a list of filters that specify which deployed service packages to be included in the returned cluster health chunk as children of the parent deployed application. The deployed service packages are returned only if the parent deployed application matches a filter. - // If the list is empty, no deployed service packages are returned. All the deployed service packages are used to evaluate the parent deployed application aggregated health state, regardless of the input filters. - // The deployed application filter may specify multiple deployed service package filters. - // For example, it can specify a filter to return all deployed service packages with health state Error and another filter to always include a deployed service package on a node. - DeployedServicePackageFilters *[]DeployedServicePackageHealthStateFilter `json:"DeployedServicePackageFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationInfo information about application deployed on the node. -type DeployedApplicationInfo struct { - autorest.Response `json:"-"` - // ID - The identity of the application. This is an encoded representation of the application name. This is used in the REST APIs to identify the application resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the application name is "fabric:/myapp/app1", - // the application identity would be "myapp\~app1" in 6.0+ and "myapp/app1" in previous versions. - ID *string `json:"Id,omitempty"` - // Name - The name of the application, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TypeName - The application type name as defined in the application manifest. - TypeName *string `json:"TypeName,omitempty"` - // Status - The status of the application deployed on the node. Following are the possible values. - // . Possible values include: 'DeployedApplicationStatusInvalid', 'DeployedApplicationStatusDownloading', 'DeployedApplicationStatusActivating', 'DeployedApplicationStatusActive', 'DeployedApplicationStatusUpgrading', 'DeployedApplicationStatusDeactivating' - Status DeployedApplicationStatus `json:"Status,omitempty"` - // WorkDirectory - The work directory of the application on the node. The work directory can be used to store application data. - WorkDirectory *string `json:"WorkDirectory,omitempty"` - // LogDirectory - The log directory of the application on the node. The log directory can be used to store application logs. - LogDirectory *string `json:"LogDirectory,omitempty"` - // TempDirectory - The temp directory of the application on the node. The code packages belonging to the application are forked with this directory set as their temporary directory. - TempDirectory *string `json:"TempDirectory,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedApplicationsHealthEvaluation represents health evaluation for deployed applications, containing health -// evaluations for each unhealthy deployed application that impacted current aggregated health state. -// Can be returned when evaluating application health and the aggregated health state is either Error or Warning. -type DeployedApplicationsHealthEvaluation struct { - // MaxPercentUnhealthyDeployedApplications - Maximum allowed percentage of unhealthy deployed applications from the ApplicationHealthPolicy. - MaxPercentUnhealthyDeployedApplications *int32 `json:"MaxPercentUnhealthyDeployedApplications,omitempty"` - // TotalCount - Total number of deployed applications of the application in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy DeployedApplicationHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) MarshalJSON() ([]byte, error) { - dahe.Kind = KindDeployedApplications - objectMap := make(map[string]interface{}) - if dahe.MaxPercentUnhealthyDeployedApplications != nil { - objectMap["MaxPercentUnhealthyDeployedApplications"] = dahe.MaxPercentUnhealthyDeployedApplications - } - if dahe.TotalCount != nil { - objectMap["TotalCount"] = dahe.TotalCount - } - if dahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dahe.UnhealthyEvaluations - } - if dahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dahe.AggregatedHealthState - } - if dahe.Description != nil { - objectMap["Description"] = dahe.Description - } - if dahe.Kind != "" { - objectMap["Kind"] = dahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedApplicationsHealthEvaluation. -func (dahe DeployedApplicationsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedCodePackageInfo information about code package deployed on a Service Fabric node. -type DeployedCodePackageInfo struct { - // Name - The name of the code package. - Name *string `json:"Name,omitempty"` - // Version - The version of the code package specified in service manifest. - Version *string `json:"Version,omitempty"` - // ServiceManifestName - The name of service manifest that specified this code package. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostType - Specifies the type of host for main entry point of a code package as specified in service manifest. Possible values include: 'HostTypeInvalid', 'HostTypeExeHost', 'HostTypeContainerHost' - HostType HostType `json:"HostType,omitempty"` - // HostIsolationMode - Specifies the isolation mode of main entry point of a code package when it's host type is ContainerHost. This is specified as part of container host policies in application manifest while importing service manifest. Possible values include: 'HostIsolationModeNone', 'HostIsolationModeProcess', 'HostIsolationModeHyperV' - HostIsolationMode HostIsolationMode `json:"HostIsolationMode,omitempty"` - // Status - Specifies the status of a deployed application or service package on a Service Fabric node. - // . Possible values include: 'DeploymentStatusInvalid', 'DeploymentStatusDownloading', 'DeploymentStatusActivating', 'DeploymentStatusActive', 'DeploymentStatusUpgrading', 'DeploymentStatusDeactivating' - Status DeploymentStatus `json:"Status,omitempty"` - // RunFrequencyInterval - The interval at which code package is run. This is used for periodic code package. - RunFrequencyInterval *string `json:"RunFrequencyInterval,omitempty"` - // SetupEntryPoint - Information about setup or main entry point of a code package deployed on a Service Fabric node. - SetupEntryPoint *CodePackageEntryPoint `json:"SetupEntryPoint,omitempty"` - // MainEntryPoint - Information about setup or main entry point of a code package deployed on a Service Fabric node. - MainEntryPoint *CodePackageEntryPoint `json:"MainEntryPoint,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealth information about the health of a service package for a specific application -// deployed on a Service Fabric node. -type DeployedServicePackageHealth struct { - autorest.Response `json:"-"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceManifestName - Name of the service manifest. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // NodeName - Name of the node where this service package is deployed. - NodeName *string `json:"NodeName,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthEvaluation represents health evaluation for a deployed service package, containing -// information about the data and the algorithm used by health store to evaluate health. The evaluation is returned -// only when the aggregated health state is either Error or Warning. -type DeployedServicePackageHealthEvaluation struct { - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceManifestName - The name of the service manifest. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state. The type of the unhealthy evaluations can be EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackage - objectMap := make(map[string]interface{}) - if dsphe.NodeName != nil { - objectMap["NodeName"] = dsphe.NodeName - } - if dsphe.ApplicationName != nil { - objectMap["ApplicationName"] = dsphe.ApplicationName - } - if dsphe.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dsphe.ServiceManifestName - } - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackageHealthEvaluation. -func (dsphe DeployedServicePackageHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthState represents the health state of a deployed service package, containing the -// entity identifier and the aggregated health state. -type DeployedServicePackageHealthState struct { - // NodeName - Name of the node on which the service package is deployed. - NodeName *string `json:"NodeName,omitempty"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceManifestName - Name of the manifest describing the service package. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateChunk represents the health state chunk of a deployed service package, which -// contains the service manifest name and the service package aggregated health state. -type DeployedServicePackageHealthStateChunk struct { - // ServiceManifestName - The name of the service manifest. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateChunkList the list of deployed service package health state chunks that respect -// the input filters in the chunk query. Returned by get cluster health state chunks query. -type DeployedServicePackageHealthStateChunkList struct { - // Items - The list of deployed service package health state chunks that respect the input filters in the chunk query. - Items *[]DeployedServicePackageHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageHealthStateFilter defines matching criteria to determine whether a deployed service -// package should be included as a child of a deployed application in the cluster health chunk. -// The deployed service packages are only returned if the parent entities match a filter specified in the cluster -// health chunk query description. The parent deployed application and its parent application must be included in -// the cluster health chunk. -// One filter can match zero, one or multiple deployed service packages, depending on its properties. -type DeployedServicePackageHealthStateFilter struct { - // ServiceManifestNameFilter - The name of the service manifest which identifies the deployed service packages that matches the filter. - // If specified, the filter is applied only to the specified deployed service packages, if any. - // If no deployed service packages with specified manifest name exist, nothing is returned in the cluster health chunk based on this filter. - // If any deployed service package exists, they are included in the cluster health chunk if it respects the other filter properties. - // If not specified, all deployed service packages that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ServiceManifestNameFilter *string `json:"ServiceManifestNameFilter,omitempty"` - // ServicePackageActivationIDFilter - The activation ID of a deployed service package that matches the filter. - // If not specified, the filter applies to all deployed service packages that match the other parameters. - // If specified, the filter matches only the deployed service package with the specified activation ID. - ServicePackageActivationIDFilter *string `json:"ServicePackageActivationIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the deployed service packages. It allows selecting deployed service packages if they match the desired health states. - // The possible values are integer value of one of the following health states. Only deployed service packages that match the filter are returned. All deployed service packages are used to evaluate the parent deployed application aggregated health state. - // If not specified, default value is None, unless the deployed service package id is specified. If the filter has default value and deployed service package id is specified, the matching deployed service package is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches deployed service packages with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackageInfo information about service package deployed on a Service Fabric node. -type DeployedServicePackageInfo struct { - // Name - The name of the service package as specified in the service manifest. - Name *string `json:"Name,omitempty"` - // Version - The version of the service package specified in service manifest. - Version *string `json:"Version,omitempty"` - // Status - Specifies the status of a deployed application or service package on a Service Fabric node. - // . Possible values include: 'DeploymentStatusInvalid', 'DeploymentStatusDownloading', 'DeploymentStatusActivating', 'DeploymentStatusActive', 'DeploymentStatusUpgrading', 'DeploymentStatusDeactivating' - Status DeploymentStatus `json:"Status,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServicePackagesHealthEvaluation represents health evaluation for deployed service packages, containing -// health evaluations for each unhealthy deployed service package that impacted current aggregated health state. -// Can be returned when evaluating deployed application health and the aggregated health state is either Error or -// Warning. -type DeployedServicePackagesHealthEvaluation struct { - // TotalCount - Total number of deployed service packages of the deployed application in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy DeployedServicePackageHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) MarshalJSON() ([]byte, error) { - dsphe.Kind = KindDeployedServicePackages - objectMap := make(map[string]interface{}) - if dsphe.TotalCount != nil { - objectMap["TotalCount"] = dsphe.TotalCount - } - if dsphe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = dsphe.UnhealthyEvaluations - } - if dsphe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = dsphe.AggregatedHealthState - } - if dsphe.Description != nil { - objectMap["Description"] = dsphe.Description - } - if dsphe.Kind != "" { - objectMap["Kind"] = dsphe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for DeployedServicePackagesHealthEvaluation. -func (dsphe DeployedServicePackagesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &dsphe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicDeployedServiceReplicaDetailInfo information about a Service Fabric service replica deployed on a node. -type BasicDeployedServiceReplicaDetailInfo interface { - AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) - AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) - AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaDetailInfo information about a Service Fabric service replica deployed on a node. -type DeployedServiceReplicaDetailInfo struct { - autorest.Response `json:"-"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - // PartitionID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Specifies the current active life-cycle operation on a stateful service replica or stateless service instance. Possible values include: 'ServiceOperationNameUnknown', 'ServiceOperationNameNone', 'ServiceOperationNameOpen', 'ServiceOperationNameChangeRole', 'ServiceOperationNameClose', 'ServiceOperationNameAbort' - CurrentServiceOperation ServiceOperationName `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - // ReportedLoad - List of load reported by replica. - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindStateful1', 'ServiceKindStateless1' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicDeployedServiceReplicaDetailInfo(body []byte) (BasicDeployedServiceReplicaDetailInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindStateful1): - var dssrdi DeployedStatefulServiceReplicaDetailInfo - err := json.Unmarshal(body, &dssrdi) - return dssrdi, err - case string(ServiceKindStateless1): - var dssidi DeployedStatelessServiceInstanceDetailInfo - err := json.Unmarshal(body, &dssidi) - return dssidi, err - default: - var dsrdi DeployedServiceReplicaDetailInfo - err := json.Unmarshal(body, &dsrdi) - return dsrdi, err - } -} -func unmarshalBasicDeployedServiceReplicaDetailInfoArray(body []byte) ([]BasicDeployedServiceReplicaDetailInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsrdiArray := make([]BasicDeployedServiceReplicaDetailInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsrdi, err := unmarshalBasicDeployedServiceReplicaDetailInfo(*rawMessage) - if err != nil { - return nil, err - } - dsrdiArray[index] = dsrdi - } - return dsrdiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) MarshalJSON() ([]byte, error) { - dsrdi.ServiceKind = ServiceKindDeployedServiceReplicaDetailInfo - objectMap := make(map[string]interface{}) - if dsrdi.ServiceName != nil { - objectMap["ServiceName"] = dsrdi.ServiceName - } - if dsrdi.PartitionID != nil { - objectMap["PartitionId"] = dsrdi.PartitionID - } - if dsrdi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dsrdi.CurrentServiceOperation - } - if dsrdi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dsrdi.CurrentServiceOperationStartTimeUtc - } - if dsrdi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dsrdi.ReportedLoad - } - if dsrdi.ServiceKind != "" { - objectMap["ServiceKind"] = dsrdi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return &dsrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedServiceReplicaDetailInfo. -func (dsrdi DeployedServiceReplicaDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dsrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaDetailInfoModel ... -type DeployedServiceReplicaDetailInfoModel struct { - autorest.Response `json:"-"` - Value BasicDeployedServiceReplicaDetailInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for DeployedServiceReplicaDetailInfoModel struct. -func (dsrdim *DeployedServiceReplicaDetailInfoModel) UnmarshalJSON(body []byte) error { - dsrdi, err := unmarshalBasicDeployedServiceReplicaDetailInfo(body) - if err != nil { - return err - } - dsrdim.Value = dsrdi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicDeployedServiceReplicaInfo information about a Service Fabric service replica deployed on a node. -type BasicDeployedServiceReplicaInfo interface { - AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) - AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) - AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceReplicaInfo information about a Service Fabric service replica deployed on a node. -type DeployedServiceReplicaInfo struct { - // ServiceName - The full name of the service with 'fabric:' URI scheme. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that hosts this replica. - CodePackageName *string `json:"CodePackageName,omitempty"` - // PartitionID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaStatus - The status of a replica of a service. Possible values are following. - // -Invalid - Indicates the replica status is invalid. All Service Fabric enumerations have the invalid type. The value is zero. - // -InBuild - The replica is being built. This means that a primary replica is seeding this replica. The value is 1. - // -Standby - The replica is in standby. The value is 2. - // -Ready - The replica is ready. The value is 3. - // -Down - The replica is down. The value is 4. - // -Dropped - Replica is dropped. This means that the replica has been removed from the replica set. If it is persisted, its state has been deleted. The value is 5. - // . Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostProcessID - Host process id of the process that is hosting the replica. This will be zero if the replica is down. In hyper-v containers this host process id will be from different kernel. - HostProcessID *string `json:"HostProcessId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo', 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicDeployedServiceReplicaInfo(body []byte) (BasicDeployedServiceReplicaInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful): - var dssri DeployedStatefulServiceReplicaInfo - err := json.Unmarshal(body, &dssri) - return dssri, err - case string(ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless): - var dssii DeployedStatelessServiceInstanceInfo - err := json.Unmarshal(body, &dssii) - return dssii, err - default: - var dsri DeployedServiceReplicaInfo - err := json.Unmarshal(body, &dsri) - return dsri, err - } -} -func unmarshalBasicDeployedServiceReplicaInfoArray(body []byte) ([]BasicDeployedServiceReplicaInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsriArray := make([]BasicDeployedServiceReplicaInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsri, err := unmarshalBasicDeployedServiceReplicaInfo(*rawMessage) - if err != nil { - return nil, err - } - dsriArray[index] = dsri - } - return dsriArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) MarshalJSON() ([]byte, error) { - dsri.ServiceKind = ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo - objectMap := make(map[string]interface{}) - if dsri.ServiceName != nil { - objectMap["ServiceName"] = dsri.ServiceName - } - if dsri.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dsri.ServiceTypeName - } - if dsri.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dsri.ServiceManifestName - } - if dsri.CodePackageName != nil { - objectMap["CodePackageName"] = dsri.CodePackageName - } - if dsri.PartitionID != nil { - objectMap["PartitionId"] = dsri.PartitionID - } - if dsri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dsri.ReplicaStatus - } - if dsri.Address != nil { - objectMap["Address"] = dsri.Address - } - if dsri.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dsri.ServicePackageActivationID - } - if dsri.HostProcessID != nil { - objectMap["HostProcessId"] = dsri.HostProcessID - } - if dsri.ServiceKind != "" { - objectMap["ServiceKind"] = dsri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return &dsri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedServiceReplicaInfo. -func (dsri DeployedServiceReplicaInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dsri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedServiceTypeInfo information about service type deployed on a node, information such as the status of the -// service type registration on a node. -type DeployedServiceTypeInfo struct { - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that registered the service type. - CodePackageName *string `json:"CodePackageName,omitempty"` - // Status - The status of the service type registration on the node. Possible values include: 'ServiceTypeRegistrationStatusInvalid', 'ServiceTypeRegistrationStatusDisabled', 'ServiceTypeRegistrationStatusEnabled', 'ServiceTypeRegistrationStatusRegistered' - Status ServiceTypeRegistrationStatus `json:"Status,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatefulServiceReplicaDetailInfo information about a stateful replica running in a code package. Please -// note DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, PartitionId -// and replicaId. -type DeployedStatefulServiceReplicaDetailInfo struct { - // ReplicaID - Id of a stateful service replica. ReplicaId is used by Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id. - ReplicaID *string `json:"ReplicaId,omitempty"` - // CurrentReplicatorOperation - Specifies the operation currently being executed by the Replicator. Possible values include: 'ReplicatorOperationNameInvalid', 'ReplicatorOperationNameNone', 'ReplicatorOperationNameOpen', 'ReplicatorOperationNameChangeRole', 'ReplicatorOperationNameUpdateEpoch', 'ReplicatorOperationNameClose', 'ReplicatorOperationNameAbort', 'ReplicatorOperationNameOnDataLoss', 'ReplicatorOperationNameWaitForCatchup', 'ReplicatorOperationNameBuild' - CurrentReplicatorOperation ReplicatorOperationName `json:"CurrentReplicatorOperation,omitempty"` - // ReadStatus - Specifies the access status of the partition. Possible values include: 'PartitionAccessStatusInvalid', 'PartitionAccessStatusGranted', 'PartitionAccessStatusReconfigurationPending', 'PartitionAccessStatusNotPrimary', 'PartitionAccessStatusNoWriteQuorum' - ReadStatus PartitionAccessStatus `json:"ReadStatus,omitempty"` - // WriteStatus - Specifies the access status of the partition. Possible values include: 'PartitionAccessStatusInvalid', 'PartitionAccessStatusGranted', 'PartitionAccessStatusReconfigurationPending', 'PartitionAccessStatusNotPrimary', 'PartitionAccessStatusNoWriteQuorum' - WriteStatus PartitionAccessStatus `json:"WriteStatus,omitempty"` - // ReplicatorStatus - Represents a base class for primary or secondary replicator status. - // Contains information about the service fabric replicator like the replication/copy queue utilization, last acknowledgement received timestamp, etc. - ReplicatorStatus BasicReplicatorStatus `json:"ReplicatorStatus,omitempty"` - // ReplicaStatus - Key value store related information for the replica. - ReplicaStatus *KeyValueStoreReplicaStatus `json:"ReplicaStatus,omitempty"` - // DeployedServiceReplicaQueryResult - Information about a stateful service replica deployed on a node. - DeployedServiceReplicaQueryResult *DeployedStatefulServiceReplicaInfo `json:"DeployedServiceReplicaQueryResult,omitempty"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - // PartitionID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Specifies the current active life-cycle operation on a stateful service replica or stateless service instance. Possible values include: 'ServiceOperationNameUnknown', 'ServiceOperationNameNone', 'ServiceOperationNameOpen', 'ServiceOperationNameChangeRole', 'ServiceOperationNameClose', 'ServiceOperationNameAbort' - CurrentServiceOperation ServiceOperationName `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - // ReportedLoad - List of load reported by replica. - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindStateful1', 'ServiceKindStateless1' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) MarshalJSON() ([]byte, error) { - dssrdi.ServiceKind = ServiceKindStateful1 - objectMap := make(map[string]interface{}) - if dssrdi.ReplicaID != nil { - objectMap["ReplicaId"] = dssrdi.ReplicaID - } - if dssrdi.CurrentReplicatorOperation != "" { - objectMap["CurrentReplicatorOperation"] = dssrdi.CurrentReplicatorOperation - } - if dssrdi.ReadStatus != "" { - objectMap["ReadStatus"] = dssrdi.ReadStatus - } - if dssrdi.WriteStatus != "" { - objectMap["WriteStatus"] = dssrdi.WriteStatus - } - objectMap["ReplicatorStatus"] = dssrdi.ReplicatorStatus - if dssrdi.ReplicaStatus != nil { - objectMap["ReplicaStatus"] = dssrdi.ReplicaStatus - } - if dssrdi.DeployedServiceReplicaQueryResult != nil { - objectMap["DeployedServiceReplicaQueryResult"] = dssrdi.DeployedServiceReplicaQueryResult - } - if dssrdi.ServiceName != nil { - objectMap["ServiceName"] = dssrdi.ServiceName - } - if dssrdi.PartitionID != nil { - objectMap["PartitionId"] = dssrdi.PartitionID - } - if dssrdi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dssrdi.CurrentServiceOperation - } - if dssrdi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dssrdi.CurrentServiceOperationStartTimeUtc - } - if dssrdi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dssrdi.ReportedLoad - } - if dssrdi.ServiceKind != "" { - objectMap["ServiceKind"] = dssrdi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return &dssrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatefulServiceReplicaDetailInfo. -func (dssrdi DeployedStatefulServiceReplicaDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dssrdi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for DeployedStatefulServiceReplicaDetailInfo struct. -func (dssrdi *DeployedStatefulServiceReplicaDetailInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ReplicaId": - if v != nil { - var replicaID string - err = json.Unmarshal(*v, &replicaID) - if err != nil { - return err - } - dssrdi.ReplicaID = &replicaID - } - case "CurrentReplicatorOperation": - if v != nil { - var currentReplicatorOperation ReplicatorOperationName - err = json.Unmarshal(*v, ¤tReplicatorOperation) - if err != nil { - return err - } - dssrdi.CurrentReplicatorOperation = currentReplicatorOperation - } - case "ReadStatus": - if v != nil { - var readStatus PartitionAccessStatus - err = json.Unmarshal(*v, &readStatus) - if err != nil { - return err - } - dssrdi.ReadStatus = readStatus - } - case "WriteStatus": - if v != nil { - var writeStatus PartitionAccessStatus - err = json.Unmarshal(*v, &writeStatus) - if err != nil { - return err - } - dssrdi.WriteStatus = writeStatus - } - case "ReplicatorStatus": - if v != nil { - replicatorStatus, err := unmarshalBasicReplicatorStatus(*v) - if err != nil { - return err - } - dssrdi.ReplicatorStatus = replicatorStatus - } - case "ReplicaStatus": - if v != nil { - var replicaStatus KeyValueStoreReplicaStatus - err = json.Unmarshal(*v, &replicaStatus) - if err != nil { - return err - } - dssrdi.ReplicaStatus = &replicaStatus - } - case "DeployedServiceReplicaQueryResult": - if v != nil { - var deployedServiceReplicaQueryResult DeployedStatefulServiceReplicaInfo - err = json.Unmarshal(*v, &deployedServiceReplicaQueryResult) - if err != nil { - return err - } - dssrdi.DeployedServiceReplicaQueryResult = &deployedServiceReplicaQueryResult - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - dssrdi.ServiceName = &serviceName - } - case "PartitionId": - if v != nil { - var partitionID uuid.UUID - err = json.Unmarshal(*v, &partitionID) - if err != nil { - return err - } - dssrdi.PartitionID = &partitionID - } - case "CurrentServiceOperation": - if v != nil { - var currentServiceOperation ServiceOperationName - err = json.Unmarshal(*v, ¤tServiceOperation) - if err != nil { - return err - } - dssrdi.CurrentServiceOperation = currentServiceOperation - } - case "CurrentServiceOperationStartTimeUtc": - if v != nil { - var currentServiceOperationStartTimeUtc date.Time - err = json.Unmarshal(*v, ¤tServiceOperationStartTimeUtc) - if err != nil { - return err - } - dssrdi.CurrentServiceOperationStartTimeUtc = ¤tServiceOperationStartTimeUtc - } - case "ReportedLoad": - if v != nil { - var reportedLoad []LoadMetricReportInfo - err = json.Unmarshal(*v, &reportedLoad) - if err != nil { - return err - } - dssrdi.ReportedLoad = &reportedLoad - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicDeployedServiceReplicaDetailInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - dssrdi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatefulServiceReplicaInfo information about a stateful service replica deployed on a node. -type DeployedStatefulServiceReplicaInfo struct { - // ReplicaID - Id of a stateful service replica. ReplicaId is used by Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id. - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaRole - The role of a replica of a stateful service. Possible values include: 'ReplicaRoleUnknown', 'ReplicaRoleNone', 'ReplicaRolePrimary', 'ReplicaRoleIdleSecondary', 'ReplicaRoleActiveSecondary' - ReplicaRole ReplicaRole `json:"ReplicaRole,omitempty"` - // ReconfigurationInformation - Information about current reconfiguration like phase, type, previous configuration role of replica and reconfiguration start date time. - ReconfigurationInformation *ReconfigurationInformation `json:"ReconfigurationInformation,omitempty"` - // ServiceName - The full name of the service with 'fabric:' URI scheme. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that hosts this replica. - CodePackageName *string `json:"CodePackageName,omitempty"` - // PartitionID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaStatus - The status of a replica of a service. Possible values are following. - // -Invalid - Indicates the replica status is invalid. All Service Fabric enumerations have the invalid type. The value is zero. - // -InBuild - The replica is being built. This means that a primary replica is seeding this replica. The value is 1. - // -Standby - The replica is in standby. The value is 2. - // -Ready - The replica is ready. The value is 3. - // -Down - The replica is down. The value is 4. - // -Dropped - Replica is dropped. This means that the replica has been removed from the replica set. If it is persisted, its state has been deleted. The value is 5. - // . Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostProcessID - Host process id of the process that is hosting the replica. This will be zero if the replica is down. In hyper-v containers this host process id will be from different kernel. - HostProcessID *string `json:"HostProcessId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo', 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) MarshalJSON() ([]byte, error) { - dssri.ServiceKind = ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if dssri.ReplicaID != nil { - objectMap["ReplicaId"] = dssri.ReplicaID - } - if dssri.ReplicaRole != "" { - objectMap["ReplicaRole"] = dssri.ReplicaRole - } - if dssri.ReconfigurationInformation != nil { - objectMap["ReconfigurationInformation"] = dssri.ReconfigurationInformation - } - if dssri.ServiceName != nil { - objectMap["ServiceName"] = dssri.ServiceName - } - if dssri.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dssri.ServiceTypeName - } - if dssri.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dssri.ServiceManifestName - } - if dssri.CodePackageName != nil { - objectMap["CodePackageName"] = dssri.CodePackageName - } - if dssri.PartitionID != nil { - objectMap["PartitionId"] = dssri.PartitionID - } - if dssri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dssri.ReplicaStatus - } - if dssri.Address != nil { - objectMap["Address"] = dssri.Address - } - if dssri.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dssri.ServicePackageActivationID - } - if dssri.HostProcessID != nil { - objectMap["HostProcessId"] = dssri.HostProcessID - } - if dssri.ServiceKind != "" { - objectMap["ServiceKind"] = dssri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return &dssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatefulServiceReplicaInfo. -func (dssri DeployedStatefulServiceReplicaInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatelessServiceInstanceDetailInfo information about a stateless instance running in a code package. -// Please note that DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, -// PartitionId and InstanceId. -type DeployedStatelessServiceInstanceDetailInfo struct { - // InstanceID - Id of a stateless service instance. InstanceId is used by Service Fabric to uniquely identify an instance of a partition of a stateless service. It is unique within a partition and does not change for the lifetime of the instance. If the instance has failed over on the same or different node, it will get a different value for the InstanceId. - InstanceID *string `json:"InstanceId,omitempty"` - // DeployedServiceReplicaQueryResult - Information about a stateless service instance deployed on a node. - DeployedServiceReplicaQueryResult *DeployedStatelessServiceInstanceInfo `json:"DeployedServiceReplicaQueryResult,omitempty"` - // ServiceName - Full hierarchical name of the service in URI format starting with `fabric:`. - ServiceName *string `json:"ServiceName,omitempty"` - // PartitionID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // CurrentServiceOperation - Specifies the current active life-cycle operation on a stateful service replica or stateless service instance. Possible values include: 'ServiceOperationNameUnknown', 'ServiceOperationNameNone', 'ServiceOperationNameOpen', 'ServiceOperationNameChangeRole', 'ServiceOperationNameClose', 'ServiceOperationNameAbort' - CurrentServiceOperation ServiceOperationName `json:"CurrentServiceOperation,omitempty"` - // CurrentServiceOperationStartTimeUtc - The start time of the current service operation in UTC format. - CurrentServiceOperationStartTimeUtc *date.Time `json:"CurrentServiceOperationStartTimeUtc,omitempty"` - // ReportedLoad - List of load reported by replica. - ReportedLoad *[]LoadMetricReportInfo `json:"ReportedLoad,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindDeployedServiceReplicaDetailInfo', 'ServiceKindStateful1', 'ServiceKindStateless1' - ServiceKind ServiceKindBasicDeployedServiceReplicaDetailInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) MarshalJSON() ([]byte, error) { - dssidi.ServiceKind = ServiceKindStateless1 - objectMap := make(map[string]interface{}) - if dssidi.InstanceID != nil { - objectMap["InstanceId"] = dssidi.InstanceID - } - if dssidi.DeployedServiceReplicaQueryResult != nil { - objectMap["DeployedServiceReplicaQueryResult"] = dssidi.DeployedServiceReplicaQueryResult - } - if dssidi.ServiceName != nil { - objectMap["ServiceName"] = dssidi.ServiceName - } - if dssidi.PartitionID != nil { - objectMap["PartitionId"] = dssidi.PartitionID - } - if dssidi.CurrentServiceOperation != "" { - objectMap["CurrentServiceOperation"] = dssidi.CurrentServiceOperation - } - if dssidi.CurrentServiceOperationStartTimeUtc != nil { - objectMap["CurrentServiceOperationStartTimeUtc"] = dssidi.CurrentServiceOperationStartTimeUtc - } - if dssidi.ReportedLoad != nil { - objectMap["ReportedLoad"] = dssidi.ReportedLoad - } - if dssidi.ServiceKind != "" { - objectMap["ServiceKind"] = dssidi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedStatefulServiceReplicaDetailInfo() (*DeployedStatefulServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedStatelessServiceInstanceDetailInfo() (*DeployedStatelessServiceInstanceDetailInfo, bool) { - return &dssidi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsDeployedServiceReplicaDetailInfo() (*DeployedServiceReplicaDetailInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaDetailInfo is the BasicDeployedServiceReplicaDetailInfo implementation for DeployedStatelessServiceInstanceDetailInfo. -func (dssidi DeployedStatelessServiceInstanceDetailInfo) AsBasicDeployedServiceReplicaDetailInfo() (BasicDeployedServiceReplicaDetailInfo, bool) { - return &dssidi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployedStatelessServiceInstanceInfo information about a stateless service instance deployed on a node. -type DeployedStatelessServiceInstanceInfo struct { - // InstanceID - Id of a stateless service instance. InstanceId is used by Service Fabric to uniquely identify an instance of a partition of a stateless service. It is unique within a partition and does not change for the lifetime of the instance. If the instance has failed over on the same or different node, it will get a different value for the InstanceId. - InstanceID *string `json:"InstanceId,omitempty"` - // ServiceName - The full name of the service with 'fabric:' URI scheme. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // CodePackageName - The name of the code package that hosts this replica. - CodePackageName *string `json:"CodePackageName,omitempty"` - // PartitionID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaStatus - The status of a replica of a service. Possible values are following. - // -Invalid - Indicates the replica status is invalid. All Service Fabric enumerations have the invalid type. The value is zero. - // -InBuild - The replica is being built. This means that a primary replica is seeding this replica. The value is 1. - // -Standby - The replica is in standby. The value is 2. - // -Ready - The replica is ready. The value is 3. - // -Down - The replica is down. The value is 4. - // -Dropped - Replica is dropped. This means that the replica has been removed from the replica set. If it is persisted, its state has been deleted. The value is 5. - // . Possible values include: 'ReplicaStatusInvalid', 'ReplicaStatusInBuild', 'ReplicaStatusStandby', 'ReplicaStatusReady', 'ReplicaStatusDown', 'ReplicaStatusDropped' - ReplicaStatus ReplicaStatus `json:"ReplicaStatus,omitempty"` - // Address - The last address returned by the replica in Open or ChangeRole. - Address *string `json:"Address,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // HostProcessID - Host process id of the process that is hosting the replica. This will be zero if the replica is down. In hyper-v containers this host process id will be from different kernel. - HostProcessID *string `json:"HostProcessId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo', 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful', 'ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicDeployedServiceReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) MarshalJSON() ([]byte, error) { - dssii.ServiceKind = ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if dssii.InstanceID != nil { - objectMap["InstanceId"] = dssii.InstanceID - } - if dssii.ServiceName != nil { - objectMap["ServiceName"] = dssii.ServiceName - } - if dssii.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = dssii.ServiceTypeName - } - if dssii.ServiceManifestName != nil { - objectMap["ServiceManifestName"] = dssii.ServiceManifestName - } - if dssii.CodePackageName != nil { - objectMap["CodePackageName"] = dssii.CodePackageName - } - if dssii.PartitionID != nil { - objectMap["PartitionId"] = dssii.PartitionID - } - if dssii.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = dssii.ReplicaStatus - } - if dssii.Address != nil { - objectMap["Address"] = dssii.Address - } - if dssii.ServicePackageActivationID != nil { - objectMap["ServicePackageActivationId"] = dssii.ServicePackageActivationID - } - if dssii.HostProcessID != nil { - objectMap["HostProcessId"] = dssii.HostProcessID - } - if dssii.ServiceKind != "" { - objectMap["ServiceKind"] = dssii.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatefulServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedStatefulServiceReplicaInfo() (*DeployedStatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedStatelessServiceInstanceInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedStatelessServiceInstanceInfo() (*DeployedStatelessServiceInstanceInfo, bool) { - return &dssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsDeployedServiceReplicaInfo() (*DeployedServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicDeployedServiceReplicaInfo is the BasicDeployedServiceReplicaInfo implementation for DeployedStatelessServiceInstanceInfo. -func (dssii DeployedStatelessServiceInstanceInfo) AsBasicDeployedServiceReplicaInfo() (BasicDeployedServiceReplicaInfo, bool) { - return &dssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DeployServicePackageToNodeDescription defines description for downloading packages associated with a service -// manifest to image cache on a Service Fabric node. -type DeployServicePackageToNodeDescription struct { - // ServiceManifestName - The name of service manifest whose packages need to be downloaded. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ApplicationTypeName - The application type name as defined in the application manifest. - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - // ApplicationTypeVersion - The version of the application type as defined in the application manifest. - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // PackageSharingPolicy - List of package sharing policy information. - PackageSharingPolicy *[]PackageSharingPolicyInfo `json:"PackageSharingPolicy,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// DoublePropertyValue describes a Service Fabric property value of type Double. -type DoublePropertyValue struct { - // Data - The data of the property value. - Data *float64 `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for DoublePropertyValue. -func (dpv DoublePropertyValue) MarshalJSON() ([]byte, error) { - dpv.Kind = KindDouble - objectMap := make(map[string]interface{}) - if dpv.Data != nil { - objectMap["Data"] = dpv.Data - } - if dpv.Kind != "" { - objectMap["Kind"] = dpv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return &dpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for DoublePropertyValue. -func (dpv DoublePropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &dpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnsureAvailabilitySafetyCheck safety check that waits to ensure the availability of the partition. It waits -// until there are replicas available such that bringing down this replica will not cause availability loss for the -// partition. -type EnsureAvailabilitySafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) MarshalJSON() ([]byte, error) { - easc.Kind = KindEnsureAvailability - objectMap := make(map[string]interface{}) - if easc.PartitionID != nil { - objectMap["PartitionId"] = easc.PartitionID - } - if easc.Kind != "" { - objectMap["Kind"] = easc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for EnsureAvailabilitySafetyCheck. -func (easc EnsureAvailabilitySafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &easc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EnsurePartitionQurumSafetyCheck safety check that ensures that a quorum of replicas are not lost for a -// partition. -type EnsurePartitionQurumSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) MarshalJSON() ([]byte, error) { - epqsc.Kind = KindEnsurePartitionQuorum - objectMap := make(map[string]interface{}) - if epqsc.PartitionID != nil { - objectMap["PartitionId"] = epqsc.PartitionID - } - if epqsc.Kind != "" { - objectMap["Kind"] = epqsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for EnsurePartitionQurumSafetyCheck. -func (epqsc EnsurePartitionQurumSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &epqsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealth health information common to all entities in the cluster. It contains the aggregated health state, -// health events and unhealthy evaluation. -type EntityHealth struct { - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthState a base type for the health state of various entities in the cluster. It contains the -// aggregated health state. -type EntityHealthState struct { - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthStateChunk a base type for the health state chunk of various entities in the cluster. It contains -// the aggregated health state. -type EntityHealthStateChunk struct { - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityHealthStateChunkList a base type for the list of health state chunks found in the cluster. It contains the -// total number of health states that match the input filters. -type EntityHealthStateChunkList struct { - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EntityKindHealthStateCount represents health state count for entities of the specified entity kind. -type EntityKindHealthStateCount struct { - // EntityKind - The entity kind for which health states are evaluated. Possible values include: 'EntityKindInvalid', 'EntityKindNode', 'EntityKindPartition', 'EntityKindService', 'EntityKindApplication', 'EntityKindReplica', 'EntityKindDeployedApplication', 'EntityKindDeployedServicePackage', 'EntityKindCluster' - EntityKind EntityKind `json:"EntityKind,omitempty"` - // HealthStateCount - The health state count for the entities of the specified kind. - HealthStateCount *HealthStateCount `json:"HealthStateCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Epoch an Epoch is a configuration number for the partition as a whole. When the configuration of the replica set -// changes, for example when the Primary replica changes, the operations that are replicated from the new Primary -// replica are said to be a new Epoch from the ones which were sent by the old Primary replica. -type Epoch struct { - // ConfigurationVersion - The current configuration number of this Epoch. The configuration number is an increasing value that is updated whenever the configuration of this replica set changes. - ConfigurationVersion *string `json:"ConfigurationVersion,omitempty"` - // DataLossVersion - The current dataloss number of this Epoch. The data loss number property is an increasing value which is updated whenever data loss is suspected, as when loss of a quorum of replicas in the replica set that includes the Primary replica. - DataLossVersion *string `json:"DataLossVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// EventHealthEvaluation represents health evaluation of a HealthEvent that was reported on the entity. -// The health evaluation is returned when evaluating health of an entity results in Error or Warning. -type EventHealthEvaluation struct { - // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. The field is specified in the health policy used to evaluate the entity. - ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` - // UnhealthyEvent - Represents health information reported on a health entity, such as cluster, application or node, with additional metadata added by the Health Manager. - UnhealthyEvent *HealthEvent `json:"UnhealthyEvent,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for EventHealthEvaluation. -func (ehe EventHealthEvaluation) MarshalJSON() ([]byte, error) { - ehe.Kind = KindEvent - objectMap := make(map[string]interface{}) - if ehe.ConsiderWarningAsError != nil { - objectMap["ConsiderWarningAsError"] = ehe.ConsiderWarningAsError - } - if ehe.UnhealthyEvent != nil { - objectMap["UnhealthyEvent"] = ehe.UnhealthyEvent - } - if ehe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ehe.AggregatedHealthState - } - if ehe.Description != nil { - objectMap["Description"] = ehe.Description - } - if ehe.Kind != "" { - objectMap["Kind"] = ehe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for EventHealthEvaluation. -func (ehe EventHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &ehe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ExecutingFaultsChaosEvent describes a Chaos event that gets generated when Chaos has decided on the faults for -// an iteration. This Chaos event contains the details of the faults as a list of strings. -type ExecutingFaultsChaosEvent struct { - // Faults - List of string description of the faults that Chaos decided to execute in an iteration. - Faults *[]string `json:"Faults,omitempty"` - // TimeStampUtc - The UTC timestamp when this Chaos event was generated. - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) MarshalJSON() ([]byte, error) { - efce.Kind = KindExecutingFaults - objectMap := make(map[string]interface{}) - if efce.Faults != nil { - objectMap["Faults"] = efce.Faults - } - if efce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = efce.TimeStampUtc - } - if efce.Kind != "" { - objectMap["Kind"] = efce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return &efce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ExecutingFaultsChaosEvent. -func (efce ExecutingFaultsChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &efce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ExternalStoreProvisionApplicationTypeDescription describes the operation to register or provision an application -// type using an application package from an external store instead of a package uploaded to the Service Fabric -// image store. -type ExternalStoreProvisionApplicationTypeDescription struct { - // ApplicationPackageDownloadURI - The path to the '.sfpkg' application package from where the application package can be downloaded using HTTP or HTTPS protocols. The application package can be stored in an external store that provides GET operation to download the file. Supported protocols are HTTP and HTTPS, and the path must allow READ access. - ApplicationPackageDownloadURI *string `json:"ApplicationPackageDownloadUri,omitempty"` - // ApplicationTypeName - The application type name represents the name of the application type found in the application manifest. - ApplicationTypeName *string `json:"ApplicationTypeName,omitempty"` - // ApplicationTypeVersion - The application type version represents the version of the application type found in the application manifest. - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` - // Async - Indicates whether or not provisioning should occur asynchronously. When set to true, the provision operation returns when the request is accepted by the system, and the provision operation continues without any timeout limit. The default value is false. For large application packages, we recommend setting the value to true. - Async *bool `json:"Async,omitempty"` - // Kind - Possible values include: 'KindProvisionApplicationTypeDescriptionBase', 'KindImageStorePath', 'KindExternalStore' - Kind KindBasicProvisionApplicationTypeDescriptionBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ExternalStoreProvisionApplicationTypeDescription. -func (espatd ExternalStoreProvisionApplicationTypeDescription) MarshalJSON() ([]byte, error) { - espatd.Kind = KindExternalStore - objectMap := make(map[string]interface{}) - if espatd.ApplicationPackageDownloadURI != nil { - objectMap["ApplicationPackageDownloadUri"] = espatd.ApplicationPackageDownloadURI - } - if espatd.ApplicationTypeName != nil { - objectMap["ApplicationTypeName"] = espatd.ApplicationTypeName - } - if espatd.ApplicationTypeVersion != nil { - objectMap["ApplicationTypeVersion"] = espatd.ApplicationTypeVersion - } - if espatd.Async != nil { - objectMap["Async"] = espatd.Async - } - if espatd.Kind != "" { - objectMap["Kind"] = espatd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsProvisionApplicationTypeDescription is the BasicProvisionApplicationTypeDescriptionBase implementation for ExternalStoreProvisionApplicationTypeDescription. -func (espatd ExternalStoreProvisionApplicationTypeDescription) AsProvisionApplicationTypeDescription() (*ProvisionApplicationTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExternalStoreProvisionApplicationTypeDescription is the BasicProvisionApplicationTypeDescriptionBase implementation for ExternalStoreProvisionApplicationTypeDescription. -func (espatd ExternalStoreProvisionApplicationTypeDescription) AsExternalStoreProvisionApplicationTypeDescription() (*ExternalStoreProvisionApplicationTypeDescription, bool) { - return &espatd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsProvisionApplicationTypeDescriptionBase is the BasicProvisionApplicationTypeDescriptionBase implementation for ExternalStoreProvisionApplicationTypeDescription. -func (espatd ExternalStoreProvisionApplicationTypeDescription) AsProvisionApplicationTypeDescriptionBase() (*ProvisionApplicationTypeDescriptionBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicProvisionApplicationTypeDescriptionBase is the BasicProvisionApplicationTypeDescriptionBase implementation for ExternalStoreProvisionApplicationTypeDescription. -func (espatd ExternalStoreProvisionApplicationTypeDescription) AsBasicProvisionApplicationTypeDescriptionBase() (BasicProvisionApplicationTypeDescriptionBase, bool) { - return &espatd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricCodeVersionInfo information about a Service Fabric code version. -type FabricCodeVersionInfo struct { - // CodeVersion - The product version of Service Fabric. - CodeVersion *string `json:"CodeVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricConfigVersionInfo information about a Service Fabric config version. -type FabricConfigVersionInfo struct { - // ConfigVersion - The config version of Service Fabric. - ConfigVersion *string `json:"ConfigVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricError the REST API operations for Service Fabric return standard HTTP status codes. This type defines the -// additional information returned from the Service Fabric API operations that are not successful. -type FabricError struct { - // Error - Error object containing error code and error message. - Error *FabricErrorError `json:"Error,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FabricErrorError error object containing error code and error message. -type FabricErrorError struct { - // Code - Defines the fabric error codes that be returned as part of the error object in response to Service Fabric API operations that are not successful. Following are the error code values that can be returned for a specific HTTP status code. - // - Possible values of the error code for HTTP status code 400 (Bad Request) - // - "FABRIC_E_INVALID_PARTITION_KEY" - // - "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" - // - "FABRIC_E_INVALID_ADDRESS" - // - "FABRIC_E_APPLICATION_NOT_UPGRADING" - // - "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" - // - "FABRIC_E_FABRIC_NOT_UPGRADING" - // - "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" - // - "FABRIC_E_INVALID_CONFIGURATION" - // - "FABRIC_E_INVALID_NAME_URI" - // - "FABRIC_E_PATH_TOO_LONG" - // - "FABRIC_E_KEY_TOO_LARGE" - // - "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" - // - "FABRIC_E_INVALID_ATOMIC_GROUP" - // - "FABRIC_E_VALUE_EMPTY" - // - Possible values of the error code for HTTP status code 404 (Not Found) - // - "FABRIC_E_NODE_NOT_FOUND" - // - "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" - // - "FABRIC_E_APPLICATION_NOT_FOUND" - // - "FABRIC_E_SERVICE_TYPE_NOT_FOUND" - // - "FABRIC_E_SERVICE_DOES_NOT_EXIST" - // - "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" - // - "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" - // - "FABRIC_E_PARTITION_NOT_FOUND" - // - "FABRIC_E_REPLICA_DOES_NOT_EXIST" - // - "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" - // - "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" - // - "FABRIC_E_DIRECTORY_NOT_FOUND" - // - "FABRIC_E_FABRIC_VERSION_NOT_FOUND" - // - "FABRIC_E_FILE_NOT_FOUND" - // - "FABRIC_E_NAME_DOES_NOT_EXIST" - // - "FABRIC_E_PROPERTY_DOES_NOT_EXIST" - // - "FABRIC_E_ENUMERATION_COMPLETED" - // - "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" - // - "FABRIC_E_KEY_NOT_FOUND" - // - "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" - // - Possible values of the error code for HTTP status code 409 (Conflict) - // - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - // - "FABRIC_E_APPLICATION_ALREADY_EXISTS" - // - "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" - // - "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" - // - "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" - // - "FABRIC_E_SERVICE_ALREADY_EXISTS" - // - "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" - // - "FABRIC_E_APPLICATION_TYPE_IN_USE" - // - "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" - // - "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" - // - "FABRIC_E_FABRIC_VERSION_IN_USE" - // - "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" - // - "FABRIC_E_NAME_ALREADY_EXISTS" - // - "FABRIC_E_NAME_NOT_EMPTY" - // - "FABRIC_E_PROPERTY_CHECK_FAILED" - // - "FABRIC_E_SERVICE_METADATA_MISMATCH" - // - "FABRIC_E_SERVICE_TYPE_MISMATCH" - // - "FABRIC_E_HEALTH_STALE_REPORT" - // - "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" - // - "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" - // - "FABRIC_E_INSTANCE_ID_MISMATCH" - // - Possible values of the error code for HTTP status code 413 (Request Entity Too Large) - // - "FABRIC_E_VALUE_TOO_LARGE" - // - Possible values of the error code for HTTP status code 500 (Internal Server Error) - // - "FABRIC_E_NODE_IS_UP" - // - Possible values of the error code for HTTP status code 503 (Service Unavailable) - // - "FABRIC_E_NO_WRITE_QUORUM" - // - "FABRIC_E_NOT_PRIMARY" - // - "FABRIC_E_NOT_READY" - // - "FABRIC_E_RECONFIGURATION_PENDING" - // - "FABRIC_E_SERVICE_OFFLINE" - // - "E_ABORT" - // - "FABRIC_E_VALUE_TOO_LARGE" - // - Possible values of the error code for HTTP status code 504 (Gateway Timeout) - // - "FABRIC_E_COMMUNICATION_ERROR" - // - "FABRIC_E_OPERATION_NOT_COMPLETE" - // - "FABRIC_E_TIMEOUT" - // . Possible values include: 'FABRICEINVALIDPARTITIONKEY', 'FABRICEIMAGEBUILDERVALIDATIONERROR', 'FABRICEINVALIDADDRESS', 'FABRICEAPPLICATIONNOTUPGRADING', 'FABRICEAPPLICATIONUPGRADEVALIDATIONERROR', 'FABRICEFABRICNOTUPGRADING', 'FABRICEFABRICUPGRADEVALIDATIONERROR', 'FABRICEINVALIDCONFIGURATION', 'FABRICEINVALIDNAMEURI', 'FABRICEPATHTOOLONG', 'FABRICEKEYTOOLARGE', 'FABRICESERVICEAFFINITYCHAINNOTSUPPORTED', 'FABRICEINVALIDATOMICGROUP', 'FABRICEVALUEEMPTY', 'FABRICENODENOTFOUND', 'FABRICEAPPLICATIONTYPENOTFOUND', 'FABRICEAPPLICATIONNOTFOUND', 'FABRICESERVICETYPENOTFOUND', 'FABRICESERVICEDOESNOTEXIST', 'FABRICESERVICETYPETEMPLATENOTFOUND', 'FABRICECONFIGURATIONSECTIONNOTFOUND', 'FABRICEPARTITIONNOTFOUND', 'FABRICEREPLICADOESNOTEXIST', 'FABRICESERVICEGROUPDOESNOTEXIST', 'FABRICECONFIGURATIONPARAMETERNOTFOUND', 'FABRICEDIRECTORYNOTFOUND', 'FABRICEFABRICVERSIONNOTFOUND', 'FABRICEFILENOTFOUND', 'FABRICENAMEDOESNOTEXIST', 'FABRICEPROPERTYDOESNOTEXIST', 'FABRICEENUMERATIONCOMPLETED', 'FABRICESERVICEMANIFESTNOTFOUND', 'FABRICEKEYNOTFOUND', 'FABRICEHEALTHENTITYNOTFOUND', 'FABRICEAPPLICATIONTYPEALREADYEXISTS', 'FABRICEAPPLICATIONALREADYEXISTS', 'FABRICEAPPLICATIONALREADYINTARGETVERSION', 'FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS', 'FABRICEAPPLICATIONUPGRADEINPROGRESS', 'FABRICESERVICEALREADYEXISTS', 'FABRICESERVICEGROUPALREADYEXISTS', 'FABRICEAPPLICATIONTYPEINUSE', 'FABRICEFABRICALREADYINTARGETVERSION', 'FABRICEFABRICVERSIONALREADYEXISTS', 'FABRICEFABRICVERSIONINUSE', 'FABRICEFABRICUPGRADEINPROGRESS', 'FABRICENAMEALREADYEXISTS', 'FABRICENAMENOTEMPTY', 'FABRICEPROPERTYCHECKFAILED', 'FABRICESERVICEMETADATAMISMATCH', 'FABRICESERVICETYPEMISMATCH', 'FABRICEHEALTHSTALEREPORT', 'FABRICESEQUENCENUMBERCHECKFAILED', 'FABRICENODEHASNOTSTOPPEDYET', 'FABRICEINSTANCEIDMISMATCH', 'FABRICEVALUETOOLARGE', 'FABRICENOWRITEQUORUM', 'FABRICENOTPRIMARY', 'FABRICENOTREADY', 'FABRICERECONFIGURATIONPENDING', 'FABRICESERVICEOFFLINE', 'EABORT', 'FABRICECOMMUNICATIONERROR', 'FABRICEOPERATIONNOTCOMPLETE', 'FABRICETIMEOUT', 'FABRICENODEISUP' - Code Code `json:"Code,omitempty"` - // Message - Error message. - Message *string `json:"Message,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailedPropertyBatchInfo derived from PropertyBatchInfo. Represents the property batch failing. Contains -// information about the specific batch failure. -type FailedPropertyBatchInfo struct { - // ErrorMessage - The error message of the failed operation. Describes the exception thrown due to the first unsuccessful operation in the property batch. - ErrorMessage *string `json:"ErrorMessage,omitempty"` - // OperationIndex - The index of the unsuccessful operation in the property batch. - OperationIndex *int32 `json:"OperationIndex,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchInfo', 'KindSuccessful', 'KindFailed' - Kind KindBasicPropertyBatchInfo `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) MarshalJSON() ([]byte, error) { - fpbi.Kind = KindFailed - objectMap := make(map[string]interface{}) - if fpbi.ErrorMessage != nil { - objectMap["ErrorMessage"] = fpbi.ErrorMessage - } - if fpbi.OperationIndex != nil { - objectMap["OperationIndex"] = fpbi.OperationIndex - } - if fpbi.Kind != "" { - objectMap["Kind"] = fpbi.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSuccessfulPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsFailedPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) { - return &fpbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsPropertyBatchInfo() (*PropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchInfo is the BasicPropertyBatchInfo implementation for FailedPropertyBatchInfo. -func (fpbi FailedPropertyBatchInfo) AsBasicPropertyBatchInfo() (BasicPropertyBatchInfo, bool) { - return &fpbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailedUpgradeDomainProgressObject the detailed upgrade progress for nodes in the current upgrade domain at the -// point of failure. -type FailedUpgradeDomainProgressObject struct { - // DomainName - The name of the upgrade domain - DomainName *string `json:"DomainName,omitempty"` - // NodeUpgradeProgressList - List of upgrading nodes and their statuses - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FailureUpgradeDomainProgressInfo information about the upgrade domain progress at the time of upgrade failure. -type FailureUpgradeDomainProgressInfo struct { - // DomainName - The name of the upgrade domain - DomainName *string `json:"DomainName,omitempty"` - // NodeUpgradeProgressList - List of upgrading nodes and their statuses - NodeUpgradeProgressList *[]NodeUpgradeProgressInfo `json:"NodeUpgradeProgressList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FileInfo information about a image store file. -type FileInfo struct { - // FileSize - The size of file in bytes. - FileSize *string `json:"FileSize,omitempty"` - // FileVersion - Information about the version of image store file. - FileVersion *FileVersion `json:"FileVersion,omitempty"` - // ModifiedDate - The date and time when the image store file was last modified. - ModifiedDate *date.Time `json:"ModifiedDate,omitempty"` - // StoreRelativePath - The file path relative to the image store root path. - StoreRelativePath *string `json:"StoreRelativePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FileVersion information about the version of image store file. -type FileVersion struct { - // VersionNumber - The current image store version number for the file is used in image store for checking whether it need to be updated. - VersionNumber *string `json:"VersionNumber,omitempty"` - // EpochDataLossNumber - The epoch data loss number of image store replica when this file entry was updated or created. - EpochDataLossNumber *string `json:"EpochDataLossNumber,omitempty"` - // EpochConfigurationNumber - The epoch configuration version number of the image store replica when this file entry was created or updated. - EpochConfigurationNumber *string `json:"EpochConfigurationNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// FolderInfo information about a image store folder. It includes how many files this folder contains and its image -// store relative path. -type FolderInfo struct { - // StoreRelativePath - The remote location within image store. This path is relative to the image store root. - StoreRelativePath *string `json:"StoreRelativePath,omitempty"` - // FileCount - The number of files from within the image store folder. - FileCount *uuid.UUID `json:"FileCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GetPropertyBatchOperation represents a PropertyBatchOperation that gets the specified property if it exists. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, -// the entire batch fails and cannot be committed in a transactional manner. -type GetPropertyBatchOperation struct { - // IncludeValue - Whether or not to return the property value with the metadata. - // True if values should be returned with the metadata; False to return only property metadata. - IncludeValue *bool `json:"IncludeValue,omitempty"` - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) MarshalJSON() ([]byte, error) { - gpbo.Kind = KindGet - objectMap := make(map[string]interface{}) - if gpbo.IncludeValue != nil { - objectMap["IncludeValue"] = gpbo.IncludeValue - } - if gpbo.PropertyName != nil { - objectMap["PropertyName"] = gpbo.PropertyName - } - if gpbo.Kind != "" { - objectMap["Kind"] = gpbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return &gpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for GetPropertyBatchOperation. -func (gpbo GetPropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &gpbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// GUIDPropertyValue describes a Service Fabric property value of type Guid. -type GUIDPropertyValue struct { - // Data - The data of the property value. - Data *uuid.UUID `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for GUIDPropertyValue. -func (gpv GUIDPropertyValue) MarshalJSON() ([]byte, error) { - gpv.Kind = KindGUID - objectMap := make(map[string]interface{}) - if gpv.Data != nil { - objectMap["Data"] = gpv.Data - } - if gpv.Kind != "" { - objectMap["Kind"] = gpv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return &gpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for GUIDPropertyValue. -func (gpv GUIDPropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &gpv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicHealthEvaluation represents a health evaluation which describes the data and the algorithm used by health -// manager to evaluate the health of an entity. -type BasicHealthEvaluation interface { - AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) - AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) - AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) - AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) - AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) - AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) - AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) - AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) - AsEventHealthEvaluation() (*EventHealthEvaluation, bool) - AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) - AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) - AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) - AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) - AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) - AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) - AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) - AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) - AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) - AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) - AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) - AsHealthEvaluation() (*HealthEvaluation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluation represents a health evaluation which describes the data and the algorithm used by health -// manager to evaluate the health of an entity. -type HealthEvaluation struct { - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -func unmarshalBasicHealthEvaluation(body []byte) (BasicHealthEvaluation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindApplication): - var ahe ApplicationHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindApplications): - var ahe ApplicationsHealthEvaluation - err := json.Unmarshal(body, &ahe) - return ahe, err - case string(KindApplicationTypeApplications): - var atahe ApplicationTypeApplicationsHealthEvaluation - err := json.Unmarshal(body, &atahe) - return atahe, err - case string(KindDeltaNodesCheck): - var dnche DeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &dnche) - return dnche, err - case string(KindDeployedApplication): - var dahe DeployedApplicationHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindDeployedApplications): - var dahe DeployedApplicationsHealthEvaluation - err := json.Unmarshal(body, &dahe) - return dahe, err - case string(KindDeployedServicePackage): - var dsphe DeployedServicePackageHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindDeployedServicePackages): - var dsphe DeployedServicePackagesHealthEvaluation - err := json.Unmarshal(body, &dsphe) - return dsphe, err - case string(KindEvent): - var ehe EventHealthEvaluation - err := json.Unmarshal(body, &ehe) - return ehe, err - case string(KindNode): - var nhe NodeHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindNodes): - var nhe NodesHealthEvaluation - err := json.Unmarshal(body, &nhe) - return nhe, err - case string(KindPartition): - var phe PartitionHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindPartitions): - var phe PartitionsHealthEvaluation - err := json.Unmarshal(body, &phe) - return phe, err - case string(KindReplica): - var rhe ReplicaHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindReplicas): - var rhe ReplicasHealthEvaluation - err := json.Unmarshal(body, &rhe) - return rhe, err - case string(KindService): - var she ServiceHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindServices): - var she ServicesHealthEvaluation - err := json.Unmarshal(body, &she) - return she, err - case string(KindSystemApplication): - var sahe SystemApplicationHealthEvaluation - err := json.Unmarshal(body, &sahe) - return sahe, err - case string(KindUpgradeDomainDeltaNodesCheck): - var uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation - err := json.Unmarshal(body, &uddnche) - return uddnche, err - case string(KindUpgradeDomainNodes): - var udnhe UpgradeDomainNodesHealthEvaluation - err := json.Unmarshal(body, &udnhe) - return udnhe, err - default: - var he HealthEvaluation - err := json.Unmarshal(body, &he) - return he, err - } -} -func unmarshalBasicHealthEvaluationArray(body []byte) ([]BasicHealthEvaluation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - heArray := make([]BasicHealthEvaluation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - he, err := unmarshalBasicHealthEvaluation(*rawMessage) - if err != nil { - return nil, err - } - heArray[index] = he - } - return heArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for HealthEvaluation. -func (he HealthEvaluation) MarshalJSON() ([]byte, error) { - he.Kind = KindHealthEvaluation - objectMap := make(map[string]interface{}) - if he.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = he.AggregatedHealthState - } - if he.Description != nil { - objectMap["Description"] = he.Description - } - if he.Kind != "" { - objectMap["Kind"] = he.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for HealthEvaluation. -func (he HealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &he, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvaluationWrapper wrapper object for health evaluation. -type HealthEvaluationWrapper struct { - // HealthEvaluation - Represents a health evaluation which describes the data and the algorithm used by health manager to evaluate the health of an entity. - HealthEvaluation BasicHealthEvaluation `json:"HealthEvaluation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for HealthEvaluationWrapper struct. -func (hew *HealthEvaluationWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HealthEvaluation": - if v != nil { - healthEvaluation, err := unmarshalBasicHealthEvaluation(*v) - if err != nil { - return err - } - hew.HealthEvaluation = healthEvaluation - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthEvent represents health information reported on a health entity, such as cluster, application or node, -// with additional metadata added by the Health Manager. -type HealthEvent struct { - // IsExpired - Returns true if the health event is expired, otherwise false. - IsExpired *bool `json:"IsExpired,omitempty"` - // SourceUtcTimestamp - The date and time when the health report was sent by the source. - SourceUtcTimestamp *date.Time `json:"SourceUtcTimestamp,omitempty"` - // LastModifiedUtcTimestamp - The date and time when the health report was last modified by the health store. - LastModifiedUtcTimestamp *date.Time `json:"LastModifiedUtcTimestamp,omitempty"` - // LastOkTransitionAt - If the current health state is 'Ok', this property returns the time at which the health report was first reported with 'Ok'. - // For periodic reporting, many reports with the same state may have been generated. - // This property returns the date and time when the first 'Ok' health report was received. - // If the current health state is 'Error' or 'Warning', returns the date and time at which the health state was last in 'Ok', before transitioning to a different state. - // If the health state was never 'Ok', the value will be zero date-time. - LastOkTransitionAt *date.Time `json:"LastOkTransitionAt,omitempty"` - // LastWarningTransitionAt - If the current health state is 'Warning', this property returns the time at which the health report was first reported with 'Warning'. For periodic reporting, many reports with the same state may have been generated however, this property returns only the date and time at the first 'Warning' health report was received. - // If the current health state is 'Ok' or 'Error', returns the date and time at which the health state was last in 'Warning', before transitioning to a different state. - // If the health state was never 'Warning', the value will be zero date-time. - LastWarningTransitionAt *date.Time `json:"LastWarningTransitionAt,omitempty"` - // LastErrorTransitionAt - If the current health state is 'Error', this property returns the time at which the health report was first reported with 'Error'. For periodic reporting, many reports with the same state may have been generated however, this property returns only the date and time at the first 'Error' health report was received. - // If the current health state is 'Ok' or 'Warning', returns the date and time at which the health state was last in 'Error', before transitioning to a different state. - // If the health state was never 'Error', the value will be zero date-time. - LastErrorTransitionAt *date.Time `json:"LastErrorTransitionAt,omitempty"` - // SourceID - The source name which identifies the client/watchdog/system component which generated the health information. - SourceID *string `json:"SourceId,omitempty"` - // Property - The property of the health information. An entity can have health reports for different properties. - // The property is a string and not a fixed enumeration to allow the reporter flexibility to categorize the state condition that triggers the report. - // For example, a reporter with SourceId "LocalWatchdog" can monitor the state of the available disk on a node, - // so it can report "AvailableDisk" property on that node. - // The same reporter can monitor the node connectivity, so it can report a property "Connectivity" on the same node. - // In the health store, these reports are treated as separate health events for the specified node. - // Together with the SourceId, the property uniquely identifies the health information. - Property *string `json:"Property,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // TimeToLiveInMilliSeconds - The duration for which this health report is valid. This field is using ISO8601 format for specifying the duration. - // When clients report periodically, they should send reports with higher frequency than time to live. - // If clients report on transition, they can set the time to live to infinite. - // When time to live expires, the health event that contains the health information - // is either removed from health store, if RemoveWhenExpired is true, or evaluated at error, if RemoveWhenExpired false. - // If not specified, time to live defaults to infinite value. - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - // Description - The description of the health information. It represents free text used to add human readable information about the report. - // The maximum string length for the description is 4096 characters. - // If the provided string is longer, it will be automatically truncated. - // When truncated, the last characters of the description contain a marker "[Truncated]", and total string size is 4096 characters. - // The presence of the marker indicates to users that truncation occurred. - // Note that when truncated, the description has less than 4096 characters from the original string. - Description *string `json:"Description,omitempty"` - // SequenceNumber - The sequence number for this health report as a numeric string. - // The report sequence number is used by the health store to detect stale reports. - // If not specified, a sequence number is auto-generated by the health client when a report is added. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - // RemoveWhenExpired - Value that indicates whether the report is removed from health store when it expires. - // If set to true, the report is removed from the health store after it expires. - // If set to false, the report is treated as an error when expired. The value of this property is false by default. - // When clients report periodically, they should set RemoveWhenExpired false (default). - // This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires. - // This flags the entity as being in Error health state. - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthInformation represents common health report information. It is included in all health reports sent to -// health store and in all health events returned by health queries. -type HealthInformation struct { - // SourceID - The source name which identifies the client/watchdog/system component which generated the health information. - SourceID *string `json:"SourceId,omitempty"` - // Property - The property of the health information. An entity can have health reports for different properties. - // The property is a string and not a fixed enumeration to allow the reporter flexibility to categorize the state condition that triggers the report. - // For example, a reporter with SourceId "LocalWatchdog" can monitor the state of the available disk on a node, - // so it can report "AvailableDisk" property on that node. - // The same reporter can monitor the node connectivity, so it can report a property "Connectivity" on the same node. - // In the health store, these reports are treated as separate health events for the specified node. - // Together with the SourceId, the property uniquely identifies the health information. - Property *string `json:"Property,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // TimeToLiveInMilliSeconds - The duration for which this health report is valid. This field is using ISO8601 format for specifying the duration. - // When clients report periodically, they should send reports with higher frequency than time to live. - // If clients report on transition, they can set the time to live to infinite. - // When time to live expires, the health event that contains the health information - // is either removed from health store, if RemoveWhenExpired is true, or evaluated at error, if RemoveWhenExpired false. - // If not specified, time to live defaults to infinite value. - TimeToLiveInMilliSeconds *string `json:"TimeToLiveInMilliSeconds,omitempty"` - // Description - The description of the health information. It represents free text used to add human readable information about the report. - // The maximum string length for the description is 4096 characters. - // If the provided string is longer, it will be automatically truncated. - // When truncated, the last characters of the description contain a marker "[Truncated]", and total string size is 4096 characters. - // The presence of the marker indicates to users that truncation occurred. - // Note that when truncated, the description has less than 4096 characters from the original string. - Description *string `json:"Description,omitempty"` - // SequenceNumber - The sequence number for this health report as a numeric string. - // The report sequence number is used by the health store to detect stale reports. - // If not specified, a sequence number is auto-generated by the health client when a report is added. - SequenceNumber *string `json:"SequenceNumber,omitempty"` - // RemoveWhenExpired - Value that indicates whether the report is removed from health store when it expires. - // If set to true, the report is removed from the health store after it expires. - // If set to false, the report is treated as an error when expired. The value of this property is false by default. - // When clients report periodically, they should set RemoveWhenExpired false (default). - // This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires. - // This flags the entity as being in Error health state. - RemoveWhenExpired *bool `json:"RemoveWhenExpired,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthStateCount represents information about how many health entities are in Ok, Warning and Error health -// state. -type HealthStateCount struct { - // OkCount - The number of health entities with aggregated health state Ok. - OkCount *int64 `json:"OkCount,omitempty"` - // WarningCount - The number of health entities with aggregated health state Warning. - WarningCount *int64 `json:"WarningCount,omitempty"` - // ErrorCount - The number of health entities with aggregated health state Error. - ErrorCount *int64 `json:"ErrorCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// HealthStatistics the health statistics of an entity, returned as part of the health query result when the query -// description is configured to include statistics. -// The statistics include health state counts for all children types of the current entity. -// For example, for cluster, the health statistics include health state counts for nodes, applications, services, -// partitions, replicas, deployed applications and deployed service packages. -// For partition, the health statistics include health counts for replicas. -type HealthStatistics struct { - // HealthStateCountList - List of health state counts per entity kind, which keeps track of how many children of the queried entity are in Ok, Warning and Error state. - HealthStateCountList *[]EntityKindHealthStateCount `json:"HealthStateCountList,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImageStoreContent information about the image store content. -type ImageStoreContent struct { - autorest.Response `json:"-"` - // StoreFiles - The list of image store file info objects represents files found under the given image store relative path. - StoreFiles *[]FileInfo `json:"StoreFiles,omitempty"` - // StoreFolders - The list of image store folder info objects represents subfolders found under the given image store relative path. - StoreFolders *[]FolderInfo `json:"StoreFolders,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ImageStoreCopyDescription information about how to copy image store content from one image store relative path -// to another image store relative path. -type ImageStoreCopyDescription struct { - // RemoteSource - The relative path of source image store content to be copied from. - RemoteSource *string `json:"RemoteSource,omitempty"` - // RemoteDestination - The relative path of destination image store content to be copied to. - RemoteDestination *string `json:"RemoteDestination,omitempty"` - // SkipFiles - The list of the file names to be skipped for copying. - SkipFiles *[]string `json:"SkipFiles,omitempty"` - // CheckMarkFile - Indicates whether to check mark file during copying. The property is true if checking mark file is required, false otherwise. The mark file is used to check whether the folder is well constructed. If the property is true and mark file does not exist, the copy is skipped. - CheckMarkFile *bool `json:"CheckMarkFile,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Int64PropertyValue describes a Service Fabric property value of type Int64. -type Int64PropertyValue struct { - // Data - The data of the property value. - Data *string `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for Int64PropertyValue. -func (i6pv Int64PropertyValue) MarshalJSON() ([]byte, error) { - i6pv.Kind = KindInt64 - objectMap := make(map[string]interface{}) - if i6pv.Data != nil { - objectMap["Data"] = i6pv.Data - } - if i6pv.Kind != "" { - objectMap["Kind"] = i6pv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return &i6pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for Int64PropertyValue. -func (i6pv Int64PropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &i6pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Int64RangePartitionInformation describes the partition information for the integer range that is based on -// partition schemes. -type Int64RangePartitionInformation struct { - // LowKey - Specifies the minimum key value handled by this partition. - LowKey *string `json:"LowKey,omitempty"` - // HighKey - Specifies the maximum key value handled by this partition. - HighKey *string `json:"HighKey,omitempty"` - // ID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) MarshalJSON() ([]byte, error) { - i6rpi.ServicePartitionKind = ServicePartitionKindInt64Range - objectMap := make(map[string]interface{}) - if i6rpi.LowKey != nil { - objectMap["LowKey"] = i6rpi.LowKey - } - if i6rpi.HighKey != nil { - objectMap["HighKey"] = i6rpi.HighKey - } - if i6rpi.ID != nil { - objectMap["Id"] = i6rpi.ID - } - if i6rpi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = i6rpi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return &i6rpi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for Int64RangePartitionInformation. -func (i6rpi Int64RangePartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &i6rpi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeDataLossResult represents information about an operation in a terminal state (Completed or Faulted). -type InvokeDataLossResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - // SelectedPartition - This class returns information about the partition that the user-induced operation acted upon. - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// InvokeQuorumLossResult represents information about an operation in a terminal state (Completed or Faulted). -type InvokeQuorumLossResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - // SelectedPartition - This class returns information about the partition that the user-induced operation acted upon. - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// KeyValueStoreReplicaStatus key value store related information for the replica. -type KeyValueStoreReplicaStatus struct { - // DatabaseRowCountEstimate - Value indicating the estimated number of rows in the underlying database. - DatabaseRowCountEstimate *string `json:"DatabaseRowCountEstimate,omitempty"` - // DatabaseLogicalSizeEstimate - Value indicating the estimated size of the underlying database. - DatabaseLogicalSizeEstimate *string `json:"DatabaseLogicalSizeEstimate,omitempty"` - // CopyNotificationCurrentKeyFilter - Value indicating the latest key-prefix filter applied to enumeration during the callback. Null if there is no pending callback. - CopyNotificationCurrentKeyFilter *string `json:"CopyNotificationCurrentKeyFilter,omitempty"` - // CopyNotificationCurrentProgress - Value indicating the latest number of keys enumerated during the callback. 0 if there is no pending callback. - CopyNotificationCurrentProgress *string `json:"CopyNotificationCurrentProgress,omitempty"` - // StatusDetails - Value indicating the current status details of the replica. - StatusDetails *string `json:"StatusDetails,omitempty"` - // Kind - Possible values include: 'KindReplicaStatusBase', 'KindKeyValueStore' - Kind KindBasicReplicaStatusBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) MarshalJSON() ([]byte, error) { - kvsrs.Kind = KindKeyValueStore - objectMap := make(map[string]interface{}) - if kvsrs.DatabaseRowCountEstimate != nil { - objectMap["DatabaseRowCountEstimate"] = kvsrs.DatabaseRowCountEstimate - } - if kvsrs.DatabaseLogicalSizeEstimate != nil { - objectMap["DatabaseLogicalSizeEstimate"] = kvsrs.DatabaseLogicalSizeEstimate - } - if kvsrs.CopyNotificationCurrentKeyFilter != nil { - objectMap["CopyNotificationCurrentKeyFilter"] = kvsrs.CopyNotificationCurrentKeyFilter - } - if kvsrs.CopyNotificationCurrentProgress != nil { - objectMap["CopyNotificationCurrentProgress"] = kvsrs.CopyNotificationCurrentProgress - } - if kvsrs.StatusDetails != nil { - objectMap["StatusDetails"] = kvsrs.StatusDetails - } - if kvsrs.Kind != "" { - objectMap["Kind"] = kvsrs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsKeyValueStoreReplicaStatus is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) { - return &kvsrs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaStatusBase is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsReplicaStatusBase() (*ReplicaStatusBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaStatusBase is the BasicReplicaStatusBase implementation for KeyValueStoreReplicaStatus. -func (kvsrs KeyValueStoreReplicaStatus) AsBasicReplicaStatusBase() (BasicReplicaStatusBase, bool) { - return &kvsrs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedCodePackageInfo ... -type ListDeployedCodePackageInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedCodePackageInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServicePackageInfo ... -type ListDeployedServicePackageInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedServicePackageInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServiceReplicaInfo ... -type ListDeployedServiceReplicaInfo struct { - autorest.Response `json:"-"` - Value *[]BasicDeployedServiceReplicaInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ListDeployedServiceReplicaInfo struct. -func (ldsri *ListDeployedServiceReplicaInfo) UnmarshalJSON(body []byte) error { - dsri, err := unmarshalBasicDeployedServiceReplicaInfoArray(body) - if err != nil { - return err - } - ldsri.Value = &dsri - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListDeployedServiceTypeInfo ... -type ListDeployedServiceTypeInfo struct { - autorest.Response `json:"-"` - Value *[]DeployedServiceTypeInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListFabricCodeVersionInfo ... -type ListFabricCodeVersionInfo struct { - autorest.Response `json:"-"` - Value *[]FabricCodeVersionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListFabricConfigVersionInfo ... -type ListFabricConfigVersionInfo struct { - autorest.Response `json:"-"` - Value *[]FabricConfigVersionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListOperationStatus ... -type ListOperationStatus struct { - autorest.Response `json:"-"` - Value *[]OperationStatus `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListRepairTask ... -type ListRepairTask struct { - autorest.Response `json:"-"` - Value *[]RepairTask `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ListServiceTypeInfo ... -type ListServiceTypeInfo struct { - autorest.Response `json:"-"` - Value *[]ServiceTypeInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricReport represents the load metric report which contains the time metric was reported, its name and -// value. -type LoadMetricReport struct { - // LastReportedUtc - Gets the UTC time when the load was reported. - LastReportedUtc *date.Time `json:"LastReportedUtc,omitempty"` - // Name - The name of the load metric. - Name *string `json:"Name,omitempty"` - // Value - The value of the load metric. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// LoadMetricReportInfo information about load reported by replica. -type LoadMetricReportInfo struct { - // Name - The name of the metric. - Name *string `json:"Name,omitempty"` - // Value - The value of the load for the metric.. - Value *int32 `json:"Value,omitempty"` - // LastReportedUtc - The UTC time when the load is reported. - LastReportedUtc *date.Time `json:"LastReportedUtc,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MonitoringPolicyDescription describes the parameters for monitoring an upgrade in Monitored mode. -type MonitoringPolicyDescription struct { - // FailureAction - The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Possible values include: 'FailureActionInvalid', 'FailureActionRollback', 'FailureActionManual' - FailureAction FailureAction `json:"FailureAction,omitempty"` - // HealthCheckWaitDurationInMilliseconds - The amount of time to wait after completing an upgrade domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - // HealthCheckStableDurationInMilliseconds - The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - // HealthCheckRetryTimeoutInMilliseconds - The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - // UpgradeTimeoutInMilliseconds - The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - // UpgradeDomainTimeoutInMilliseconds - The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NameDescription describes a Service Fabric name. -type NameDescription struct { - // Name - The Service Fabric name, including the 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NamedPartitionInformation describes the partition information for the name as a string that is based on -// partition schemes. -type NamedPartitionInformation struct { - // Name - Name of the partition. - Name *string `json:"Name,omitempty"` - // ID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NamedPartitionInformation. -func (npi NamedPartitionInformation) MarshalJSON() ([]byte, error) { - npi.ServicePartitionKind = ServicePartitionKindNamed - objectMap := make(map[string]interface{}) - if npi.Name != nil { - objectMap["Name"] = npi.Name - } - if npi.ID != nil { - objectMap["Id"] = npi.ID - } - if npi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = npi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return &npi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for NamedPartitionInformation. -func (npi NamedPartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &npi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NamedPartitionSchemeDescription describes the named partition scheme of the service. -type NamedPartitionSchemeDescription struct { - // Count - The number of partitions. - Count *int32 `json:"Count,omitempty"` - // Names - Array of size specified by the ‘Count’ parameter, for the names of the partitions. - Names *[]string `json:"Names,omitempty"` - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed1', 'PartitionSchemeSingleton1', 'PartitionSchemeUniformInt64Range1' - PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) MarshalJSON() ([]byte, error) { - npsd.PartitionScheme = PartitionSchemeNamed1 - objectMap := make(map[string]interface{}) - if npsd.Count != nil { - objectMap["Count"] = npsd.Count - } - if npsd.Names != nil { - objectMap["Names"] = npsd.Names - } - if npsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = npsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return &npsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription. -func (npsd NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &npsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationInfo information about the node deactivation. This information is valid for a node that is -// undergoing deactivation or has already been deactivated. -type NodeDeactivationInfo struct { - // NodeDeactivationIntent - The intent or the reason for deactivating the node. Following are the possible values for it. Possible values include: 'NodeDeactivationIntentInvalid', 'NodeDeactivationIntentPause', 'NodeDeactivationIntentRestart', 'NodeDeactivationIntentRemoveData', 'NodeDeactivationIntentRemoveNode' - NodeDeactivationIntent NodeDeactivationIntent `json:"NodeDeactivationIntent,omitempty"` - // NodeDeactivationStatus - The status of node deactivation operation. Following are the possible values. Possible values include: 'NodeDeactivationStatusNone', 'NodeDeactivationStatusSafetyCheckInProgress', 'NodeDeactivationStatusSafetyCheckComplete', 'NodeDeactivationStatusCompleted' - NodeDeactivationStatus NodeDeactivationStatus `json:"NodeDeactivationStatus,omitempty"` - // NodeDeactivationTask - List of tasks representing the deactivation operation on the node. - NodeDeactivationTask *[]NodeDeactivationTask `json:"NodeDeactivationTask,omitempty"` - // PendingSafetyChecks - List of pending safety checks - PendingSafetyChecks *[]SafetyCheckWrapper `json:"PendingSafetyChecks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTask the task representing the deactivation operation on the node. -type NodeDeactivationTask struct { - // NodeDeactivationTaskID - Identity of the task related to deactivation operation on the node. - NodeDeactivationTaskID *NodeDeactivationTaskID `json:"NodeDeactivationTaskId,omitempty"` - // NodeDeactivationIntent - The intent or the reason for deactivating the node. Following are the possible values for it. Possible values include: 'NodeDeactivationIntentInvalid', 'NodeDeactivationIntentPause', 'NodeDeactivationIntentRestart', 'NodeDeactivationIntentRemoveData', 'NodeDeactivationIntentRemoveNode' - NodeDeactivationIntent NodeDeactivationIntent `json:"NodeDeactivationIntent,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeDeactivationTaskID identity of the task related to deactivation operation on the node. -type NodeDeactivationTaskID struct { - // ID - Value of the task id. - ID *string `json:"Id,omitempty"` - // NodeDeactivationTaskType - The type of the task that performed the node deactivation. Following are the possible values. Possible values include: 'NodeDeactivationTaskTypeInvalid', 'NodeDeactivationTaskTypeInfrastructure', 'NodeDeactivationTaskTypeRepair', 'NodeDeactivationTaskTypeClient' - NodeDeactivationTaskType NodeDeactivationTaskType `json:"NodeDeactivationTaskType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealth information about the health of a Service Fabric node. -type NodeHealth struct { - autorest.Response `json:"-"` - // Name - Name of the node whose health information is described by this object. - Name *string `json:"Name,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthEvaluation represents health evaluation for a node, containing information about the data and the -// algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated health -// state is either Error or Warning. -type NodeHealthEvaluation struct { - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the node. The types of the unhealthy evaluations can be EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNode - objectMap := make(map[string]interface{}) - if nhe.NodeName != nil { - objectMap["NodeName"] = nhe.NodeName - } - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodeHealthEvaluation. -func (nhe NodeHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthState represents the health state of a node, which contains the node identifier and its aggregated -// health state. -type NodeHealthState struct { - // Name - The name of a Service Fabric node. - Name *string `json:"Name,omitempty"` - // ID - An internal ID used by Service Fabric to uniquely identify a node. Node Id is deterministically generated from node name. - ID *NodeID `json:"Id,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateChunk represents the health state chunk of a node, which contains the node name and its -// aggregated health state. -type NodeHealthStateChunk struct { - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateChunkList the list of node health state chunks in the cluster that respect the input filters in -// the chunk query. Returned by get cluster health state chunks query. -type NodeHealthStateChunkList struct { - // Items - The list of node health state chunks that respect the input filters in the chunk query. - Items *[]NodeHealthStateChunk `json:"Items,omitempty"` - // TotalCount - Total number of entity health state objects that match the specified filters from the cluster health chunk query description. - TotalCount *int64 `json:"TotalCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeHealthStateFilter defines matching criteria to determine whether a node should be included in the returned -// cluster health chunk. -// One filter can match zero, one or multiple nodes, depending on its properties. -// Can be specified in the cluster health chunk query description. -type NodeHealthStateFilter struct { - // NodeNameFilter - Name of the node that matches the filter. The filter is applied only to the specified node, if it exists. - // If the node doesn't exist, no node is returned in the cluster health chunk based on this filter. - // If the node exists, it is included in the cluster health chunk if the health state matches the other filter properties. - // If not specified, all nodes that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - NodeNameFilter *string `json:"NodeNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the nodes. It allows selecting nodes if they match the desired health states. - // The possible values are integer value of one of the following health states. Only nodes that match the filter are returned. All nodes are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the node name is specified. If the filter has default value and node name is specified, the matching node is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches nodes with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeID an internal ID used by Service Fabric to uniquely identify a node. Node Id is deterministically generated -// from node name. -type NodeID struct { - // ID - Value of the node Id. This is a 128 bit integer. - ID *string `json:"Id,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeImpact describes the expected impact of a repair to a particular node. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type NodeImpact struct { - // NodeName - The name of the impacted node. - NodeName *string `json:"NodeName,omitempty"` - // ImpactLevel - The level of impact expected. Possible values include: 'ImpactLevelInvalid', 'ImpactLevelNone', 'ImpactLevelRestart', 'ImpactLevelRemoveData', 'ImpactLevelRemoveNode' - ImpactLevel ImpactLevel `json:"ImpactLevel,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeInfo information about a node in Service Fabric cluster. -type NodeInfo struct { - autorest.Response `json:"-"` - // Name - The name of a Service Fabric node. - Name *string `json:"Name,omitempty"` - // IPAddressOrFQDN - The IP address or fully qualified domain name of the node. - IPAddressOrFQDN *string `json:"IpAddressOrFQDN,omitempty"` - // Type - The type of the node. - Type *string `json:"Type,omitempty"` - // CodeVersion - The version of Service Fabric binaries that the node is running. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The version of Service Fabric cluster manifest that the node is using. - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // NodeStatus - The status of the node. Possible values include: 'NodeStatusInvalid', 'NodeStatusUp', 'NodeStatusDown', 'NodeStatusEnabling', 'NodeStatusDisabling', 'NodeStatusDisabled', 'NodeStatusUnknown', 'NodeStatusRemoved' - NodeStatus NodeStatus `json:"NodeStatus,omitempty"` - // NodeUpTimeInSeconds - Time in seconds since the node has been in NodeStatus Up. Value zero indicates that the node is not Up. - NodeUpTimeInSeconds *string `json:"NodeUpTimeInSeconds,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // IsSeedNode - Indicates if the node is a seed node or not. Returns true if the node is a seed node, otherwise false. A quorum of seed nodes are required for proper operation of Service Fabric cluster. - IsSeedNode *bool `json:"IsSeedNode,omitempty"` - // UpgradeDomain - The upgrade domain of the node. - UpgradeDomain *string `json:"UpgradeDomain,omitempty"` - // FaultDomain - The fault domain of the node. - FaultDomain *string `json:"FaultDomain,omitempty"` - // ID - An internal ID used by Service Fabric to uniquely identify a node. Node Id is deterministically generated from node name. - ID *NodeID `json:"Id,omitempty"` - // InstanceID - The id representing the node instance. While the Id of the node is deterministically generated from the node name and remains same across restarts, the InstanceId changes every time node restarts. - InstanceID *string `json:"InstanceId,omitempty"` - // NodeDeactivationInfo - Information about the node deactivation. This information is valid for a node that is undergoing deactivation or has already been deactivated. - NodeDeactivationInfo *NodeDeactivationInfo `json:"NodeDeactivationInfo,omitempty"` - // IsStopped - Indicates if the node is stopped by calling stop node API or not. Returns true if the node is stopped, otherwise false. - IsStopped *bool `json:"IsStopped,omitempty"` - // NodeDownTimeInSeconds - Time in seconds since the node has been in NodeStatus Down. Value zero indicates node is not NodeStatus Down. - NodeDownTimeInSeconds *string `json:"NodeDownTimeInSeconds,omitempty"` - // NodeUpAt - Date time in UTC when the node came up. If the node has never been up then this value will be zero date time. - NodeUpAt *date.Time `json:"NodeUpAt,omitempty"` - // NodeDownAt - Date time in UTC when the node went down. If node has never been down then this value will be zero date time. - NodeDownAt *date.Time `json:"NodeDownAt,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadInfo information about load on a Service Fabric node. It holds a summary of all metrics and their load -// on a node. -type NodeLoadInfo struct { - autorest.Response `json:"-"` - // NodeName - Name of the node for which the load information is provided by this object. - NodeName *string `json:"NodeName,omitempty"` - // NodeLoadMetricInformation - List that contains metrics and their load information on this node. - NodeLoadMetricInformation *[]NodeLoadMetricInformation `json:"NodeLoadMetricInformation,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeLoadMetricInformation represents data structure that contains load information for a certain metric on a -// node. -type NodeLoadMetricInformation struct { - // Name - Name of the metric for which this load information is provided. - Name *string `json:"Name,omitempty"` - // NodeCapacity - Total capacity on the node for this metric. - NodeCapacity *string `json:"NodeCapacity,omitempty"` - // NodeLoad - Current load on the node for this metric. - NodeLoad *string `json:"NodeLoad,omitempty"` - // NodeRemainingCapacity - The remaining capacity on the node for this metric. - NodeRemainingCapacity *string `json:"NodeRemainingCapacity,omitempty"` - // IsCapacityViolation - Indicates if there is a capacity violation for this metric on the node. - IsCapacityViolation *bool `json:"IsCapacityViolation,omitempty"` - // NodeBufferedCapacity - The value that indicates the reserved capacity for this metric on the node. - NodeBufferedCapacity *string `json:"NodeBufferedCapacity,omitempty"` - // NodeRemainingBufferedCapacity - The remaining reserved capacity for this metric on the node. - NodeRemainingBufferedCapacity *string `json:"NodeRemainingBufferedCapacity,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeRepairImpactDescription describes the expected impact of a repair on a set of nodes. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type NodeRepairImpactDescription struct { - // NodeImpactList - The list of nodes impacted by a repair action and their respective expected impact. - NodeImpactList *[]NodeImpact `json:"NodeImpactList,omitempty"` - // Kind - Possible values include: 'KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase', 'KindBasicRepairImpactDescriptionBaseKindNode' - Kind KindBasicRepairImpactDescriptionBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) MarshalJSON() ([]byte, error) { - nrid.Kind = KindBasicRepairImpactDescriptionBaseKindNode - objectMap := make(map[string]interface{}) - if nrid.NodeImpactList != nil { - objectMap["NodeImpactList"] = nrid.NodeImpactList - } - if nrid.Kind != "" { - objectMap["Kind"] = nrid.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairImpactDescription is the BasicRepairImpactDescriptionBase implementation for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) AsNodeRepairImpactDescription() (*NodeRepairImpactDescription, bool) { - return &nrid, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) AsRepairImpactDescriptionBase() (*RepairImpactDescriptionBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for NodeRepairImpactDescription. -func (nrid NodeRepairImpactDescription) AsBasicRepairImpactDescriptionBase() (BasicRepairImpactDescriptionBase, bool) { - return &nrid, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeRepairTargetDescription describes the list of nodes targeted by a repair action. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type NodeRepairTargetDescription struct { - // NodeNames - The list of nodes targeted by a repair action. - NodeNames *[]string `json:"NodeNames,omitempty"` - // Kind - Possible values include: 'KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase', 'KindBasicRepairTargetDescriptionBaseKindNode' - Kind KindBasicRepairTargetDescriptionBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) MarshalJSON() ([]byte, error) { - nrtd.Kind = KindBasicRepairTargetDescriptionBaseKindNode - objectMap := make(map[string]interface{}) - if nrtd.NodeNames != nil { - objectMap["NodeNames"] = nrtd.NodeNames - } - if nrtd.Kind != "" { - objectMap["Kind"] = nrtd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairTargetDescription is the BasicRepairTargetDescriptionBase implementation for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) AsNodeRepairTargetDescription() (*NodeRepairTargetDescription, bool) { - return &nrtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) AsRepairTargetDescriptionBase() (*RepairTargetDescriptionBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for NodeRepairTargetDescription. -func (nrtd NodeRepairTargetDescription) AsBasicRepairTargetDescriptionBase() (BasicRepairTargetDescriptionBase, bool) { - return &nrtd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeResult contains information about a node that was targeted by a user-induced operation. -type NodeResult struct { - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // NodeInstanceID - The node instance id. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodesHealthEvaluation represents health evaluation for nodes, containing health evaluations for each unhealthy -// node that impacted current aggregated health state. Can be returned when evaluating cluster health and the -// aggregated health state is either Error or Warning. -type NodesHealthEvaluation struct { - // MaxPercentUnhealthyNodes - Maximum allowed percentage of unhealthy nodes from the ClusterHealthPolicy. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes found in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) MarshalJSON() ([]byte, error) { - nhe.Kind = KindNodes - objectMap := make(map[string]interface{}) - if nhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = nhe.MaxPercentUnhealthyNodes - } - if nhe.TotalCount != nil { - objectMap["TotalCount"] = nhe.TotalCount - } - if nhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = nhe.UnhealthyEvaluations - } - if nhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = nhe.AggregatedHealthState - } - if nhe.Description != nil { - objectMap["Description"] = nhe.Description - } - if nhe.Kind != "" { - objectMap["Kind"] = nhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for NodesHealthEvaluation. -func (nhe NodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &nhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeTransitionProgress information about an NodeTransition operation. This class contains an OperationState and -// a NodeTransitionResult. The NodeTransitionResult is not valid until OperationState -// is Completed or Faulted. -type NodeTransitionProgress struct { - autorest.Response `json:"-"` - // State - The state of the operation. Possible values include: 'OperationStateInvalid', 'OperationStateRunning', 'OperationStateRollingBack', 'OperationStateCompleted', 'OperationStateFaulted', 'OperationStateCancelled', 'OperationStateForceCancelled' - State OperationState `json:"State,omitempty"` - // NodeTransitionResult - Represents information about an operation in a terminal state (Completed or Faulted). - NodeTransitionResult *NodeTransitionResult `json:"NodeTransitionResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeTransitionResult represents information about an operation in a terminal state (Completed or Faulted). -type NodeTransitionResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - // NodeResult - Contains information about a node that was targeted by a user-induced operation. - NodeResult *NodeResult `json:"NodeResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// NodeUpgradeProgressInfo information about the upgrading node and its status -type NodeUpgradeProgressInfo struct { - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // UpgradePhase - The state of the upgrading node. Possible values include: 'NodeUpgradePhaseInvalid', 'NodeUpgradePhasePreUpgradeSafetyCheck', 'NodeUpgradePhaseUpgrading', 'NodeUpgradePhasePostUpgradeSafetyCheck' - UpgradePhase NodeUpgradePhase `json:"UpgradePhase,omitempty"` - // PendingSafetyChecks - List of pending safety checks - PendingSafetyChecks *[]SafetyCheckWrapper `json:"PendingSafetyChecks,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// OperationStatus contains the OperationId, OperationState, and OperationType for user-induced operations. -type OperationStatus struct { - // OperationID - A GUID that identifies a call to this API. This is also passed into the corresponding GetProgress API. - OperationID *uuid.UUID `json:"OperationId,omitempty"` - // State - The state of the operation. Possible values include: 'OperationStateInvalid', 'OperationStateRunning', 'OperationStateRollingBack', 'OperationStateCompleted', 'OperationStateFaulted', 'OperationStateCancelled', 'OperationStateForceCancelled' - State OperationState `json:"State,omitempty"` - // Type - The type of the operation. Possible values include: 'OperationTypeInvalid', 'OperationTypePartitionDataLoss', 'OperationTypePartitionQuorumLoss', 'OperationTypePartitionRestart', 'OperationTypeNodeTransition' - Type OperationType `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PackageSharingPolicyInfo represents a policy for the package sharing. -type PackageSharingPolicyInfo struct { - // SharedPackageName - The name of code, configuration or data package that should be shared. - SharedPackageName *string `json:"SharedPackageName,omitempty"` - // PackageSharingScope - Represents the scope for PackageSharingPolicy. This is specified during DeployServicePackageToNode operation. Possible values include: 'PackageSharingPolicyScopeNone', 'PackageSharingPolicyScopeAll', 'PackageSharingPolicyScopeCode', 'PackageSharingPolicyScopeConfig', 'PackageSharingPolicyScopeData' - PackageSharingScope PackageSharingPolicyScope `json:"PackageSharingScope,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedApplicationInfoList the list of applications in the cluster. The list is paged when all of the results -// cannot fit in a single message. The next set of results can be obtained by executing the same query with the -// continuation token provided in this list. -type PagedApplicationInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of application information. - Items *[]ApplicationInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedApplicationTypeInfoList the list of application types that are provisioned or being provisioned in the -// cluster. The list is paged when all of the results cannot fit in a single message. The next set of results can -// be obtained by executing the same query with the continuation token provided in this list. -type PagedApplicationTypeInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of application type information. - Items *[]ApplicationTypeInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedComposeDeploymentStatusInfoList the list of compose deployments in the cluster. The list is paged when all -// of the results cannot fit in a single message. The next set of results can be obtained by executing the same -// query with the continuation token provided in this list. -type PagedComposeDeploymentStatusInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of compose deployment status information. - Items *[]ComposeDeploymentStatusInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedDeployedApplicationInfoList the list of deployed applications in activating, downloading, or active states -// on a node. -// The list is paged when all of the results cannot fit in a single message. -// The next set of results can be obtained by executing the same query with the continuation token provided in this -// list. -type PagedDeployedApplicationInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of deployed application information. - Items *[]DeployedApplicationInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedNodeInfoList the list of nodes in the cluster. The list is paged when all of the results cannot fit in a -// single message. The next set of results can be obtained by executing the same query with the continuation token -// provided in this list. -type PagedNodeInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of node information. - Items *[]NodeInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedPropertyInfoList the paged list of Service Fabric properties under a given name. The list is paged when all -// of the results cannot fit in a single message. The next set of results can be obtained by executing the same -// query with the continuation token provided in this list. -type PagedPropertyInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // IsConsistent - Indicates whether any property under the given name has been modified during the enumeration. If there was a modification, this property value is false. - IsConsistent *bool `json:"IsConsistent,omitempty"` - // Properties - List of property information. - Properties *[]PropertyInfo `json:"Properties,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedReplicaInfoList the list of replicas in the cluster for a given partition. The list is paged when all of -// the results cannot fit in a single message. The next set of results can be obtained by executing the same query -// with the continuation token provided in this list. -type PagedReplicaInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of replica information. - Items *[]BasicReplicaInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedReplicaInfoList struct. -func (pril *PagedReplicaInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - pril.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicReplicaInfoArray(*v) - if err != nil { - return err - } - pril.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedServiceInfoList the list of services in the cluster for an application. The list is paged when all of the -// results cannot fit in a single message. The next set of results can be obtained by executing the same query with -// the continuation token provided in this list. -type PagedServiceInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of service information. - Items *[]BasicServiceInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedServiceInfoList struct. -func (psil *PagedServiceInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - psil.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicServiceInfoArray(*v) - if err != nil { - return err - } - psil.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedServicePartitionInfoList the list of partition in the cluster for a service. The list is paged when all of -// the results cannot fit in a single message. The next set of results can be obtained by executing the same query -// with the continuation token provided in this list. -type PagedServicePartitionInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // Items - List of service partition information. - Items *[]BasicServicePartitionInfo `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PagedServicePartitionInfoList struct. -func (pspil *PagedServicePartitionInfoList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ContinuationToken": - if v != nil { - var continuationToken string - err = json.Unmarshal(*v, &continuationToken) - if err != nil { - return err - } - pspil.ContinuationToken = &continuationToken - } - case "Items": - if v != nil { - items, err := unmarshalBasicServicePartitionInfoArray(*v) - if err != nil { - return err - } - pspil.Items = &items - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PagedSubNameInfoList a paged list of Service Fabric names. The list is paged when all of the results cannot fit -// in a single message. The next set of results can be obtained by executing the same query with the continuation -// token provided in this list. -type PagedSubNameInfoList struct { - autorest.Response `json:"-"` - // ContinuationToken - The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results then the continuation token is not included in the response. - ContinuationToken *string `json:"ContinuationToken,omitempty"` - // IsConsistent - Indicates whether any name under the given name has been modified during the enumeration. If there was a modification, this property value is false. - IsConsistent *bool `json:"IsConsistent,omitempty"` - // SubNames - List of the child names. - SubNames *[]string `json:"SubNames,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionDataLossProgress information about a partition data loss user-induced operation. -type PartitionDataLossProgress struct { - autorest.Response `json:"-"` - // State - The state of the operation. Possible values include: 'OperationStateInvalid', 'OperationStateRunning', 'OperationStateRollingBack', 'OperationStateCompleted', 'OperationStateFaulted', 'OperationStateCancelled', 'OperationStateForceCancelled' - State OperationState `json:"State,omitempty"` - // InvokeDataLossResult - Represents information about an operation in a terminal state (Completed or Faulted). - InvokeDataLossResult *InvokeDataLossResult `json:"InvokeDataLossResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealth information about the health of a Service Fabric partition. -type PartitionHealth struct { - autorest.Response `json:"-"` - // PartitionID - ID of the partition whose health information is described by this object. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaHealthStates - The list of replica health states associated with the partition. - ReplicaHealthStates *[]BasicReplicaHealthState `json:"ReplicaHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PartitionHealth struct. -func (ph *PartitionHealth) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "PartitionId": - if v != nil { - var partitionID uuid.UUID - err = json.Unmarshal(*v, &partitionID) - if err != nil { - return err - } - ph.PartitionID = &partitionID - } - case "ReplicaHealthStates": - if v != nil { - replicaHealthStates, err := unmarshalBasicReplicaHealthStateArray(*v) - if err != nil { - return err - } - ph.ReplicaHealthStates = &replicaHealthStates - } - case "AggregatedHealthState": - if v != nil { - var aggregatedHealthState HealthState - err = json.Unmarshal(*v, &aggregatedHealthState) - if err != nil { - return err - } - ph.AggregatedHealthState = aggregatedHealthState - } - case "HealthEvents": - if v != nil { - var healthEvents []HealthEvent - err = json.Unmarshal(*v, &healthEvents) - if err != nil { - return err - } - ph.HealthEvents = &healthEvents - } - case "UnhealthyEvaluations": - if v != nil { - var unhealthyEvaluations []HealthEvaluationWrapper - err = json.Unmarshal(*v, &unhealthyEvaluations) - if err != nil { - return err - } - ph.UnhealthyEvaluations = &unhealthyEvaluations - } - case "HealthStatistics": - if v != nil { - var healthStatistics HealthStatistics - err = json.Unmarshal(*v, &healthStatistics) - if err != nil { - return err - } - ph.HealthStatistics = &healthStatistics - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthEvaluation represents health evaluation for a partition, containing information about the data -// and the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type PartitionHealthEvaluation struct { - // PartitionID - Id of the partition whose health evaluation is described by this object. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the partition. The types of the unhealthy evaluations can be ReplicasHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartition - objectMap := make(map[string]interface{}) - if phe.PartitionID != nil { - objectMap["PartitionId"] = phe.PartitionID - } - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionHealthEvaluation. -func (phe PartitionHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthState represents the health state of a partition, which contains the partition identifier and its -// aggregated health state. -type PartitionHealthState struct { - // PartitionID - Id of the partition whose health state is described by this object. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateChunk represents the health state chunk of a partition, which contains the partition id, its -// aggregated health state and any replicas that respect the filters in the cluster health chunk query description. -type PartitionHealthStateChunk struct { - // PartitionID - The Id of the partition. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaHealthStateChunks - The list of replica health state chunks belonging to the partition that respect the filters in the cluster health chunk query description. - ReplicaHealthStateChunks *ReplicaHealthStateChunkList `json:"ReplicaHealthStateChunks,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateChunkList the list of partition health state chunks that respect the input filters in the -// chunk query description. -// Returned by get cluster health state chunks query as part of the parent application hierarchy. -type PartitionHealthStateChunkList struct { - // Items - The list of partition health state chunks that respect the input filters in the chunk query. - Items *[]PartitionHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionHealthStateFilter defines matching criteria to determine whether a partition should be included as a -// child of a service in the cluster health chunk. -// The partitions are only returned if the parent entities match a filter specified in the cluster health chunk -// query description. The parent service and application must be included in the cluster health chunk. -// One filter can match zero, one or multiple partitions, depending on its properties. -type PartitionHealthStateFilter struct { - // PartitionIDFilter - ID of the partition that matches the filter. The filter is applied only to the specified partition, if it exists. - // If the partition doesn't exist, no partition is returned in the cluster health chunk based on this filter. - // If the partition exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all partitions that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - PartitionIDFilter *uuid.UUID `json:"PartitionIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the partitions. It allows selecting partitions if they match the desired health states. - // The possible values are integer value of one of the following health states. Only partitions that match the filter are returned. All partitions are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the partition id is specified. If the filter has default value and partition id is specified, the matching partition is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches partitions with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // ReplicaFilters - Defines a list of filters that specify which replicas to be included in the returned cluster health chunk as children of the parent partition. The replicas are returned only if the parent partition matches a filter. - // If the list is empty, no replicas are returned. All the replicas are used to evaluate the parent partition aggregated health state, regardless of the input filters. - // The partition filter may specify multiple replica filters. - // For example, it can specify a filter to return all replicas with health state Error and another filter to always include a replica identified by its replica id. - ReplicaFilters *[]ReplicaHealthStateFilter `json:"ReplicaFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionInformation information about the partition identity, partitioning scheme and keys supported by it. -type BasicPartitionInformation interface { - AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) - AsNamedPartitionInformation() (*NamedPartitionInformation, bool) - AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) - AsPartitionInformation() (*PartitionInformation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionInformation information about the partition identity, partitioning scheme and keys supported by it. -type PartitionInformation struct { - // ID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -func unmarshalBasicPartitionInformation(body []byte) (BasicPartitionInformation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServicePartitionKind"] { - case string(ServicePartitionKindInt64Range): - var i6rpi Int64RangePartitionInformation - err := json.Unmarshal(body, &i6rpi) - return i6rpi, err - case string(ServicePartitionKindNamed): - var npi NamedPartitionInformation - err := json.Unmarshal(body, &npi) - return npi, err - case string(ServicePartitionKindSingleton): - var spi SingletonPartitionInformation - err := json.Unmarshal(body, &spi) - return spi, err - default: - var pi PartitionInformation - err := json.Unmarshal(body, &pi) - return pi, err - } -} -func unmarshalBasicPartitionInformationArray(body []byte) ([]BasicPartitionInformation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - piArray := make([]BasicPartitionInformation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pi, err := unmarshalBasicPartitionInformation(*rawMessage) - if err != nil { - return nil, err - } - piArray[index] = pi - } - return piArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionInformation. -func (pi PartitionInformation) MarshalJSON() ([]byte, error) { - pi.ServicePartitionKind = ServicePartitionKindPartitionInformation - objectMap := make(map[string]interface{}) - if pi.ID != nil { - objectMap["Id"] = pi.ID - } - if pi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = pi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return &pi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for PartitionInformation. -func (pi PartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &pi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionLoadInformation represents load information for a partition, which contains the primary and secondary -// reported load metrics. -// In case there is no load reported, PartitionLoadInformation will contain the default load for the service of the -// partition. -// For default loads, LoadMetricReport's LastReportedUtc is set to 0. -type PartitionLoadInformation struct { - autorest.Response `json:"-"` - // PartitionID - Id of the partition. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // PrimaryLoadMetricReports - Array of load reports from the primary replica for this partition. - PrimaryLoadMetricReports *[]LoadMetricReport `json:"PrimaryLoadMetricReports,omitempty"` - // SecondaryLoadMetricReports - Array of aggregated load reports from all secondary replicas for this partition. - // Array only contains the latest reported load for each metric. - SecondaryLoadMetricReports *[]LoadMetricReport `json:"SecondaryLoadMetricReports,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionQuorumLossProgress information about a partition quorum loss user-induced operation. -type PartitionQuorumLossProgress struct { - autorest.Response `json:"-"` - // State - The state of the operation. Possible values include: 'OperationStateInvalid', 'OperationStateRunning', 'OperationStateRollingBack', 'OperationStateCompleted', 'OperationStateFaulted', 'OperationStateCancelled', 'OperationStateForceCancelled' - State OperationState `json:"State,omitempty"` - // InvokeQuorumLossResult - Represents information about an operation in a terminal state (Completed or Faulted). - InvokeQuorumLossResult *InvokeQuorumLossResult `json:"InvokeQuorumLossResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionRestartProgress information about a partition restart user-induced operation. -type PartitionRestartProgress struct { - autorest.Response `json:"-"` - // State - The state of the operation. Possible values include: 'OperationStateInvalid', 'OperationStateRunning', 'OperationStateRollingBack', 'OperationStateCompleted', 'OperationStateFaulted', 'OperationStateCancelled', 'OperationStateForceCancelled' - State OperationState `json:"State,omitempty"` - // RestartPartitionResult - Represents information about an operation in a terminal state (Completed or Faulted). - RestartPartitionResult *RestartPartitionResult `json:"RestartPartitionResult,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionSafetyCheck represents a safety check for the service partition being performed by service fabric -// before continuing with operations. -type BasicPartitionSafetyCheck interface { - AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) - AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) - AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) - AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) - AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) - AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) - AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionSafetyCheck represents a safety check for the service partition being performed by service fabric -// before continuing with operations. -type PartitionSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -func unmarshalBasicPartitionSafetyCheck(body []byte) (BasicPartitionSafetyCheck, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindEnsureAvailability): - var easc EnsureAvailabilitySafetyCheck - err := json.Unmarshal(body, &easc) - return easc, err - case string(KindEnsurePartitionQuorum): - var epqsc EnsurePartitionQurumSafetyCheck - err := json.Unmarshal(body, &epqsc) - return epqsc, err - case string(KindWaitForInbuildReplica): - var wfirsc WaitForInbuildReplicaSafetyCheck - err := json.Unmarshal(body, &wfirsc) - return wfirsc, err - case string(KindWaitForPrimaryPlacement): - var wfppsc WaitForPrimaryPlacementSafetyCheck - err := json.Unmarshal(body, &wfppsc) - return wfppsc, err - case string(KindWaitForPrimarySwap): - var wfpssc WaitForPrimarySwapSafetyCheck - err := json.Unmarshal(body, &wfpssc) - return wfpssc, err - case string(KindWaitForReconfiguration): - var wfrsc WaitForReconfigurationSafetyCheck - err := json.Unmarshal(body, &wfrsc) - return wfrsc, err - default: - var psc PartitionSafetyCheck - err := json.Unmarshal(body, &psc) - return psc, err - } -} -func unmarshalBasicPartitionSafetyCheckArray(body []byte) ([]BasicPartitionSafetyCheck, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pscArray := make([]BasicPartitionSafetyCheck, len(rawMessages)) - - for index, rawMessage := range rawMessages { - psc, err := unmarshalBasicPartitionSafetyCheck(*rawMessage) - if err != nil { - return nil, err - } - pscArray[index] = psc - } - return pscArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) MarshalJSON() ([]byte, error) { - psc.Kind = KindPartitionSafetyCheck - objectMap := make(map[string]interface{}) - if psc.PartitionID != nil { - objectMap["PartitionId"] = psc.PartitionID - } - if psc.Kind != "" { - objectMap["Kind"] = psc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for PartitionSafetyCheck. -func (psc PartitionSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &psc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPartitionSchemeDescription describes how the service is partitioned. -type BasicPartitionSchemeDescription interface { - AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) - AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) - AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) - AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionSchemeDescription describes how the service is partitioned. -type PartitionSchemeDescription struct { - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed1', 'PartitionSchemeSingleton1', 'PartitionSchemeUniformInt64Range1' - PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"PartitionScheme,omitempty"` -} - -func unmarshalBasicPartitionSchemeDescription(body []byte) (BasicPartitionSchemeDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["PartitionScheme"] { - case string(PartitionSchemeNamed1): - var npsd NamedPartitionSchemeDescription - err := json.Unmarshal(body, &npsd) - return npsd, err - case string(PartitionSchemeSingleton1): - var spsd SingletonPartitionSchemeDescription - err := json.Unmarshal(body, &spsd) - return spsd, err - case string(PartitionSchemeUniformInt64Range1): - var ui6rpsd UniformInt64RangePartitionSchemeDescription - err := json.Unmarshal(body, &ui6rpsd) - return ui6rpsd, err - default: - var psd PartitionSchemeDescription - err := json.Unmarshal(body, &psd) - return psd, err - } -} -func unmarshalBasicPartitionSchemeDescriptionArray(body []byte) ([]BasicPartitionSchemeDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - psdArray := make([]BasicPartitionSchemeDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - psd, err := unmarshalBasicPartitionSchemeDescription(*rawMessage) - if err != nil { - return nil, err - } - psdArray[index] = psd - } - return psdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) MarshalJSON() ([]byte, error) { - psd.PartitionScheme = PartitionSchemePartitionSchemeDescription - objectMap := make(map[string]interface{}) - if psd.PartitionScheme != "" { - objectMap["PartitionScheme"] = psd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return &psd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription. -func (psd PartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &psd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PartitionsHealthEvaluation represents health evaluation for the partitions of a service, containing health -// evaluations for each unhealthy partition that impacts current aggregated health state. Can be returned when -// evaluating service health and the aggregated health state is either Error or Warning. -type PartitionsHealthEvaluation struct { - // MaxPercentUnhealthyPartitionsPerService - Maximum allowed percentage of unhealthy partitions per service from the ServiceTypeHealthPolicy. - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - // TotalCount - Total number of partitions of the service from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy PartitionHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) MarshalJSON() ([]byte, error) { - phe.Kind = KindPartitions - objectMap := make(map[string]interface{}) - if phe.MaxPercentUnhealthyPartitionsPerService != nil { - objectMap["MaxPercentUnhealthyPartitionsPerService"] = phe.MaxPercentUnhealthyPartitionsPerService - } - if phe.TotalCount != nil { - objectMap["TotalCount"] = phe.TotalCount - } - if phe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = phe.UnhealthyEvaluations - } - if phe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = phe.AggregatedHealthState - } - if phe.Description != nil { - objectMap["Description"] = phe.Description - } - if phe.Kind != "" { - objectMap["Kind"] = phe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for PartitionsHealthEvaluation. -func (phe PartitionsHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &phe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PrimaryReplicatorStatus provides statistics about the Service Fabric Replicator, when it is functioning in a -// Primary role. -type PrimaryReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the primary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // RemoteReplicators - The status of all the active and idle secondary replicators that the primary is aware of. - RemoteReplicators *[]RemoteReplicatorStatus `json:"RemoteReplicators,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) MarshalJSON() ([]byte, error) { - prs.Kind = KindPrimary - objectMap := make(map[string]interface{}) - if prs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = prs.ReplicationQueueStatus - } - if prs.RemoteReplicators != nil { - objectMap["RemoteReplicators"] = prs.RemoteReplicators - } - if prs.Kind != "" { - objectMap["Kind"] = prs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return &prs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for PrimaryReplicatorStatus. -func (prs PrimaryReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &prs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchDescriptionList describes a list of property batch operations to be executed. Either all or none of -// the operations will be committed. -type PropertyBatchDescriptionList struct { - // Operations - A list of the property batch operations to be executed. - Operations *[]BasicPropertyBatchOperation `json:"Operations,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyBatchDescriptionList struct. -func (pbdl *PropertyBatchDescriptionList) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Operations": - if v != nil { - operations, err := unmarshalBasicPropertyBatchOperationArray(*v) - if err != nil { - return err - } - pbdl.Operations = &operations - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPropertyBatchInfo information about the results of a property batch. -type BasicPropertyBatchInfo interface { - AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) - AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) - AsPropertyBatchInfo() (*PropertyBatchInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchInfo information about the results of a property batch. -type PropertyBatchInfo struct { - autorest.Response `json:"-"` - // Kind - Possible values include: 'KindPropertyBatchInfo', 'KindSuccessful', 'KindFailed' - Kind KindBasicPropertyBatchInfo `json:"Kind,omitempty"` -} - -func unmarshalBasicPropertyBatchInfo(body []byte) (BasicPropertyBatchInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindSuccessful): - var spbi SuccessfulPropertyBatchInfo - err := json.Unmarshal(body, &spbi) - return spbi, err - case string(KindFailed): - var fpbi FailedPropertyBatchInfo - err := json.Unmarshal(body, &fpbi) - return fpbi, err - default: - var pbi PropertyBatchInfo - err := json.Unmarshal(body, &pbi) - return pbi, err - } -} -func unmarshalBasicPropertyBatchInfoArray(body []byte) ([]BasicPropertyBatchInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pbiArray := make([]BasicPropertyBatchInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pbi, err := unmarshalBasicPropertyBatchInfo(*rawMessage) - if err != nil { - return nil, err - } - pbiArray[index] = pbi - } - return pbiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PropertyBatchInfo. -func (pbi PropertyBatchInfo) MarshalJSON() ([]byte, error) { - pbi.Kind = KindPropertyBatchInfo - objectMap := make(map[string]interface{}) - if pbi.Kind != "" { - objectMap["Kind"] = pbi.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSuccessfulPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsFailedPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsPropertyBatchInfo() (*PropertyBatchInfo, bool) { - return &pbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchInfo is the BasicPropertyBatchInfo implementation for PropertyBatchInfo. -func (pbi PropertyBatchInfo) AsBasicPropertyBatchInfo() (BasicPropertyBatchInfo, bool) { - return &pbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchInfoModel ... -type PropertyBatchInfoModel struct { - autorest.Response `json:"-"` - Value BasicPropertyBatchInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyBatchInfoModel struct. -func (pbim *PropertyBatchInfoModel) UnmarshalJSON(body []byte) error { - pbi, err := unmarshalBasicPropertyBatchInfo(body) - if err != nil { - return err - } - pbim.Value = pbi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPropertyBatchOperation represents the base type for property operations that can be put into a batch and -// submitted. -type BasicPropertyBatchOperation interface { - AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) - AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) - AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) - AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) - AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) - AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) - AsPropertyBatchOperation() (*PropertyBatchOperation, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyBatchOperation represents the base type for property operations that can be put into a batch and -// submitted. -type PropertyBatchOperation struct { - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -func unmarshalBasicPropertyBatchOperation(body []byte) (BasicPropertyBatchOperation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindCheckExists): - var cepbo CheckExistsPropertyBatchOperation - err := json.Unmarshal(body, &cepbo) - return cepbo, err - case string(KindCheckSequence): - var cspbo CheckSequencePropertyBatchOperation - err := json.Unmarshal(body, &cspbo) - return cspbo, err - case string(KindCheckValue): - var cvpbo CheckValuePropertyBatchOperation - err := json.Unmarshal(body, &cvpbo) - return cvpbo, err - case string(KindDelete): - var dpbo DeletePropertyBatchOperation - err := json.Unmarshal(body, &dpbo) - return dpbo, err - case string(KindGet): - var gpbo GetPropertyBatchOperation - err := json.Unmarshal(body, &gpbo) - return gpbo, err - case string(KindPut): - var ppbo PutPropertyBatchOperation - err := json.Unmarshal(body, &ppbo) - return ppbo, err - default: - var pbo PropertyBatchOperation - err := json.Unmarshal(body, &pbo) - return pbo, err - } -} -func unmarshalBasicPropertyBatchOperationArray(body []byte) ([]BasicPropertyBatchOperation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pboArray := make([]BasicPropertyBatchOperation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pbo, err := unmarshalBasicPropertyBatchOperation(*rawMessage) - if err != nil { - return nil, err - } - pboArray[index] = pbo - } - return pboArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PropertyBatchOperation. -func (pbo PropertyBatchOperation) MarshalJSON() ([]byte, error) { - pbo.Kind = KindPropertyBatchOperation - objectMap := make(map[string]interface{}) - if pbo.PropertyName != nil { - objectMap["PropertyName"] = pbo.PropertyName - } - if pbo.Kind != "" { - objectMap["Kind"] = pbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return &pbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PropertyBatchOperation. -func (pbo PropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &pbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyDescription description of a Service Fabric property. -type PropertyDescription struct { - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // CustomTypeID - The property's custom type id. Using this property, the user is able to tag the type of the value of the property. - CustomTypeID *string `json:"CustomTypeId,omitempty"` - // Value - Describes a Service Fabric property value. - Value BasicPropertyValue `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyDescription struct. -func (pd *PropertyDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "PropertyName": - if v != nil { - var propertyName string - err = json.Unmarshal(*v, &propertyName) - if err != nil { - return err - } - pd.PropertyName = &propertyName - } - case "CustomTypeId": - if v != nil { - var customTypeID string - err = json.Unmarshal(*v, &customTypeID) - if err != nil { - return err - } - pd.CustomTypeID = &customTypeID - } - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - pd.Value = value - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyInfo information about a Service Fabric property. -type PropertyInfo struct { - autorest.Response `json:"-"` - // Name - The name of the Service Fabric property. - Name *string `json:"Name,omitempty"` - // Value - Describes a Service Fabric property value. - Value BasicPropertyValue `json:"Value,omitempty"` - // Metadata - The metadata associated with a property, including the property's name. - Metadata *PropertyMetadata `json:"Metadata,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PropertyInfo struct. -func (pi *PropertyInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pi.Name = &name - } - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - pi.Value = value - } - case "Metadata": - if v != nil { - var metadata PropertyMetadata - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - pi.Metadata = &metadata - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyMetadata the metadata associated with a property, including the property's name. -type PropertyMetadata struct { - // TypeID - The kind of property, determined by the type of data. Following are the possible values. Possible values include: 'PropertyValueKindInvalid', 'PropertyValueKindBinary', 'PropertyValueKindInt64', 'PropertyValueKindDouble', 'PropertyValueKindString', 'PropertyValueKindGUID' - TypeID PropertyValueKind `json:"TypeId,omitempty"` - // CustomTypeID - The property's custom type id. - CustomTypeID *string `json:"CustomTypeId,omitempty"` - // Parent - The name of the parent Service Fabric Name for the property. It could be thought of as the namespace/table under which the property exists. - Parent *string `json:"Parent,omitempty"` - // SizeInBytes - The length of the serialized property value. - SizeInBytes *int32 `json:"SizeInBytes,omitempty"` - // LastModifiedUtcTimestamp - Represents when the Property was last modified. Only write operations will cause this field to be updated. - LastModifiedUtcTimestamp *date.Time `json:"LastModifiedUtcTimestamp,omitempty"` - // SequenceNumber - The version of the property. Every time a property is modified, its sequence number is increased. - SequenceNumber *string `json:"SequenceNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicPropertyValue describes a Service Fabric property value. -type BasicPropertyValue interface { - AsBinaryPropertyValue() (*BinaryPropertyValue, bool) - AsInt64PropertyValue() (*Int64PropertyValue, bool) - AsDoublePropertyValue() (*DoublePropertyValue, bool) - AsStringPropertyValue() (*StringPropertyValue, bool) - AsGUIDPropertyValue() (*GUIDPropertyValue, bool) - AsPropertyValue() (*PropertyValue, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PropertyValue describes a Service Fabric property value. -type PropertyValue struct { - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -func unmarshalBasicPropertyValue(body []byte) (BasicPropertyValue, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindBinary): - var bpv BinaryPropertyValue - err := json.Unmarshal(body, &bpv) - return bpv, err - case string(KindInt64): - var i6pv Int64PropertyValue - err := json.Unmarshal(body, &i6pv) - return i6pv, err - case string(KindDouble): - var dpv DoublePropertyValue - err := json.Unmarshal(body, &dpv) - return dpv, err - case string(KindString): - var spv StringPropertyValue - err := json.Unmarshal(body, &spv) - return spv, err - case string(KindGUID): - var gpv GUIDPropertyValue - err := json.Unmarshal(body, &gpv) - return gpv, err - default: - var pv PropertyValue - err := json.Unmarshal(body, &pv) - return pv, err - } -} -func unmarshalBasicPropertyValueArray(body []byte) ([]BasicPropertyValue, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - pvArray := make([]BasicPropertyValue, len(rawMessages)) - - for index, rawMessage := range rawMessages { - pv, err := unmarshalBasicPropertyValue(*rawMessage) - if err != nil { - return nil, err - } - pvArray[index] = pv - } - return pvArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PropertyValue. -func (pv PropertyValue) MarshalJSON() ([]byte, error) { - pv.Kind = KindPropertyValue - objectMap := make(map[string]interface{}) - if pv.Kind != "" { - objectMap["Kind"] = pv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return &pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for PropertyValue. -func (pv PropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &pv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeDescription describes the operation to register or provision an application type using -// an application package uploaded to the Service Fabric image store. -type ProvisionApplicationTypeDescription struct { - // ApplicationTypeBuildPath - The relative path for the application package in the image store specified during the prior upload operation. - ApplicationTypeBuildPath *string `json:"ApplicationTypeBuildPath,omitempty"` - // Async - Indicates whether or not provisioning should occur asynchronously. When set to true, the provision operation returns when the request is accepted by the system, and the provision operation continues without any timeout limit. The default value is false. For large application packages, we recommend setting the value to true. - Async *bool `json:"Async,omitempty"` - // Kind - Possible values include: 'KindProvisionApplicationTypeDescriptionBase', 'KindImageStorePath', 'KindExternalStore' - Kind KindBasicProvisionApplicationTypeDescriptionBase `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ProvisionApplicationTypeDescription. -func (patd ProvisionApplicationTypeDescription) MarshalJSON() ([]byte, error) { - patd.Kind = KindImageStorePath - objectMap := make(map[string]interface{}) - if patd.ApplicationTypeBuildPath != nil { - objectMap["ApplicationTypeBuildPath"] = patd.ApplicationTypeBuildPath - } - if patd.Async != nil { - objectMap["Async"] = patd.Async - } - if patd.Kind != "" { - objectMap["Kind"] = patd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsProvisionApplicationTypeDescription is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescription. -func (patd ProvisionApplicationTypeDescription) AsProvisionApplicationTypeDescription() (*ProvisionApplicationTypeDescription, bool) { - return &patd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExternalStoreProvisionApplicationTypeDescription is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescription. -func (patd ProvisionApplicationTypeDescription) AsExternalStoreProvisionApplicationTypeDescription() (*ExternalStoreProvisionApplicationTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsProvisionApplicationTypeDescriptionBase is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescription. -func (patd ProvisionApplicationTypeDescription) AsProvisionApplicationTypeDescriptionBase() (*ProvisionApplicationTypeDescriptionBase, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicProvisionApplicationTypeDescriptionBase is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescription. -func (patd ProvisionApplicationTypeDescription) AsBasicProvisionApplicationTypeDescriptionBase() (BasicProvisionApplicationTypeDescriptionBase, bool) { - return &patd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicProvisionApplicationTypeDescriptionBase represents the type of registration or provision requested, and if the -// operation needs to be asynchronous or not. Supported types of provision operations are from either image store or -// external store. -type BasicProvisionApplicationTypeDescriptionBase interface { - AsProvisionApplicationTypeDescription() (*ProvisionApplicationTypeDescription, bool) - AsExternalStoreProvisionApplicationTypeDescription() (*ExternalStoreProvisionApplicationTypeDescription, bool) - AsProvisionApplicationTypeDescriptionBase() (*ProvisionApplicationTypeDescriptionBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionApplicationTypeDescriptionBase represents the type of registration or provision requested, and if the -// operation needs to be asynchronous or not. Supported types of provision operations are from either image store -// or external store. -type ProvisionApplicationTypeDescriptionBase struct { - // Async - Indicates whether or not provisioning should occur asynchronously. When set to true, the provision operation returns when the request is accepted by the system, and the provision operation continues without any timeout limit. The default value is false. For large application packages, we recommend setting the value to true. - Async *bool `json:"Async,omitempty"` - // Kind - Possible values include: 'KindProvisionApplicationTypeDescriptionBase', 'KindImageStorePath', 'KindExternalStore' - Kind KindBasicProvisionApplicationTypeDescriptionBase `json:"Kind,omitempty"` -} - -func unmarshalBasicProvisionApplicationTypeDescriptionBase(body []byte) (BasicProvisionApplicationTypeDescriptionBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindImageStorePath): - var patd ProvisionApplicationTypeDescription - err := json.Unmarshal(body, &patd) - return patd, err - case string(KindExternalStore): - var espatd ExternalStoreProvisionApplicationTypeDescription - err := json.Unmarshal(body, &espatd) - return espatd, err - default: - var patdb ProvisionApplicationTypeDescriptionBase - err := json.Unmarshal(body, &patdb) - return patdb, err - } -} -func unmarshalBasicProvisionApplicationTypeDescriptionBaseArray(body []byte) ([]BasicProvisionApplicationTypeDescriptionBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - patdbArray := make([]BasicProvisionApplicationTypeDescriptionBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - patdb, err := unmarshalBasicProvisionApplicationTypeDescriptionBase(*rawMessage) - if err != nil { - return nil, err - } - patdbArray[index] = patdb - } - return patdbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ProvisionApplicationTypeDescriptionBase. -func (patdb ProvisionApplicationTypeDescriptionBase) MarshalJSON() ([]byte, error) { - patdb.Kind = KindProvisionApplicationTypeDescriptionBase - objectMap := make(map[string]interface{}) - if patdb.Async != nil { - objectMap["Async"] = patdb.Async - } - if patdb.Kind != "" { - objectMap["Kind"] = patdb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsProvisionApplicationTypeDescription is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescriptionBase. -func (patdb ProvisionApplicationTypeDescriptionBase) AsProvisionApplicationTypeDescription() (*ProvisionApplicationTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExternalStoreProvisionApplicationTypeDescription is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescriptionBase. -func (patdb ProvisionApplicationTypeDescriptionBase) AsExternalStoreProvisionApplicationTypeDescription() (*ExternalStoreProvisionApplicationTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsProvisionApplicationTypeDescriptionBase is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescriptionBase. -func (patdb ProvisionApplicationTypeDescriptionBase) AsProvisionApplicationTypeDescriptionBase() (*ProvisionApplicationTypeDescriptionBase, bool) { - return &patdb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicProvisionApplicationTypeDescriptionBase is the BasicProvisionApplicationTypeDescriptionBase implementation for ProvisionApplicationTypeDescriptionBase. -func (patdb ProvisionApplicationTypeDescriptionBase) AsBasicProvisionApplicationTypeDescriptionBase() (BasicProvisionApplicationTypeDescriptionBase, bool) { - return &patdb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ProvisionFabricDescription describes the parameters for provisioning a cluster. -type ProvisionFabricDescription struct { - // CodeFilePath - The cluster code package file path. - CodeFilePath *string `json:"CodeFilePath,omitempty"` - // ClusterManifestFilePath - The cluster manifest file path. - ClusterManifestFilePath *string `json:"ClusterManifestFilePath,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// PutPropertyBatchOperation puts the specified property under the specified name. -// Note that if one PropertyBatchOperation in a PropertyBatch fails, -// the entire batch fails and cannot be committed in a transactional manner. -type PutPropertyBatchOperation struct { - // Value - Describes a Service Fabric property value. - Value BasicPropertyValue `json:"Value,omitempty"` - // CustomTypeID - The property's custom type id. Using this property, the user is able to tag the type of the value of the property. - CustomTypeID *string `json:"CustomTypeId,omitempty"` - // PropertyName - The name of the Service Fabric property. - PropertyName *string `json:"PropertyName,omitempty"` - // Kind - Possible values include: 'KindPropertyBatchOperation', 'KindCheckExists', 'KindCheckSequence', 'KindCheckValue', 'KindDelete', 'KindGet', 'KindPut' - Kind KindBasicPropertyBatchOperation `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) MarshalJSON() ([]byte, error) { - ppbo.Kind = KindPut - objectMap := make(map[string]interface{}) - objectMap["Value"] = ppbo.Value - if ppbo.CustomTypeID != nil { - objectMap["CustomTypeId"] = ppbo.CustomTypeID - } - if ppbo.PropertyName != nil { - objectMap["PropertyName"] = ppbo.PropertyName - } - if ppbo.Kind != "" { - objectMap["Kind"] = ppbo.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckExistsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsCheckExistsPropertyBatchOperation() (*CheckExistsPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckSequencePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsCheckSequencePropertyBatchOperation() (*CheckSequencePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsCheckValuePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsCheckValuePropertyBatchOperation() (*CheckValuePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeletePropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsDeletePropertyBatchOperation() (*DeletePropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGetPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsGetPropertyBatchOperation() (*GetPropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPutPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsPutPropertyBatchOperation() (*PutPropertyBatchOperation, bool) { - return &ppbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsPropertyBatchOperation() (*PropertyBatchOperation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchOperation is the BasicPropertyBatchOperation implementation for PutPropertyBatchOperation. -func (ppbo PutPropertyBatchOperation) AsBasicPropertyBatchOperation() (BasicPropertyBatchOperation, bool) { - return &ppbo, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for PutPropertyBatchOperation struct. -func (ppbo *PutPropertyBatchOperation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Value": - if v != nil { - value, err := unmarshalBasicPropertyValue(*v) - if err != nil { - return err - } - ppbo.Value = value - } - case "CustomTypeId": - if v != nil { - var customTypeID string - err = json.Unmarshal(*v, &customTypeID) - if err != nil { - return err - } - ppbo.CustomTypeID = &customTypeID - } - case "PropertyName": - if v != nil { - var propertyName string - err = json.Unmarshal(*v, &propertyName) - if err != nil { - return err - } - ppbo.PropertyName = &propertyName - } - case "Kind": - if v != nil { - var kind KindBasicPropertyBatchOperation - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - ppbo.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReconfigurationInformation information about current reconfiguration like phase, type, previous configuration -// role of replica and reconfiguration start date time. -type ReconfigurationInformation struct { - // PreviousConfigurationRole - Replica role before reconfiguration started. Possible values include: 'ReplicaRoleUnknown', 'ReplicaRoleNone', 'ReplicaRolePrimary', 'ReplicaRoleIdleSecondary', 'ReplicaRoleActiveSecondary' - PreviousConfigurationRole ReplicaRole `json:"PreviousConfigurationRole,omitempty"` - // ReconfigurationPhase - Current phase of ongoing reconfiguration. If no reconfiguration is taking place then this value will be "None". Possible values include: 'ReconfigurationPhaseUnknown', 'ReconfigurationPhaseNone', 'ReconfigurationPhasePhase0', 'ReconfigurationPhasePhase1', 'ReconfigurationPhasePhase2', 'ReconfigurationPhasePhase3', 'ReconfigurationPhasePhase4', 'ReconfigurationPhaseAbortPhaseZero' - ReconfigurationPhase ReconfigurationPhase `json:"ReconfigurationPhase,omitempty"` - // ReconfigurationType - Type of current ongoing reconfiguration. If no reconfiguration is taking place then this value will be "None". Possible values include: 'ReconfigurationTypeUnknown', 'ReconfigurationTypeSwapPrimary', 'ReconfigurationTypeFailover', 'ReconfigurationTypeOther' - ReconfigurationType ReconfigurationType `json:"ReconfigurationType,omitempty"` - // ReconfigurationStartTimeUtc - Start time (in UTC) of the ongoing reconfiguration. If no reconfiguration is taking place then this value will be zero date-time. - ReconfigurationStartTimeUtc *date.Time `json:"ReconfigurationStartTimeUtc,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RegistryCredential credential information to connect to container registry. -type RegistryCredential struct { - // RegistryUserName - The user name to connect to container registry. - RegistryUserName *string `json:"RegistryUserName,omitempty"` - // RegistryPassword - The password for supplied username to connect to container registry. - RegistryPassword *string `json:"RegistryPassword,omitempty"` - // PasswordEncrypted - Indicates that supplied container registry password is encrypted. - PasswordEncrypted *bool `json:"PasswordEncrypted,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorAcknowledgementDetail provides various statistics of the acknowledgements that are being -// received from the remote replicator. -type RemoteReplicatorAcknowledgementDetail struct { - // AverageReceiveDuration - Represents the average duration it takes for the remote replicator to receive an operation. - AverageReceiveDuration *string `json:"AverageReceiveDuration,omitempty"` - // AverageApplyDuration - Represents the average duration it takes for the remote replicator to apply an operation. This usually entails writing the operation to disk. - AverageApplyDuration *string `json:"AverageApplyDuration,omitempty"` - // NotReceivedCount - Represents the number of operations not yet received by a remote replicator. - NotReceivedCount *string `json:"NotReceivedCount,omitempty"` - // ReceivedAndNotAppliedCount - Represents the number of operations received and not yet applied by a remote replicator. - ReceivedAndNotAppliedCount *string `json:"ReceivedAndNotAppliedCount,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorAcknowledgementStatus provides details about the remote replicators from the primary -// replicator's point of view. -type RemoteReplicatorAcknowledgementStatus struct { - // ReplicationStreamAcknowledgementDetail - Details about the acknowledgements for operations that are part of the replication stream data. - ReplicationStreamAcknowledgementDetail *RemoteReplicatorAcknowledgementDetail `json:"ReplicationStreamAcknowledgementDetail,omitempty"` - // CopyStreamAcknowledgementDetail - Details about the acknowledgements for operations that are part of the copy stream data. - CopyStreamAcknowledgementDetail *RemoteReplicatorAcknowledgementDetail `json:"CopyStreamAcknowledgementDetail,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RemoteReplicatorStatus represents the state of the secondary replicator from the primary replicator’s point of -// view. -type RemoteReplicatorStatus struct { - // ReplicaID - Represents the replica id of the remote secondary replicator. - ReplicaID *string `json:"ReplicaId,omitempty"` - // LastAcknowledgementProcessedTimeUtc - The last timestamp (in UTC) when an acknowledgement from the secondary replicator was processed on the primary. - // UTC 0 represents an invalid value, indicating that no acknowledgement messages were ever processed. - LastAcknowledgementProcessedTimeUtc *date.Time `json:"LastAcknowledgementProcessedTimeUtc,omitempty"` - // LastReceivedReplicationSequenceNumber - The highest replication operation sequence number that the secondary has received from the primary. - LastReceivedReplicationSequenceNumber *string `json:"LastReceivedReplicationSequenceNumber,omitempty"` - // LastAppliedReplicationSequenceNumber - The highest replication operation sequence number that the secondary has applied to its state. - LastAppliedReplicationSequenceNumber *string `json:"LastAppliedReplicationSequenceNumber,omitempty"` - // IsInBuild - A value that indicates whether the secondary replica is in the process of being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // LastReceivedCopySequenceNumber - The highest copy operation sequence number that the secondary has received from the primary. - // A value of -1 implies that the secondary has received all copy operations. - LastReceivedCopySequenceNumber *string `json:"LastReceivedCopySequenceNumber,omitempty"` - // LastAppliedCopySequenceNumber - The highest copy operation sequence number that the secondary has applied to its state. - // A value of -1 implies that the secondary has applied all copy operations and the copy process is complete. - LastAppliedCopySequenceNumber *string `json:"LastAppliedCopySequenceNumber,omitempty"` - // RemoteReplicatorAcknowledgementStatus - Represents the acknowledgement status for the remote secondary replicator. - RemoteReplicatorAcknowledgementStatus *RemoteReplicatorAcknowledgementStatus `json:"RemoteReplicatorAcknowledgementStatus,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicRepairImpactDescriptionBase describes the expected impact of executing a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type BasicRepairImpactDescriptionBase interface { - AsNodeRepairImpactDescription() (*NodeRepairImpactDescription, bool) - AsRepairImpactDescriptionBase() (*RepairImpactDescriptionBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairImpactDescriptionBase describes the expected impact of executing a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairImpactDescriptionBase struct { - // Kind - Possible values include: 'KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase', 'KindBasicRepairImpactDescriptionBaseKindNode' - Kind KindBasicRepairImpactDescriptionBase `json:"Kind,omitempty"` -} - -func unmarshalBasicRepairImpactDescriptionBase(body []byte) (BasicRepairImpactDescriptionBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindBasicRepairImpactDescriptionBaseKindNode): - var nrid NodeRepairImpactDescription - err := json.Unmarshal(body, &nrid) - return nrid, err - default: - var ridb RepairImpactDescriptionBase - err := json.Unmarshal(body, &ridb) - return ridb, err - } -} -func unmarshalBasicRepairImpactDescriptionBaseArray(body []byte) ([]BasicRepairImpactDescriptionBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - ridbArray := make([]BasicRepairImpactDescriptionBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ridb, err := unmarshalBasicRepairImpactDescriptionBase(*rawMessage) - if err != nil { - return nil, err - } - ridbArray[index] = ridb - } - return ridbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) MarshalJSON() ([]byte, error) { - ridb.Kind = KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase - objectMap := make(map[string]interface{}) - if ridb.Kind != "" { - objectMap["Kind"] = ridb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairImpactDescription is the BasicRepairImpactDescriptionBase implementation for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) AsNodeRepairImpactDescription() (*NodeRepairImpactDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) AsRepairImpactDescriptionBase() (*RepairImpactDescriptionBase, bool) { - return &ridb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairImpactDescriptionBase is the BasicRepairImpactDescriptionBase implementation for RepairImpactDescriptionBase. -func (ridb RepairImpactDescriptionBase) AsBasicRepairImpactDescriptionBase() (BasicRepairImpactDescriptionBase, bool) { - return &ridb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicRepairTargetDescriptionBase describes the entities targeted by a repair action. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type BasicRepairTargetDescriptionBase interface { - AsNodeRepairTargetDescription() (*NodeRepairTargetDescription, bool) - AsRepairTargetDescriptionBase() (*RepairTargetDescriptionBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTargetDescriptionBase describes the entities targeted by a repair action. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTargetDescriptionBase struct { - // Kind - Possible values include: 'KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase', 'KindBasicRepairTargetDescriptionBaseKindNode' - Kind KindBasicRepairTargetDescriptionBase `json:"Kind,omitempty"` -} - -func unmarshalBasicRepairTargetDescriptionBase(body []byte) (BasicRepairTargetDescriptionBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindBasicRepairTargetDescriptionBaseKindNode): - var nrtd NodeRepairTargetDescription - err := json.Unmarshal(body, &nrtd) - return nrtd, err - default: - var rtdb RepairTargetDescriptionBase - err := json.Unmarshal(body, &rtdb) - return rtdb, err - } -} -func unmarshalBasicRepairTargetDescriptionBaseArray(body []byte) ([]BasicRepairTargetDescriptionBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rtdbArray := make([]BasicRepairTargetDescriptionBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rtdb, err := unmarshalBasicRepairTargetDescriptionBase(*rawMessage) - if err != nil { - return nil, err - } - rtdbArray[index] = rtdb - } - return rtdbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) MarshalJSON() ([]byte, error) { - rtdb.Kind = KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase - objectMap := make(map[string]interface{}) - if rtdb.Kind != "" { - objectMap["Kind"] = rtdb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeRepairTargetDescription is the BasicRepairTargetDescriptionBase implementation for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) AsNodeRepairTargetDescription() (*NodeRepairTargetDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) AsRepairTargetDescriptionBase() (*RepairTargetDescriptionBase, bool) { - return &rtdb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicRepairTargetDescriptionBase is the BasicRepairTargetDescriptionBase implementation for RepairTargetDescriptionBase. -func (rtdb RepairTargetDescriptionBase) AsBasicRepairTargetDescriptionBase() (BasicRepairTargetDescriptionBase, bool) { - return &rtdb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTask represents a repair task, which includes information about what kind of repair was requested, what -// its progress is, and what its final result was. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTask struct { - // TaskID - The ID of the repair task. - TaskID *string `json:"TaskId,omitempty"` - // Version - The version of the repair task. - // When creating a new repair task, the version must be set to zero. When updating a repair task, - // the version is used for optimistic concurrency checks. If the version is - // set to zero, the update will not check for write conflicts. If the version is set to a non-zero value, then the - // update will only succeed if the actual current version of the repair task matches this value. - Version *string `json:"Version,omitempty"` - // Description - A description of the purpose of the repair task, or other informational details. - // May be set when the repair task is created, and is immutable once set. - Description *string `json:"Description,omitempty"` - // State - The workflow state of the repair task. Valid initial states are Created, Claimed, and Preparing. Possible values include: 'StateInvalid', 'StateCreated', 'StateClaimed', 'StatePreparing', 'StateApproved', 'StateExecuting', 'StateRestoring', 'StateCompleted' - State State `json:"State,omitempty"` - // Flags - A bitwise-OR of the following values, which gives additional details about the status of the repair task. - // - 1 - Cancellation of the repair has been requested - // - 2 - Abort of the repair has been requested - // - 4 - Approval of the repair was forced via client request - Flags *int32 `json:"Flags,omitempty"` - // Action - The requested repair action. Must be specified when the repair task is created, and is immutable once set. - Action *string `json:"Action,omitempty"` - // Target - The target object determines what actions the system will take to prepare for the impact of the repair, prior to approving execution of the repair. - // May be set when the repair task is created, and is immutable once set. - Target BasicRepairTargetDescriptionBase `json:"Target,omitempty"` - // Executor - The name of the repair executor. Must be specified in Claimed and later states, and is immutable once set. - Executor *string `json:"Executor,omitempty"` - // ExecutorData - A data string that the repair executor can use to store its internal state. - ExecutorData *string `json:"ExecutorData,omitempty"` - // Impact - The impact object determines what actions the system will take to prepare for the impact of the repair, prior to approving execution of the repair. - // Impact must be specified by the repair executor when transitioning to the Preparing state, and is immutable once set. - Impact BasicRepairImpactDescriptionBase `json:"Impact,omitempty"` - // ResultStatus - A value describing the overall result of the repair task execution. Must be specified in the Restoring and later states, and is immutable once set. Possible values include: 'ResultStatusInvalid', 'ResultStatusSucceeded', 'ResultStatusCancelled', 'ResultStatusInterrupted', 'ResultStatusFailed', 'ResultStatusPending' - ResultStatus ResultStatus `json:"ResultStatus,omitempty"` - // ResultCode - A numeric value providing additional details about the result of the repair task execution. - // May be specified in the Restoring and later states, and is immutable once set. - ResultCode *int32 `json:"ResultCode,omitempty"` - // ResultDetails - A string providing additional details about the result of the repair task execution. - // May be specified in the Restoring and later states, and is immutable once set. - ResultDetails *string `json:"ResultDetails,omitempty"` - // History - An object that contains timestamps of the repair task's state transitions. - // These timestamps are updated by the system, and cannot be directly modified. - History *RepairTaskHistory `json:"History,omitempty"` - // PreparingHealthCheckState - The workflow state of the health check when the repair task is in the Preparing state. Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Skipped', 'TimedOut' - PreparingHealthCheckState RepairTaskHealthCheckState `json:"PreparingHealthCheckState,omitempty"` - // RestoringHealthCheckState - The workflow state of the health check when the repair task is in the Restoring state. Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Skipped', 'TimedOut' - RestoringHealthCheckState RepairTaskHealthCheckState `json:"RestoringHealthCheckState,omitempty"` - // PerformPreparingHealthCheck - A value to determine if health checks will be performed when the repair task enters the Preparing state. - PerformPreparingHealthCheck *bool `json:"PerformPreparingHealthCheck,omitempty"` - // PerformRestoringHealthCheck - A value to determine if health checks will be performed when the repair task enters the Restoring state. - PerformRestoringHealthCheck *bool `json:"PerformRestoringHealthCheck,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for RepairTask struct. -func (rt *RepairTask) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TaskId": - if v != nil { - var taskID string - err = json.Unmarshal(*v, &taskID) - if err != nil { - return err - } - rt.TaskID = &taskID - } - case "Version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - rt.Version = &version - } - case "Description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rt.Description = &description - } - case "State": - if v != nil { - var state State - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - rt.State = state - } - case "Flags": - if v != nil { - var flags int32 - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - rt.Flags = &flags - } - case "Action": - if v != nil { - var action string - err = json.Unmarshal(*v, &action) - if err != nil { - return err - } - rt.Action = &action - } - case "Target": - if v != nil { - target, err := unmarshalBasicRepairTargetDescriptionBase(*v) - if err != nil { - return err - } - rt.Target = target - } - case "Executor": - if v != nil { - var executor string - err = json.Unmarshal(*v, &executor) - if err != nil { - return err - } - rt.Executor = &executor - } - case "ExecutorData": - if v != nil { - var executorData string - err = json.Unmarshal(*v, &executorData) - if err != nil { - return err - } - rt.ExecutorData = &executorData - } - case "Impact": - if v != nil { - impact, err := unmarshalBasicRepairImpactDescriptionBase(*v) - if err != nil { - return err - } - rt.Impact = impact - } - case "ResultStatus": - if v != nil { - var resultStatus ResultStatus - err = json.Unmarshal(*v, &resultStatus) - if err != nil { - return err - } - rt.ResultStatus = resultStatus - } - case "ResultCode": - if v != nil { - var resultCode int32 - err = json.Unmarshal(*v, &resultCode) - if err != nil { - return err - } - rt.ResultCode = &resultCode - } - case "ResultDetails": - if v != nil { - var resultDetails string - err = json.Unmarshal(*v, &resultDetails) - if err != nil { - return err - } - rt.ResultDetails = &resultDetails - } - case "History": - if v != nil { - var history RepairTaskHistory - err = json.Unmarshal(*v, &history) - if err != nil { - return err - } - rt.History = &history - } - case "PreparingHealthCheckState": - if v != nil { - var preparingHealthCheckState RepairTaskHealthCheckState - err = json.Unmarshal(*v, &preparingHealthCheckState) - if err != nil { - return err - } - rt.PreparingHealthCheckState = preparingHealthCheckState - } - case "RestoringHealthCheckState": - if v != nil { - var restoringHealthCheckState RepairTaskHealthCheckState - err = json.Unmarshal(*v, &restoringHealthCheckState) - if err != nil { - return err - } - rt.RestoringHealthCheckState = restoringHealthCheckState - } - case "PerformPreparingHealthCheck": - if v != nil { - var performPreparingHealthCheck bool - err = json.Unmarshal(*v, &performPreparingHealthCheck) - if err != nil { - return err - } - rt.PerformPreparingHealthCheck = &performPreparingHealthCheck - } - case "PerformRestoringHealthCheck": - if v != nil { - var performRestoringHealthCheck bool - err = json.Unmarshal(*v, &performRestoringHealthCheck) - if err != nil { - return err - } - rt.PerformRestoringHealthCheck = &performRestoringHealthCheck - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskApproveDescription describes a request for forced approval of a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskApproveDescription struct { - // TaskID - The ID of the repair task. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskCancelDescription describes a request to cancel a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskCancelDescription struct { - // TaskID - The ID of the repair task. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` - // RequestAbort - _True_ if the repair should be stopped as soon as possible even if it has already started executing. _False_ if the repair should be cancelled only if execution has not yet started. - RequestAbort *bool `json:"RequestAbort,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskDeleteDescription describes a request to delete a completed repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskDeleteDescription struct { - // TaskID - The ID of the completed repair task to be deleted. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current version of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskHistory a record of the times when the repair task entered each state. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskHistory struct { - // CreatedUtcTimestamp - The time when the repair task entered the Created state. - CreatedUtcTimestamp *date.Time `json:"CreatedUtcTimestamp,omitempty"` - // ClaimedUtcTimestamp - The time when the repair task entered the Claimed state. - ClaimedUtcTimestamp *date.Time `json:"ClaimedUtcTimestamp,omitempty"` - // PreparingUtcTimestamp - The time when the repair task entered the Preparing state. - PreparingUtcTimestamp *date.Time `json:"PreparingUtcTimestamp,omitempty"` - // ApprovedUtcTimestamp - The time when the repair task entered the Approved state - ApprovedUtcTimestamp *date.Time `json:"ApprovedUtcTimestamp,omitempty"` - // ExecutingUtcTimestamp - The time when the repair task entered the Executing state - ExecutingUtcTimestamp *date.Time `json:"ExecutingUtcTimestamp,omitempty"` - // RestoringUtcTimestamp - The time when the repair task entered the Restoring state - RestoringUtcTimestamp *date.Time `json:"RestoringUtcTimestamp,omitempty"` - // CompletedUtcTimestamp - The time when the repair task entered the Completed state - CompletedUtcTimestamp *date.Time `json:"CompletedUtcTimestamp,omitempty"` - // PreparingHealthCheckStartUtcTimestamp - The time when the repair task started the health check in the Preparing state. - PreparingHealthCheckStartUtcTimestamp *date.Time `json:"PreparingHealthCheckStartUtcTimestamp,omitempty"` - // PreparingHealthCheckEndUtcTimestamp - The time when the repair task completed the health check in the Preparing state. - PreparingHealthCheckEndUtcTimestamp *date.Time `json:"PreparingHealthCheckEndUtcTimestamp,omitempty"` - // RestoringHealthCheckStartUtcTimestamp - The time when the repair task started the health check in the Restoring state. - RestoringHealthCheckStartUtcTimestamp *date.Time `json:"RestoringHealthCheckStartUtcTimestamp,omitempty"` - // RestoringHealthCheckEndUtcTimestamp - The time when the repair task completed the health check in the Restoring state. - RestoringHealthCheckEndUtcTimestamp *date.Time `json:"RestoringHealthCheckEndUtcTimestamp,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskUpdateHealthPolicyDescription describes a request to update the health policy of a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskUpdateHealthPolicyDescription struct { - // TaskID - The ID of the repair task to be updated. - TaskID *string `json:"TaskId,omitempty"` - // Version - The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed. - Version *string `json:"Version,omitempty"` - // PerformPreparingHealthCheck - A boolean indicating if health check is to be performed in the Preparing stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value. - PerformPreparingHealthCheck *bool `json:"PerformPreparingHealthCheck,omitempty"` - // PerformRestoringHealthCheck - A boolean indicating if health check is to be performed in the Restoring stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value. - PerformRestoringHealthCheck *bool `json:"PerformRestoringHealthCheck,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RepairTaskUpdateInfo describes the result of an operation that created or updated a repair task. -// -// This type supports the Service Fabric platform; it is not meant to be used directly from your code. -type RepairTaskUpdateInfo struct { - autorest.Response `json:"-"` - // Version - The new version of the repair task. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaHealth represents a base class for stateful service replica or stateless service instance health. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type BasicReplicaHealth interface { - AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) - AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) - AsReplicaHealth() (*ReplicaHealth, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealth represents a base class for stateful service replica or stateless service instance health. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type ReplicaHealth struct { - autorest.Response `json:"-"` - // PartitionID - Id of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -func unmarshalBasicReplicaHealth(body []byte) (BasicReplicaHealth, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaHealthServiceKindStateful): - var ssrh StatefulServiceReplicaHealth - err := json.Unmarshal(body, &ssrh) - return ssrh, err - case string(ServiceKindBasicReplicaHealthServiceKindStateless): - var ssih StatelessServiceInstanceHealth - err := json.Unmarshal(body, &ssih) - return ssih, err - default: - var rh ReplicaHealth - err := json.Unmarshal(body, &rh) - return rh, err - } -} -func unmarshalBasicReplicaHealthArray(body []byte) ([]BasicReplicaHealth, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rhArray := make([]BasicReplicaHealth, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rh, err := unmarshalBasicReplicaHealth(*rawMessage) - if err != nil { - return nil, err - } - rhArray[index] = rh - } - return rhArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealth. -func (rh ReplicaHealth) MarshalJSON() ([]byte, error) { - rh.ServiceKind = ServiceKindBasicReplicaHealthServiceKindReplicaHealth - objectMap := make(map[string]interface{}) - if rh.PartitionID != nil { - objectMap["PartitionId"] = rh.PartitionID - } - if rh.ServiceKind != "" { - objectMap["ServiceKind"] = rh.ServiceKind - } - if rh.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rh.AggregatedHealthState - } - if rh.HealthEvents != nil { - objectMap["HealthEvents"] = rh.HealthEvents - } - if rh.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rh.UnhealthyEvaluations - } - if rh.HealthStatistics != nil { - objectMap["HealthStatistics"] = rh.HealthStatistics - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return &rh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for ReplicaHealth. -func (rh ReplicaHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &rh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthEvaluation represents health evaluation for a replica, containing information about the data and -// the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type ReplicaHealthEvaluation struct { - // PartitionID - Id of the partition to which the replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ReplicaOrInstanceID - Id of a stateful service replica or a stateless service instance. This id is used in the queries that apply to both stateful and stateless services. It is used by Service Fabric to uniquely identify a replica of a partition of a stateful service or an instance of a stateless service partition. It is unique within a partition and does not change for the lifetime of the replica or the instance. If a stateful replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. If a stateless instance is failed over on the same or different node it will get a different value for the id. - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the replica. The types of the unhealthy evaluations can be EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplica - objectMap := make(map[string]interface{}) - if rhe.PartitionID != nil { - objectMap["PartitionId"] = rhe.PartitionID - } - if rhe.ReplicaOrInstanceID != nil { - objectMap["ReplicaOrInstanceId"] = rhe.ReplicaOrInstanceID - } - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicaHealthEvaluation. -func (rhe ReplicaHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthModel ... -type ReplicaHealthModel struct { - autorest.Response `json:"-"` - Value BasicReplicaHealth `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ReplicaHealthModel struct. -func (rhm *ReplicaHealthModel) UnmarshalJSON(body []byte) error { - rh, err := unmarshalBasicReplicaHealth(body) - if err != nil { - return err - } - rhm.Value = rh - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaHealthState represents a base class for stateful service replica or stateless service instance health -// state. -type BasicReplicaHealthState interface { - AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) - AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) - AsReplicaHealthState() (*ReplicaHealthState, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthState represents a base class for stateful service replica or stateless service instance health -// state. -type ReplicaHealthState struct { - // PartitionID - The ID of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -func unmarshalBasicReplicaHealthState(body []byte) (BasicReplicaHealthState, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaHealthStateServiceKindStateful): - var ssrhs StatefulServiceReplicaHealthState - err := json.Unmarshal(body, &ssrhs) - return ssrhs, err - case string(ServiceKindBasicReplicaHealthStateServiceKindStateless): - var ssihs StatelessServiceInstanceHealthState - err := json.Unmarshal(body, &ssihs) - return ssihs, err - default: - var RHS ReplicaHealthState - err := json.Unmarshal(body, &RHS) - return RHS, err - } -} -func unmarshalBasicReplicaHealthStateArray(body []byte) ([]BasicReplicaHealthState, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - RHSArray := make([]BasicReplicaHealthState, len(rawMessages)) - - for index, rawMessage := range rawMessages { - RHS, err := unmarshalBasicReplicaHealthState(*rawMessage) - if err != nil { - return nil, err - } - RHSArray[index] = RHS - } - return RHSArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaHealthState. -func (RHS ReplicaHealthState) MarshalJSON() ([]byte, error) { - RHS.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState - objectMap := make(map[string]interface{}) - if RHS.PartitionID != nil { - objectMap["PartitionId"] = RHS.PartitionID - } - if RHS.ServiceKind != "" { - objectMap["ServiceKind"] = RHS.ServiceKind - } - if RHS.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = RHS.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return &RHS, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for ReplicaHealthState. -func (RHS ReplicaHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &RHS, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateChunk represents the health state chunk of a stateful service replica or a stateless service -// instance. -// The replica health state contains the replica ID and its aggregated health state. -type ReplicaHealthStateChunk struct { - // ReplicaOrInstanceID - Id of a stateful service replica or a stateless service instance. This id is used in the queries that apply to both stateful and stateless services. It is used by Service Fabric to uniquely identify a replica of a partition of a stateful service or an instance of a stateless service partition. It is unique within a partition and does not change for the lifetime of the replica or the instance. If a stateful replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. If a stateless instance is failed over on the same or different node it will get a different value for the id. - ReplicaOrInstanceID *string `json:"ReplicaOrInstanceId,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateChunkList the list of replica health state chunks that respect the input filters in the chunk -// query. Returned by get cluster health state chunks query. -type ReplicaHealthStateChunkList struct { - // Items - The list of replica health state chunks that respect the input filters in the chunk query. - Items *[]ReplicaHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaHealthStateFilter defines matching criteria to determine whether a replica should be included as a child -// of a partition in the cluster health chunk. -// The replicas are only returned if the parent entities match a filter specified in the cluster health chunk query -// description. The parent partition, service and application must be included in the cluster health chunk. -// One filter can match zero, one or multiple replicas, depending on its properties. -type ReplicaHealthStateFilter struct { - // ReplicaOrInstanceIDFilter - Id of the stateful service replica or stateless service instance that matches the filter. The filter is applied only to the specified replica, if it exists. - // If the replica doesn't exist, no replica is returned in the cluster health chunk based on this filter. - // If the replica exists, it is included in the cluster health chunk if it respects the other filter properties. - // If not specified, all replicas that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ReplicaOrInstanceIDFilter *string `json:"ReplicaOrInstanceIdFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the replicas. It allows selecting replicas if they match the desired health states. - // The possible values are integer value of one of the following health states. Only replicas that match the filter are returned. All replicas are used to evaluate the parent partition aggregated health state. - // If not specified, default value is None, unless the replica id is specified. If the filter has default value and replica id is specified, the matching replica is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches replicas with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaInfo information about the identity, status, health, node name, uptime, and other details about the -// replica. -type BasicReplicaInfo interface { - AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) - AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) - AsReplicaInfo() (*ReplicaInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaInfo information about the identity, status, health, node name, uptime, and other details about the -// replica. -type ReplicaInfo struct { - autorest.Response `json:"-"` - // ReplicaStatus - The status of a replica of a service. Possible values are following. - // -Invalid - Indicates the replica status is invalid. All Service Fabric enumerations have the invalid type. The value is zero. - // -InBuild - The replica is being built. This means that a primary replica is seeding this replica. The value is 1. - // -Standby - The replica is in standby. The value is 2. - // -Ready - The replica is ready. The value is 3. - // -Down - The replica is down. The value is 4. - // -Dropped - Replica is dropped. This means that the replica has been removed from the replica set. If it is persisted, its state has been deleted. The value is 5. - // . Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicReplicaInfo(body []byte) (BasicReplicaInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicReplicaInfoServiceKindStateful): - var ssri StatefulServiceReplicaInfo - err := json.Unmarshal(body, &ssri) - return ssri, err - case string(ServiceKindBasicReplicaInfoServiceKindStateless): - var ssii StatelessServiceInstanceInfo - err := json.Unmarshal(body, &ssii) - return ssii, err - default: - var ri ReplicaInfo - err := json.Unmarshal(body, &ri) - return ri, err - } -} -func unmarshalBasicReplicaInfoArray(body []byte) ([]BasicReplicaInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - riArray := make([]BasicReplicaInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ri, err := unmarshalBasicReplicaInfo(*rawMessage) - if err != nil { - return nil, err - } - riArray[index] = ri - } - return riArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaInfo. -func (ri ReplicaInfo) MarshalJSON() ([]byte, error) { - ri.ServiceKind = ServiceKindBasicReplicaInfoServiceKindReplicaInfo - objectMap := make(map[string]interface{}) - if ri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ri.ReplicaStatus - } - if ri.HealthState != "" { - objectMap["HealthState"] = ri.HealthState - } - if ri.NodeName != nil { - objectMap["NodeName"] = ri.NodeName - } - if ri.Address != nil { - objectMap["Address"] = ri.Address - } - if ri.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ri.LastInBuildDurationInSeconds - } - if ri.ServiceKind != "" { - objectMap["ServiceKind"] = ri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return &ri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for ReplicaInfo. -func (ri ReplicaInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaInfoModel ... -type ReplicaInfoModel struct { - autorest.Response `json:"-"` - Value BasicReplicaInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ReplicaInfoModel struct. -func (rim *ReplicaInfoModel) UnmarshalJSON(body []byte) error { - ri, err := unmarshalBasicReplicaInfo(body) - if err != nil { - return err - } - rim.Value = ri - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicasHealthEvaluation represents health evaluation for replicas, containing health evaluations for each -// unhealthy replica that impacted current aggregated health state. Can be returned when evaluating partition -// health and the aggregated health state is either Error or Warning. -type ReplicasHealthEvaluation struct { - // MaxPercentUnhealthyReplicasPerPartition - Maximum allowed percentage of unhealthy replicas per partition from the ApplicationHealthPolicy. - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` - // TotalCount - Total number of replicas in the partition from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ReplicaHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) MarshalJSON() ([]byte, error) { - rhe.Kind = KindReplicas - objectMap := make(map[string]interface{}) - if rhe.MaxPercentUnhealthyReplicasPerPartition != nil { - objectMap["MaxPercentUnhealthyReplicasPerPartition"] = rhe.MaxPercentUnhealthyReplicasPerPartition - } - if rhe.TotalCount != nil { - objectMap["TotalCount"] = rhe.TotalCount - } - if rhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = rhe.UnhealthyEvaluations - } - if rhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = rhe.AggregatedHealthState - } - if rhe.Description != nil { - objectMap["Description"] = rhe.Description - } - if rhe.Kind != "" { - objectMap["Kind"] = rhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ReplicasHealthEvaluation. -func (rhe ReplicasHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &rhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicaStatusBase information about the replica. -type BasicReplicaStatusBase interface { - AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) - AsReplicaStatusBase() (*ReplicaStatusBase, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicaStatusBase information about the replica. -type ReplicaStatusBase struct { - // Kind - Possible values include: 'KindReplicaStatusBase', 'KindKeyValueStore' - Kind KindBasicReplicaStatusBase `json:"Kind,omitempty"` -} - -func unmarshalBasicReplicaStatusBase(body []byte) (BasicReplicaStatusBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindKeyValueStore): - var kvsrs KeyValueStoreReplicaStatus - err := json.Unmarshal(body, &kvsrs) - return kvsrs, err - default: - var rsb ReplicaStatusBase - err := json.Unmarshal(body, &rsb) - return rsb, err - } -} -func unmarshalBasicReplicaStatusBaseArray(body []byte) ([]BasicReplicaStatusBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rsbArray := make([]BasicReplicaStatusBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rsb, err := unmarshalBasicReplicaStatusBase(*rawMessage) - if err != nil { - return nil, err - } - rsbArray[index] = rsb - } - return rsbArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicaStatusBase. -func (rsb ReplicaStatusBase) MarshalJSON() ([]byte, error) { - rsb.Kind = KindReplicaStatusBase - objectMap := make(map[string]interface{}) - if rsb.Kind != "" { - objectMap["Kind"] = rsb.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsKeyValueStoreReplicaStatus is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsKeyValueStoreReplicaStatus() (*KeyValueStoreReplicaStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaStatusBase is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsReplicaStatusBase() (*ReplicaStatusBase, bool) { - return &rsb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaStatusBase is the BasicReplicaStatusBase implementation for ReplicaStatusBase. -func (rsb ReplicaStatusBase) AsBasicReplicaStatusBase() (BasicReplicaStatusBase, bool) { - return &rsb, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicatorQueueStatus provides various statistics of the queue used in the service fabric replicator. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -// Depending on the role of the replicator, the properties in this type imply different meanings. -type ReplicatorQueueStatus struct { - // QueueUtilizationPercentage - Represents the utilization of the queue. A value of 0 indicates that the queue is empty and a value of 100 indicates the queue is full. - QueueUtilizationPercentage *int32 `json:"QueueUtilizationPercentage,omitempty"` - // QueueMemorySize - Represents the virtual memory consumed by the queue in bytes. - QueueMemorySize *string `json:"QueueMemorySize,omitempty"` - // FirstSequenceNumber - On a primary replicator, this is semantically the sequence number of the operation for which all the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is the smallest sequence number of the operation that is present in the queue. - FirstSequenceNumber *string `json:"FirstSequenceNumber,omitempty"` - // CompletedSequenceNumber - On a primary replicator, this is semantically the highest sequence number of the operation for which all the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is semantically the highest sequence number that has been applied to the persistent state. - CompletedSequenceNumber *string `json:"CompletedSequenceNumber,omitempty"` - // CommittedSequenceNumber - On a primary replicator, this is semantically the highest sequence number of the operation for which a write quorum of the secondary replicas have sent an acknowledgement. - // On a secondary replicator, this is semantically the highest sequence number of the in-order operation received from the primary. - CommittedSequenceNumber *string `json:"CommittedSequenceNumber,omitempty"` - // LastSequenceNumber - Represents the latest sequence number of the operation that is available in the queue. - LastSequenceNumber *string `json:"LastSequenceNumber,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicReplicatorStatus represents a base class for primary or secondary replicator status. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -type BasicReplicatorStatus interface { - AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) - AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) - AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) - AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) - AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) - AsReplicatorStatus() (*ReplicatorStatus, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ReplicatorStatus represents a base class for primary or secondary replicator status. -// Contains information about the service fabric replicator like the replication/copy queue utilization, last -// acknowledgement received timestamp, etc. -type ReplicatorStatus struct { - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -func unmarshalBasicReplicatorStatus(body []byte) (BasicReplicatorStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindPrimary): - var prs PrimaryReplicatorStatus - err := json.Unmarshal(body, &prs) - return prs, err - case string(KindSecondaryReplicatorStatus): - var srs SecondaryReplicatorStatus - err := json.Unmarshal(body, &srs) - return srs, err - case string(KindActiveSecondary): - var sars SecondaryActiveReplicatorStatus - err := json.Unmarshal(body, &sars) - return sars, err - case string(KindIdleSecondary): - var sirs SecondaryIdleReplicatorStatus - err := json.Unmarshal(body, &sirs) - return sirs, err - default: - var rs ReplicatorStatus - err := json.Unmarshal(body, &rs) - return rs, err - } -} -func unmarshalBasicReplicatorStatusArray(body []byte) ([]BasicReplicatorStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - rsArray := make([]BasicReplicatorStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - rs, err := unmarshalBasicReplicatorStatus(*rawMessage) - if err != nil { - return nil, err - } - rsArray[index] = rs - } - return rsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ReplicatorStatus. -func (rs ReplicatorStatus) MarshalJSON() ([]byte, error) { - rs.Kind = KindReplicatorStatus - objectMap := make(map[string]interface{}) - if rs.Kind != "" { - objectMap["Kind"] = rs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for ReplicatorStatus. -func (rs ReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &rs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServiceEndpoint endpoint of a resolved service partition. -type ResolvedServiceEndpoint struct { - // Kind - The role of the replica where the endpoint is reported. Possible values include: 'ServiceEndpointRoleInvalid', 'ServiceEndpointRoleStateless', 'ServiceEndpointRoleStatefulPrimary', 'ServiceEndpointRoleStatefulSecondary' - Kind ServiceEndpointRole `json:"Kind,omitempty"` - // Address - The address of the endpoint. If the endpoint has multiple listeners the address is a JSON object with one property per listener with the value as the address of that listener. - Address *string `json:"Address,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResolvedServicePartition information about a service partition and its associated endpoints. -type ResolvedServicePartition struct { - autorest.Response `json:"-"` - // Name - The full name of the service with 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // PartitionInformation - A representation of the resolved partition. - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // Endpoints - List of resolved service endpoints of a service partition. - Endpoints *[]ResolvedServiceEndpoint `json:"Endpoints,omitempty"` - // Version - The version of this resolved service partition result. This version should be passed in the next time the ResolveService call is made via the PreviousRspVersion query parameter. - Version *string `json:"Version,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ResolvedServicePartition struct. -func (rsp *ResolvedServicePartition) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - rsp.Name = &name - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - rsp.PartitionInformation = partitionInformation - } - case "Endpoints": - if v != nil { - var endpoints []ResolvedServiceEndpoint - err = json.Unmarshal(*v, &endpoints) - if err != nil { - return err - } - rsp.Endpoints = &endpoints - } - case "Version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - rsp.Version = &version - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartDeployedCodePackageDescription defines description for restarting a deployed code package on Service -// Fabric node. -type RestartDeployedCodePackageDescription struct { - // ServiceManifestName - The name of service manifest that specified this code package. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ServicePackageActivationID - The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service - // is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId - // is always an empty string. - ServicePackageActivationID *string `json:"ServicePackageActivationId,omitempty"` - // CodePackageName - The name of the code package defined in the service manifest. - CodePackageName *string `json:"CodePackageName,omitempty"` - // CodePackageInstanceID - The instance ID for currently running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. - // Each time entry point executable is run, its instance id will change. If 0 is passed in as the code package instance ID, the API will restart the code package with whatever instance ID it is currently running. - // If an instance ID other than 0 is passed in, the API will restart the code package only if the current Instance ID matches the passed in instance ID. - // Note, passing in the exact instance ID (not 0) in the API is safer, because if ensures at most one restart of the code package. - CodePackageInstanceID *string `json:"CodePackageInstanceId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartNodeDescription describes the parameters to restart a Service Fabric node. -type RestartNodeDescription struct { - // NodeInstanceID - The instance id of the target node. If instance id is specified the node is restarted only if it matches with the current instance of the node. A default value of "0" would match any instance id. The instance id can be obtained using get node query. - NodeInstanceID *string `json:"NodeInstanceId,omitempty"` - // CreateFabricDump - Specify True to create a dump of the fabric node process. This is case sensitive. Possible values include: 'False', 'True' - CreateFabricDump CreateFabricDump `json:"CreateFabricDump,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RestartPartitionResult represents information about an operation in a terminal state (Completed or Faulted). -type RestartPartitionResult struct { - // ErrorCode - If OperationState is Completed, this is 0. If OperationState is Faulted, this is an error code indicating the reason. - ErrorCode *int32 `json:"ErrorCode,omitempty"` - // SelectedPartition - This class returns information about the partition that the user-induced operation acted upon. - SelectedPartition *SelectedPartition `json:"SelectedPartition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeApplicationUpgradeDescription describes the parameters for resuming an unmonitored manual Service Fabric -// application upgrade -type ResumeApplicationUpgradeDescription struct { - // UpgradeDomainName - The name of the upgrade domain in which to resume the upgrade. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ResumeClusterUpgradeDescription describes the parameters for resuming a cluster upgrade. -type ResumeClusterUpgradeDescription struct { - // UpgradeDomain - The next upgrade domain for this cluster upgrade. - UpgradeDomain *string `json:"UpgradeDomain,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// RollingUpgradeUpdateDescription describes the parameters for updating a rolling upgrade of application or -// cluster. -type RollingUpgradeUpdateDescription struct { - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). - ForceRestart *bool `json:"ForceRestart,omitempty"` - // ReplicaSetCheckTimeoutInMilliseconds - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - ReplicaSetCheckTimeoutInMilliseconds *int64 `json:"ReplicaSetCheckTimeoutInMilliseconds,omitempty"` - // FailureAction - The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Possible values include: 'FailureActionInvalid', 'FailureActionRollback', 'FailureActionManual' - FailureAction FailureAction `json:"FailureAction,omitempty"` - // HealthCheckWaitDurationInMilliseconds - The amount of time to wait after completing an upgrade domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - HealthCheckWaitDurationInMilliseconds *string `json:"HealthCheckWaitDurationInMilliseconds,omitempty"` - // HealthCheckStableDurationInMilliseconds - The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - HealthCheckStableDurationInMilliseconds *string `json:"HealthCheckStableDurationInMilliseconds,omitempty"` - // HealthCheckRetryTimeoutInMilliseconds - The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - HealthCheckRetryTimeoutInMilliseconds *string `json:"HealthCheckRetryTimeoutInMilliseconds,omitempty"` - // UpgradeTimeoutInMilliseconds - The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - UpgradeTimeoutInMilliseconds *string `json:"UpgradeTimeoutInMilliseconds,omitempty"` - // UpgradeDomainTimeoutInMilliseconds - The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. - UpgradeDomainTimeoutInMilliseconds *string `json:"UpgradeDomainTimeoutInMilliseconds,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicSafetyCheck represents a safety check performed by service fabric before continuing with the operations. These -// checks ensure the availability of the service and the reliability of the state. -type BasicSafetyCheck interface { - AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) - AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) - AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) - AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) - AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) - AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) - AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) - AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) - AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) - AsSafetyCheck() (*SafetyCheck, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SafetyCheck represents a safety check performed by service fabric before continuing with the operations. These -// checks ensure the availability of the service and the reliability of the state. -type SafetyCheck struct { - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -func unmarshalBasicSafetyCheck(body []byte) (BasicSafetyCheck, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindPartitionSafetyCheck): - var psc PartitionSafetyCheck - err := json.Unmarshal(body, &psc) - return psc, err - case string(KindEnsureAvailability): - var easc EnsureAvailabilitySafetyCheck - err := json.Unmarshal(body, &easc) - return easc, err - case string(KindEnsurePartitionQuorum): - var epqsc EnsurePartitionQurumSafetyCheck - err := json.Unmarshal(body, &epqsc) - return epqsc, err - case string(KindEnsureSeedNodeQuorum): - var snsc SeedNodeSafetyCheck - err := json.Unmarshal(body, &snsc) - return snsc, err - case string(KindWaitForInbuildReplica): - var wfirsc WaitForInbuildReplicaSafetyCheck - err := json.Unmarshal(body, &wfirsc) - return wfirsc, err - case string(KindWaitForPrimaryPlacement): - var wfppsc WaitForPrimaryPlacementSafetyCheck - err := json.Unmarshal(body, &wfppsc) - return wfppsc, err - case string(KindWaitForPrimarySwap): - var wfpssc WaitForPrimarySwapSafetyCheck - err := json.Unmarshal(body, &wfpssc) - return wfpssc, err - case string(KindWaitForReconfiguration): - var wfrsc WaitForReconfigurationSafetyCheck - err := json.Unmarshal(body, &wfrsc) - return wfrsc, err - default: - var sc SafetyCheck - err := json.Unmarshal(body, &sc) - return sc, err - } -} -func unmarshalBasicSafetyCheckArray(body []byte) ([]BasicSafetyCheck, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - scArray := make([]BasicSafetyCheck, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sc, err := unmarshalBasicSafetyCheck(*rawMessage) - if err != nil { - return nil, err - } - scArray[index] = sc - } - return scArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SafetyCheck. -func (sc SafetyCheck) MarshalJSON() ([]byte, error) { - sc.Kind = KindSafetyCheck - objectMap := make(map[string]interface{}) - if sc.Kind != "" { - objectMap["Kind"] = sc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return &sc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for SafetyCheck. -func (sc SafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &sc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SafetyCheckWrapper a wrapper for the safety check object. Safety checks are performed by service fabric before -// continuing with the operations. These checks ensure the availability of the service and the reliability of the -// state. -type SafetyCheckWrapper struct { - // SafetyCheck - Represents a safety check performed by service fabric before continuing with the operations. These checks ensure the availability of the service and the reliability of the state. - SafetyCheck BasicSafetyCheck `json:"SafetyCheck,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for SafetyCheckWrapper struct. -func (scw *SafetyCheckWrapper) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "SafetyCheck": - if v != nil { - safetyCheck, err := unmarshalBasicSafetyCheck(*v) - if err != nil { - return err - } - scw.SafetyCheck = safetyCheck - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryActiveReplicatorStatus status of the secondary replicator when it is in active mode and is part of the -// replica set. -type SecondaryActiveReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the secondary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // CopyQueueStatus - Details about the copy queue on the secondary replicator. - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) MarshalJSON() ([]byte, error) { - sars.Kind = KindActiveSecondary - objectMap := make(map[string]interface{}) - if sars.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = sars.ReplicationQueueStatus - } - if sars.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = sars.LastReplicationOperationReceivedTimeUtc - } - if sars.IsInBuild != nil { - objectMap["IsInBuild"] = sars.IsInBuild - } - if sars.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = sars.CopyQueueStatus - } - if sars.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = sars.LastCopyOperationReceivedTimeUtc - } - if sars.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = sars.LastAcknowledgementSentTimeUtc - } - if sars.Kind != "" { - objectMap["Kind"] = sars.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryActiveReplicatorStatus. -func (sars SecondaryActiveReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &sars, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryIdleReplicatorStatus status of the secondary replicator when it is in idle mode and is being built by -// the primary. -type SecondaryIdleReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the secondary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // CopyQueueStatus - Details about the copy queue on the secondary replicator. - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) MarshalJSON() ([]byte, error) { - sirs.Kind = KindIdleSecondary - objectMap := make(map[string]interface{}) - if sirs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = sirs.ReplicationQueueStatus - } - if sirs.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = sirs.LastReplicationOperationReceivedTimeUtc - } - if sirs.IsInBuild != nil { - objectMap["IsInBuild"] = sirs.IsInBuild - } - if sirs.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = sirs.CopyQueueStatus - } - if sirs.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = sirs.LastCopyOperationReceivedTimeUtc - } - if sirs.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = sirs.LastAcknowledgementSentTimeUtc - } - if sirs.Kind != "" { - objectMap["Kind"] = sirs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryIdleReplicatorStatus. -func (sirs SecondaryIdleReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &sirs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicSecondaryReplicatorStatus provides statistics about the Service Fabric Replicator, when it is functioning in a -// ActiveSecondary role. -type BasicSecondaryReplicatorStatus interface { - AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) - AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) - AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SecondaryReplicatorStatus provides statistics about the Service Fabric Replicator, when it is functioning in a -// ActiveSecondary role. -type SecondaryReplicatorStatus struct { - // ReplicationQueueStatus - Details about the replication queue on the secondary replicator. - ReplicationQueueStatus *ReplicatorQueueStatus `json:"ReplicationQueueStatus,omitempty"` - // LastReplicationOperationReceivedTimeUtc - The last time-stamp (UTC) at which a replication operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a replication operation message was never received. - LastReplicationOperationReceivedTimeUtc *date.Time `json:"LastReplicationOperationReceivedTimeUtc,omitempty"` - // IsInBuild - Value that indicates whether the replica is currently being built. - IsInBuild *bool `json:"IsInBuild,omitempty"` - // CopyQueueStatus - Details about the copy queue on the secondary replicator. - CopyQueueStatus *ReplicatorQueueStatus `json:"CopyQueueStatus,omitempty"` - // LastCopyOperationReceivedTimeUtc - The last time-stamp (UTC) at which a copy operation was received from the primary. - // UTC 0 represents an invalid value, indicating that a copy operation message was never received. - LastCopyOperationReceivedTimeUtc *date.Time `json:"LastCopyOperationReceivedTimeUtc,omitempty"` - // LastAcknowledgementSentTimeUtc - The last time-stamp (UTC) at which an acknowledgment was sent to the primary replicator. - // UTC 0 represents an invalid value, indicating that an acknowledgment message was never sent. - LastAcknowledgementSentTimeUtc *date.Time `json:"LastAcknowledgementSentTimeUtc,omitempty"` - // Kind - Possible values include: 'KindReplicatorStatus', 'KindPrimary', 'KindSecondaryReplicatorStatus', 'KindActiveSecondary', 'KindIdleSecondary' - Kind KindBasicReplicatorStatus `json:"Kind,omitempty"` -} - -func unmarshalBasicSecondaryReplicatorStatus(body []byte) (BasicSecondaryReplicatorStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindActiveSecondary): - var sars SecondaryActiveReplicatorStatus - err := json.Unmarshal(body, &sars) - return sars, err - case string(KindIdleSecondary): - var sirs SecondaryIdleReplicatorStatus - err := json.Unmarshal(body, &sirs) - return sirs, err - default: - var srs SecondaryReplicatorStatus - err := json.Unmarshal(body, &srs) - return srs, err - } -} -func unmarshalBasicSecondaryReplicatorStatusArray(body []byte) ([]BasicSecondaryReplicatorStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - srsArray := make([]BasicSecondaryReplicatorStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - srs, err := unmarshalBasicSecondaryReplicatorStatus(*rawMessage) - if err != nil { - return nil, err - } - srsArray[index] = srs - } - return srsArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) MarshalJSON() ([]byte, error) { - srs.Kind = KindSecondaryReplicatorStatus - objectMap := make(map[string]interface{}) - if srs.ReplicationQueueStatus != nil { - objectMap["ReplicationQueueStatus"] = srs.ReplicationQueueStatus - } - if srs.LastReplicationOperationReceivedTimeUtc != nil { - objectMap["LastReplicationOperationReceivedTimeUtc"] = srs.LastReplicationOperationReceivedTimeUtc - } - if srs.IsInBuild != nil { - objectMap["IsInBuild"] = srs.IsInBuild - } - if srs.CopyQueueStatus != nil { - objectMap["CopyQueueStatus"] = srs.CopyQueueStatus - } - if srs.LastCopyOperationReceivedTimeUtc != nil { - objectMap["LastCopyOperationReceivedTimeUtc"] = srs.LastCopyOperationReceivedTimeUtc - } - if srs.LastAcknowledgementSentTimeUtc != nil { - objectMap["LastAcknowledgementSentTimeUtc"] = srs.LastAcknowledgementSentTimeUtc - } - if srs.Kind != "" { - objectMap["Kind"] = srs.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPrimaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsPrimaryReplicatorStatus() (*PrimaryReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryReplicatorStatus() (*SecondaryReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSecondaryReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsBasicSecondaryReplicatorStatus() (BasicSecondaryReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryActiveReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryActiveReplicatorStatus() (*SecondaryActiveReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSecondaryIdleReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsSecondaryIdleReplicatorStatus() (*SecondaryIdleReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsReplicatorStatus() (*ReplicatorStatus, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicatorStatus is the BasicReplicatorStatus implementation for SecondaryReplicatorStatus. -func (srs SecondaryReplicatorStatus) AsBasicReplicatorStatus() (BasicReplicatorStatus, bool) { - return &srs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SeedNodeSafetyCheck represents a safety check for the seed nodes being performed by service fabric before -// continuing with node level operations. -type SeedNodeSafetyCheck struct { - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) MarshalJSON() ([]byte, error) { - snsc.Kind = KindEnsureSeedNodeQuorum - objectMap := make(map[string]interface{}) - if snsc.Kind != "" { - objectMap["Kind"] = snsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return &snsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for SeedNodeSafetyCheck. -func (snsc SeedNodeSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &snsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SelectedPartition this class returns information about the partition that the user-induced operation acted upon. -type SelectedPartition struct { - // ServiceName - The name of the service the partition belongs to. - ServiceName *string `json:"ServiceName,omitempty"` - // PartitionID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceCorrelationDescription creates a particular correlation between services. -type ServiceCorrelationDescription struct { - // Scheme - The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. Possible values include: 'ServiceCorrelationSchemeInvalid', 'ServiceCorrelationSchemeAffinity', 'ServiceCorrelationSchemeAlignedAffinity', 'ServiceCorrelationSchemeNonAlignedAffinity' - Scheme ServiceCorrelationScheme `json:"Scheme,omitempty"` - // ServiceName - The name of the service that the correlation relationship is established with. - ServiceName *string `json:"ServiceName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceDescription a ServiceDescription contains all of the information necessary to create a service. -type BasicServiceDescription interface { - AsStatefulServiceDescription() (*StatefulServiceDescription, bool) - AsStatelessServiceDescription() (*StatelessServiceDescription, bool) - AsServiceDescription() (*ServiceDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescription a ServiceDescription contains all of the information necessary to create a service. -type ServiceDescription struct { - autorest.Response `json:"-"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - The full name of the service with 'fabric:' URI scheme. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data as an array of bytes. Initialization data is passed to service instances or replicas when they are created. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // PartitionDescription - The partition description as an object. - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // ServiceLoadMetrics - The service load metrics. - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost MoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'SharedProcess', 'ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceDescription(body []byte) (BasicServiceDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceDescriptionServiceKindStateful): - var ssd StatefulServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - case string(ServiceKindBasicServiceDescriptionServiceKindStateless): - var ssd StatelessServiceDescription - err := json.Unmarshal(body, &ssd) - return ssd, err - default: - var sd ServiceDescription - err := json.Unmarshal(body, &sd) - return sd, err - } -} -func unmarshalBasicServiceDescriptionArray(body []byte) ([]BasicServiceDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sdArray := make([]BasicServiceDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sd, err := unmarshalBasicServiceDescription(*rawMessage) - if err != nil { - return nil, err - } - sdArray[index] = sd - } - return sdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceDescription. -func (sd ServiceDescription) MarshalJSON() ([]byte, error) { - sd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindServiceDescription - objectMap := make(map[string]interface{}) - if sd.ApplicationName != nil { - objectMap["ApplicationName"] = sd.ApplicationName - } - if sd.ServiceName != nil { - objectMap["ServiceName"] = sd.ServiceName - } - if sd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sd.ServiceTypeName - } - if sd.InitializationData != nil { - objectMap["InitializationData"] = sd.InitializationData - } - objectMap["PartitionDescription"] = sd.PartitionDescription - if sd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sd.PlacementConstraints - } - if sd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sd.CorrelationScheme - } - if sd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = sd.ServiceLoadMetrics - } - if sd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sd.ServicePlacementPolicies - } - if sd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = sd.DefaultMoveCost - } - if sd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = sd.IsDefaultMoveCostSpecified - } - if sd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = sd.ServicePackageActivationMode - } - if sd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = sd.ServiceDNSName - } - if sd.ServiceKind != "" { - objectMap["ServiceKind"] = sd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for ServiceDescription. -func (sd ServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &sd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceDescription struct. -func (sd *ServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - sd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - sd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - sd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - sd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - sd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - sd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost MoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - sd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - sd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - sd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - sd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceDescriptionModel ... -type ServiceDescriptionModel struct { - autorest.Response `json:"-"` - Value BasicServiceDescription `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceDescriptionModel struct. -func (sdm *ServiceDescriptionModel) UnmarshalJSON(body []byte) error { - sd, err := unmarshalBasicServiceDescription(body) - if err != nil { - return err - } - sdm.Value = sd - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceFromTemplateDescription defines description for creating a Service Fabric service from a template defined -// in the application manifest. -type ServiceFromTemplateDescription struct { - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - The full name of the service with 'fabric:' URI scheme. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data for the newly created service instance. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'SharedProcess', 'ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealth information about the health of a Service Fabric service. -type ServiceHealth struct { - autorest.Response `json:"-"` - // Name - The name of the service whose health information is described by this object. - Name *string `json:"Name,omitempty"` - // PartitionHealthStates - The list of partition health states associated with the service. - PartitionHealthStates *[]PartitionHealthState `json:"PartitionHealthStates,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthEvaluation represents health evaluation for a service, containing information about the data and -// the algorithm used by health store to evaluate health. The evaluation is returned only when the aggregated -// health state is either Error or Warning. -type ServiceHealthEvaluation struct { - // ServiceName - Name of the service whose health evaluation is described by this object. - ServiceName *string `json:"ServiceName,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the service. The types of the unhealthy evaluations can be PartitionsHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindService - objectMap := make(map[string]interface{}) - if she.ServiceName != nil { - objectMap["ServiceName"] = she.ServiceName - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServiceHealthEvaluation. -func (she ServiceHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthState represents the health state of a service, which contains the service identifier and its -// aggregated health state. -type ServiceHealthState struct { - // ServiceName - Name of the service whose health state is represented by this object. - ServiceName *string `json:"ServiceName,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateChunk represents the health state chunk of a service, which contains the service name, its -// aggregated health state and any partitions that respect the filters in the cluster health chunk query -// description. -type ServiceHealthStateChunk struct { - // ServiceName - The name of the service whose health state chunk is provided in this object. - ServiceName *string `json:"ServiceName,omitempty"` - // PartitionHealthStateChunks - The list of partition health state chunks belonging to the service that respect the filters in the cluster health chunk query description. - PartitionHealthStateChunks *PartitionHealthStateChunkList `json:"PartitionHealthStateChunks,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateChunkList the list of service health state chunks that respect the input filters in the chunk -// query. Returned by get cluster health state chunks query. -type ServiceHealthStateChunkList struct { - // Items - The list of service health state chunks that respect the input filters in the chunk query. - Items *[]ServiceHealthStateChunk `json:"Items,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceHealthStateFilter defines matching criteria to determine whether a service should be included as a child -// of an application in the cluster health chunk. -// The services are only returned if the parent application matches a filter specified in the cluster health chunk -// query description. -// One filter can match zero, one or multiple services, depending on its properties. -type ServiceHealthStateFilter struct { - // ServiceNameFilter - The name of the service that matches the filter. The filter is applied only to the specified service, if it exists. - // If the service doesn't exist, no service is returned in the cluster health chunk based on this filter. - // If the service exists, it is included as the application's child if the health state matches the other filter properties. - // If not specified, all services that match the parent filters (if any) are taken into consideration and matched against the other filter members, like health state filter. - ServiceNameFilter *string `json:"ServiceNameFilter,omitempty"` - // HealthStateFilter - The filter for the health state of the services. It allows selecting services if they match the desired health states. - // The possible values are integer value of one of the following health states. Only services that match the filter are returned. All services are used to evaluate the cluster aggregated health state. - // If not specified, default value is None, unless the service name is specified. If the filter has default value and service name is specified, the matching service is returned. - // The state values are flag based enumeration, so the value could be a combination of these values obtained using bitwise 'OR' operator. - // For example, if the provided value is 6, it matches services with HealthState value of OK (2) and Warning (4). - // - Default - Default value. Matches any HealthState. The value is zero. - // - None - Filter that doesn't match any HealthState value. Used in order to return no results on a given collection of states. The value is 1. - // - Ok - Filter that matches input with HealthState value Ok. The value is 2. - // - Warning - Filter that matches input with HealthState value Warning. The value is 4. - // - Error - Filter that matches input with HealthState value Error. The value is 8. - // - All - Filter that matches input with any HealthState value. The value is 65535. - HealthStateFilter *int32 `json:"HealthStateFilter,omitempty"` - // PartitionFilters - Defines a list of filters that specify which partitions to be included in the returned cluster health chunk as children of the service. The partitions are returned only if the parent service matches a filter. - // If the list is empty, no partitions are returned. All the partitions are used to evaluate the parent service aggregated health state, regardless of the input filters. - // The service filter may specify multiple partition filters. - // For example, it can specify a filter to return all partitions with health state Error and another filter to always include a partition identified by its partition id. - PartitionFilters *[]PartitionHealthStateFilter `json:"PartitionFilters,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceInfo information about a Service Fabric service. -type BasicServiceInfo interface { - AsStatefulServiceInfo() (*StatefulServiceInfo, bool) - AsStatelessServiceInfo() (*StatelessServiceInfo, bool) - AsServiceInfo() (*ServiceInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceInfo information about a Service Fabric service. -type ServiceInfo struct { - autorest.Response `json:"-"` - // ID - The identity of the service. This is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", - // the service identity would be "myapp~app1\~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. - ID *string `json:"Id,omitempty"` - // Name - The full name of the service with 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TypeName - Name of the service type as specified in the service manifest. - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // ServiceStatus - The status of the application. Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceInfo(body []byte) (BasicServiceInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceInfoServiceKindStateful): - var ssi StatefulServiceInfo - err := json.Unmarshal(body, &ssi) - return ssi, err - case string(ServiceKindBasicServiceInfoServiceKindStateless): - var ssi StatelessServiceInfo - err := json.Unmarshal(body, &ssi) - return ssi, err - default: - var si ServiceInfo - err := json.Unmarshal(body, &si) - return si, err - } -} -func unmarshalBasicServiceInfoArray(body []byte) ([]BasicServiceInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - siArray := make([]BasicServiceInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - si, err := unmarshalBasicServiceInfo(*rawMessage) - if err != nil { - return nil, err - } - siArray[index] = si - } - return siArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceInfo. -func (si ServiceInfo) MarshalJSON() ([]byte, error) { - si.ServiceKind = ServiceKindBasicServiceInfoServiceKindServiceInfo - objectMap := make(map[string]interface{}) - if si.ID != nil { - objectMap["Id"] = si.ID - } - if si.Name != nil { - objectMap["Name"] = si.Name - } - if si.TypeName != nil { - objectMap["TypeName"] = si.TypeName - } - if si.ManifestVersion != nil { - objectMap["ManifestVersion"] = si.ManifestVersion - } - if si.HealthState != "" { - objectMap["HealthState"] = si.HealthState - } - if si.ServiceStatus != "" { - objectMap["ServiceStatus"] = si.ServiceStatus - } - if si.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = si.IsServiceGroup - } - if si.ServiceKind != "" { - objectMap["ServiceKind"] = si.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return &si, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for ServiceInfo. -func (si ServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &si, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceInfoModel ... -type ServiceInfoModel struct { - autorest.Response `json:"-"` - Value BasicServiceInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceInfoModel struct. -func (sim *ServiceInfoModel) UnmarshalJSON(body []byte) error { - si, err := unmarshalBasicServiceInfo(body) - if err != nil { - return err - } - sim.Value = si - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceLoadMetricDescription specifies a metric to load balance a service during runtime. -type ServiceLoadMetricDescription struct { - // Name - The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. - Name *string `json:"Name,omitempty"` - // Weight - The service load metric relative weight, compared to other metrics configured for this service, as a number. Possible values include: 'ServiceLoadMetricWeightZero', 'ServiceLoadMetricWeightLow', 'ServiceLoadMetricWeightMedium', 'ServiceLoadMetricWeightHigh' - Weight ServiceLoadMetricWeight `json:"Weight,omitempty"` - // PrimaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. - PrimaryDefaultLoad *int32 `json:"PrimaryDefaultLoad,omitempty"` - // SecondaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. - SecondaryDefaultLoad *int32 `json:"SecondaryDefaultLoad,omitempty"` - // DefaultLoad - Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. - DefaultLoad *int32 `json:"DefaultLoad,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceNameInfo information about the service name. -type ServiceNameInfo struct { - autorest.Response `json:"-"` - // ID - The identity of the service. This is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", - // the service identity would be "myapp~app1\~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. - ID *string `json:"Id,omitempty"` - // Name - The full name of the service with 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServicePartitionInfo information about a partition of a Service Fabric service. -type BasicServicePartitionInfo interface { - AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) - AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) - AsServicePartitionInfo() (*ServicePartitionInfo, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionInfo information about a partition of a Service Fabric service. -type ServicePartitionInfo struct { - autorest.Response `json:"-"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // PartitionStatus - The status of the service fabric service partition. Possible values include: 'ServicePartitionStatusInvalid', 'ServicePartitionStatusReady', 'ServicePartitionStatusNotReady', 'ServicePartitionStatusInQuorumLoss', 'ServicePartitionStatusReconfiguring', 'ServicePartitionStatusDeleting' - PartitionStatus ServicePartitionStatus `json:"PartitionStatus,omitempty"` - // PartitionInformation - Information about the partition identity, partitioning scheme and keys supported by it. - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServicePartitionInfo(body []byte) (BasicServicePartitionInfo, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServicePartitionInfoServiceKindStateful): - var sspi StatefulServicePartitionInfo - err := json.Unmarshal(body, &sspi) - return sspi, err - case string(ServiceKindBasicServicePartitionInfoServiceKindStateless): - var sspi StatelessServicePartitionInfo - err := json.Unmarshal(body, &sspi) - return sspi, err - default: - var spi ServicePartitionInfo - err := json.Unmarshal(body, &spi) - return spi, err - } -} -func unmarshalBasicServicePartitionInfoArray(body []byte) ([]BasicServicePartitionInfo, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - spiArray := make([]BasicServicePartitionInfo, len(rawMessages)) - - for index, rawMessage := range rawMessages { - spi, err := unmarshalBasicServicePartitionInfo(*rawMessage) - if err != nil { - return nil, err - } - spiArray[index] = spi - } - return spiArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePartitionInfo. -func (spi ServicePartitionInfo) MarshalJSON() ([]byte, error) { - spi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo - objectMap := make(map[string]interface{}) - if spi.HealthState != "" { - objectMap["HealthState"] = spi.HealthState - } - if spi.PartitionStatus != "" { - objectMap["PartitionStatus"] = spi.PartitionStatus - } - objectMap["PartitionInformation"] = spi.PartitionInformation - if spi.ServiceKind != "" { - objectMap["ServiceKind"] = spi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for ServicePartitionInfo. -func (spi ServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServicePartitionInfo struct. -func (spi *ServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HealthState": - if v != nil { - var healthState HealthState - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - spi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus ServicePartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - spi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - spi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - spi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePartitionInfoModel ... -type ServicePartitionInfoModel struct { - autorest.Response `json:"-"` - Value BasicServicePartitionInfo `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServicePartitionInfoModel struct. -func (spim *ServicePartitionInfoModel) UnmarshalJSON(body []byte) error { - spi, err := unmarshalBasicServicePartitionInfo(body) - if err != nil { - return err - } - spim.Value = spi - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementInvalidDomainPolicyDescription describes the policy to be used for placement of a Service Fabric -// service where a particular fault or upgrade domain should not be used for placement of the instances or replicas -// of that service. -type ServicePlacementInvalidDomainPolicyDescription struct { - // DomainName - The name of the domain that should not be used for placement. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type Type `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) MarshalJSON() ([]byte, error) { - spidpd.Type = TypeInvalidDomain - objectMap := make(map[string]interface{}) - if spidpd.DomainName != nil { - objectMap["DomainName"] = spidpd.DomainName - } - if spidpd.Type != "" { - objectMap["Type"] = spidpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return &spidpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementInvalidDomainPolicyDescription. -func (spidpd ServicePlacementInvalidDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spidpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementNonPartiallyPlaceServicePolicyDescription describes the policy to be used for placement of a -// Service Fabric service where all replicas must be able to be placed in order for any replicas to be created. -type ServicePlacementNonPartiallyPlaceServicePolicyDescription struct { - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type Type `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) MarshalJSON() ([]byte, error) { - spnppspd.Type = TypeNonPartiallyPlaceService - objectMap := make(map[string]interface{}) - if spnppspd.Type != "" { - objectMap["Type"] = spnppspd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return &spnppspd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementNonPartiallyPlaceServicePolicyDescription. -func (spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spnppspd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service. -type BasicServicePlacementPolicyDescription interface { - AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) - AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) - AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) - AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) - AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) - AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service. -type ServicePlacementPolicyDescription struct { - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type Type `json:"Type,omitempty"` -} - -func unmarshalBasicServicePlacementPolicyDescription(body []byte) (BasicServicePlacementPolicyDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Type"] { - case string(TypeInvalidDomain): - var spidpd ServicePlacementInvalidDomainPolicyDescription - err := json.Unmarshal(body, &spidpd) - return spidpd, err - case string(TypeNonPartiallyPlaceService): - var spnppspd ServicePlacementNonPartiallyPlaceServicePolicyDescription - err := json.Unmarshal(body, &spnppspd) - return spnppspd, err - case string(TypePreferPrimaryDomain): - var spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription - err := json.Unmarshal(body, &spppdpd) - return spppdpd, err - case string(TypeRequireDomain): - var sprdpd ServicePlacementRequiredDomainPolicyDescription - err := json.Unmarshal(body, &sprdpd) - return sprdpd, err - case string(TypeRequireDomainDistribution): - var sprddpd ServicePlacementRequireDomainDistributionPolicyDescription - err := json.Unmarshal(body, &sprddpd) - return sprddpd, err - default: - var sppd ServicePlacementPolicyDescription - err := json.Unmarshal(body, &sppd) - return sppd, err - } -} -func unmarshalBasicServicePlacementPolicyDescriptionArray(body []byte) ([]BasicServicePlacementPolicyDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sppdArray := make([]BasicServicePlacementPolicyDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sppd, err := unmarshalBasicServicePlacementPolicyDescription(*rawMessage) - if err != nil { - return nil, err - } - sppdArray[index] = sppd - } - return sppdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) MarshalJSON() ([]byte, error) { - sppd.Type = TypeServicePlacementPolicyDescription - objectMap := make(map[string]interface{}) - if sppd.Type != "" { - objectMap["Type"] = sppd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return &sppd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription. -func (sppd ServicePlacementPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sppd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementPreferPrimaryDomainPolicyDescription describes the policy to be used for placement of a Service -// Fabric service where the service's Primary replicas should optimally be placed in a particular domain. -// -// This placement policy is usually used with fault domains in scenarios where the Service Fabric cluster is -// geographically distributed in order to indicate that a service�s primary replica should be located in a -// particular fault domain, which in geo-distributed scenarios usually aligns with regional or datacenter -// boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up -// located in this domain due to failures, capacity limits, or other constraints. -type ServicePlacementPreferPrimaryDomainPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type Type `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) MarshalJSON() ([]byte, error) { - spppdpd.Type = TypePreferPrimaryDomain - objectMap := make(map[string]interface{}) - if spppdpd.DomainName != nil { - objectMap["DomainName"] = spppdpd.DomainName - } - if spppdpd.Type != "" { - objectMap["Type"] = spppdpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return &spppdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPreferPrimaryDomainPolicyDescription. -func (spppdpd ServicePlacementPreferPrimaryDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &spppdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementRequiredDomainPolicyDescription describes the policy to be used for placement of a Service -// Fabric service where the instances or replicas of that service must be placed in a particular domain -type ServicePlacementRequiredDomainPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type Type `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) MarshalJSON() ([]byte, error) { - sprdpd.Type = TypeRequireDomain - objectMap := make(map[string]interface{}) - if sprdpd.DomainName != nil { - objectMap["DomainName"] = sprdpd.DomainName - } - if sprdpd.Type != "" { - objectMap["Type"] = sprdpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return &sprdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequiredDomainPolicyDescription. -func (sprdpd ServicePlacementRequiredDomainPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sprdpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicePlacementRequireDomainDistributionPolicyDescription describes the policy to be used for placement of a -// Service Fabric service where two replicas from the same partition should never be placed in the same fault or -// upgrade domain. -// -// While this is not common it can expose the service to an increased risk of concurrent failures due to unplanned -// outages or other cases of subsequent/concurrent failures. As an example, consider a case where replicas are -// deployed across different data center, with one replica per location. In the event that one of the datacenters -// goes offline, normally the replica that was placed in that datacenter will be packed into one of the remaining -// datacenters. If this is not desirable then this policy should be set. -type ServicePlacementRequireDomainDistributionPolicyDescription struct { - // DomainName - The name of the domain that should used for placement as per this policy. - DomainName *string `json:"DomainName,omitempty"` - // Type - Possible values include: 'TypeServicePlacementPolicyDescription', 'TypeInvalidDomain', 'TypeNonPartiallyPlaceService', 'TypePreferPrimaryDomain', 'TypeRequireDomain', 'TypeRequireDomainDistribution' - Type Type `json:"Type,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) MarshalJSON() ([]byte, error) { - sprddpd.Type = TypeRequireDomainDistribution - objectMap := make(map[string]interface{}) - if sprddpd.DomainName != nil { - objectMap["DomainName"] = sprddpd.DomainName - } - if sprddpd.Type != "" { - objectMap["Type"] = sprddpd.Type - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementInvalidDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementInvalidDomainPolicyDescription() (*ServicePlacementInvalidDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementNonPartiallyPlaceServicePolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementNonPartiallyPlaceServicePolicyDescription() (*ServicePlacementNonPartiallyPlaceServicePolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPreferPrimaryDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementPreferPrimaryDomainPolicyDescription() (*ServicePlacementPreferPrimaryDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequiredDomainPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementRequiredDomainPolicyDescription() (*ServicePlacementRequiredDomainPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementRequireDomainDistributionPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementRequireDomainDistributionPolicyDescription() (*ServicePlacementRequireDomainDistributionPolicyDescription, bool) { - return &sprddpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementRequireDomainDistributionPolicyDescription. -func (sprddpd ServicePlacementRequireDomainDistributionPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool) { - return &sprddpd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServicesHealthEvaluation represents health evaluation for services of a certain service type belonging to an -// application, containing health evaluations for each unhealthy service that impacted current aggregated health -// state. Can be returned when evaluating application health and the aggregated health state is either Error or -// Warning. -type ServicesHealthEvaluation struct { - // ServiceTypeName - Name of the service type of the services. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // MaxPercentUnhealthyServices - Maximum allowed percentage of unhealthy services from the ServiceTypeHealthPolicy. - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` - // TotalCount - Total number of services of the current service type in the application from the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ServiceHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) MarshalJSON() ([]byte, error) { - she.Kind = KindServices - objectMap := make(map[string]interface{}) - if she.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = she.ServiceTypeName - } - if she.MaxPercentUnhealthyServices != nil { - objectMap["MaxPercentUnhealthyServices"] = she.MaxPercentUnhealthyServices - } - if she.TotalCount != nil { - objectMap["TotalCount"] = she.TotalCount - } - if she.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = she.UnhealthyEvaluations - } - if she.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = she.AggregatedHealthState - } - if she.Description != nil { - objectMap["Description"] = she.Description - } - if she.Kind != "" { - objectMap["Kind"] = she.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for ServicesHealthEvaluation. -func (she ServicesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &she, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceTypeDescription describes a service type defined in the service manifest of a provisioned application -// type. The properties the the ones defined in the service manifest. -type BasicServiceTypeDescription interface { - AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) - AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) - AsServiceTypeDescription() (*ServiceTypeDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeDescription describes a service type defined in the service manifest of a provisioned application -// type. The properties the the ones defined in the service manifest. -type ServiceTypeDescription struct { - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // ServicePlacementPolicies - List of service placement policy descriptions. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // Extensions - List of service type extensions. - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -func unmarshalBasicServiceTypeDescription(body []byte) (BasicServiceTypeDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["Kind"] { - case string(KindStateful): - var sstd StatefulServiceTypeDescription - err := json.Unmarshal(body, &sstd) - return sstd, err - case string(KindStateless): - var sstd StatelessServiceTypeDescription - err := json.Unmarshal(body, &sstd) - return sstd, err - default: - var std ServiceTypeDescription - err := json.Unmarshal(body, &std) - return std, err - } -} -func unmarshalBasicServiceTypeDescriptionArray(body []byte) ([]BasicServiceTypeDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - stdArray := make([]BasicServiceTypeDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - std, err := unmarshalBasicServiceTypeDescription(*rawMessage) - if err != nil { - return nil, err - } - stdArray[index] = std - } - return stdArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceTypeDescription. -func (std ServiceTypeDescription) MarshalJSON() ([]byte, error) { - std.Kind = KindServiceTypeDescription - objectMap := make(map[string]interface{}) - if std.IsStateful != nil { - objectMap["IsStateful"] = std.IsStateful - } - if std.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = std.ServiceTypeName - } - if std.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = std.PlacementConstraints - } - if std.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = std.ServicePlacementPolicies - } - if std.Extensions != nil { - objectMap["Extensions"] = std.Extensions - } - if std.Kind != "" { - objectMap["Kind"] = std.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return &std, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for ServiceTypeDescription. -func (std ServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &std, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceTypeDescription struct. -func (std *ServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - std.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - std.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - std.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - std.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - std.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - std.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeExtensionDescription describes extension of a service type defined in the service manifest. -type ServiceTypeExtensionDescription struct { - // Key - The name of the extension. - Key *string `json:"Key,omitempty"` - // Value - The extension value. - Value *string `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to a -// service type. -type ServiceTypeHealthPolicy struct { - // MaxPercentUnhealthyPartitionsPerService - The maximum allowed percentage of unhealthy partitions per service. Allowed values are Byte values from zero to 100 - // The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error. - // If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. - // The computation rounds up to tolerate one failure on small numbers of partitions. Default percentage is zero. - MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"` - // MaxPercentUnhealthyReplicasPerPartition - The maximum allowed percentage of unhealthy replicas per partition. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. - // If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. - // The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. - // The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage is zero. - MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"` - // MaxPercentUnhealthyServices - The maximum maximum allowed percentage of unhealthy services. Allowed values are Byte values from zero to 100. - // The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. - // If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. - // This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type. - // The computation rounds up to tolerate one failure on small numbers of services. Default percentage is zero. - MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeHealthPolicyMapItem defines an item in ServiceTypeHealthPolicyMap. -type ServiceTypeHealthPolicyMapItem struct { - // Key - The key of the service type health policy map item. This is the name of the service type. - Key *string `json:"Key,omitempty"` - // Value - The value of the service type health policy map item. This is the ServiceTypeHealthPolicy for this service type. - Value *ServiceTypeHealthPolicy `json:"Value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeInfo information about a service type that is defined in a service manifest of a provisioned -// application type. -type ServiceTypeInfo struct { - // ServiceTypeDescription - Describes a service type defined in the service manifest of a provisioned application type. The properties the the ones defined in the service manifest. - ServiceTypeDescription BasicServiceTypeDescription `json:"ServiceTypeDescription,omitempty"` - // ServiceManifestName - The name of the service manifest in which this service type is defined. - ServiceManifestName *string `json:"ServiceManifestName,omitempty"` - // ServiceManifestVersion - The version of the service manifest in which this service type is defined. - ServiceManifestVersion *string `json:"ServiceManifestVersion,omitempty"` - // IsServiceGroup - Indicates whether the service is a service group. If it is, the property value is true otherwise false. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceTypeInfo struct. -func (sti *ServiceTypeInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ServiceTypeDescription": - if v != nil { - serviceTypeDescription, err := unmarshalBasicServiceTypeDescription(*v) - if err != nil { - return err - } - sti.ServiceTypeDescription = serviceTypeDescription - } - case "ServiceManifestName": - if v != nil { - var serviceManifestName string - err = json.Unmarshal(*v, &serviceManifestName) - if err != nil { - return err - } - sti.ServiceManifestName = &serviceManifestName - } - case "ServiceManifestVersion": - if v != nil { - var serviceManifestVersion string - err = json.Unmarshal(*v, &serviceManifestVersion) - if err != nil { - return err - } - sti.ServiceManifestVersion = &serviceManifestVersion - } - case "IsServiceGroup": - if v != nil { - var isServiceGroup bool - err = json.Unmarshal(*v, &isServiceGroup) - if err != nil { - return err - } - sti.IsServiceGroup = &isServiceGroup - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceTypeManifest contains the manifest describing a service type registered as part of an application in a -// Service Fabric cluster. -type ServiceTypeManifest struct { - autorest.Response `json:"-"` - // Manifest - The XML manifest as a string. - Manifest *string `json:"Manifest,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// BasicServiceUpdateDescription a ServiceUpdateDescription contains all of the information necessary to update a -// service. -type BasicServiceUpdateDescription interface { - AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) - AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) - AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ServiceUpdateDescription a ServiceUpdateDescription contains all of the information necessary to update a -// service. -type ServiceUpdateDescription struct { - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // LoadMetrics - The service load metrics. - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost MoveCost `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -func unmarshalBasicServiceUpdateDescription(body []byte) (BasicServiceUpdateDescription, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["ServiceKind"] { - case string(ServiceKindBasicServiceUpdateDescriptionServiceKindStateful): - var ssud StatefulServiceUpdateDescription - err := json.Unmarshal(body, &ssud) - return ssud, err - case string(ServiceKindBasicServiceUpdateDescriptionServiceKindStateless): - var ssud StatelessServiceUpdateDescription - err := json.Unmarshal(body, &ssud) - return ssud, err - default: - var sud ServiceUpdateDescription - err := json.Unmarshal(body, &sud) - return sud, err - } -} -func unmarshalBasicServiceUpdateDescriptionArray(body []byte) ([]BasicServiceUpdateDescription, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sudArray := make([]BasicServiceUpdateDescription, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sud, err := unmarshalBasicServiceUpdateDescription(*rawMessage) - if err != nil { - return nil, err - } - sudArray[index] = sud - } - return sudArray, nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) MarshalJSON() ([]byte, error) { - sud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription - objectMap := make(map[string]interface{}) - if sud.Flags != nil { - objectMap["Flags"] = sud.Flags - } - if sud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sud.PlacementConstraints - } - if sud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = sud.CorrelationScheme - } - if sud.LoadMetrics != nil { - objectMap["LoadMetrics"] = sud.LoadMetrics - } - if sud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sud.ServicePlacementPolicies - } - if sud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = sud.DefaultMoveCost - } - if sud.ServiceKind != "" { - objectMap["ServiceKind"] = sud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return &sud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for ServiceUpdateDescription. -func (sud ServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &sud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for ServiceUpdateDescription struct. -func (sud *ServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - sud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - sud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - sud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost MoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - sud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SingletonPartitionInformation information about a partition that is singleton. The services with singleton -// partitioning scheme are effectively non-partitioned. They only have one partition. -type SingletonPartitionInformation struct { - // ID - An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition id is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the ids of its partitions would be different. - ID *uuid.UUID `json:"Id,omitempty"` - // ServicePartitionKind - Possible values include: 'ServicePartitionKindPartitionInformation', 'ServicePartitionKindInt64Range', 'ServicePartitionKindNamed', 'ServicePartitionKindSingleton' - ServicePartitionKind ServicePartitionKind `json:"ServicePartitionKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) MarshalJSON() ([]byte, error) { - spi.ServicePartitionKind = ServicePartitionKindSingleton - objectMap := make(map[string]interface{}) - if spi.ID != nil { - objectMap["Id"] = spi.ID - } - if spi.ServicePartitionKind != "" { - objectMap["ServicePartitionKind"] = spi.ServicePartitionKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64RangePartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsInt64RangePartitionInformation() (*Int64RangePartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsNamedPartitionInformation() (*NamedPartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsSingletonPartitionInformation() (*SingletonPartitionInformation, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsPartitionInformation() (*PartitionInformation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionInformation is the BasicPartitionInformation implementation for SingletonPartitionInformation. -func (spi SingletonPartitionInformation) AsBasicPartitionInformation() (BasicPartitionInformation, bool) { - return &spi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SingletonPartitionSchemeDescription describes the partition scheme of a singleton-partitioned, or -// non-partitioned service. -type SingletonPartitionSchemeDescription struct { - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed1', 'PartitionSchemeSingleton1', 'PartitionSchemeUniformInt64Range1' - PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) MarshalJSON() ([]byte, error) { - spsd.PartitionScheme = PartitionSchemeSingleton1 - objectMap := make(map[string]interface{}) - if spsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = spsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return &spsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription. -func (spsd SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &spsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartClusterUpgradeDescription describes the parameters for starting a cluster upgrade. -type StartClusterUpgradeDescription struct { - // CodeVersion - The cluster code version. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The cluster configuration version. - ConfigVersion *string `json:"ConfigVersion,omitempty"` - // UpgradeKind - The kind of upgrade out of the following possible values. Possible values include: 'UpgradeKindInvalid', 'UpgradeKindRolling' - UpgradeKind UpgradeKind `json:"UpgradeKind,omitempty"` - // RollingUpgradeMode - The mode used to monitor health during a rolling upgrade. Possible values include: 'UpgradeModeInvalid', 'UpgradeModeUnmonitoredAuto', 'UpgradeModeUnmonitoredManual', 'UpgradeModeMonitored' - RollingUpgradeMode UpgradeMode `json:"RollingUpgradeMode,omitempty"` - // UpgradeReplicaSetCheckTimeoutInSeconds - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). - UpgradeReplicaSetCheckTimeoutInSeconds *int64 `json:"UpgradeReplicaSetCheckTimeoutInSeconds,omitempty"` - // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). - ForceRestart *bool `json:"ForceRestart,omitempty"` - // MonitoringPolicy - Describes the parameters for monitoring an upgrade in Monitored mode. - MonitoringPolicy *MonitoringPolicyDescription `json:"MonitoringPolicy,omitempty"` - // ClusterHealthPolicy - Defines a health policy used to evaluate the health of the cluster or of a cluster node. - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - // EnableDeltaHealthEvaluation - When true, enables delta health evaluation rather than absolute health evaluation after completion of each upgrade domain. - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - // ClusterUpgradeHealthPolicy - Defines a health policy used to evaluate the health of the cluster during a cluster upgrade. - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicyObject `json:"ClusterUpgradeHealthPolicy,omitempty"` - // ApplicationHealthPolicyMap - Defines the application health policy map used to evaluate the health of an application or one of its children entities. - ApplicationHealthPolicyMap *ApplicationHealthPolicies `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StartedChaosEvent describes a Chaos event that gets generated when Chaos is started. -type StartedChaosEvent struct { - // ChaosParameters - Defines all the parameters to configure a Chaos run. - ChaosParameters *ChaosParameters `json:"ChaosParameters,omitempty"` - // TimeStampUtc - The UTC timestamp when this Chaos event was generated. - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StartedChaosEvent. -func (sce StartedChaosEvent) MarshalJSON() ([]byte, error) { - sce.Kind = KindStarted - objectMap := make(map[string]interface{}) - if sce.ChaosParameters != nil { - objectMap["ChaosParameters"] = sce.ChaosParameters - } - if sce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = sce.TimeStampUtc - } - if sce.Kind != "" { - objectMap["Kind"] = sce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for StartedChaosEvent. -func (sce StartedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceDescription describes a stateful service. -type StatefulServiceDescription struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for QuorumLossWaitDuration (2) and StandByReplicaKeepDuration(4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 1. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 2. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 4. - Flags *int32 `json:"Flags,omitempty"` - // ReplicaRestartWaitDurationSeconds - The duration, in seconds, between when a replica goes down and when a new replica is created. - ReplicaRestartWaitDurationSeconds *int64 `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - // QuorumLossWaitDurationSeconds - The maximum duration, in seconds, for which a partition is allowed to be in a state of quorum loss. - QuorumLossWaitDurationSeconds *int64 `json:"QuorumLossWaitDurationSeconds,omitempty"` - // StandByReplicaKeepDurationSeconds - The definition on how long StandBy replicas should be maintained before being removed. - StandByReplicaKeepDurationSeconds *int64 `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - The full name of the service with 'fabric:' URI scheme. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data as an array of bytes. Initialization data is passed to service instances or replicas when they are created. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // PartitionDescription - The partition description as an object. - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // ServiceLoadMetrics - The service load metrics. - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost MoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'SharedProcess', 'ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceDescription. -func (ssd StatefulServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssd.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssd.TargetReplicaSetSize - } - if ssd.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssd.MinReplicaSetSize - } - if ssd.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssd.HasPersistedState - } - if ssd.Flags != nil { - objectMap["Flags"] = ssd.Flags - } - if ssd.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssd.ReplicaRestartWaitDurationSeconds - } - if ssd.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssd.QuorumLossWaitDurationSeconds - } - if ssd.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssd.StandByReplicaKeepDurationSeconds - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.InitializationData != nil { - objectMap["InitializationData"] = ssd.InitializationData - } - objectMap["PartitionDescription"] = ssd.PartitionDescription - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssd.DefaultMoveCost - } - if ssd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssd.IsDefaultMoveCostSpecified - } - if ssd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = ssd.ServicePackageActivationMode - } - if ssd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = ssd.ServiceDNSName - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatefulServiceDescription. -func (ssd StatefulServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceDescription struct. -func (ssd *StatefulServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int32 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - ssd.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int32 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - ssd.MinReplicaSetSize = &minReplicaSetSize - } - case "HasPersistedState": - if v != nil { - var hasPersistedState bool - err = json.Unmarshal(*v, &hasPersistedState) - if err != nil { - return err - } - ssd.HasPersistedState = &hasPersistedState - } - case "Flags": - if v != nil { - var flags int32 - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssd.Flags = &flags - } - case "ReplicaRestartWaitDurationSeconds": - if v != nil { - var replicaRestartWaitDurationSeconds int64 - err = json.Unmarshal(*v, &replicaRestartWaitDurationSeconds) - if err != nil { - return err - } - ssd.ReplicaRestartWaitDurationSeconds = &replicaRestartWaitDurationSeconds - } - case "QuorumLossWaitDurationSeconds": - if v != nil { - var quorumLossWaitDurationSeconds int64 - err = json.Unmarshal(*v, &quorumLossWaitDurationSeconds) - if err != nil { - return err - } - ssd.QuorumLossWaitDurationSeconds = &quorumLossWaitDurationSeconds - } - case "StandByReplicaKeepDurationSeconds": - if v != nil { - var standByReplicaKeepDurationSeconds int64 - err = json.Unmarshal(*v, &standByReplicaKeepDurationSeconds) - if err != nil { - return err - } - ssd.StandByReplicaKeepDurationSeconds = &standByReplicaKeepDurationSeconds - } - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - ssd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - ssd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - ssd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - ssd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - ssd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - ssd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost MoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - ssd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - ssd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - ssd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceInfo information about a stateful Service Fabric service. -type StatefulServiceInfo struct { - // HasPersistedState - Whether the service has persisted state. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // ID - The identity of the service. This is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", - // the service identity would be "myapp~app1\~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. - ID *string `json:"Id,omitempty"` - // Name - The full name of the service with 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TypeName - Name of the service type as specified in the service manifest. - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // ServiceStatus - The status of the application. Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceInfo. -func (ssi StatefulServiceInfo) MarshalJSON() ([]byte, error) { - ssi.ServiceKind = ServiceKindBasicServiceInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if ssi.HasPersistedState != nil { - objectMap["HasPersistedState"] = ssi.HasPersistedState - } - if ssi.ID != nil { - objectMap["Id"] = ssi.ID - } - if ssi.Name != nil { - objectMap["Name"] = ssi.Name - } - if ssi.TypeName != nil { - objectMap["TypeName"] = ssi.TypeName - } - if ssi.ManifestVersion != nil { - objectMap["ManifestVersion"] = ssi.ManifestVersion - } - if ssi.HealthState != "" { - objectMap["HealthState"] = ssi.HealthState - } - if ssi.ServiceStatus != "" { - objectMap["ServiceStatus"] = ssi.ServiceStatus - } - if ssi.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = ssi.IsServiceGroup - } - if ssi.ServiceKind != "" { - objectMap["ServiceKind"] = ssi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for StatefulServiceInfo. -func (ssi StatefulServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServicePartitionInfo information about a partition of a stateful Service Fabric service.. -type StatefulServicePartitionInfo struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int64 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int64 `json:"MinReplicaSetSize,omitempty"` - // LastQuorumLossDuration - The duration for which this partition was in quorum loss. If the partition is currently in quorum loss, it returns the duration since it has been in that state. This field is using ISO8601 format for specifying the duration. - LastQuorumLossDuration *string `json:"LastQuorumLossDuration,omitempty"` - // CurrentConfigurationEpoch - An Epoch is a configuration number for the partition as a whole. When the configuration of the replica set changes, for example when the Primary replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica. - CurrentConfigurationEpoch *Epoch `json:"CurrentConfigurationEpoch,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // PartitionStatus - The status of the service fabric service partition. Possible values include: 'ServicePartitionStatusInvalid', 'ServicePartitionStatusReady', 'ServicePartitionStatusNotReady', 'ServicePartitionStatusInQuorumLoss', 'ServicePartitionStatusReconfiguring', 'ServicePartitionStatusDeleting' - PartitionStatus ServicePartitionStatus `json:"PartitionStatus,omitempty"` - // PartitionInformation - Information about the partition identity, partitioning scheme and keys supported by it. - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) MarshalJSON() ([]byte, error) { - sspi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if sspi.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = sspi.TargetReplicaSetSize - } - if sspi.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = sspi.MinReplicaSetSize - } - if sspi.LastQuorumLossDuration != nil { - objectMap["LastQuorumLossDuration"] = sspi.LastQuorumLossDuration - } - if sspi.CurrentConfigurationEpoch != nil { - objectMap["CurrentConfigurationEpoch"] = sspi.CurrentConfigurationEpoch - } - if sspi.HealthState != "" { - objectMap["HealthState"] = sspi.HealthState - } - if sspi.PartitionStatus != "" { - objectMap["PartitionStatus"] = sspi.PartitionStatus - } - objectMap["PartitionInformation"] = sspi.PartitionInformation - if sspi.ServiceKind != "" { - objectMap["ServiceKind"] = sspi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for StatefulServicePartitionInfo. -func (sspi StatefulServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServicePartitionInfo struct. -func (sspi *StatefulServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int64 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - sspi.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int64 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - sspi.MinReplicaSetSize = &minReplicaSetSize - } - case "LastQuorumLossDuration": - if v != nil { - var lastQuorumLossDuration string - err = json.Unmarshal(*v, &lastQuorumLossDuration) - if err != nil { - return err - } - sspi.LastQuorumLossDuration = &lastQuorumLossDuration - } - case "CurrentConfigurationEpoch": - if v != nil { - var currentConfigurationEpoch Epoch - err = json.Unmarshal(*v, ¤tConfigurationEpoch) - if err != nil { - return err - } - sspi.CurrentConfigurationEpoch = ¤tConfigurationEpoch - } - case "HealthState": - if v != nil { - var healthState HealthState - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - sspi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus ServicePartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - sspi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - sspi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sspi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaHealth represents the health of the stateful service replica. -// Contains the replica aggregated health state, the health events and the unhealthy evaluations. -type StatefulServiceReplicaHealth struct { - // ReplicaID - Id of a stateful service replica. ReplicaId is used by Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id. - ReplicaID *string `json:"ReplicaId,omitempty"` - // PartitionID - Id of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) MarshalJSON() ([]byte, error) { - ssrh.ServiceKind = ServiceKindBasicReplicaHealthServiceKindStateful - objectMap := make(map[string]interface{}) - if ssrh.ReplicaID != nil { - objectMap["ReplicaId"] = ssrh.ReplicaID - } - if ssrh.PartitionID != nil { - objectMap["PartitionId"] = ssrh.PartitionID - } - if ssrh.ServiceKind != "" { - objectMap["ServiceKind"] = ssrh.ServiceKind - } - if ssrh.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssrh.AggregatedHealthState - } - if ssrh.HealthEvents != nil { - objectMap["HealthEvents"] = ssrh.HealthEvents - } - if ssrh.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ssrh.UnhealthyEvaluations - } - if ssrh.HealthStatistics != nil { - objectMap["HealthStatistics"] = ssrh.HealthStatistics - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return &ssrh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for StatefulServiceReplicaHealth. -func (ssrh StatefulServiceReplicaHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &ssrh, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaHealthState represents the health state of the stateful service replica, which contains -// the replica id and the aggregated health state. -type StatefulServiceReplicaHealthState struct { - // ReplicaID - Id of a stateful service replica. ReplicaId is used by Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id. - ReplicaID *string `json:"ReplicaId,omitempty"` - // PartitionID - The ID of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) MarshalJSON() ([]byte, error) { - ssrhs.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindStateful - objectMap := make(map[string]interface{}) - if ssrhs.ReplicaID != nil { - objectMap["ReplicaId"] = ssrhs.ReplicaID - } - if ssrhs.PartitionID != nil { - objectMap["PartitionId"] = ssrhs.PartitionID - } - if ssrhs.ServiceKind != "" { - objectMap["ServiceKind"] = ssrhs.ServiceKind - } - if ssrhs.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssrhs.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return &ssrhs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for StatefulServiceReplicaHealthState. -func (ssrhs StatefulServiceReplicaHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &ssrhs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceReplicaInfo represents a stateful service replica. This includes information about the identity, -// role, status, health, node name, uptime, and other details about the replica. -type StatefulServiceReplicaInfo struct { - // ReplicaRole - The role of a replica of a stateful service. Possible values include: 'ReplicaRoleUnknown', 'ReplicaRoleNone', 'ReplicaRolePrimary', 'ReplicaRoleIdleSecondary', 'ReplicaRoleActiveSecondary' - ReplicaRole ReplicaRole `json:"ReplicaRole,omitempty"` - // ReplicaID - Id of a stateful service replica. ReplicaId is used by Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id. - ReplicaID *string `json:"ReplicaId,omitempty"` - // ReplicaStatus - The status of a replica of a service. Possible values are following. - // -Invalid - Indicates the replica status is invalid. All Service Fabric enumerations have the invalid type. The value is zero. - // -InBuild - The replica is being built. This means that a primary replica is seeding this replica. The value is 1. - // -Standby - The replica is in standby. The value is 2. - // -Ready - The replica is ready. The value is 3. - // -Down - The replica is down. The value is 4. - // -Dropped - Replica is dropped. This means that the replica has been removed from the replica set. If it is persisted, its state has been deleted. The value is 5. - // . Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) MarshalJSON() ([]byte, error) { - ssri.ServiceKind = ServiceKindBasicReplicaInfoServiceKindStateful - objectMap := make(map[string]interface{}) - if ssri.ReplicaRole != "" { - objectMap["ReplicaRole"] = ssri.ReplicaRole - } - if ssri.ReplicaID != nil { - objectMap["ReplicaId"] = ssri.ReplicaID - } - if ssri.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ssri.ReplicaStatus - } - if ssri.HealthState != "" { - objectMap["HealthState"] = ssri.HealthState - } - if ssri.NodeName != nil { - objectMap["NodeName"] = ssri.NodeName - } - if ssri.Address != nil { - objectMap["Address"] = ssri.Address - } - if ssri.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ssri.LastInBuildDurationInSeconds - } - if ssri.ServiceKind != "" { - objectMap["ServiceKind"] = ssri.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return &ssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for StatefulServiceReplicaInfo. -func (ssri StatefulServiceReplicaInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ssri, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceTypeDescription describes a stateful service type defined in the service manifest of a -// provisioned application type. -type StatefulServiceTypeDescription struct { - // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. - HasPersistedState *bool `json:"HasPersistedState,omitempty"` - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // ServicePlacementPolicies - List of service placement policy descriptions. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // Extensions - List of service type extensions. - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) MarshalJSON() ([]byte, error) { - sstd.Kind = KindStateful - objectMap := make(map[string]interface{}) - if sstd.HasPersistedState != nil { - objectMap["HasPersistedState"] = sstd.HasPersistedState - } - if sstd.IsStateful != nil { - objectMap["IsStateful"] = sstd.IsStateful - } - if sstd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sstd.ServiceTypeName - } - if sstd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sstd.PlacementConstraints - } - if sstd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sstd.ServicePlacementPolicies - } - if sstd.Extensions != nil { - objectMap["Extensions"] = sstd.Extensions - } - if sstd.Kind != "" { - objectMap["Kind"] = sstd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for StatefulServiceTypeDescription. -func (sstd StatefulServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceTypeDescription struct. -func (sstd *StatefulServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "HasPersistedState": - if v != nil { - var hasPersistedState bool - err = json.Unmarshal(*v, &hasPersistedState) - if err != nil { - return err - } - sstd.HasPersistedState = &hasPersistedState - } - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - sstd.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sstd.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sstd.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sstd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - sstd.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - sstd.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatefulServiceUpdateDescription describes an update for a stateful service. -type StatefulServiceUpdateDescription struct { - // TargetReplicaSetSize - The target replica set size as a number. - TargetReplicaSetSize *int32 `json:"TargetReplicaSetSize,omitempty"` - // MinReplicaSetSize - The minimum replica set size as a number. - MinReplicaSetSize *int32 `json:"MinReplicaSetSize,omitempty"` - // ReplicaRestartWaitDurationSeconds - The duration, in seconds, between when a replica goes down and when a new replica is created. - ReplicaRestartWaitDurationSeconds *string `json:"ReplicaRestartWaitDurationSeconds,omitempty"` - // QuorumLossWaitDurationSeconds - The maximum duration, in seconds, for which a partition is allowed to be in a state of quorum loss. - QuorumLossWaitDurationSeconds *string `json:"QuorumLossWaitDurationSeconds,omitempty"` - // StandByReplicaKeepDurationSeconds - The definition on how long StandBy replicas should be maintained before being removed. - StandByReplicaKeepDurationSeconds *string `json:"StandByReplicaKeepDurationSeconds,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // LoadMetrics - The service load metrics. - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost MoveCost `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) MarshalJSON() ([]byte, error) { - ssud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindStateful - objectMap := make(map[string]interface{}) - if ssud.TargetReplicaSetSize != nil { - objectMap["TargetReplicaSetSize"] = ssud.TargetReplicaSetSize - } - if ssud.MinReplicaSetSize != nil { - objectMap["MinReplicaSetSize"] = ssud.MinReplicaSetSize - } - if ssud.ReplicaRestartWaitDurationSeconds != nil { - objectMap["ReplicaRestartWaitDurationSeconds"] = ssud.ReplicaRestartWaitDurationSeconds - } - if ssud.QuorumLossWaitDurationSeconds != nil { - objectMap["QuorumLossWaitDurationSeconds"] = ssud.QuorumLossWaitDurationSeconds - } - if ssud.StandByReplicaKeepDurationSeconds != nil { - objectMap["StandByReplicaKeepDurationSeconds"] = ssud.StandByReplicaKeepDurationSeconds - } - if ssud.Flags != nil { - objectMap["Flags"] = ssud.Flags - } - if ssud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssud.PlacementConstraints - } - if ssud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssud.CorrelationScheme - } - if ssud.LoadMetrics != nil { - objectMap["LoadMetrics"] = ssud.LoadMetrics - } - if ssud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssud.ServicePlacementPolicies - } - if ssud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssud.DefaultMoveCost - } - if ssud.ServiceKind != "" { - objectMap["ServiceKind"] = ssud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatefulServiceUpdateDescription. -func (ssud StatefulServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatefulServiceUpdateDescription struct. -func (ssud *StatefulServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "TargetReplicaSetSize": - if v != nil { - var targetReplicaSetSize int32 - err = json.Unmarshal(*v, &targetReplicaSetSize) - if err != nil { - return err - } - ssud.TargetReplicaSetSize = &targetReplicaSetSize - } - case "MinReplicaSetSize": - if v != nil { - var minReplicaSetSize int32 - err = json.Unmarshal(*v, &minReplicaSetSize) - if err != nil { - return err - } - ssud.MinReplicaSetSize = &minReplicaSetSize - } - case "ReplicaRestartWaitDurationSeconds": - if v != nil { - var replicaRestartWaitDurationSeconds string - err = json.Unmarshal(*v, &replicaRestartWaitDurationSeconds) - if err != nil { - return err - } - ssud.ReplicaRestartWaitDurationSeconds = &replicaRestartWaitDurationSeconds - } - case "QuorumLossWaitDurationSeconds": - if v != nil { - var quorumLossWaitDurationSeconds string - err = json.Unmarshal(*v, &quorumLossWaitDurationSeconds) - if err != nil { - return err - } - ssud.QuorumLossWaitDurationSeconds = &quorumLossWaitDurationSeconds - } - case "StandByReplicaKeepDurationSeconds": - if v != nil { - var standByReplicaKeepDurationSeconds string - err = json.Unmarshal(*v, &standByReplicaKeepDurationSeconds) - if err != nil { - return err - } - ssud.StandByReplicaKeepDurationSeconds = &standByReplicaKeepDurationSeconds - } - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - ssud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost MoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceDescription describes a stateless service. -type StatelessServiceDescription struct { - // InstanceCount - The instance count. - InstanceCount *int32 `json:"InstanceCount,omitempty"` - // ApplicationName - The name of the application, including the 'fabric:' URI scheme. - ApplicationName *string `json:"ApplicationName,omitempty"` - // ServiceName - The full name of the service with 'fabric:' URI scheme. - ServiceName *string `json:"ServiceName,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // InitializationData - The initialization data as an array of bytes. Initialization data is passed to service instances or replicas when they are created. - InitializationData *[]int32 `json:"InitializationData,omitempty"` - // PartitionDescription - The partition description as an object. - PartitionDescription BasicPartitionSchemeDescription `json:"PartitionDescription,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // ServiceLoadMetrics - The service load metrics. - ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"ServiceLoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost MoveCost `json:"DefaultMoveCost,omitempty"` - // IsDefaultMoveCostSpecified - Indicates if the DefaultMoveCost property is specified. - IsDefaultMoveCostSpecified *bool `json:"IsDefaultMoveCostSpecified,omitempty"` - // ServicePackageActivationMode - The activation mode of service package to be used for a service. Possible values include: 'SharedProcess', 'ExclusiveProcess' - ServicePackageActivationMode ServicePackageActivationMode `json:"ServicePackageActivationMode,omitempty"` - // ServiceDNSName - The DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster. - ServiceDNSName *string `json:"ServiceDnsName,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceDescriptionServiceKindServiceDescription', 'ServiceKindBasicServiceDescriptionServiceKindStateful', 'ServiceKindBasicServiceDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceDescription. -func (ssd StatelessServiceDescription) MarshalJSON() ([]byte, error) { - ssd.ServiceKind = ServiceKindBasicServiceDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssd.InstanceCount != nil { - objectMap["InstanceCount"] = ssd.InstanceCount - } - if ssd.ApplicationName != nil { - objectMap["ApplicationName"] = ssd.ApplicationName - } - if ssd.ServiceName != nil { - objectMap["ServiceName"] = ssd.ServiceName - } - if ssd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = ssd.ServiceTypeName - } - if ssd.InitializationData != nil { - objectMap["InitializationData"] = ssd.InitializationData - } - objectMap["PartitionDescription"] = ssd.PartitionDescription - if ssd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssd.PlacementConstraints - } - if ssd.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssd.CorrelationScheme - } - if ssd.ServiceLoadMetrics != nil { - objectMap["ServiceLoadMetrics"] = ssd.ServiceLoadMetrics - } - if ssd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssd.ServicePlacementPolicies - } - if ssd.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssd.DefaultMoveCost - } - if ssd.IsDefaultMoveCostSpecified != nil { - objectMap["IsDefaultMoveCostSpecified"] = ssd.IsDefaultMoveCostSpecified - } - if ssd.ServicePackageActivationMode != "" { - objectMap["ServicePackageActivationMode"] = ssd.ServicePackageActivationMode - } - if ssd.ServiceDNSName != nil { - objectMap["ServiceDnsName"] = ssd.ServiceDNSName - } - if ssd.ServiceKind != "" { - objectMap["ServiceKind"] = ssd.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatefulServiceDescription() (*StatefulServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsStatelessServiceDescription() (*StatelessServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsServiceDescription() (*ServiceDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceDescription is the BasicServiceDescription implementation for StatelessServiceDescription. -func (ssd StatelessServiceDescription) AsBasicServiceDescription() (BasicServiceDescription, bool) { - return &ssd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceDescription struct. -func (ssd *StatelessServiceDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int32 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - ssd.InstanceCount = &instanceCount - } - case "ApplicationName": - if v != nil { - var applicationName string - err = json.Unmarshal(*v, &applicationName) - if err != nil { - return err - } - ssd.ApplicationName = &applicationName - } - case "ServiceName": - if v != nil { - var serviceName string - err = json.Unmarshal(*v, &serviceName) - if err != nil { - return err - } - ssd.ServiceName = &serviceName - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - ssd.ServiceTypeName = &serviceTypeName - } - case "InitializationData": - if v != nil { - var initializationData []int32 - err = json.Unmarshal(*v, &initializationData) - if err != nil { - return err - } - ssd.InitializationData = &initializationData - } - case "PartitionDescription": - if v != nil { - partitionDescription, err := unmarshalBasicPartitionSchemeDescription(*v) - if err != nil { - return err - } - ssd.PartitionDescription = partitionDescription - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssd.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssd.CorrelationScheme = &correlationScheme - } - case "ServiceLoadMetrics": - if v != nil { - var serviceLoadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &serviceLoadMetrics) - if err != nil { - return err - } - ssd.ServiceLoadMetrics = &serviceLoadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost MoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssd.DefaultMoveCost = defaultMoveCost - } - case "IsDefaultMoveCostSpecified": - if v != nil { - var isDefaultMoveCostSpecified bool - err = json.Unmarshal(*v, &isDefaultMoveCostSpecified) - if err != nil { - return err - } - ssd.IsDefaultMoveCostSpecified = &isDefaultMoveCostSpecified - } - case "ServicePackageActivationMode": - if v != nil { - var servicePackageActivationMode ServicePackageActivationMode - err = json.Unmarshal(*v, &servicePackageActivationMode) - if err != nil { - return err - } - ssd.ServicePackageActivationMode = servicePackageActivationMode - } - case "ServiceDnsName": - if v != nil { - var serviceDNSName string - err = json.Unmarshal(*v, &serviceDNSName) - if err != nil { - return err - } - ssd.ServiceDNSName = &serviceDNSName - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssd.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInfo information about a stateless Service Fabric service. -type StatelessServiceInfo struct { - // ID - The identity of the service. This is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. - // Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", - // the service identity would be "myapp~app1\~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. - ID *string `json:"Id,omitempty"` - // Name - The full name of the service with 'fabric:' URI scheme. - Name *string `json:"Name,omitempty"` - // TypeName - Name of the service type as specified in the service manifest. - TypeName *string `json:"TypeName,omitempty"` - // ManifestVersion - The version of the service manifest. - ManifestVersion *string `json:"ManifestVersion,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // ServiceStatus - The status of the application. Possible values include: 'ServiceStatusUnknown', 'ServiceStatusActive', 'ServiceStatusUpgrading', 'ServiceStatusDeleting', 'ServiceStatusCreating', 'ServiceStatusFailed' - ServiceStatus ServiceStatus `json:"ServiceStatus,omitempty"` - // IsServiceGroup - Whether the service is in a service group. - IsServiceGroup *bool `json:"IsServiceGroup,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceInfoServiceKindServiceInfo', 'ServiceKindBasicServiceInfoServiceKindStateful', 'ServiceKindBasicServiceInfoServiceKindStateless' - ServiceKind ServiceKindBasicServiceInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInfo. -func (ssi StatelessServiceInfo) MarshalJSON() ([]byte, error) { - ssi.ServiceKind = ServiceKindBasicServiceInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if ssi.ID != nil { - objectMap["Id"] = ssi.ID - } - if ssi.Name != nil { - objectMap["Name"] = ssi.Name - } - if ssi.TypeName != nil { - objectMap["TypeName"] = ssi.TypeName - } - if ssi.ManifestVersion != nil { - objectMap["ManifestVersion"] = ssi.ManifestVersion - } - if ssi.HealthState != "" { - objectMap["HealthState"] = ssi.HealthState - } - if ssi.ServiceStatus != "" { - objectMap["ServiceStatus"] = ssi.ServiceStatus - } - if ssi.IsServiceGroup != nil { - objectMap["IsServiceGroup"] = ssi.IsServiceGroup - } - if ssi.ServiceKind != "" { - objectMap["ServiceKind"] = ssi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsStatefulServiceInfo() (*StatefulServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsStatelessServiceInfo() (*StatelessServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsServiceInfo() (*ServiceInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceInfo is the BasicServiceInfo implementation for StatelessServiceInfo. -func (ssi StatelessServiceInfo) AsBasicServiceInfo() (BasicServiceInfo, bool) { - return &ssi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceHealth represents the health of the stateless service instance. -// Contains the instance aggregated health state, the health events and the unhealthy evaluations. -type StatelessServiceInstanceHealth struct { - // InstanceID - Id of a stateless service instance. InstanceId is used by Service Fabric to uniquely identify an instance of a partition of a stateless service. It is unique within a partition and does not change for the lifetime of the instance. If the instance has failed over on the same or different node, it will get a different value for the InstanceId. - InstanceID *string `json:"InstanceId,omitempty"` - // PartitionID - Id of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthServiceKindReplicaHealth', 'ServiceKindBasicReplicaHealthServiceKindStateful', 'ServiceKindBasicReplicaHealthServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealth `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The HealthState representing the aggregated health state of the entity computed by Health Manager. - // The health evaluation of the entity reflects all events reported on the entity and its children (if any). - // The aggregation is done by applying the desired health policy. - // . Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // HealthEvents - The list of health events reported on the entity. - HealthEvents *[]HealthEvent `json:"HealthEvents,omitempty"` - // UnhealthyEvaluations - The unhealthy evaluations that show why the current aggregated health state was returned by Health Manager. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // HealthStatistics - Shows the health statistics for all children types of the queried entity. - HealthStatistics *HealthStatistics `json:"HealthStatistics,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) MarshalJSON() ([]byte, error) { - ssih.ServiceKind = ServiceKindBasicReplicaHealthServiceKindStateless - objectMap := make(map[string]interface{}) - if ssih.InstanceID != nil { - objectMap["InstanceId"] = ssih.InstanceID - } - if ssih.PartitionID != nil { - objectMap["PartitionId"] = ssih.PartitionID - } - if ssih.ServiceKind != "" { - objectMap["ServiceKind"] = ssih.ServiceKind - } - if ssih.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssih.AggregatedHealthState - } - if ssih.HealthEvents != nil { - objectMap["HealthEvents"] = ssih.HealthEvents - } - if ssih.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = ssih.UnhealthyEvaluations - } - if ssih.HealthStatistics != nil { - objectMap["HealthStatistics"] = ssih.HealthStatistics - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsStatefulServiceReplicaHealth() (*StatefulServiceReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsStatelessServiceInstanceHealth() (*StatelessServiceInstanceHealth, bool) { - return &ssih, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsReplicaHealth() (*ReplicaHealth, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealth is the BasicReplicaHealth implementation for StatelessServiceInstanceHealth. -func (ssih StatelessServiceInstanceHealth) AsBasicReplicaHealth() (BasicReplicaHealth, bool) { - return &ssih, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceHealthState represents the health state of the stateless service instance, which -// contains the instance id and the aggregated health state. -type StatelessServiceInstanceHealthState struct { - // ReplicaID - Id of the stateless service instance on the wire this field is called ReplicaId. - ReplicaID *string `json:"ReplicaId,omitempty"` - // PartitionID - The ID of the partition to which this replica belongs. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState', 'ServiceKindBasicReplicaHealthStateServiceKindStateful', 'ServiceKindBasicReplicaHealthStateServiceKindStateless' - ServiceKind ServiceKindBasicReplicaHealthState `json:"ServiceKind,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) MarshalJSON() ([]byte, error) { - ssihs.ServiceKind = ServiceKindBasicReplicaHealthStateServiceKindStateless - objectMap := make(map[string]interface{}) - if ssihs.ReplicaID != nil { - objectMap["ReplicaId"] = ssihs.ReplicaID - } - if ssihs.PartitionID != nil { - objectMap["PartitionId"] = ssihs.PartitionID - } - if ssihs.ServiceKind != "" { - objectMap["ServiceKind"] = ssihs.ServiceKind - } - if ssihs.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = ssihs.AggregatedHealthState - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsStatefulServiceReplicaHealthState() (*StatefulServiceReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsStatelessServiceInstanceHealthState() (*StatelessServiceInstanceHealthState, bool) { - return &ssihs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsReplicaHealthState() (*ReplicaHealthState, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaHealthState is the BasicReplicaHealthState implementation for StatelessServiceInstanceHealthState. -func (ssihs StatelessServiceInstanceHealthState) AsBasicReplicaHealthState() (BasicReplicaHealthState, bool) { - return &ssihs, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceInstanceInfo represents a stateless service instance. This includes information about the -// identity, status, health, node name, uptime, and other details about the instance. -type StatelessServiceInstanceInfo struct { - // InstanceID - Id of a stateless service instance. InstanceId is used by Service Fabric to uniquely identify an instance of a partition of a stateless service. It is unique within a partition and does not change for the lifetime of the instance. If the instance has failed over on the same or different node, it will get a different value for the InstanceId. - InstanceID *string `json:"InstanceId,omitempty"` - // ReplicaStatus - The status of a replica of a service. Possible values are following. - // -Invalid - Indicates the replica status is invalid. All Service Fabric enumerations have the invalid type. The value is zero. - // -InBuild - The replica is being built. This means that a primary replica is seeding this replica. The value is 1. - // -Standby - The replica is in standby. The value is 2. - // -Ready - The replica is ready. The value is 3. - // -Down - The replica is down. The value is 4. - // -Dropped - Replica is dropped. This means that the replica has been removed from the replica set. If it is persisted, its state has been deleted. The value is 5. - // . Possible values include: 'ReplicaStatus1Invalid', 'ReplicaStatus1InBuild', 'ReplicaStatus1Standby', 'ReplicaStatus1Ready', 'ReplicaStatus1Down', 'ReplicaStatus1Dropped' - ReplicaStatus ReplicaStatus1 `json:"ReplicaStatus,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // NodeName - The name of a Service Fabric node. - NodeName *string `json:"NodeName,omitempty"` - // Address - The address the replica is listening on. - Address *string `json:"Address,omitempty"` - // LastInBuildDurationInSeconds - The last in build duration of the replica in seconds. - LastInBuildDurationInSeconds *string `json:"LastInBuildDurationInSeconds,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicReplicaInfoServiceKindReplicaInfo', 'ServiceKindBasicReplicaInfoServiceKindStateful', 'ServiceKindBasicReplicaInfoServiceKindStateless' - ServiceKind ServiceKindBasicReplicaInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) MarshalJSON() ([]byte, error) { - ssii.ServiceKind = ServiceKindBasicReplicaInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if ssii.InstanceID != nil { - objectMap["InstanceId"] = ssii.InstanceID - } - if ssii.ReplicaStatus != "" { - objectMap["ReplicaStatus"] = ssii.ReplicaStatus - } - if ssii.HealthState != "" { - objectMap["HealthState"] = ssii.HealthState - } - if ssii.NodeName != nil { - objectMap["NodeName"] = ssii.NodeName - } - if ssii.Address != nil { - objectMap["Address"] = ssii.Address - } - if ssii.LastInBuildDurationInSeconds != nil { - objectMap["LastInBuildDurationInSeconds"] = ssii.LastInBuildDurationInSeconds - } - if ssii.ServiceKind != "" { - objectMap["ServiceKind"] = ssii.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsStatefulServiceReplicaInfo() (*StatefulServiceReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceInstanceInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsStatelessServiceInstanceInfo() (*StatelessServiceInstanceInfo, bool) { - return &ssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsReplicaInfo() (*ReplicaInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicReplicaInfo is the BasicReplicaInfo implementation for StatelessServiceInstanceInfo. -func (ssii StatelessServiceInstanceInfo) AsBasicReplicaInfo() (BasicReplicaInfo, bool) { - return &ssii, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServicePartitionInfo information about a partition of a stateless Service Fabric service. -type StatelessServicePartitionInfo struct { - // InstanceCount - Number of instances of this partition. - InstanceCount *int64 `json:"InstanceCount,omitempty"` - // HealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - HealthState HealthState `json:"HealthState,omitempty"` - // PartitionStatus - The status of the service fabric service partition. Possible values include: 'ServicePartitionStatusInvalid', 'ServicePartitionStatusReady', 'ServicePartitionStatusNotReady', 'ServicePartitionStatusInQuorumLoss', 'ServicePartitionStatusReconfiguring', 'ServicePartitionStatusDeleting' - PartitionStatus ServicePartitionStatus `json:"PartitionStatus,omitempty"` - // PartitionInformation - Information about the partition identity, partitioning scheme and keys supported by it. - PartitionInformation BasicPartitionInformation `json:"PartitionInformation,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo', 'ServiceKindBasicServicePartitionInfoServiceKindStateful', 'ServiceKindBasicServicePartitionInfoServiceKindStateless' - ServiceKind ServiceKindBasicServicePartitionInfo `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) MarshalJSON() ([]byte, error) { - sspi.ServiceKind = ServiceKindBasicServicePartitionInfoServiceKindStateless - objectMap := make(map[string]interface{}) - if sspi.InstanceCount != nil { - objectMap["InstanceCount"] = sspi.InstanceCount - } - if sspi.HealthState != "" { - objectMap["HealthState"] = sspi.HealthState - } - if sspi.PartitionStatus != "" { - objectMap["PartitionStatus"] = sspi.PartitionStatus - } - objectMap["PartitionInformation"] = sspi.PartitionInformation - if sspi.ServiceKind != "" { - objectMap["ServiceKind"] = sspi.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsStatefulServicePartitionInfo() (*StatefulServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsStatelessServicePartitionInfo() (*StatelessServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsServicePartitionInfo() (*ServicePartitionInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServicePartitionInfo is the BasicServicePartitionInfo implementation for StatelessServicePartitionInfo. -func (sspi StatelessServicePartitionInfo) AsBasicServicePartitionInfo() (BasicServicePartitionInfo, bool) { - return &sspi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServicePartitionInfo struct. -func (sspi *StatelessServicePartitionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int64 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - sspi.InstanceCount = &instanceCount - } - case "HealthState": - if v != nil { - var healthState HealthState - err = json.Unmarshal(*v, &healthState) - if err != nil { - return err - } - sspi.HealthState = healthState - } - case "PartitionStatus": - if v != nil { - var partitionStatus ServicePartitionStatus - err = json.Unmarshal(*v, &partitionStatus) - if err != nil { - return err - } - sspi.PartitionStatus = partitionStatus - } - case "PartitionInformation": - if v != nil { - partitionInformation, err := unmarshalBasicPartitionInformation(*v) - if err != nil { - return err - } - sspi.PartitionInformation = partitionInformation - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServicePartitionInfo - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - sspi.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceTypeDescription describes a stateless service type defined in the service manifest of a -// provisioned application type. -type StatelessServiceTypeDescription struct { - // UseImplicitHost - A flag indicating if this type is not implemented and hosted by a user service process, but is implicitly hosted by a system created process. This value is true for services using the guest executable services, false otherwise. - UseImplicitHost *bool `json:"UseImplicitHost,omitempty"` - // IsStateful - Indicates whether the service type is a stateful service type or a stateless service type. This property is true if the service type is a stateful service type, false otherwise. - IsStateful *bool `json:"IsStateful,omitempty"` - // ServiceTypeName - Name of the service type as specified in the service manifest. - ServiceTypeName *string `json:"ServiceTypeName,omitempty"` - // PlacementConstraints - The placement constraint to be used when instantiating this service in a Service Fabric cluster. - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // ServicePlacementPolicies - List of service placement policy descriptions. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // Extensions - List of service type extensions. - Extensions *[]ServiceTypeExtensionDescription `json:"Extensions,omitempty"` - // Kind - Possible values include: 'KindServiceTypeDescription', 'KindStateful', 'KindStateless' - Kind KindBasicServiceTypeDescription `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) MarshalJSON() ([]byte, error) { - sstd.Kind = KindStateless - objectMap := make(map[string]interface{}) - if sstd.UseImplicitHost != nil { - objectMap["UseImplicitHost"] = sstd.UseImplicitHost - } - if sstd.IsStateful != nil { - objectMap["IsStateful"] = sstd.IsStateful - } - if sstd.ServiceTypeName != nil { - objectMap["ServiceTypeName"] = sstd.ServiceTypeName - } - if sstd.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = sstd.PlacementConstraints - } - if sstd.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = sstd.ServicePlacementPolicies - } - if sstd.Extensions != nil { - objectMap["Extensions"] = sstd.Extensions - } - if sstd.Kind != "" { - objectMap["Kind"] = sstd.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsStatefulServiceTypeDescription() (*StatefulServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsStatelessServiceTypeDescription() (*StatelessServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsServiceTypeDescription() (*ServiceTypeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceTypeDescription is the BasicServiceTypeDescription implementation for StatelessServiceTypeDescription. -func (sstd StatelessServiceTypeDescription) AsBasicServiceTypeDescription() (BasicServiceTypeDescription, bool) { - return &sstd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceTypeDescription struct. -func (sstd *StatelessServiceTypeDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "UseImplicitHost": - if v != nil { - var useImplicitHost bool - err = json.Unmarshal(*v, &useImplicitHost) - if err != nil { - return err - } - sstd.UseImplicitHost = &useImplicitHost - } - case "IsStateful": - if v != nil { - var isStateful bool - err = json.Unmarshal(*v, &isStateful) - if err != nil { - return err - } - sstd.IsStateful = &isStateful - } - case "ServiceTypeName": - if v != nil { - var serviceTypeName string - err = json.Unmarshal(*v, &serviceTypeName) - if err != nil { - return err - } - sstd.ServiceTypeName = &serviceTypeName - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - sstd.PlacementConstraints = &placementConstraints - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - sstd.ServicePlacementPolicies = &servicePlacementPolicies - } - case "Extensions": - if v != nil { - var extensions []ServiceTypeExtensionDescription - err = json.Unmarshal(*v, &extensions) - if err != nil { - return err - } - sstd.Extensions = &extensions - } - case "Kind": - if v != nil { - var kind KindBasicServiceTypeDescription - err = json.Unmarshal(*v, &kind) - if err != nil { - return err - } - sstd.Kind = kind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StatelessServiceUpdateDescription describes an update for a stateless service. -type StatelessServiceUpdateDescription struct { - // InstanceCount - The instance count. - InstanceCount *int32 `json:"InstanceCount,omitempty"` - // Flags - Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. - // This property can be a combination of those flags obtained using bitwise 'OR' operator. - // For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set. - // - None - Does not indicate any other properties are set. The value is zero. - // - TargetReplicaSetSize/InstanceCount - Indicates whether the TargetReplicaSetSize property (for Stateful services) or the InstanceCount property (for Stateless services) is set. The value is 1. - // - ReplicaRestartWaitDuration - Indicates the ReplicaRestartWaitDuration property is set. The value is 2. - // - QuorumLossWaitDuration - Indicates the QuorumLossWaitDuration property is set. The value is 4. - // - StandByReplicaKeepDuration - Indicates the StandByReplicaKeepDuration property is set. The value is 8. - // - MinReplicaSetSize - Indicates the MinReplicaSetSize property is set. The value is 16. - // - PlacementConstraints - Indicates the PlacementConstraints property is set. The value is 32. - // - PlacementPolicyList - Indicates the ServicePlacementPolicies property is set. The value is 64. - // - Correlation - Indicates the CorrelationScheme property is set. The value is 128. - // - Metrics - Indicates the ServiceLoadMetrics property is set. The value is 256. - // - DefaultMoveCost - Indicates the DefaultMoveCost property is set. The value is 512. - Flags *string `json:"Flags,omitempty"` - // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". - PlacementConstraints *string `json:"PlacementConstraints,omitempty"` - // CorrelationScheme - The correlation scheme. - CorrelationScheme *[]ServiceCorrelationDescription `json:"CorrelationScheme,omitempty"` - // LoadMetrics - The service load metrics. - LoadMetrics *[]ServiceLoadMetricDescription `json:"LoadMetrics,omitempty"` - // ServicePlacementPolicies - The service placement policies. - ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"ServicePlacementPolicies,omitempty"` - // DefaultMoveCost - The move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' - DefaultMoveCost MoveCost `json:"DefaultMoveCost,omitempty"` - // ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateful', 'ServiceKindBasicServiceUpdateDescriptionServiceKindStateless' - ServiceKind ServiceKindBasicServiceUpdateDescription `json:"ServiceKind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) MarshalJSON() ([]byte, error) { - ssud.ServiceKind = ServiceKindBasicServiceUpdateDescriptionServiceKindStateless - objectMap := make(map[string]interface{}) - if ssud.InstanceCount != nil { - objectMap["InstanceCount"] = ssud.InstanceCount - } - if ssud.Flags != nil { - objectMap["Flags"] = ssud.Flags - } - if ssud.PlacementConstraints != nil { - objectMap["PlacementConstraints"] = ssud.PlacementConstraints - } - if ssud.CorrelationScheme != nil { - objectMap["CorrelationScheme"] = ssud.CorrelationScheme - } - if ssud.LoadMetrics != nil { - objectMap["LoadMetrics"] = ssud.LoadMetrics - } - if ssud.ServicePlacementPolicies != nil { - objectMap["ServicePlacementPolicies"] = ssud.ServicePlacementPolicies - } - if ssud.DefaultMoveCost != "" { - objectMap["DefaultMoveCost"] = ssud.DefaultMoveCost - } - if ssud.ServiceKind != "" { - objectMap["ServiceKind"] = ssud.ServiceKind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatefulServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsStatefulServiceUpdateDescription() (*StatefulServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStatelessServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsStatelessServiceUpdateDescription() (*StatelessServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsServiceUpdateDescription() (*ServiceUpdateDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicServiceUpdateDescription is the BasicServiceUpdateDescription implementation for StatelessServiceUpdateDescription. -func (ssud StatelessServiceUpdateDescription) AsBasicServiceUpdateDescription() (BasicServiceUpdateDescription, bool) { - return &ssud, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnmarshalJSON is the custom unmarshaler for StatelessServiceUpdateDescription struct. -func (ssud *StatelessServiceUpdateDescription) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "InstanceCount": - if v != nil { - var instanceCount int32 - err = json.Unmarshal(*v, &instanceCount) - if err != nil { - return err - } - ssud.InstanceCount = &instanceCount - } - case "Flags": - if v != nil { - var flags string - err = json.Unmarshal(*v, &flags) - if err != nil { - return err - } - ssud.Flags = &flags - } - case "PlacementConstraints": - if v != nil { - var placementConstraints string - err = json.Unmarshal(*v, &placementConstraints) - if err != nil { - return err - } - ssud.PlacementConstraints = &placementConstraints - } - case "CorrelationScheme": - if v != nil { - var correlationScheme []ServiceCorrelationDescription - err = json.Unmarshal(*v, &correlationScheme) - if err != nil { - return err - } - ssud.CorrelationScheme = &correlationScheme - } - case "LoadMetrics": - if v != nil { - var loadMetrics []ServiceLoadMetricDescription - err = json.Unmarshal(*v, &loadMetrics) - if err != nil { - return err - } - ssud.LoadMetrics = &loadMetrics - } - case "ServicePlacementPolicies": - if v != nil { - servicePlacementPolicies, err := unmarshalBasicServicePlacementPolicyDescriptionArray(*v) - if err != nil { - return err - } - ssud.ServicePlacementPolicies = &servicePlacementPolicies - } - case "DefaultMoveCost": - if v != nil { - var defaultMoveCost MoveCost - err = json.Unmarshal(*v, &defaultMoveCost) - if err != nil { - return err - } - ssud.DefaultMoveCost = defaultMoveCost - } - case "ServiceKind": - if v != nil { - var serviceKind ServiceKindBasicServiceUpdateDescription - err = json.Unmarshal(*v, &serviceKind) - if err != nil { - return err - } - ssud.ServiceKind = serviceKind - } - } - } - - return nil -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StoppedChaosEvent describes a Chaos event that gets generated when Chaos stops because either the user issued a -// stop or the time to run was up. -type StoppedChaosEvent struct { - // Reason - Describes why Chaos stopped. Chaos can stop because of StopChaos API call or the timeToRun provided in ChaosParameters is over. - Reason *string `json:"Reason,omitempty"` - // TimeStampUtc - The UTC timestamp when this Chaos event was generated. - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StoppedChaosEvent. -func (sce StoppedChaosEvent) MarshalJSON() ([]byte, error) { - sce.Kind = KindStopped - objectMap := make(map[string]interface{}) - if sce.Reason != nil { - objectMap["Reason"] = sce.Reason - } - if sce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = sce.TimeStampUtc - } - if sce.Kind != "" { - objectMap["Kind"] = sce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for StoppedChaosEvent. -func (sce StoppedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &sce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// String ... -type String struct { - autorest.Response `json:"-"` - Value *string `json:"value,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// StringPropertyValue describes a Service Fabric property value of type String. -type StringPropertyValue struct { - // Data - The data of the property value. - Data *string `json:"Data,omitempty"` - // Kind - Possible values include: 'KindPropertyValue', 'KindBinary', 'KindInt64', 'KindDouble', 'KindString', 'KindGUID' - Kind KindBasicPropertyValue `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for StringPropertyValue. -func (spv StringPropertyValue) MarshalJSON() ([]byte, error) { - spv.Kind = KindString - objectMap := make(map[string]interface{}) - if spv.Data != nil { - objectMap["Data"] = spv.Data - } - if spv.Kind != "" { - objectMap["Kind"] = spv.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBinaryPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsBinaryPropertyValue() (*BinaryPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsInt64PropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsInt64PropertyValue() (*Int64PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDoublePropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsDoublePropertyValue() (*DoublePropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStringPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsStringPropertyValue() (*StringPropertyValue, bool) { - return &spv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsGUIDPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsGUIDPropertyValue() (*GUIDPropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsPropertyValue() (*PropertyValue, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyValue is the BasicPropertyValue implementation for StringPropertyValue. -func (spv StringPropertyValue) AsBasicPropertyValue() (BasicPropertyValue, bool) { - return &spv, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SuccessfulPropertyBatchInfo derived from PropertyBatchInfo. Represents the property batch succeeding. Contains -// the results of any "Get" operations in the batch. -type SuccessfulPropertyBatchInfo struct { - // Properties - A map containing the properties that were requested through any "Get" property batch operations. The key represents the index of the "Get" operation in the original request, in string form. The value is the property. If a property is not found, it will not be in the map. - Properties map[string]*PropertyInfo `json:"Properties"` - // Kind - Possible values include: 'KindPropertyBatchInfo', 'KindSuccessful', 'KindFailed' - Kind KindBasicPropertyBatchInfo `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) MarshalJSON() ([]byte, error) { - spbi.Kind = KindSuccessful - objectMap := make(map[string]interface{}) - if spbi.Properties != nil { - objectMap["Properties"] = spbi.Properties - } - if spbi.Kind != "" { - objectMap["Kind"] = spbi.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSuccessfulPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsSuccessfulPropertyBatchInfo() (*SuccessfulPropertyBatchInfo, bool) { - return &spbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsFailedPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsFailedPropertyBatchInfo() (*FailedPropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsPropertyBatchInfo() (*PropertyBatchInfo, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPropertyBatchInfo is the BasicPropertyBatchInfo implementation for SuccessfulPropertyBatchInfo. -func (spbi SuccessfulPropertyBatchInfo) AsBasicPropertyBatchInfo() (BasicPropertyBatchInfo, bool) { - return &spbi, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// SystemApplicationHealthEvaluation represents health evaluation for the fabric:/System application, containing -// information about the data and the algorithm used by health store to evaluate health. The evaluation is returned -// only when the aggregated health state of the cluster is either Error or Warning. -type SystemApplicationHealthEvaluation struct { - // UnhealthyEvaluations - List of unhealthy evaluations that led to the current aggregated health state of the system application. The types of the unhealthy evaluations can be DeployedApplicationsHealthEvaluation, ServicesHealthEvaluation or EventHealthEvaluation. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) MarshalJSON() ([]byte, error) { - sahe.Kind = KindSystemApplication - objectMap := make(map[string]interface{}) - if sahe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = sahe.UnhealthyEvaluations - } - if sahe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = sahe.AggregatedHealthState - } - if sahe.Description != nil { - objectMap["Description"] = sahe.Description - } - if sahe.Kind != "" { - objectMap["Kind"] = sahe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for SystemApplicationHealthEvaluation. -func (sahe SystemApplicationHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &sahe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// TestErrorChaosEvent describes a Chaos event that gets generated when an unexpected event occurs in the Chaos -// engine. -// For example, due to the cluster snapshot being inconsistent, while faulting an entity, Chaos found that the -// entity was already faulted -- which would be an unexpected event. -type TestErrorChaosEvent struct { - // Reason - Describes why TestErrorChaosEvent was generated. For example, Chaos tries to fault a partition but finds that the partition is no longer fault tolerant, then a TestErrorEvent gets generated with the reason stating that the partition is not fault tolerant. - Reason *string `json:"Reason,omitempty"` - // TimeStampUtc - The UTC timestamp when this Chaos event was generated. - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) MarshalJSON() ([]byte, error) { - tece.Kind = KindTestError - objectMap := make(map[string]interface{}) - if tece.Reason != nil { - objectMap["Reason"] = tece.Reason - } - if tece.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = tece.TimeStampUtc - } - if tece.Kind != "" { - objectMap["Kind"] = tece.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return &tece, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for TestErrorChaosEvent. -func (tece TestErrorChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &tece, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UniformInt64RangePartitionSchemeDescription describes a partitioning scheme where an integer range is allocated -// evenly across a number of partitions. -type UniformInt64RangePartitionSchemeDescription struct { - // Count - The number of partitions. - Count *int32 `json:"Count,omitempty"` - // LowKey - String indicating the lower bound of the partition key range that - // should be split between the partition ‘Count’ - LowKey *string `json:"LowKey,omitempty"` - // HighKey - String indicating the upper bound of the partition key range that - // should be split between the partition ‘Count’ - HighKey *string `json:"HighKey,omitempty"` - // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed1', 'PartitionSchemeSingleton1', 'PartitionSchemeUniformInt64Range1' - PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"PartitionScheme,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) MarshalJSON() ([]byte, error) { - ui6rpsd.PartitionScheme = PartitionSchemeUniformInt64Range1 - objectMap := make(map[string]interface{}) - if ui6rpsd.Count != nil { - objectMap["Count"] = ui6rpsd.Count - } - if ui6rpsd.LowKey != nil { - objectMap["LowKey"] = ui6rpsd.LowKey - } - if ui6rpsd.HighKey != nil { - objectMap["HighKey"] = ui6rpsd.HighKey - } - if ui6rpsd.PartitionScheme != "" { - objectMap["PartitionScheme"] = ui6rpsd.PartitionScheme - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) { - return &ui6rpsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription. -func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool) { - return &ui6rpsd, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionApplicationTypeDescriptionInfo describes the operation to unregister or unprovision an application -// type and its version that was registered with the Service Fabric. -type UnprovisionApplicationTypeDescriptionInfo struct { - // ApplicationTypeVersion - The version of the application type as defined in the application manifest. - ApplicationTypeVersion *string `json:"ApplicationTypeVersion,omitempty"` - // Async - The flag indicating whether or not unprovision should occur asynchronously. When set to true, the unprovision operation returns when the request is accepted by the system, and the unprovision operation continues without any timeout limit. The default value is false. However, we recommend to set it to true for large application packages that were provisioned. - Async *bool `json:"Async,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UnprovisionFabricDescription describes the parameters for unprovisioning a cluster. -type UnprovisionFabricDescription struct { - // CodeVersion - The cluster code package version. - CodeVersion *string `json:"CodeVersion,omitempty"` - // ConfigVersion - The cluster manifest version. - ConfigVersion *string `json:"ConfigVersion,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpdateClusterUpgradeDescription parameters for updating a cluster upgrade. -type UpdateClusterUpgradeDescription struct { - // UpgradeKind - The type of upgrade out of the following possible values. Possible values include: 'UpgradeTypeInvalid', 'UpgradeTypeRolling', 'UpgradeTypeRollingForceRestart' - UpgradeKind UpgradeType `json:"UpgradeKind,omitempty"` - // UpdateDescription - Describes the parameters for updating a rolling upgrade of application or cluster. - UpdateDescription *RollingUpgradeUpdateDescription `json:"UpdateDescription,omitempty"` - // ClusterHealthPolicy - Defines a health policy used to evaluate the health of the cluster or of a cluster node. - ClusterHealthPolicy *ClusterHealthPolicy `json:"ClusterHealthPolicy,omitempty"` - // EnableDeltaHealthEvaluation - When true, enables delta health evaluation rather than absolute health evaluation after completion of each upgrade domain. - EnableDeltaHealthEvaluation *bool `json:"EnableDeltaHealthEvaluation,omitempty"` - // ClusterUpgradeHealthPolicy - Defines a health policy used to evaluate the health of the cluster during a cluster upgrade. - ClusterUpgradeHealthPolicy *ClusterUpgradeHealthPolicyObject `json:"ClusterUpgradeHealthPolicy,omitempty"` - // ApplicationHealthPolicyMap - Defines the application health policy map used to evaluate the health of an application or one of its children entities. - ApplicationHealthPolicyMap *ApplicationHealthPolicies `json:"ApplicationHealthPolicyMap,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainDeltaNodesCheckHealthEvaluation represents health evaluation for delta unhealthy cluster nodes in -// an upgrade domain, containing health evaluations for each unhealthy node that impacted current aggregated health -// state. -// Can be returned during cluster upgrade when cluster aggregated health state is Warning or Error. -type UpgradeDomainDeltaNodesCheckHealthEvaluation struct { - // UpgradeDomainName - Name of the upgrade domain where nodes health is currently evaluated. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - // BaselineErrorCount - Number of upgrade domain nodes with aggregated heath state Error in the health store at the beginning of the cluster upgrade. - BaselineErrorCount *int64 `json:"BaselineErrorCount,omitempty"` - // BaselineTotalCount - Total number of upgrade domain nodes in the health store at the beginning of the cluster upgrade. - BaselineTotalCount *int64 `json:"BaselineTotalCount,omitempty"` - // MaxPercentDeltaUnhealthyNodes - Maximum allowed percentage of upgrade domain delta unhealthy nodes from the ClusterUpgradeHealthPolicy. - MaxPercentDeltaUnhealthyNodes *int32 `json:"MaxPercentDeltaUnhealthyNodes,omitempty"` - // TotalCount - Total number of upgrade domain nodes in the health store. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) MarshalJSON() ([]byte, error) { - uddnche.Kind = KindUpgradeDomainDeltaNodesCheck - objectMap := make(map[string]interface{}) - if uddnche.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = uddnche.UpgradeDomainName - } - if uddnche.BaselineErrorCount != nil { - objectMap["BaselineErrorCount"] = uddnche.BaselineErrorCount - } - if uddnche.BaselineTotalCount != nil { - objectMap["BaselineTotalCount"] = uddnche.BaselineTotalCount - } - if uddnche.MaxPercentDeltaUnhealthyNodes != nil { - objectMap["MaxPercentDeltaUnhealthyNodes"] = uddnche.MaxPercentDeltaUnhealthyNodes - } - if uddnche.TotalCount != nil { - objectMap["TotalCount"] = uddnche.TotalCount - } - if uddnche.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = uddnche.UnhealthyEvaluations - } - if uddnche.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = uddnche.AggregatedHealthState - } - if uddnche.Description != nil { - objectMap["Description"] = uddnche.Description - } - if uddnche.Kind != "" { - objectMap["Kind"] = uddnche.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainDeltaNodesCheckHealthEvaluation. -func (uddnche UpgradeDomainDeltaNodesCheckHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &uddnche, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainInfo information about an upgrade domain. -type UpgradeDomainInfo struct { - // Name - The name of the upgrade domain - Name *string `json:"Name,omitempty"` - // State - The state of the upgrade domain. Possible values include: 'UpgradeDomainStateInvalid', 'UpgradeDomainStatePending', 'UpgradeDomainStateInProgress', 'UpgradeDomainStateCompleted' - State UpgradeDomainState `json:"State,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeDomainNodesHealthEvaluation represents health evaluation for cluster nodes in an upgrade domain, -// containing health evaluations for each unhealthy node that impacted current aggregated health state. Can be -// returned when evaluating cluster health during cluster upgrade and the aggregated health state is either Error -// or Warning. -type UpgradeDomainNodesHealthEvaluation struct { - // UpgradeDomainName - Name of the upgrade domain where nodes health is currently evaluated. - UpgradeDomainName *string `json:"UpgradeDomainName,omitempty"` - // MaxPercentUnhealthyNodes - Maximum allowed percentage of unhealthy nodes from the ClusterHealthPolicy. - MaxPercentUnhealthyNodes *int32 `json:"MaxPercentUnhealthyNodes,omitempty"` - // TotalCount - Total number of nodes in the current upgrade domain. - TotalCount *int64 `json:"TotalCount,omitempty"` - // UnhealthyEvaluations - List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy NodeHealthEvaluation that impacted the aggregated health. - UnhealthyEvaluations *[]HealthEvaluationWrapper `json:"UnhealthyEvaluations,omitempty"` - // AggregatedHealthState - The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'HealthStateInvalid', 'HealthStateOk', 'HealthStateWarning', 'HealthStateError', 'HealthStateUnknown' - AggregatedHealthState HealthState `json:"AggregatedHealthState,omitempty"` - // Description - Description of the health evaluation, which represents a summary of the evaluation process. - Description *string `json:"Description,omitempty"` - // Kind - Possible values include: 'KindHealthEvaluation', 'KindApplication', 'KindApplications', 'KindApplicationTypeApplications', 'KindDeltaNodesCheck', 'KindDeployedApplication', 'KindDeployedApplications', 'KindDeployedServicePackage', 'KindDeployedServicePackages', 'KindEvent', 'KindNode', 'KindNodes', 'KindPartition', 'KindPartitions', 'KindReplica', 'KindReplicas', 'KindService', 'KindServices', 'KindSystemApplication', 'KindUpgradeDomainDeltaNodesCheck', 'KindUpgradeDomainNodes' - Kind Kind `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) MarshalJSON() ([]byte, error) { - udnhe.Kind = KindUpgradeDomainNodes - objectMap := make(map[string]interface{}) - if udnhe.UpgradeDomainName != nil { - objectMap["UpgradeDomainName"] = udnhe.UpgradeDomainName - } - if udnhe.MaxPercentUnhealthyNodes != nil { - objectMap["MaxPercentUnhealthyNodes"] = udnhe.MaxPercentUnhealthyNodes - } - if udnhe.TotalCount != nil { - objectMap["TotalCount"] = udnhe.TotalCount - } - if udnhe.UnhealthyEvaluations != nil { - objectMap["UnhealthyEvaluations"] = udnhe.UnhealthyEvaluations - } - if udnhe.AggregatedHealthState != "" { - objectMap["AggregatedHealthState"] = udnhe.AggregatedHealthState - } - if udnhe.Description != nil { - objectMap["Description"] = udnhe.Description - } - if udnhe.Kind != "" { - objectMap["Kind"] = udnhe.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationHealthEvaluation() (*ApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationsHealthEvaluation() (*ApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsApplicationTypeApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsApplicationTypeApplicationsHealthEvaluation() (*ApplicationTypeApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeltaNodesCheckHealthEvaluation() (*DeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationHealthEvaluation() (*DeployedApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedApplicationsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedApplicationsHealthEvaluation() (*DeployedApplicationsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackageHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackageHealthEvaluation() (*DeployedServicePackageHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsDeployedServicePackagesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsDeployedServicePackagesHealthEvaluation() (*DeployedServicePackagesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEventHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsEventHealthEvaluation() (*EventHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodeHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodeHealthEvaluation() (*NodeHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsNodesHealthEvaluation() (*NodesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionHealthEvaluation() (*PartitionHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsPartitionsHealthEvaluation() (*PartitionsHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicaHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicaHealthEvaluation() (*ReplicaHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsReplicasHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsReplicasHealthEvaluation() (*ReplicasHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServiceHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServiceHealthEvaluation() (*ServiceHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsServicesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsServicesHealthEvaluation() (*ServicesHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSystemApplicationHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsSystemApplicationHealthEvaluation() (*SystemApplicationHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainDeltaNodesCheckHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainDeltaNodesCheckHealthEvaluation() (*UpgradeDomainDeltaNodesCheckHealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsUpgradeDomainNodesHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsUpgradeDomainNodesHealthEvaluation() (*UpgradeDomainNodesHealthEvaluation, bool) { - return &udnhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsHealthEvaluation() (*HealthEvaluation, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicHealthEvaluation is the BasicHealthEvaluation implementation for UpgradeDomainNodesHealthEvaluation. -func (udnhe UpgradeDomainNodesHealthEvaluation) AsBasicHealthEvaluation() (BasicHealthEvaluation, bool) { - return &udnhe, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeOrchestrationServiceState service state of Service Fabric Upgrade Orchestration Service. -type UpgradeOrchestrationServiceState struct { - autorest.Response `json:"-"` - // ServiceState - The state of Service Fabric Upgrade Orchestration Service. - ServiceState *string `json:"ServiceState,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UpgradeOrchestrationServiceStateSummary service state summary of Service Fabric Upgrade Orchestration Service. -type UpgradeOrchestrationServiceStateSummary struct { - autorest.Response `json:"-"` - // CurrentCodeVersion - The current code version of the cluster. - CurrentCodeVersion *string `json:"CurrentCodeVersion,omitempty"` - // CurrentManifestVersion - The current manifest version of the cluster. - CurrentManifestVersion *string `json:"CurrentManifestVersion,omitempty"` - // TargetCodeVersion - The target code version of the cluster. - TargetCodeVersion *string `json:"TargetCodeVersion,omitempty"` - // TargetManifestVersion - The target manifest version of the cluster. - TargetManifestVersion *string `json:"TargetManifestVersion,omitempty"` - // PendingUpgradeType - The type of the pending upgrade of the cluster. - PendingUpgradeType *string `json:"PendingUpgradeType,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadChunkRange information about which portion of the file to upload. -type UploadChunkRange struct { - // StartPosition - The start position of the portion of the file. It's represented by the number of bytes. - StartPosition *string `json:"StartPosition,omitempty"` - // EndPosition - The end position of the portion of the file. It's represented by the number of bytes. - EndPosition *string `json:"EndPosition,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadSession information about a image store upload session -type UploadSession struct { - autorest.Response `json:"-"` - // UploadSessions - When querying upload session by upload session ID, the result contains only one upload session. When querying upload session by image store relative path, the result might contain multiple upload sessions. - UploadSessions *[]UploadSessionInfo `json:"UploadSessions,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UploadSessionInfo information about an image store upload session. A session is associated with a relative path -// in the image store. -type UploadSessionInfo struct { - // StoreRelativePath - The remote location within image store. This path is relative to the image store root. - StoreRelativePath *string `json:"StoreRelativePath,omitempty"` - // SessionID - A unique ID of the upload session. A session ID can be reused only if the session was committed or removed. - SessionID *uuid.UUID `json:"SessionId,omitempty"` - // ModifiedDate - The date and time when the upload session was last modified. - ModifiedDate *date.Time `json:"ModifiedDate,omitempty"` - // FileSize - The size in bytes of the uploading file. - FileSize *string `json:"FileSize,omitempty"` - // ExpectedRanges - List of chunk ranges that image store has not received yet. - ExpectedRanges *[]UploadChunkRange `json:"ExpectedRanges,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// ValidationFailedChaosEvent chaos event corresponding to a failure during validation. -type ValidationFailedChaosEvent struct { - // Reason - Describes why the ValidationFailedChaosEvent was generated. This may happen because more than MaxPercentUnhealthyNodes are unhealthy for more than MaxClusterStabilizationTimeout. This reason will be in the Reason property of the ValidationFailedChaosEvent as a string. - Reason *string `json:"Reason,omitempty"` - // TimeStampUtc - The UTC timestamp when this Chaos event was generated. - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) MarshalJSON() ([]byte, error) { - vfce.Kind = KindValidationFailed - objectMap := make(map[string]interface{}) - if vfce.Reason != nil { - objectMap["Reason"] = vfce.Reason - } - if vfce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = vfce.TimeStampUtc - } - if vfce.Kind != "" { - objectMap["Kind"] = vfce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return &vfce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for ValidationFailedChaosEvent. -func (vfce ValidationFailedChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &vfce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForInbuildReplicaSafetyCheck safety check that waits for the replica build operation to finish. This -// indicates that there is a replica that is going through the copy or is providing data for building another -// replica. Bring the node down will abort this copy operation which are typically expensive involving data -// movements. -type WaitForInbuildReplicaSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) MarshalJSON() ([]byte, error) { - wfirsc.Kind = KindWaitForInbuildReplica - objectMap := make(map[string]interface{}) - if wfirsc.PartitionID != nil { - objectMap["PartitionId"] = wfirsc.PartitionID - } - if wfirsc.Kind != "" { - objectMap["Kind"] = wfirsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForInbuildReplicaSafetyCheck. -func (wfirsc WaitForInbuildReplicaSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfirsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForPrimaryPlacementSafetyCheck safety check that waits for the primary replica that was moved out of the -// node due to upgrade to be placed back again on that node. -type WaitForPrimaryPlacementSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) MarshalJSON() ([]byte, error) { - wfppsc.Kind = KindWaitForPrimaryPlacement - objectMap := make(map[string]interface{}) - if wfppsc.PartitionID != nil { - objectMap["PartitionId"] = wfppsc.PartitionID - } - if wfppsc.Kind != "" { - objectMap["Kind"] = wfppsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimaryPlacementSafetyCheck. -func (wfppsc WaitForPrimaryPlacementSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfppsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForPrimarySwapSafetyCheck safety check that waits for the primary replica to be moved out of the node before -// starting an upgrade to ensure the availability of the primary replica for the partition. -type WaitForPrimarySwapSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) MarshalJSON() ([]byte, error) { - wfpssc.Kind = KindWaitForPrimarySwap - objectMap := make(map[string]interface{}) - if wfpssc.PartitionID != nil { - objectMap["PartitionId"] = wfpssc.PartitionID - } - if wfpssc.Kind != "" { - objectMap["Kind"] = wfpssc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForPrimarySwapSafetyCheck. -func (wfpssc WaitForPrimarySwapSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfpssc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitForReconfigurationSafetyCheck safety check that waits for the current reconfiguration of the partition to be -// completed before starting an upgrade. -type WaitForReconfigurationSafetyCheck struct { - // PartitionID - Id of the partition which is undergoing the safety check. - PartitionID *uuid.UUID `json:"PartitionId,omitempty"` - // Kind - Possible values include: 'KindSafetyCheck', 'KindPartitionSafetyCheck', 'KindEnsureAvailability', 'KindEnsurePartitionQuorum', 'KindEnsureSeedNodeQuorum', 'KindWaitForInbuildReplica', 'KindWaitForPrimaryPlacement', 'KindWaitForPrimarySwap', 'KindWaitForReconfiguration' - Kind KindBasicSafetyCheck `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) MarshalJSON() ([]byte, error) { - wfrsc.Kind = KindWaitForReconfiguration - objectMap := make(map[string]interface{}) - if wfrsc.PartitionID != nil { - objectMap["PartitionId"] = wfrsc.PartitionID - } - if wfrsc.Kind != "" { - objectMap["Kind"] = wfrsc.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsPartitionSafetyCheck() (*PartitionSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicPartitionSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsBasicPartitionSafetyCheck() (BasicPartitionSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsureAvailabilitySafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsEnsureAvailabilitySafetyCheck() (*EnsureAvailabilitySafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsEnsurePartitionQurumSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsEnsurePartitionQurumSafetyCheck() (*EnsurePartitionQurumSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSeedNodeSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsSeedNodeSafetyCheck() (*SeedNodeSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForInbuildReplicaSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForInbuildReplicaSafetyCheck() (*WaitForInbuildReplicaSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimaryPlacementSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForPrimaryPlacementSafetyCheck() (*WaitForPrimaryPlacementSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForPrimarySwapSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForPrimarySwapSafetyCheck() (*WaitForPrimarySwapSafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitForReconfigurationSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsWaitForReconfigurationSafetyCheck() (*WaitForReconfigurationSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsSafetyCheck() (*SafetyCheck, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicSafetyCheck is the BasicSafetyCheck implementation for WaitForReconfigurationSafetyCheck. -func (wfrsc WaitForReconfigurationSafetyCheck) AsBasicSafetyCheck() (BasicSafetyCheck, bool) { - return &wfrsc, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// WaitingChaosEvent describes a Chaos event that gets generated when Chaos is waiting for the cluster to become -// ready for faulting, for example, Chaos may be waiting for the on-going upgrade to finish. -type WaitingChaosEvent struct { - // Reason - Describes why the WaitingChaosEvent was generated, for example, due to a cluster upgrade. - Reason *string `json:"Reason,omitempty"` - // TimeStampUtc - The UTC timestamp when this Chaos event was generated. - TimeStampUtc *date.Time `json:"TimeStampUtc,omitempty"` - // Kind - Possible values include: 'KindChaosEvent', 'KindExecutingFaults', 'KindStarted', 'KindStopped', 'KindTestError', 'KindValidationFailed', 'KindWaiting' - Kind KindBasicChaosEvent `json:"Kind,omitempty"` -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// MarshalJSON is the custom marshaler for WaitingChaosEvent. -func (wce WaitingChaosEvent) MarshalJSON() ([]byte, error) { - wce.Kind = KindWaiting - objectMap := make(map[string]interface{}) - if wce.Reason != nil { - objectMap["Reason"] = wce.Reason - } - if wce.TimeStampUtc != nil { - objectMap["TimeStampUtc"] = wce.TimeStampUtc - } - if wce.Kind != "" { - objectMap["Kind"] = wce.Kind - } - return json.Marshal(objectMap) -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsExecutingFaultsChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsExecutingFaultsChaosEvent() (*ExecutingFaultsChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStartedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsStartedChaosEvent() (*StartedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsStoppedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsStoppedChaosEvent() (*StoppedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsTestErrorChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsTestErrorChaosEvent() (*TestErrorChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsValidationFailedChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsValidationFailedChaosEvent() (*ValidationFailedChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsWaitingChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsWaitingChaosEvent() (*WaitingChaosEvent, bool) { - return &wce, true -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsChaosEvent() (*ChaosEvent, bool) { - return nil, false -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// AsBasicChaosEvent is the BasicChaosEvent implementation for WaitingChaosEvent. -func (wce WaitingChaosEvent) AsBasicChaosEvent() (BasicChaosEvent, bool) { - return &wce, true -} diff --git a/services/servicefabric/6.1/servicefabric/version.go b/services/servicefabric/6.1/servicefabric/version.go deleted file mode 100644 index fb6d3eeef31e..000000000000 --- a/services/servicefabric/6.1/servicefabric/version.go +++ /dev/null @@ -1,31 +0,0 @@ -package servicefabric - -import "github.com/Azure/azure-sdk-for-go/version" - -// Copyright (c) Microsoft and contributors. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " servicefabric/6.1.2" -} - -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/servicefabric/6.2/servicefabric instead -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -}